Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 ūüó≥ÔłŹ
To deploy a YAML file, the command is:
kubectl apply -f <file_name>.yaml
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
j5y
Highly Voted 2 years, 5 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 39 times
Acai
2 years, 4 months ago
yep yep yep
upvoted 2 times
...
melatocaroca
2 years, 2 months ago
https://docs.microsoft.com/en-us/azure/aks/concepts-clusters-workloads#deployments-and-yaml-manifests
upvoted 1 times
...
...
achmadirvanp
Highly Voted 2 years, 5 months ago
Answer is correct, Appear On Exam July 1 2021
upvoted 9 times
...
obaemf
Most Recent 3 months ago
Selected Answer: B
Use kubectl apply -f example.yaml
upvoted 2 times
...
JayLearn2022
9 months, 3 weeks 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 3 times
...
zellck
10 months, 1 week 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
10 months, 1 week 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 4 times
...
ChakaZilly
10 months, 2 weeks 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
11 months 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
1 year, 3 months ago
Selected Answer: B
Answer: NO
upvoted 1 times
...
AubinBakana
2 years, 3 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 ...