00:00

QUESTION 46

- (Exam Topic 4)
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?

Correct Answer: C
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.
Example: extends:
template: template.yml@templates parameters:
usersteps:
- script: echo This is my first step
- script: echo This is my second step Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/security/templates

QUESTION 47

- (Exam Topic 4)
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?

Correct Answer: A
Application Insights will tell you about any performance issues and exceptions, and help you find and diagnose the root causes.
Application Insights can monitor both Java and ASP.NET web applications and services, WCF services. They can be hosted on-premises, on virtual machines, or as Microsoft Azure websites.
On the client side, Application Insights can take telemetry from web pages and a wide variety of devices including iOS, Android, and Windows Store apps.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/web-monitor-performance

QUESTION 48

- (Exam Topic 4)
You administer an Azure DevOps project that includes package feeds.
You need to ensure that developers can unlist and deprecate packages. The solution must use the principle of least privilege.
Which access level should you grant to the developers?

Correct Answer: B
Feeds have four levels of access: Owners, Contributors, Collaborators, and Readers. Owners can add any type of identity-individuals, teams, and groups-to any access level.
AZ-400 dumps exhibit
Reference:
https://docs.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions

QUESTION 49

- (Exam Topic 4)
Your company hosts a web application in Azure. The company uses Azure Pipelines for the build and release management of the application.
Stakeholders report that the past few releases have negatively affected system performance. You configure alerts in Azure Monitor.
You need to ensure that new releases are only deployed to production if the releases meet defined performance baseline criteria in the staging environment first
What should you use to prevent the deployment of releases that fail to meet the performance baseline?

Correct Answer: C
https://docs.microsoft.com/en-us/azure/azure-monitor/continuous-monitoring https://docs.microsoft.com/en-us/azure/devops/pipelines/release/approvals/gates?view=azure-devops

QUESTION 50

- (Exam Topic 4)
Your company plans to deploy an application to the following endpoints:
AZ-400 dumps exhibit Ten virtual machines hosted in Azure
AZ-400 dumps exhibit Ten virtual machines hosted in an on-premises data center environment All the virtual machines have the Azure Pipelines agent.
You need to implement a release strategy for deploying the application to the endpoints.
What should you recommend using to deploy the application to the endpoints? To answer, drag the appropriate components to the correct endpoints. Each component 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.
AZ-400 dumps exhibit
Solution:
Box 1: A deployment group
When authoring an Azure Pipelines or TFS Release pipeline, you can specify the deployment targets for a job using a deployment group.
If the target machines are Azure VMs, you can quickly and easily prepare them by installing the Azure Pipelines Agent Azure VM extension on each of the VMs, or by using the Azure Resource Group Deployment task in your release pipeline to create a deployment group dynamically.
Box 2: A deployment group
References: https://docs.microsoft.com/en-us/azure/devops/pipelines/release/deployment-groups

Does this meet the goal?

Correct Answer: A