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.
Question
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)- A12% (5)
- B7% (3)
- C2% (1)
- D78% (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.
Option 4 (`az appservice plan create`) is incorrect as it creates an Azure App Service plan, which is unrelated to Azure Kubernetes Service (AKS).
Option 1 (`az aks create`) is missing, which is essential for provisioning the Kubernetes cluster.
Option 1 (`az aks create`) is missing, and option 4 (`az appservice plan create`) is incorrect for AKS deployments.
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
Community Discussion
No community discussion yet for this question.