Topic 5, Labs & Tasks
Task 8
You need to ensure that the https://contoso.com/statushook webhook is called every time a repository named az40038443478acr 1 receives a new version of an image named dotnetapp
Answer: See the solution below in explanation.
Explanation:
To ensure that the webhook at https://contoso.com/statushook is called every time the repository named az40038443478acr1 receives a new version of an image named dotnetapp, you can follow these steps to configure a webhook in Azure Container Registry:
Navigate to the Azure Container Registry:
uk.co.certification.simulator.questionpool.PList@269c651f Create a New Webhook:
Save the Webhook Configuration:
Once configured, the webhook will send a POST request to https://contoso.com/statushook whenever a new version of the dotnetapp image is pushed to the az40038443478acr1 repository in your Azure Container Registry1.
This setup will automate the notification process, ensuring that the specified webhook is called with each new image version, thus fulfilling the task requirements.
You have an Azure DevOps organization named Contoso.
You need to receive Microsoft Teams notifications when work items are updated.
What should you do?
A. From Azure DevOps, configure a service hook subscription
B. From Microsoft Teams, configure a connector
C. From the Microsoft Teams admin center, configure external access
D. From Microsoft Teams, add a channel
E. From Azure DevOps, install an extension
Service hooks let you run tasks on other services when events happen in your Azure
DevOps projects. For example, create a card in Trello when a work item is created or send
a push notification to your team's mobile devices when a build fails. You can also use
service hooks in custom apps and services as a more efficient way to drive activities when
events happen in your projects.
Note: Service hook publishers define a set of events. Subscriptions listen for the events
and define actions to take based on the event. Subscriptions also target consumers, which
are external services that can run their own actions, when an event occurs.
Task 12
You need to create a personal access token (PAT) named Token! that has only the following capabilities
•Read write, and manage code
•Read and execute builds
•Read releases
Token1 must expire in 60 days.
Answer: See the solution below in explanation.
Explanation:
Step 1: Navigate to Personal Access Tokens
Sign in to Azure DevOps:
Access User Settings:
Open Personal Access Tokens:
Step 2: Create a New Personal Access Token
Create a New Token:
Configure the Token:
Set Scopes:
Create the Token:
Step 3: Save the Token
Copy the Token:
By following these steps, you will have successfully created a personal access token named Token1 with the specified capabilities and a 60-day expiration
Task 7
You need to prepare a network security group (NSG) named az400 38443478 nsgl to host an Azure DevOps pipeline agent. The solution must allow only the required outbound port for Azure DevOps and deny all other inbound and outbound access to the Internet
Answer: See the solution below in explanation.
Explanation:
To prepare a Network Security Group (NSG) named az400-38443478-nsg1 for hosting an Azure DevOps pipeline agent, while allowing only the required outbound port for Azure DevOps and denying all other inbound and outbound access to the Internet, follow these steps:
Create the NSG:
uk.co.certification.simulator.questionpool.PList@466fd80f Configure Outbound Security Rules:
Configure Default Rules to Deny All Other Traffic:
Associate the NSG with the Appropriate Resource:
By following these steps, you will ensure that the Azure DevOps pipeline agent can communicate with Azure DevOps services over the required port while blocking all other inbound and outbound Internet access, adhering to the principle of least privilege and security best practices.
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 prefect 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 Triggers tab of the build pipeline, you select Enable continuous integration Does the meet the goal?
A. Yes
B. No
Page 28 out of 98 Pages |
Previous |