exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 1 question 5 discussion

Actual exam question from Microsoft's AZ-203
Question #: 5
Topic #: 1
[All AZ-203 Questions]

DRAG DROP -
You are deploying an Azure Kubernetes Services (AKS) cluster that will use multiple containers.
You need to create the cluster and verify that the services for the containers are configured correctly and available.
Which four commands should you use to develop the solution? To answer, move the appropriate command segments from the list of command segments to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: az group create -
Create a resource group with the az group create command. An Azure resource group is a logical group in which Azure resources are deployed and managed.
Example: The following example creates a resource group named myAKSCluster in the eastus location. az group create --name myAKSCluster --location eastus

Step 2 : az aks create -
Use the az aks create command to create an AKS cluster.

Step 3: kubectl apply -
To deploy your application, use the kubectl apply command. This command parses the manifest file and creates the defined Kubernetes objects.

Step 4: az aks get-credentials -
Configure it with the credentials for the new AKS cluster. Example: az aks get-credentials --name aks-cluster --resource-group aks-resource-group
References:
https://docs.bitnami.com/azure/get-started-aks/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Ani
Highly Voted 5 years, 4 months ago
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough#create-a-resource-group az group create az aks create az aks get-credentials kubectl apply
upvoted 77 times
...
aes
Highly Voted 5 years, 5 months ago
az aks get-credentials shoul be executed before any kubectl command in order to get access credentials for the created cluster
upvoted 48 times
...
NhanTran1997
Most Recent 1 year ago
It should be az group create az aks create az aks get-credentials kubectl apply Ref: https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-cluster?tabs=azure-cli
upvoted 2 times
...
hergoi
4 years, 1 month ago
Please correct answer to: az-group create az aks create az aks get-credentials kubectl apply
upvoted 2 times
...
MaTaO
4 years, 5 months ago
az-group create az aks create az aks get-credentials kubectl apply confirm, I run a solution on aks since start of 2019. need to get credential before apply*
upvoted 1 times
...
hertino
4 years, 8 months ago
Today I got 900, I had this question, my answer: az-group create az aks create az aks get-credentials kubectl apply
upvoted 8 times
...
navaneeth
4 years, 8 months ago
admin change the answer to az group create az aks create az aks get-credentials kubectl apply
upvoted 6 times
...
RajeshSinha
4 years, 9 months ago
Correct answer is: az group create az aks create az aks get-credentials kubectl apply
upvoted 6 times
...
sathish11
4 years, 9 months ago
Correct answer is az group create az aks create az aks get-credentials kubectl apply
upvoted 5 times
...
dollarpo7
4 years, 11 months ago
az group create az aks create az aks get-credentials kubectl apply
upvoted 5 times
...
vova12345
4 years, 12 months ago
incorrect answer, correct: az group create az aks create az aks get-credentials kubectl apply
upvoted 14 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago