Q1 Container Registry Domain 1 · 20–25% of exam

Every push to the main branch of a GitHub repository must rebuild a container image in Azure. The team has no build servers or self-hosted runners. What should you create?

  1. A An ACR task with a source code commit trigger (correct answer)
  2. B A GitHub Actions workflow on a self-hosted runner
  3. C A scheduled az acr import job
  4. D Geo-replication to the region closest to the developers

Shortcut: Rebuild on every git push with no build servers = ACR task with a commit trigger. A self-hosted runner is exactly the infrastructure the team doesn't have, az acr import copies existing images rather than building them, and geo-replication only copies images between regions.

An ACR task with a commit trigger watches the repository and runs the build inside Azure Container Registry on every push, so no build infrastructure is needed. A self-hosted runner is exactly the infrastructure the team doesn't have, az acr import copies existing images rather than building them, and geo-replication only copies images between regions.