You have built a Docker image locally and pushed it to your Azure Container Registry. What is the expected behavior after the push completes successfully?
Think about what a container registry's role is in storing images.
Azure Container Registry stores container images securely. After pushing, the image is available for authorized clients to pull and deploy. It does not automatically deploy or delete local images.
You want to build a Docker image from your local Dockerfile and push it directly to your Azure Container Registry using Azure CLI. Which command achieves this?
Look for the command that builds and pushes in one step.
The az acr build command builds the image from the Dockerfile and pushes it to the specified registry. Other commands do not perform both actions together.
You want to push Docker images to Azure Container Registry from your CI/CD pipeline securely without exposing credentials. Which approach is best?
Consider least privilege and secure credential storage.
Using a service principal with least privilege and securely storing its credentials in the pipeline is best practice. Personal credentials or admin credentials in code are insecure. Anonymous push is not supported.
You have large container images that take a long time to build and push to Azure Container Registry. Which architectural choice improves build and push speed?
Think about build caching and automation features in ACR.
ACR Tasks support incremental builds and caching layers, which speeds up build and push times. Building locally on slow machines or pushing without tags does not help. Pushing to multiple registries simultaneously increases complexity and network load.
You want to implement a tagging strategy in Azure Container Registry that supports continuous deployment and easy rollback. Which approach is best?
Consider clarity, rollback, and deployment automation.
Using semantic version tags allows clear identification of releases and rollback points. The 'latest' tag points to the current stable image. Overwriting or deleting tags removes rollback options. Using only SHA hashes or timestamps reduces clarity.