Topic 4: Mix Questions Set
You have an Azure DevOps project that contains a release pipeline and a Git repository. When a new code revision is committed to the repository, a build and release is triggered. You need to ensure that release information for the pipeline is added automatically to the work items associated to the Get commit. What should you do?
A. Modify the Integrations options for the pipeline.
B. Modify the post-deployment conditions for the last stage of the pipeline.
C. Add an agentless job to the pipeline.
D. Modify the service hooks for the project.
Explanation: Service hooks in Azure DevOps allow you to trigger actions in other tools
based on events that occur in your Azure DevOps project. To automatically add release
information to work items associated with a Get commit, you would need to configure a
service hook that listens for commit events in your Get repository, and then sends the
release information to the appropriate work items.
Here's the steps you can follow to set up a service hook for this purpose:
In your Azure DevOps project, navigate to the project settings by clicking on the
gear icon in the top right corner of the page.
Select "Service Hooks" from the left-hand menu.
Click on the "New Subscription" button to create a new service hook.
In the "Event" drop-down menu, select "Code pushed" to trigger the service hook
when a new code revision is committed to the repository.
In the "Actions" section, select the action that you want to take place when the
service hook is triggered. For example, you might use the "Link work items to
commits" action to automatically associate work items with the relevant commits.
Configure the remaining settings as needed, and then click on the "Create" button
to create the service hook.
You plan to use Terraform to deploy an Azure resource group. You need to install the required frameworks to support the planned deployment. Which two frameworks should you install? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A. Vault
B. Terratest
C. Node.js
D. Yeoman
E. Tiller
You can use the combination of Terraform and Yeoman. Terraform is a tool for creating
infrastructure on Azure. Yeoman makes it easy to create Terraform modules.
Terratest provides a collection of helper functions and patterns for common infrastructure
testing tasks, like making HTTP requests and using SSH to access a specific virtual
machine. The following list describes some of the major advantages of using Terratest:
You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and a user named User1. Pipeline1 is used to build and test an app named Appl. User1 is assigned the Contributors role for Pipeline1. You plan to test App1 by using an Azure Deployment Environments environment. You need to ensure that User1 can provision the environment. The solution must follow the principle of least privilege. Which role should you assign to User1?
A. DevCenter Project Admin
B. Deployment Environments User
C. Build Administrators
D. Contributors
Your company creates a web application. You need to recommend a solution that automatically sends to Microsoft Teams a daily summary of the exceptions that occur in the application. Which two Azure services should you recommend? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A. Azure Logic Apps
B. Azure Pipelines
C. Microsoft Visual Studio App Center
D. Azure DevOps Project
E. Azure Application Insights
E: Exceptions in your live web app are reported by Application Insights.
Note: Periodical reports help keep a team informed on how their business critical services
are doing. Developers, DevOps/SRE teams, and their managers can be productive with
automated reports reliably
delivering insights without requiring everyone to sign in the portal. Such reports can also
help identify gradual increases in latencies, load or failure rates that may not trigger any
alert rules.
A: You can programmatically query Application Insights data to generate custom reports on
a schedule. The following options can help you get started quickly:
Task 4
Initialize the default main branch, if it does not exist already.
In the Userl-42147509 Azure DevOps project, you need to implement an approval process for the default main branch.
The process must use the four-eyes principle and have at least one approval on every iteration.
Answer: See the solution below in explanation.
Explanation:
Step 1: Initialize the Default Main Branch
Navigate to Azure DevOps: Select Your Project: Initialize the Main Branch:
Step 2: Implement an Approval Process for the Main Branch
Navigate to Branch Policies:
Enable Required Reviewers:
Add Required Reviewers:
Enable Reset Code Reviewer Votes:
Save Changes:
Step 3: Verify the Approval Process
Create a Pull Request:
Review and Approve:
By following these steps, you will have successfully initialized the main branch and implemented an approval process that adheres to the four-eyes principle, ensuring that every iteration has at least one approval
Task 6
Initialize the default main branch, if it does not exist already.
For Project 1, you need to implement branch merging restrictions to enable squash merge for all changes merged into the main branch.
Answer: See the solution below in explanation.
Explanation:
Step 1: Initialize the Default Main Branch
Navigate to Azure DevOps:
Select Your Project:
Initialize the Main Branch:
Step 2: Enable Squash Merge for the Main Branch
Navigate to Branch Policies: Enable Squash Merge: Save Changes:
Step 3: Verify the Squash Merge Policy
Create a Pull Request: Complete the Pull Request
Task 2
For the RG1 lod42147S09 resource group, you need to create an action group named DevOpsAG that can be triggered in any region by using Alerts.
The action group must email two users named admin1 @contoso.com and admin2@contoso.com and notify members of the Owner role for the resource.
Use only the common alert schema for notifying the resource owners.
Answer: See the solution below in explanation.
Explanation:
Step 1: Create an Action Group
Navigate to Azure Portal:
Access Azure Monitor:
Create Action Group:
Configure Basic Settings:
Step 2: Define Actions
Add Email Notifications:
Notify Resource Owners:
Step 3: Enable Common Alert Schema
Common Alert Schema:
Step 4: Review and Create
Review:
Create:
By following these steps, you will have successfully created an action group named DevOpsAG that emails the specified users and notifies resource owners using the common alert schema
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 has a project in Azure DevOps for a new web application. You need to ensure that when code is checked in, a build runs automatically. Solution: From the Pre-deployment conditions settings of the release pipeline, you select After stage. Does this meet the goal?
A. Yes
B. No
Instead, In Visual Designer you enable continuous integration (CI) by:
Task 3
You need to ensure that an Azure Web App named az400-38443478-matn supports rolling upgrades The solution must ensure that only 10 percent of users who connect to az400- 38443478 main use updated versions of the app. The solution must minimize administrative effort.
Answer: See the solution below in explanation.
Explanation:
To ensure that your Azure Web App named az400-38443478-main supports rolling upgrades and only 10 percent of users connect to the updated version of the app, you can use deployment slots with the following steps:
Create a Deployment Slot: uk.co.certification.simulator.questionpool.PList@45d2312b Configure the Traffic Percentage:
Deploy the Updated App to the Staging Slot:
Complete the Rolling Upgrade:
By using deployment slots, you can achieve rolling upgrades with minimal administrative effort, as it allows you to test the new version on a subset of users before fully releasing it. Remember to adjust the traffic percentage and monitor the application’s performance throughout the process.
You have a public GitHub repository named Public1. A commit is made to Public1. The commit contains a pattern that matches a regular expression. Who is notified first when the commit is made?
A. the owner of Public1
B. the secret scanning partner
C. the committer
D. the administrator of the GitHub organization
Page 11 out of 49 Pages |
Previous |