exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 1 question 77 discussion

Actual exam question from Microsoft's AZ-300
Question #: 77
Topic #: 1
[All AZ-300 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
Musk
Highly Voted 5 years, 4 months ago
Thinking more about it, I think B is correct because you first download the kubectl in order to later run the commands
upvoted 42 times
ChePunk
5 years, 1 month ago
I agree with Musk that the correct answer is B, because you can read this article about the following up steps after installed Azure CLI on your on-premise device. https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough#connect-to-the-cluster
upvoted 8 times
...
STFN2019
5 years ago
Precisely
upvoted 3 times
...
nishantknz
4 years, 11 months ago
Correct answer is D. As it states in the questions itself "You install the Azure CLI on the device." so "B" is already done, so the next logical step would be to authenticate, hence D and at last upload the YAML file using C
upvoted 7 times
Aresius
4 years, 10 months ago
Installing Azure CLI doesn't install Kubectl. If you only installed Azure CLI, you still don't have a way of running kubectl unless you run az aks install-cli first.
upvoted 11 times
Shades
4 years, 5 months ago
I dont think so: This is from :https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough#connect-to-the-cluster 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: That means kubectl is already installed. Next step is to connect to AKS cluster , which can be done through az aks get-credentials...D should be the answer
upvoted 1 times
uzairahm007
4 years, 4 months ago
But the question says: "An administrator plans to manage Clus1 from an Azure AD-joined device." It means we first need to install kubectl on the Administrator client and that he could get credentials and after that apply configuration files
upvoted 1 times
...
...
...
...
CloudTech
4 years, 10 months ago
So is it B, C or D, Can someone confirm
upvoted 3 times
...
...
[Removed]
Highly Voted 5 years, 5 months ago
I think the answer should be D. See https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough#connect-to-the-cluster
upvoted 25 times
[Removed]
5 years, 5 months ago
D is right and should be performed before C is done. Option C is to deploy the YAML file.
upvoted 7 times
tartar
4 years, 7 months ago
D is ok
upvoted 2 times
Madhu1
4 years, 7 months ago
Even though its already installed, you have to run the command install again so its option B
upvoted 1 times
...
...
...
...
Namco04
Most Recent 4 years, 1 month ago
You have an Azure Kubernetes Service (AKS) cluster named Clus1 in a resource group named RG1. An administrator plans to manage Should D!!
upvoted 1 times
...
umangsingh123
4 years, 7 months ago
The question clearly states "You install the Azure CLI on the device." which means you have cli installed .so the steps should be 1)install Kubectl 2) get creadentials 3) play with Kubectl
upvoted 4 times
...
umangsingh123
4 years, 7 months ago
The question clearly states "You install the Azure CLI on the device." so the steps should be 1) get creadentials 2) play with Kubectl
upvoted 2 times
...
MMohammad
4 years, 7 months ago
The correct answer is : B. az aks install-cli Explanation: The administrator first needs to install the kubectl tool
upvoted 1 times
aabdous
4 years, 4 months ago
If you haven't credentials you could do nothing. You don't need az aks cli for deploy someting. You can use kubectl command.
upvoted 1 times
...
...
magpi
4 years, 7 months ago
The answer is B. But note that you might get the credentials (answer D) before install kubectl (answer B). I would prefer a question where you can order the next three steps. In that case: BDC or DBC would be correct.
upvoted 1 times
...
tamm
4 years, 7 months ago
Based on the question. An administrator plans to manage Clus1 from an Azure AD-joined device. You install the Azure CLI on the device.(if you use Azure Cloud Shell, kubectl is already installed.) So we can ignore "az aks install-cli" and the next command is "az aks get-credentials --resource-group myResourceGroup --name myAKSCluster" Answer should be "D" Ref: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
upvoted 3 times
...
slyBabs
4 years, 7 months ago
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough 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
upvoted 1 times
...
Shagor
4 years, 8 months ago
Ans is :D https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
upvoted 1 times
ct84
4 years, 7 months ago
Na mate, even your own link shows the answer is B.
upvoted 2 times
...
...
macco455
4 years, 8 months ago
https://docs.microsofaz aks int.com/en-us/azure/aks/kubernetes-walkthrough Based on this article, the first thing you need to do to manage Kubernetes from Azure CLI is to run az aks install-cli. Thus B is the answer. But if this question mentioned using cloud shell and not azure CLI then kubectl is already installed then the answer would be D. So for this question as written, the answer is definitively B- az aks install-cli
upvoted 2 times
macco455
4 years, 8 months ago
Corrected Link: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
upvoted 1 times
...
...
aurora21
4 years, 9 months ago
Other dumps also point to option C as answer though Musk reply sounds logical. So is it B or C ?
upvoted 1 times
macco455
4 years, 8 months ago
100% the answer is B see link below https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
upvoted 3 times
...
...
tundervirld
4 years, 9 months ago
Tested in LAB: Question says, You install the Azure CLI on the device, but this isn’t the same with aks cli, if you execute kubectl alone, don't work. You need to install the functionality of this command, you need do az aks install-cli before, to be able to do kubectl apply -f appl.yaml So: B is the right answer.
upvoted 6 times
...
gboyega
4 years, 9 months ago
Answer is B
upvoted 3 times
...
Luiza
4 years, 9 months ago
Answer is B 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
upvoted 2 times
...
Aaru
4 years, 9 months ago
B. az aks install-cli The administrator first needs to install the kubectl tool
upvoted 2 times
...
DeveshSolanki
4 years, 9 months ago
D. az aks get-credentials --resource-group RG1 --name Clus1
upvoted 1 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