- (Exam Topic 4)
You have a build pipeline in Azure Pipelines that occasionally fails.
You discover that a test measuring the response time of an API endpoint causes the failures. You need to prevent the build pipeline from failing due to The test.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point
Correct Answer:
CE
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/test/flaky-test-management
- (Exam Topic 4)
You have a GitHub Enterprise account.
You need to enable push protection for secret scanning of the account repositories. What should you do first?
Correct Answer:
C
- (Exam Topic 4)
Your company has an Azure DevOps project,
The source code for the project is stored in an on-premises repository and uses on an on-premises build
server.
You plan to use Azure DevOps to control the build process on the build server by using a self-hosted agent. You need to implement the self-hosted agent.
You download and install the agent on the build server.
Which two actions should you perform next? Each correct answer presents part of the solution.
Correct Answer:
DE
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops (Get PAT, run config)
- (Exam Topic 4)
You plan to use Azure Kubernetes Service (AKS) to host containers deployed from images hosted in a Docker Trusted Registry.
You need to recommend a solution for provisioning and connecting to AKS. The solution must ensure that AKS is RBAC-enaWed and uses a custom service principal.
Which three commands should you recommend be run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the coned order.
Solution:
Step 1 : az acr create
An Azure Container Registry (ACR) can also be created using the new Azure CLI. az acr create
--name
--resource-group
--sku Basic
Step 2: az ad sp create-for-rbac
Once the ACR has been provisioned, you can either enable administrative access (which is okay for testing) or you create a Service Principal (sp) which will provide a client_id and a client_secret.
az ad sp create-for-rbac
--scopes
/subscriptions/
--role Contributor
--name
Step 3: kubectl create
Create a new Kubernetes Secret.
kubectl create secret docker-registry
--docker-server
--docker-email
--docker-username=
--docker-password
https://thorsten-hans.com/how-to-use-private-azure-container-registry-with-kubernetes
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
You have a build pipeline in Azure Pipelines that uses different jobs to compile an application for 10 different architectures.
The build pipeline takes approximately one day to complete.
You need to reduce the time it takes to execute the build pipeline
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point
Correct Answer:
BE
Question: I need more hosted build resources. What can I do?
Answer: The Azure Pipelines pool provides all Azure DevOps organizations with cloud-hosted build agents and free build minutes each month. If you need more Microsoft-hosted build resources, or need to run more jobs in parallel, then you can either:
Host your own agents on infrastructure that you manage. Buy additional parallel jobs.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/pools-queues