Microsoft Azure Developer Associate AZ-204 Practice Question

You run a build pipeline on an Azure VM that acts as a self-hosted Azure DevOps agent. The pipeline builds Docker images and must push them to a Standard tier Azure Container Registry (ACR) named contosoacr. You must use the least-privileged Azure-native authentication method available. What should you configure?

  • Grant the VM's system-assigned managed identity the AcrPush role on contosoacr.

  • Enable the admin user on contosoacr and use its username and password in the pipeline.

  • Enable anonymous pull access on contosoacr and use docker push without authentication.

  • Create an Azure AD application and assign it the Owner role at the subscription scope; authenticate with its client secret.

Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot