AZ-400 Exam Questions

Total 488 Questions

Last Updated Exam : 27-Dec-2024

Topic 2: Contoso Case Study: 2

   

Overview
Existing Environment
Contoso, Ltd. is a manufacturing company that has a main office in Chicago.
Requirements
Contoso plans to improve its IT development and operations processes implementing Azue
DevOps principles. Contoso has an Azure subscription and creates an Azure DevOPs
organization.
The Azure DevOps organization includes:
The Docker extension
A deployment pool named Pool7 that contains 10 Azure virtual machines that run
Windows Server 2016.
The Azure subscription contains an Azure Automation account.
Planned Changes
Contoso plans to create projects in Azure DevOps as shown in the following table.

Technical Requirements
Contoso identities the following technical requirements:
• Implement build agents rot Project 1.
• Whenever possible, use Azure resources
•Avoid using deprecated technologies
• Implement a code flow strategy for Project2 that will:
•Enable Team 2 to submit pull requests for Project2.
• Enable Team 2 to work independently on changes to a copy of Project?
• Ensure that any intermediary changes performed by Tram2 on a copy of Project2 will be
subject to the same restrictions as the ones defied in the build policy of Project2.
• Whenever possible. Implement automation and minimize administrative effort.
• Implement Protect3, Project5, Project6, and Project7 based on the planned changes.
• Implement Project4 and configure the project to push Docker images to Azure Container
Reentry.

You need to implement Project6.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them m the correct order.








Step 1: Open the release pipeline editor.
In the Releases tab of Azure Pipelines, select your release pipeline and choose Edit to open the pipeline editor.
Step 2: Enable Gates.
Choose the pre-deployment conditions icon for the Production stage to open the conditions panel. Enable gates by using the switch control in the Gates section.
Step 3: Add Query Work items.
Choose + Add and select the Query Work Items gate. Configure the gate by selecting an existing work item query.



Note: A case for release gate is: Incident and issues management. Ensure the required status for work items, incidents, and issues. For example, ensure deployment occurs only if no priority zero bugs exist, and validation that there are no active incidents takes place after deployment.

You need to make a custom package available to all the developers. The package must be managed centrally, and the latest version must be available for consumption in Visual Studio automatically. Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.


A. Add the package URL to the Environment settings in Visual Studio.


B. Create a Get repository in Azure Repos.


C. Add the package URL to the Get Package Manager settings in Visual Studio.


D. Upload a package to a Get repository.


E. Create a new feed in Azure Artifacts.


F. Publish the package to a feed.





A.
  Add the package URL to the Environment settings in Visual Studio.

B.
  Create a Get repository in Azure Repos.

E.
  Create a new feed in Azure Artifacts.

You are configuring the Azure DevOps dashboard. The solution must meet the technical requirements.
Which widget should you use for each metric? To answer, drag the appropriate widgets to the correct metrics. Each widget may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.








Woodgrove Bank identifies the following technical requirements:
The Azure DevOps dashboard must display the metrics shown in the following table:
Box 1: Velocity
Velocity displays your team velocity. It shows what your team delivered as compared to plan.
Box 2: Release pipeline overview
Release pipeline overview shows the status of environments in a release definition.
Box 3: Query tile
Query tile displays the total number of results from a query.

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 complexity. Does this meet the goal?


A. Yes


B. No





A.
  Yes

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





A.
  git clone

Explanation: Woodgrove Bank plans to implement the following changes to the DevOps environment: Migrate all the source code from TFS1 to GitHub.
The Git-TFS tool is a two-way bridge between Team Foundation Version Control and Git, and can be used to perform a migration.

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





B.
  Azure Application Insights

You need to the merge the POC branch into the main branch. The solution must meet the technical requirements. Which command should you run?


A. git push


B. git merge --squash


C. git merge --allow-unrelated-histories


D. git rebase





A.
  git push

You have a project in Azure DevOps.
You create the following YAML template named Template1.yml. steps:
- script: 9pm install
- script: yarn install
- script: 9pm run compile
You create the following pipeline named File1.yml.
parameters:
users steps:

- 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: user steps: extends: template: template1.yml
- task: MyTask@1 - script: echo Done


B. template: template1.yml parameters: user steps:
- task: MyTask@1 - script: echo Done


C. extends: template: templatel.yml parameters: user steps:
- task: MyTask@1 - script: echo Done


D. parameters: user steps: - template: templatel.yml
- task: MyTask@1 - script: echo Done





C.
  extends: template: templatel.yml parameters: user steps:
- task: MyTask@1 - script: echo Done

Azure Pipelines offers two kinds of templates: includes and extends. Included templates behave like #include in C++: it's as if you paste the template's code right into the outer file, which references it. To continue the C++ metaphor, extends templates are more like inheritance: the template provides the outer structure of the pipeline and a set of places where the template consumer can make targeted alterations.

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)





D.
  personal access token (PAT)

Explanation: Scenario: Deploy App2 to an Azure virtual machine named VM1. A personal access token (PAT) is used as an alternate password to authenticate into Azure DevOps.

You have an Azure key vault named KV1 and three web servers. You plan to deploy an app named App1 to the web server. You need to ensure that App1 can retrieve a secret from KV1. The solution must meet the following requirements:

  • Minimize the number of permission grants required
  • Follow the principle of least privilege.
What should you include in the solution?


A. role-based access control (RBAQ permissions


B. a system-assigned managed identity


C. a user-assigned managed identity


D. a service principal





B.
  a system-assigned managed identity


Page 9 out of 49 Pages
Previous