exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 3 question 6 discussion

Actual exam question from Microsoft's AZ-303
Question #: 6
Topic #: 3
[All AZ-303 Questions]

You have an Azure Kubernetes Service (AKS) cluster named Clus1 in a resource group named RG1.
An administrator plans to manage Clus1 from an Azure AD-joined device.
You need to ensure that the administrator can deploy the YAML application manifest file for a container application.
You install the Azure CLI on the device.
Which command should you run next?

  • A. kubectl get nodes
  • B. az aks enable-addons --addons virtual-node -name Clust1 --resource-group RG1
  • C. az aks install-cli
  • D. kubectl apply ג€"f app1.yaml
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
kubectl apply ג€"f appl.yaml applies a configuration change to a resource from a file or stdin.
Incorrect Answers:
A: kubectl get nodes gets a list of all nodes.
B: az aks enable-addons enable Kubernetes addons, in this case a virtual node.
C: az aks install-cli download and install the Kubernetes command-line tool.
Reference:
https://kubernetes.io/docs/reference/kubectl/overview/
https://docs.microsoft.com/en-us/cli/azure/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
amt123
Highly Voted 3 years, 10 months ago
C is the correct answer. To use kubectl command , we need to install aka cli first
upvoted 44 times
SecaWa5997
3 years, 10 months ago
Not true. The CLI was already installed, the question is about the next step after the CLI has been installed.
upvoted 13 times
TheAzureArchitect
3 years, 5 months ago
You are confusing the az cli and the kubernetes cli. If you haven't installed kubernetes cli, how can you run kubectl?
upvoted 1 times
TheAzureArchitect
3 years, 5 months ago
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile#examples-of-using-add-with-windows
upvoted 1 times
TheAzureArchitect
3 years, 5 months ago
Wrong link!
upvoted 1 times
...
...
TheAzureArchitect
3 years, 5 months ago
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough#connect-to-the-cluster
upvoted 3 times
...
...
ConradGroot
3 years, 10 months ago
its only true if you are running it from the Azure cloud shell, but the question states you running it from an Azure joined devices, that means that you running it locally - install kubectl locally using the az aks install-cli command: To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl. kubectl is already installed if you use Azure Cloud Shell.
upvoted 8 times
...
...
...
betamode
Highly Voted 3 years, 10 months ago
C is the right answer indeed. Just try it yourself, it's a simple 5 - 10 mins task. First, install Azure CLI on your local machine / laptop. Second, using Azure CLI, connect to your Azure subscription. Third, try to use option A or D and you will get an error - 'kubectl' is not recognized as an internal or external command, operable program or batch file. Now try az aks install-cli and then run this command: az aks get-credentials --resource-group "your resource group name where you deployed aks cluster" --name "your aks cluster name" After that you try option A and Option D and it will work. So, to summarize you need aks cli before running any kubectl command on your local machine. That's why option C is the correct answer. Trying option A or D without aks cli won't work on your local machine but will work on Azure cloud shell because cloud shell has aks cli already installed.
upvoted 31 times
...
sd6
Most Recent 3 years, 1 month ago
cli is already installed as mentioned - "You install the Azure CLI on the device." the next step is asked which should be D.
upvoted 1 times
...
Axial30z
3 years, 3 months ago
az aks install-cli - Installs kubectl locally az aks get-credentials - Configures kubectl to connect to cluster kubectl get nodes - Verifies the connection to cluster kubectl apply -f azure-vote.yaml - Deploy the application You have an Azure Kubernetes Service (AKS) cluster named Clus1 in a resource group named RG1. (Cluster already exists) An administrator plans to manage Clus1 from an Azure AD-joined device. You need to ensure that the administrator can deploy the YAML application manifest file for a container application. You install the Azure CLI on the device. (On the administrators Azure AD-joined device) Which command should you run next? C. az aks install-cli - Installs kubectl locally
upvoted 1 times
...
davignola
3 years, 3 months ago
Selected Answer: C
Answer is C, you need Kubernetes CLI first
upvoted 1 times
...
Dawn7
3 years, 3 months ago
Selected Answer: C
I think C is correct
upvoted 1 times
...
Dawn7
3 years, 3 months ago
I will go with C
upvoted 1 times
...
plmmsg
3 years, 3 months ago
C is correct. you need to install aka cli
upvoted 1 times
...
quantumray
3 years, 4 months ago
Question appeared On AZ-303 exam on 08/12/2021 - 49 questions, 4Q - Fabrikan case study
upvoted 1 times
...
Kubernetes
3 years, 7 months ago
Answer is D, it is correct
upvoted 1 times
...
waqas
3 years, 7 months ago
B is the right answer. You may check and confirm.
upvoted 2 times
...
syu31svc
3 years, 8 months ago
Azure CLI is already installed. So, to manage a Kubernetes cluster, you use kubectl, the Kubernetes command-line client. If you use Azure Cloud Shell, kubectl is already installed. To install kubectl locally, use the az aks install-cli command https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough Answer is C
upvoted 4 times
...
kumarts
3 years, 8 months ago
Correct answer is C, kindly refer https://www.examtopics.com/exams/microsoft/az-300/view/16/
upvoted 1 times
...
kumarts
3 years, 8 months ago
Answer is C, kindly refer https://www.examtopics.com/exams/microsoft/az-300/view/16/
upvoted 1 times
...
kumarts
3 years, 8 months ago
Answer is D. Question is: You install the Azure CLI on the device. Which command should you run next?
upvoted 6 times
...
carlossarmient
3 years, 9 months ago
But the questiones says: You install the Azure CLI on the device.(already did) Which command should you run next?. the key is next.
upvoted 3 times
...
AAPaul
3 years, 9 months ago
I had this question in the exam that i took on July 14th 2021
upvoted 2 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