AZ-104 Question 161
Select 2You are an Azure Administrator. You need to run a private container image from Azure Container Registry in Azure Container Instances. The container must be able to pull the image from the registry without error. Which two tasks should you perform during container creation?
- A
Specify the container registry credentials in the container creation settings
- B
Enable public network access on Azure Container Instances
- C
Enable a system-assigned managed identity for the container group
- D
Use the fully qualified image name including the login server
Show answer and explanation
Correct answers: A, D
Explanation
When creating an Azure Container Instance from a private Azure Container Registry, you must specify valid registry credentials and reference the container image by its fully qualified path. This ensures the container can be successfully pulled and deployed.
- A. Correct.
Providing the registry credentials (username and password or a Service Principal token) is required to authenticate and pull images from a private registry.
- B. Incorrect.
Public network access on Azure Container Instances is not necessary just to pull a private image; you only need credentials and the correct image reference for authentication.
- C. Incorrect.
A system-assigned managed identity is not a requirement for pulling the image from a private registry; registry credentials are sufficient in this scenario.
- D. Correct.
Using the fully qualified image name, which includes the registry’s login server and repository details, is essential to pull the container image correctly.