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:\n✑ An Azure Container Registry instance named Registry1\n✑ An Azure Kubernetes Service (AKS) cluster named Cluster1\nYou create a container image named App1 on your administrative workstation.\nYou need to deploy App1 to Cluster1.\nWhat 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.\nRun the az acr build command to build and push the container image. az acr build \\n--image contoso-website \\n--registry $ACR_NAME \\n--file Dockerfile .