AZ-400 Exam Questions

Total 488 Questions

Last Updated Exam : 7-Jul-2025

Topic 4: Mix Questions Set

You have an Azure DevOps project that contains a build pipeline. The build pipeline uses approximately 50 open source libraries. You need to ensure that all the open source libraries comply with your company’s licensing standards. Which service should you use?


A. NuGet


B. Maven


C. Black Duck


D. Helm





C.
  Black Duck

Explanation: Secure and Manage Open Source Software Black Duck helps organizations identify and mitigate open source security, license compliance and code-quality risks across application and container portfolios. Black Duck Hub and its plugin for Team Foundation Server (TFS) allows you to automatically find and fix open source security vulnerabilities during the build process, so you can proactively manage risk. The integration allows you to receive alerts and fail builds when any Black Duck Hub policy violations are met.

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
Your company uses Azure DevOps to manage the build and release processes for applications.
You use a Git repository for applications source control.
You need to implement a pull request strategy that reduces the history volume in the master branch.
Solution: You implement a pull request strategy that uses squash merges.
Does this meet the goal?


A. Yes


B. No





B.
  No

You use GitHub for source control. A file that contains sensitive data is committed accidentally to the Get repository of a project. You need to delete the file and its history form the repository. Which two tools can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.


A. the git filter-branch command


B. BFG Repo-Cleaner


C. the git rebase command


D. GitHub Desktop





A.
  the git filter-branch command

B.
  BFG Repo-Cleaner

Explanation: To entirely remove unwanted files from a repository's history you can use either the git filter-branch command or the BFG Repo-Cleaner open source tool.

You need to ensure that Microsoft Visual Studio 2017 can remotely attach to an Azure Function named fa-11566895. To complete this task, sign in to the Microsoft Azure portal.






Explanation:
Enable Remote Debugging
Before we start a debugging session to our Azure Function app we need to enable the functionality.
Navigate in the Azure portal to your function app fa-11566895
Go to the “Application settings”
Under “Debugging” set Remote Debugging to On and set Remote Visual Studio version to 2017.

You plan to use a NuGet package in a project in Azure DevOps. The NuGet package is in a feed that requires authentication. You need to ensure that the project can restore the NuGet package automatically. What should the project use to automate the authentication?


A. an Azure Automation account


B. an Azure Artifacts Credential Provider


C. an Azure Active Directory (Azure AD) account that has multi-factor authentication (MFA) enabled


D. an Azure Active Directory (Azure AD) service principal
D18912E1457D5D1DDCBD40AB3BF70D5D





B.
  an Azure Artifacts Credential Provider

Explanation: The Azure Artifacts Credential Provider automates the acquisition of credentials needed to restore NuGet packages as part of your .NET development workflow. It integrates with MSBuild, dotnet, and NuGet(.exe) and works on Windows, Mac, and Linux. Any time you want to use packages from an Azure Artifacts feed, the Credential Provider will automatically acquire and securely store a token on behalf of the NuGet client you're using.

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app. TestSuite1 fails intermittently.
You identify that the failures are unrelated to changes in the source code and execution environment.
You need to minimize troubleshooting effort for the TestSuite1 failures.
Solution: You increase code coverage.
Does this meet the goal?


A. Yes


B. No





B.
  No

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure SQL database named DB1. You need to create a release pipeline that uses the Azure SQL Database Deployment task to update DB1. Which artifact should you deploy?


A. a BACPAC


B. a DACPAC


C. an LDF file


D. an MDF file





B.
  a DACPAC

Explanation: Use Azure SQL Database Deployment task in a build or release pipeline to deploy to Azure SQL DB using a DACPAC or run scripts using SQLCMD.

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You manage a project in Azure DevOps.
You need to prevent the configuration of the project from changing over time.
Solution: Implement Continuous Integration for the project. Does this meet the goal?


A. Yes


B. No





B.
  No

Instead implement Continuous Assurance for the project.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You use Azure Pipelines to build and test a React js application.
You have a pipeline that has a single job.
You discover that installing JavaScript packages from npm takes approximately five minutes each time you run the pipeline.
You need to recommend a solution to reduce the pipeline execution time.
Solution: You recommend enabling parallel jobs for the pipeline.
Does this meet the goal?


A. Yes


B. No





B.
  No

Explanation: Instead enable pipeline caching.
Note: npm-cache is a command line utility that caches dependencies installed via npm, bower, jspm and composer. It is useful for build processes that run [npm|bower|composer|jspm] install every time as part of their build process. Since dependencies don't change often, this often means slower build times. npm-cache helps alleviate this problem by caching previously installed dependencies on the build machine.

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure virtual machine scale set named VMSS1. VMSS1 hosts a web application named WebApp1.
WebApp1 uses stateful sessions.
The WebApp1 installation is managed by using the Custom Script extension. The script resides in an Azure Storage account named sa1.
You plan to make a minor change to a UI element of WebApp1 and to gather user feedback about the change.
You need to implement limited user testing for the new version of WebApp1 on VMSS1. Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.


A. Modify the load balancer settings of VMSS1.


B. Redeploy VMSS1


C. Upload a custom script file to sa1.


D. Modify the Custom Script extension settings of VMSS1.


E. Update the configuration of a virtual machine in VMSS1





B.
  Redeploy VMSS1

C.
  Upload a custom script file to sa1.

D.
  Modify the Custom Script extension settings of VMSS1.


Page 18 out of 49 Pages
Previous