exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 5 question 76 discussion

Actual exam question from Microsoft's AZ-303
Question #: 76
Topic #: 5
[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 install-cli
  • C. kubectl apply ג€"f appl.yaml
  • D. az aks get-credentials --resource-group RG1 --name Clus1
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
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 install-cli download and install the Kubernetes command-line tool.
D: az aks get-credentials gets access credentials for a managed Kubernetes cluster
References:
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
AmitRoy
Highly Voted 4 years, 4 months ago
B. You have to install AKS CLI after Azure CLI gets installed!
upvoted 57 times
SecaWa5997
4 years ago
No, it says the CLI is installed already
upvoted 1 times
pentium75
3 years, 10 months ago
Only Azure CLI
upvoted 4 times
...
...
battleneter
3 years, 12 months ago
No, it says the CLI is installed already, so 22 upvotes are clearly wrong here.
upvoted 5 times
binco
3 years, 11 months ago
"You install the Azure CLI on the device" - so only az is installed, but not kubectl
upvoted 6 times
...
jyotish
3 years, 11 months ago
Azure CLI and aks cli are two separate modules. So B is correct.
upvoted 23 times
ChocolateNagaViper
3 years, 6 months ago
AKS CLI is part of Azure CLI, so no need to install it: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
upvoted 1 times
SanjSL
3 years, 6 months ago
Connect to the cluster To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl. kubectl is already installed if you use Azure Cloud Shell. Install kubectl locally using the az aks install-cli command: B
upvoted 5 times
...
...
...
justfordevelopment
3 years, 3 months ago
From the reference here: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough ~~To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl. kubectl is already installed if you use "Azure Cloud Shell."~~. We have CLI installed in the question so I think answer is B, install the AKS cli.
upvoted 1 times
...
...
...
Aghora
Highly Voted 4 years, 4 months ago
before you can run any commands you need to install aks cli
upvoted 15 times
...
AD3
Most Recent 3 years, 3 months ago
The az cli is already installed on local device. The next thing is to install kubectl locally to be able to connect to the cluster. So the option B is the next step is clear for sure. See the latest 2022 updated page. https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
upvoted 2 times
...
jr_luciano
3 years, 4 months ago
Nowadays kubernetes commands are already present in the Azure CLI installation. For sure, the correct answer is the letter "D".
upvoted 1 times
...
HelloWorldMoha
3 years, 9 months ago
D https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-portal. - Step 2
upvoted 4 times
eudine
3 years, 8 months ago
Of course D. You must authenticate your client to the K8s control plane
upvoted 1 times
...
walkwolf3
3 years, 8 months ago
In your reference, Azure Cloud Shell was used. But in the question, a device was asked, so read the question carefully. B is the correct answer.
upvoted 3 times
...
...
nfett
3 years, 11 months ago
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl. kubectl is already installed if you use Azure Cloud Shell.
upvoted 1 times
mingled
3 years, 10 months ago
correct - but it says you've already installed Azure CLI - meaning that you must be using inbuilt powershell not Azure Cloud Shell -
upvoted 1 times
...
...
Amit3
3 years, 12 months ago
B is correct. And the reason being you are working with Azure CLI and not Azure Cloud Shell (which already has kubectl installed). Correct steps to manage cluster and deploy file are: a. Install Azure CLI b. Install kubectl using : az aks install -cli c. Download credentials and configure Kubernetes CLI to use them using : az aks get-credentails --resoruce-group RG --name myAKSCluster d. Verify connection: kubectl get nodes e. Run the application using Kubernetes manifest file, for example - azure-vote.yaml
upvoted 6 times
...
PengPai6
4 years ago
B,I am sure.
upvoted 4 times
...
ashishg2105
4 years ago
Answer is B. The administrator first needs to install the kubectl tool
upvoted 5 times
...
saumenP
4 years ago
If you use the Azure Cloud Shell, kubectl is already installed, then answer should have been D. The question says AZURE CLI is installed. So B is correct.
upvoted 2 times
Amit3
3 years, 12 months ago
Yes, you answer is correct.
upvoted 1 times
...
...
Vanchi07
4 years ago
B is the answer
upvoted 1 times
...
heamgu
4 years, 1 month ago
https://docs.microsoft.com/en-us/azure/aks/azure-ad-integration-cli#:~:text=yaml-,Access%20cluster%20with%20Azure,back%20through%20Azure%20AD,-Azure
upvoted 1 times
...
BigDaddyAus
4 years, 3 months ago
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough Correct is D
upvoted 5 times
...
StarkStrange
4 years, 3 months ago
install Kubernetes CLI. steps defined here. 1. install Azure CLI. 2. Create cluster. 3. install Kube cli. 4. Get creds. https://docs.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-cluster
upvoted 10 times
...
Aghora
4 years, 4 months ago
sorry meant to say kubectl CLI so answer is B
upvoted 7 times
...
scorpion20047
4 years, 4 months ago
repeated question
upvoted 4 times
...
Niro
4 years, 4 months ago
D is the answer
upvoted 5 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 ...