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
Page 21 out of 98 Pages |
Previous |