Microsoft Azure Certified DevOps Engineer AZ-400 Part 1
Question #: 10
Topic #: 1
You are configuring project metrics for dashboards in Azure DevOps.
You need to configure a chart widget that measures the elapsed time to complete work items once they become active.
Which of the following is the widget you should use?
A. Cumulative Flow Diagram
B. Burnup
C. Cycle time
D. Burndown
Selected Answer: C
Question #: 11
Topic #: 1
You are configuring project metrics for dashboards in Azure DevOps.
You need to configure a chart widget that measures the elapsed time to complete work items once they become active.
Which of the following is the widget you should use?
A. Cumulative Flow Diagram
B. Burnup
C. Cycle time
D. Burndown
Selected Answer: C
Question #: 12
Topic #: 12
You add the virtual machines as managed nodes in Azure Automation State Configuration.
You need to configure the managed computers in Pool7.
What should you do next?
A. Modify the RefreshMode property of the Local Configuration Manager (LCM).
B. Run the Register-AzureRmAutomationDscNode Azure Powershell cmdlet.
C. Modify the ConfigurationMode property of the Local Configuration Manager (LCM).
D. Install PowerShell Core.
Selected Answer: C
Question #: 13
Topic #: 18
To resolve the current technical issue, what should you do to the Register-AzureRmAutomationDscNode command?
A. Change the value of the ConfigurationMode parameter.
B. Replace the Register-AzureRmAutomationDscNode cmdlet with Register-AzureRmAutomationScheduledRunbook
C. Add the AllowModuleOverwrite parameter.
D. Add the DefaultProfile parameter.
Selected Answer: A
Question #: 14
Topic #: 16
You need to perform the GitHub code migration. The solution must support the planned changes for the DevOps environment.
What should you use?
A. git clone
B. GitHub Importer
C. Import repository in Azure Repos
D. git-tfs
Selected Answer: B
Question #: 15
Topic #: 9
You plan to create an image that will contain a .NET Core application.
You have a Dockerfile file that contains the following code. (Line numbers are included for reference only.)
You need to ensure that the image is as small as possible when the image is built.
Which line should you modify in the file?
A. 1
B. 3
C. 4
D. 7
Selected Answer: C
Question #: 16
Topic #: 7
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 need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:
✑ The build must access an on-premises dependency management system.
✑ The build outputs must be stored as Server artifacts in Azure DevOps.
✑ The source code must be stored in a Git repository in Azure DevOps.
Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running the Windows Server 2019 with Visual Studio 2019 image. Include the Java Tool
Installer task in the build pipeline.
Does this meet the goal?
A. Yes
B. No
Selected Answer: B
Question #: 17
Topic #: 6
Your company has 60 developers who are assigned to four teams. Each team has 15 members.
The company uses an agile development methodology.
You need to structure the work of the development teams so that each team owns their respective work while working together to reach a common goal.
Which parts of the taxonomy should you enable the team to perform autonomously?
A. Features and Tasks
B. Initiatives and Epics
C. Epics and Features
D. Stories and Tasks
Selected Answer: D
Question #: 18
Topic #: 14
You need to meet the technical requirements for controlling access to Azure DevOps.
What should you use?
A. Azure Multi-Factor Authentication (MFA)
B. on-premises firewall rules
C. conditional access policies in Azure AD
D. Azure role-based access control (Azure RBAC)
Selected Answer: C
Question #: 19
Topic #: 3
You have an Azure subscription that contains multiple Azure services.
You need to send an SMS alert when scheduled maintenance is planned for the Azure services.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Enable Azure Security Center.
B. Create and configure an Azure Monitor alert rule.
C. Create an Azure Service Health alert.
D. Create and configure an action group.
Selected Answer: CD
Question #: 20
Topic #: 5
You are designing the development process for your company.
You need to recommend a solution for continuous inspection of the company’s code base to locate common code patterns that are known to be problematic.
What should you include in the recommendation?
A. Microsoft Visual Studio test plans
B. Gradle wrapper scripts
C. SonarCloud analysis
D. the JavaScript task runner
Selected Answer: C
Question #: 24
Topic #: 3
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 DevOps organization named Contoso and an Azure subscription. The subscription contains an Azure virtual machine scale set named VMSS1 that is configured for autoscaling.
You have a project in Azure DevOps named Project1. Project1 is used to build a web app named App1 and deploy App1 to VMSS1.
You need to ensure that an email alert is generated whenever VMSS1 scales in or out.
Solution: From Azure Monitor, configure the autoscale settings.
Does this meet the goal?
A. Yes
B. No
Selected Answer: B
Question #: 25
Topic #: 9
You have a project in Azure DevOps named Project1. Project1 contains a build pipeline named Pipe1 that builds an application named App1.
You have an agent pool named Pool1 that contains a Windows Server 2022-based self-hosted agent. Pipe1 uses Pool1.
You plan to implement another project named Project2. Project2 will have a build pipeline named Pipe2 that builds an application named App2.
App1 and App2 have conflicting dependencies.
You need to minimize the possibility that the two build pipelines will conflict with each other. The solution must minimize infrastructure costs.
What should you do?
A. Add another self-hosted agent.
B. Add a Docker Compose task to the build pipelines.
C. Change the self-hosted agent to use Red Hat Enterprise Linux (RHEL) 9.
D. Create two container jobs.
Selected Answer: D
Question #: 26
Topic #: 1
You need to consider the underlined segment to establish whether it is accurate.
The Burnup widget measures the elapsed time from creation of work items to their completion.
Select `No adjustment required` if the underlined segment is accurate. If the underlined segment is inaccurate, select the accurate option.
A. No adjustment required.
B. Lead time
C. Test results trend
D. Burndown
Selected Answer: B
Question #: 27
Topic #: 7
You have a project in Azure DevOps.
You create the following YAML template named Template1.yml.
steps:
– script: npm install
– script: yarn install
– script: npm run compile
You create the following pipeline named File1.yml.
parameters:
usersteps:
– task: MyTask@1
– script: echo Done
You need to ensure that Template1.yaml runs before File1.yml.
How should you update File1.yml?
A. parameters: usersteps: extends: template: template1.yml – task: MyTask@1 – script: echo Done
B. template: template1.yml parameters: usersteps: – task: MyTask@1 – script: echo Done
C. extends: template: templatel.yml parameters: usersteps: – task: MyTask@1 – script: echo Done
D. parameters: usersteps: – template: templatel.yml – task: MyTask@1 – script: echo Done
Selected Answer: C
Question #: 28
Topic #: 17
In Azure DevOps, you create Project3.
You need to meet the requirements of the project.
What should you do first?
A. From Azure DevOps, modify the build definition.
B. From SonarQube, obtain an authentication token.
C. From Azure DevOps, create a service endpoint.
D. From SonarQube, create a project.
Selected Answer: D
Question #: 29
Topic #: 4
You have several Azure Active Directory (Azure AD) accounts.
You need to ensure that users use multi-factor authentication (MFA) to access Azure apps from untrusted networks.
What should you configure in Azure AD?
A. access reviews
B. managed identities
C. entitlement management
D. conditional access
Selected Answer: D
Question #: 30
Topic #: 18
Which branching strategy should you recommend for the investment planning applications suite?
A. release isolation
B. main only
C. development isolation
D. feature isolation
Selected Answer: D
Question #: 31
Topic #: 5
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.
The lead developer at your company reports that adding new application features takes longer than expected due to a large accumulated technical debt.
You need to recommend changes to reduce the accumulated technical debt.
Solution: You recommend reducing the code coupling and the dependency cycles?
Does this meet the goal?
A. Yes
B. No
Selected Answer: B
Question #: 32
Topic #: 15
You need to the merge the POC branch into the default branch. The solution must meet the technical requirements.
Which command should you run?
A. git rebase
B. git merge –squash
C. git push
D. git merge –allow-unrelated-histories
Selected Answer: A
Question #: 33
Topic #: 14
You need to configure Azure Pipelines to control App2 builds.
Which authentication method should you use?
A. Windows NTLM
B. certificate
C. SAML
D. personal access token (PAT)
Selected Answer: D
Question #: 34
Topic #: 19
You plan to deploy a new database environment. The solution must meet the technical requirements.
You need to prepare the database for the deployment.
How should you format the export?
A. NDF
B. BACPAC
C. DACPAC
D. MDF
Selected Answer: B
Question #: 35
Topic #: 6
Your company creates a new Azure DevOps team.
You plan to use Azure DevOps for sprint planning.
You need to visualize the flow of your work by using an agile methodology.
Which Azure DevOps component should you use?
A. Kanban boards
B. sprint planning
C. delivery plans
D. portfolio backlogs
Selected Answer: A
Question #: 39
Topic #: 7
You have an Azure solution that contains a build pipeline in Azure Pipelines.
You experience intermittent delays before the build pipeline starts.
You need to reduce the time it takes to start the build pipeline.
What should you do?
A. Enable self-hosted build agents.
B. Create a new agent pool.
C. Split the build pipeline into multiple stages.
D. Purchase an additional parallel job.
Selected Answer: A
Question #: 40
Topic #: 6
Your company implements an Agile development methodology.
You plan to implement retrospectives at the end of each sprint.
Which three questions should you include? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Who performed well?
B. Who should have performed better?
C. What could have gone better?
D. What went well?
E. What should we try next?
Selected Answer: CDE
Question #: 41
Topic #: 4
You plan to provision a self-hosted Linux agent.
Which authentication mechanism should you use to register the self-hosted agent?
A. personal access token (PAT)
B. SSH key
C. Alternate credentials
D. certificate
Selected Answer: A
Question #: 42
Topic #: 5
Your company uses Azure DevOps for the build pipelines and deployment pipelines of Java-based projects.
You need to recommend a strategy for managing technical debt.
Which two actions should you include in the recommendation? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Configure post-deployment approvals in the deployment pipeline.
B. Configure pre-deployment approvals in the deployment pipeline.
C. Integrate Azure DevOps and SonarQube.
D. Integrate Azure DevOps and Azure DevTest Labs.
Selected Answer: BC
Question #: 43
Topic #: 3
You configure Azure Application Insights and the shared service plan tier for a web app.
You enable Smart Detection.
You confirm that standard metrics are visible in the logs, but when you test a failure, you do not receive a Smart Detection notification.
What prevents the Smart Detection notification from being sent?
A. You must enable the Snapshot Debugger for the web app.
B. Smart Detection uses the first 24 hours to establish the normal behavior of the web app.
C. The web app is configured to use the shared service plan tier.
D. You must restart the web app before Smart Detection is enabled.
Selected Answer: B
Question #: 44
Topic #: 1
You are making use of Azure DevOps manage build pipelines, and also deploy pipelines.
The development team is quite large, and is regularly added to.
You have been informed that the management of users and licenses must be automated when it can be.
Which of the following is a task that can’t be automated?
A. Group membership changes
B. License assignment
C. Assigning entitlements
D. License procurement
Selected Answer: D
Question #: 45
Topic #: 18
What should you use to implement the code quality restriction on the release pipeline for the investment planning applications suite?
A. a pre-deployment approval
B. a deployment gate
C. a post-deployment approval
D. a trigger
Selected Answer: B
Question #: 46
Topic #: 2
You manage an Azure web app that supports an e-commerce website.
You need to increase the logging level when the web app exceeds normal usage patterns. The solution must minimize administrative overhead.
Which two resources should you include in the solution? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. an Azure Automation runbook
B. an Azure Monitor alert that has a dynamic threshold
C. an Azure Monitor alert that has a static threshold
D. the Azure Monitor autoscale settings
E. an Azure Monitor alert that uses an action group that has an email action
Selected Answer: AB
Question #: 47
Topic #: 19
You need to meet the technical requirements for monitoring App1.
What should you use?
A. Splunk
B. Azure Application Insights
C. Azure Advisor
D. App Service logs
Selected Answer: B
Question #: 48
Topic #: 17
You need to implement Project4.
What should you do first?
A. Add the FROM instruction in the Dockerfile file.
B. Add a Copy and Publish Build Artifacts task to the build pipeline.
C. Add a Docker task to the build pipeline.
D. Add the MAINTAINER instruction in the Dockerfile file.
Selected Answer: C
Question #: 49
Topic #: 9
You have an Azure subscription that contains the resources shown in the following table.
DepPipeline1 and ADFPipeline1 use a single credential that is stored in Vault1.
You need to configure ADFPipeline1 to retrieve the credential from Vault1.
Which type of activity should you use?
A. Lookup
B. Get Metadata
C. Сoрy
D. Web
Selected Answer: D
Question #: 55
Topic #: 9
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 need to use an Azure Pipelines pipeline to test an app. The solution meet the following requirements:
• The pipeline must fail if any tests fail.
• The test results must be published to the pipeline.
• The test for every pipeline run must be triggered unless the pipeline is cancelled.
Solution: You include the following elements in the YAML definition of the pipeline.
Does this meet the goal?
A. Yes
B. No
Selected Answer: B
Question #: 56
Topic #: 4
You are building a Microsoft ASP.NET application that requires authentication.
You need to authenticate users by using Azure Active Directory (Azure AD).
What should you do first?
A. Assign an enterprise application to users and groups
B. Create an app registration in Azure AD
C. Configure the application to use a SAML endpoint
D. Create a new OAuth token from the application
E. Create a membership database in an Azure SQL database
Selected Answer: B
Question #: 57
Topic #: 1
You have been tasked with strengthening the security of your team’s development process.
You need to suggest a security tool type for the Continuous Integration (CI) phase of the development process.
Which of the following is the option you would suggest?
A. Penetration testing
B. Static code analysis
C. Threat modeling
D. Dynamic code analysis
Selected Answer: B
Question #: 58
Topic #: 7
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 need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:
✑ The build must access an on-premises dependency management system.
✑ The build outputs must be stored as Server artifacts in Azure DevOps.
✑ The source code must be stored in a Git repository in Azure DevOps.
Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running a Linux image. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?
A. Yes
B. No
Selected Answer: B
Question #: 59
Topic #: 6
Your team uses an agile development approach.
You need to recommend a branching strategy for the team’s Git repository. The strategy must meet the following requirements.
✑ Provide the ability to work on multiple independent tasks in parallel.
✑ Ensure that checked-in code remains in a releasable state always.
✑ Ensure that new features can be abandoned at any time.
✑ Encourage experimentation.
What should you recommend?
A. a single long-running branch without forking
B. multiple long-running branches
C. a single fork per team member
D. a single long-running branch with multiple short-lived feature branches
Selected Answer: D
Question #: 60
Topic #: 5
Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions.
You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?
A. Gradle
B. CocoaPods
C. Grunt
D. Gulp
Selected Answer: A
Question #: 64
Topic #: 4
You have an Azure DevOps organization named Contoso.
You need to recommend an authentication mechanism that meets the following requirements:
✑ Supports authentication from Git
✑ Minimizes the need to provide credentials during authentication
What should you recommend?
A. personal access tokens (PATs) in Azure DevOps
B. Alternate credentials in Azure DevOps
C. user accounts in Azure Active Directory (Azure AD)
D. managed identities in Azure Active Directory (Azure AD)
Selected Answer: C
Question #: 65
Topic #: 1
Your company is currently making use of Team Foundation Server 2013 (TFS 2013), but intend to migrate to Azure DevOps.
You have been tasked with supplying a migration approach that allows for the preservation of Team Foundation Version Control changesets dates, as well as the changes dates of work items revisions. The approach should also allow for the migration of all TFS artifacts, while keeping migration effort to a minimum.
You have suggested upgrading TFS to the most recent RTW release.
Which of the following should also be suggested?
A. Installing the TFS kava SDK
B. Using the TFS Database Import Service to perform the upgrade.
C. Upgrading PowerShell Core to the latest version.
D. Using the TFS Integration Platform to perform the upgrade.
Selected Answer: B
Question #: 66
Topic #: 3
You configure an Azure Application Insights availability test.
You need to notify the customer services department at your company by email when availability is degraded.
You create an Azure logic app that will handle the email and follow up actions.
Which type of trigger should you use to invoke the logic app?
A. an HTTPWebhook trigger
B. an HTTP trigger
C. a Request trigger
D. an ApiConnection trigger
Selected Answer: C
Question #: 67
Topic #: 7
You store source code in a Git repository in Azure Repos. You use a third-party continuous integration (CI) tool to control builds.
What will Azure DevOps use to authenticate with the tool?
A. certificate authentication
B. a personal access token (PAT)
C. a Shared Access Signature (SAS) token
D. NTLM authentication
Selected Answer: B
Question #: 68
Topic #: 2
You have a Microsoft ASP.NET Core web app in Azure that is accessed worldwide.
You need to run a URL ping test once every five minutes and create an alert when the web app is unavailable from specific Azure regions. The solution must minimize development time.
What should you do?
A. Create an Azure Monitor Availability metric and alert.
B. Create an Azure Application Insights availability test and alert.
C. Write an Azure function and deploy the function to the specific regions.
D. Create an Azure Service Health alert for the specific regions.
Selected Answer: B
Question #: 69
Topic #: 9
You have an Azure web app that is deployed by using Azure Pipelines.
You need to ensure that when a new version of the app is deployed to production, you can roll back to the previous version. The solution must meet the following requirements:
• Minimize downtime during the deployment.
• Minimize the time it takes for the rollback.
What should you use?
A. a single web app and two deployment slots
B. a single web app and two deployment pipelines
C. two web apps and an Azure Standard Load Balancer
D. two web apps and an Azure Traffic Manager instance
Selected Answer: A
Question #: 70
Topic #: 8
Your company builds a multi-tier web application.
You use Azure DevOps and host the production application on Azure virtual machines.
Your team prepares an Azure Resource Manager template of the virtual machine that you will use to test new features.
You need to create a staging environment in Azure that meets the following requirements:
✑ Minimizes the cost of Azure hosting
✑ Provisions the virtual machines automatically
✑ Uses the custom Azure Resource Manager template to provision the virtual machines
What should you do?
A. In Azure Cloud Shell, run Azure CLI commands to create and delete the new virtual machines in a staging resource group.
B. In Azure DevOps, configure new tasks in the release pipeline to deploy to Azure Cloud Services.
C. From Azure Cloud Shell, run Azure PowerShell commands to create and delete the new virtual machines in a staging resource group.
D. In Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs.
Selected Answer: D
Question #: 71
Topic #: 6
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 integrate a cloud-hosted Jenkins server and a new Azure DevOps deployment.
You need Azure DevOps to send a notification to Jenkins when a developer commits changes to a branch in Azure Repos.
Solution: You create a service hook subscription that uses the build completed event.
Does this meet the goal?
A. Yes
B. No
Selected Answer: B
Question #: 75
Topic #: 9
You have an app named App1 that you release by using Azure Pipelines. App1 has the versions shown in the following table.
You complete a code change to fix a bug that was introduced in version 3.4.3.
Which version number should you assign to the release?
A. 3.4.4
B. 3.4.8
C. 3.5.0
D. 4.0.1
Selected Answer: D
Question #: 76
Topic #: 4
You have an application that consists of several Azure App Service web apps and Azure functions.
You need to assess the security of the web apps and the functions.
Which Azure feature can you use to provide a recommendation for the security of the application?
A. Security & Compliance in Azure Log Analytics
B. Resource health in Azure Service Health
C. Smart Detection in Azure Application Insights
D. Compute & apps in Azure Security Center
Selected Answer: D
Question #: 77
Topic #: 2
You have a multi-tier application. The front end of the application is hosted in Azure App Service.
You need to identify the average load times of the application pages.
What should you use?
A. Azure Application Insights
B. the activity log of the App Service
C. the diagnostics logs of the App Service
D. Azure Advisor
Selected Answer: A
Question #: 78
Topic #: 3
You have an Azure DevOps organization named Contoso and an Azure subscription.
You use Azure DevOps to build a containerized app named App1 and deploy App1 to an Azure container instance named ACI1.
You need to restart ACI1 when App1 stops responding.
What should you do?
A. Add a liveness probe to the YAML configuration of App1.
B. Add a readiness probe to the YAML configuration of App1.
C. Use Connection Monitor in Azure Network Watcher.
D. Use IP flow verify in Azure Network Watcher.
Selected Answer: A
Question #: 79
Topic #: 6
You have a project in Azure DevOps that has a release pipeline.
You need to integrate work item tracking and an Agile project management system to meet the following requirements:
✑ Ensure that developers can track whether their commits are deployed to production.
✑ Report the deployment status.
✑ Minimize integration effort.
Which system should you use?
A. Asana
B. Basecamp
C. Trello
D. Jira
Selected Answer: D
Question #: 80
Topic #: 5
Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions.
You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?
A. Grunt
B. Octopus
C. Maven
D. Gulp
Selected Answer: C