nerdexam
Microsoft

AZ-204 · Question #173

A team 'XNP' is developing container-based applications that need to be deployed to a Kubernetes cluster in Azure. Parker has to create thecluster and ensure the services are running as desired…

The correct answer is D. Only 1, 2 and 3. To create an Azure Kubernetes Service (AKS) cluster and deploy applications, you first create a resource group, then the AKS cluster, and finally use kubectl apply for deployment.

Submitted by anna_se· Mar 30, 2026Develop Azure compute solutions

Question

A team 'XNP' is developing container-based applications that need to be deployed to a Kubernetes cluster in Azure. Parker has to create thecluster and ensure the services are running as desired. Considering the following, select the Command would he execute? 1.) az aks create 2.) az group create 3.) kubectl apply 4.) az appservice plan create

Options

  • AOnly 1, 2 and 4
  • BOnly 2 and 3
  • COnly 3 and 4
  • DOnly 1, 2 and 3

How the community answered

(41 responses)
  • A
    12% (5)
  • B
    7% (3)
  • C
    2% (1)
  • D
    78% (32)

Why each option

To create an Azure Kubernetes Service (AKS) cluster and deploy applications, you first create a resource group, then the AKS cluster, and finally use `kubectl apply` for deployment.

AOnly 1, 2 and 4

Option 4 (`az appservice plan create`) is incorrect as it creates an Azure App Service plan, which is unrelated to Azure Kubernetes Service (AKS).

BOnly 2 and 3

Option 1 (`az aks create`) is missing, which is essential for provisioning the Kubernetes cluster.

COnly 3 and 4

Option 1 (`az aks create`) is missing, and option 4 (`az appservice plan create`) is incorrect for AKS deployments.

DOnly 1, 2 and 3Correct

To deploy container-based applications to an AKS cluster, Parker must first create an Azure resource group (`az group create`) to host the cluster, then provision the AKS cluster itself (`az aks create`). Once the cluster is running, `kubectl apply` is used to deploy application configurations (e.g., deployments, services) to Kubernetes.

Concept tested: AKS cluster creation and application deployment

Source: https://learn.microsoft.com/en-us/azure/aks/learn/quick-container-deploy-cli

Topics

#AKS#az aks create#kubectl apply#Kubernetes cluster

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice