nerdexam
MicrosoftMicrosoft

AZ-104 · Question #513

AZ-104 Question #513: Real Exam Question with Answer & Explanation

The correct answer is C: Upload App1 to Registry1.. To deploy a locally created container image to an Azure Kubernetes Service (AKS) cluster, the image must first be stored in a container registry.

Submitted by viktor_hu· Mar 4, 2026Deploy and manage Azure compute resources

Question

You create the following resources in an 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?

Options

  • ARun the aa aks create command.
  • BCreate a host pool on Cluster1
  • CUpload App1 to Registry1.
  • DRun the kubect1 apply command.

Explanation

To deploy a locally created container image to an Azure Kubernetes Service (AKS) cluster, the image must first be stored in a container registry.

Common mistakes.

  • A. The az aks create command is used to provision a new Azure Kubernetes Service cluster, not to deploy an application to an existing one.
  • B. A 'host pool' is a component of Azure Virtual Desktop, not directly relevant to deploying containerized applications to an Azure Kubernetes Service (AKS) cluster.
  • D. The kubectl apply command is used to deploy a Kubernetes manifest to a cluster, but it requires the container image to already be available in a registry for the cluster to pull from; it's not the initial step if the image is only local.

Concept tested. Deploying container images to AKS using Azure Container Registry

Reference. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-docker-cli

Community Discussion

No community discussion yet for this question.

Full AZ-104 PracticeBrowse All AZ-104 Questions