The container registry must automatically build and store a new container image whenever a developer commits code to the Git repository.
You must minimize the use of an external build infrastructure.
You need to configure Azure Container Registry (ACR) to manage the build process natively and automatically.
Which two ACR components should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
Show answerHide answer
Correct answer: B, D Quick task Source-triggered task
Explanation
ExplanationTo automate container builds natively in Azure Container Registry (ACR) upon a Git commit while minimizing external build infrastructure, you use ACR Tasks.
D. Source-triggered task: This is the core component. You configure a multi-step or Docker build task with a source trigger (--source-trigger-enabled). ACR monitors your connected GitHub or Azure DevOps repository. When a developer commits code, the trigger fires, and ACR executes the build in the cloud, storing the resulting image in the registry. This eliminates the need for external CI/CD agents (like GitHub Actions runners or Jenkins) for the build process.
B. Quick task: To set up this automated pipeline initially, you use the az acr build command, often referred to as a Quick Task. This command allows you to build an image immediately from a local context or a remote Git repository without setting up a full pipeline. In the context of the exam, executing a Quick Task is the mechanism used to establish and initiate the build process from source code.
Why the Other Options Are Incorrect
A. Webhook: ACR webhooks are used to notify external systems (like a listening server or Azure Logic App) when an image is pushed or deleted. They do not trigger builds; they react to completed builds.
C. Artifact Cache rule: This is a feature used in ACR to cache artifacts (like Helm charts or OCI artifacts) from public registries (e.g., Docker Hub) to improve pull performance and reduce egress costs. It does not build container images from source code.
References
Microsoft Learn: Automate container builds with ACR Tasks (Explains source-triggered tasks).










