Microsoft Azure Developer Associate AZ-204 Practice Question
Your company stores container images in a private Azure Container Registry (ACR) named contosoreg. You need to run the image contosoreg.azurecr.io/reports:prod in Azure Container Instances (ACI) as a scheduled task. The security team forbids saving the registry username or password in deployment templates or scripts. Which approach allows ACI to pull the image while meeting the security requirement?
Configure contosoreg to allow anonymous pull access.
Assign a user-assigned managed identity to the container group and grant it the AcrPull role on contosoreg.
Move the image to a public Docker Hub repository and reference that URL in the deployment.
Enable the admin user on contosoreg and supply the registry credentials during container creation.
ACI can authenticate to a private Azure Container Registry with a managed identity. By assigning a user-assigned managed identity to the container group and granting that identity the built-in AcrPull role on the registry, ACI can obtain an access token at runtime without any credentials being stored in templates or scripts. Enabling the admin user or anonymous access exposes credentials or the registry, and moving the image to a public repository violates the requirement to keep the image in the private ACR.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a user-assigned managed identity?
Open an interactive chat with Bash
What is the AcrPull role in Azure?
Open an interactive chat with Bash
How does Azure Container Instances authenticate to Azure Container Registry using a managed identity?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .