exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 69 discussion

Actual exam question from Microsoft's AZ-104
Question #: 69
Topic #: 4
[All AZ-104 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You deploy an Azure Kubernetes Service (AKS) cluster named AKS1.
You need to deploy a YAML file to AKS1.
Solution: From Azure Cloud Shell, you run az aks.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
j5y
Highly Voted 3 years, 8 months ago
Answer: NO To deploy a YAML file, the command is: kubectl apply -f example.yaml Src: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
upvoted 46 times
Acai
3 years, 7 months ago
yep yep yep
upvoted 3 times
...
melatocaroca
3 years, 4 months ago
https://docs.microsoft.com/en-us/azure/aks/concepts-clusters-workloads#deployments-and-yaml-manifests
upvoted 1 times
...
...
achmadirvanp
Highly Voted 3 years, 8 months ago
Answer is correct, Appear On Exam July 1 2021
upvoted 9 times
...
[Removed]
Most Recent 5 months, 2 weeks ago
Selected Answer: B
B is corerct From Azure Cloud Shell, you run the kubectl client.
upvoted 1 times
...
tashakori
11 months, 2 weeks ago
No is right
upvoted 1 times
...
obaemf
1 year, 5 months ago
Selected Answer: B
Use kubectl apply -f example.yaml
upvoted 2 times
...
JayLearn2022
2 years ago
There are several versions of this question. The following are the correct and incorrect answers that can be presented. Correct Answer: Meets the goal. -Solution: From Azure Cloud Shell, you run the kubectl client. Incorrect Answers: Does not meet the goal. -Solution: From Azure Cloud Shell, you run az aks. -Solution: From Azure CLI, you run azcopy
upvoted 4 times
...
zellck
2 years ago
Selected Answer: B
B is the answer. https://learn.microsoft.com/en-us/azure/aks/concepts-clusters-workloads#deployments-and-yaml-manifests Deployments are typically created and managed with kubectl create or kubectl apply. Create a deployment by defining a manifest file in the YAML format.
upvoted 1 times
...
spaceman12
2 years ago
Besides the comments w/ answers here is a short summary I found useful from chatgpt: az aks is a command-line interface (CLI) tool provided by Microsoft Azure to manage and deploy Kubernetes clusters on Azure, while kubectl is the command-line tool for interacting with a Kubernetes cluster. The main difference between the two is the scope of their functionality: - az aks is focused on provisioning and managing AKS clusters, including creating and scaling the cluster, managing authentication and network configurations, and upgrading the cluster. - kubectl is focused on interacting with and managing the components running within a Kubernetes cluster, such as deploying and managing applications, inspecting cluster state, and troubleshooting issues. Both tools can be used together to effectively manage an AKS cluster, with az aks being used for cluster-level tasks and kubectl for workload-level tasks.
upvoted 6 times
...
ChakaZilly
2 years, 1 month ago
Yes: This is really a trick question, as Mangicurry points out you can embed kubectl-command in "az aks": az aks command invoke \ --resource-group myResourceGroup \ --name myAKSCluster \ --command "kubectl apply -f deployment.yaml -n default" \ --file deployment.yaml
upvoted 1 times
...
Mangocurry
2 years, 1 month ago
Well, technically you can do this with az aks command invoke so this is a bad question imo :( https://learn.microsoft.com/en-us/azure/aks/command-invoke
upvoted 1 times
...
EmnCours
2 years, 6 months ago
Selected Answer: B
Answer: NO
upvoted 1 times
...
AubinBakana
3 years, 6 months ago
az aks? even if you didn't know the answer you gotta know this is wrong :)
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago