az-104 Practice Question 897
Exam: az-104
Domain: Manage virtual machines and containers
Topic: Create and manage containers
Difficulty: medium
You create the following resources in an Azure subscription:
✑ An Azure Container Registry instance named Registry1
✑ An Azure Kubernetes Service (AKS) cluster named Cluster1
You create a container image named App1 on your administrative workstation.
You need to deploy App1 to Cluster1.
What should you do first?
Answer Options
A
Run the docker push command.
B
Create an App Service plan.
C
Run the az acr build command.
D
Run the az aks create command.
Correct Answer
C: Run the az acr build command.
Explanation
You should sign in and push a container image to Container Registry.
Run the az acr build command to build and push the container image. az acr build \
--image contoso-website \
--registry $ACR_NAME \
--file Dockerfile .