exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 3 discussion

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

Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The cluster is located in a resource group.
Developers have created an application named MyApp. MyApp was packaged into a container image.
You need to deploy the YAML manifest file for the application.
Solution: You install the Azure CLI on the device and run the kubectl apply `"f myapp.yaml command.
Does this meet the goal?

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

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
guschess
Highly Voted 1 year, 10 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: Azure CLI - az aks install-cli Why answer A is correct? url: https://learn.microsoft.com/en-us/azure/aks/learn/quick-kubernetes-deploy-cli thanks
upvoted 5 times
...
Nhantran20000502
Most Recent 1 month, 4 weeks ago
Selected Answer: A
By installing the Azure CLI and running the kubectl apply -f myapp.yaml command, you are correctly deploying the YAML manifest file for the application to the AKS cluster12. This command parses the manifest file and creates the defined Kubernetes objects in your AKS cluster.
upvoted 1 times
...
CESBCN
2 months, 2 weeks ago
Option - B "Solution: You install the Azure CLI on the device and run the kubectl apply `"f myapp.yaml command." Before run the kubectl on the device, you need to install kubectl. "To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl. kubectl is already installed if you use Azure Cloud Shell. To install kubectl locally, use the az aks install-cli command. " https://learn.microsoft.com/en-us/azure/aks/learn/quick-kubernetes-deploy-cli#connect-to-the-cluster
upvoted 2 times
...
man5484
3 months ago
Selected Answer: A
A The solution provided involves using kubectl, which is the Kubernetes command-line tool, to apply the YAML manifest file (myapp.yaml) for deploying the application. Since you're managing the AKS cluster from an Azure AD-joined device and have the Azure CLI installed, running kubectl apply -f myapp.yaml command will deploy the application to the AKS cluster. This is a common and valid method for deploying applications to Kubernetes clusters, including AKS. Therefore, option A is correct.
upvoted 2 times
...
Amuktha
9 months ago
option B. Azure CLI might help you to connect AKS but to run kubectl commands you need to install both kubectl and kubelogin
upvoted 1 times
mrsmjparker
6 months, 1 week ago
However, you can also use Azure Cloud Shell and would not then need to install anything as it is built into cloud shell. I do it all the time.
upvoted 1 times
...
...
Mohanraj_SV5
1 year ago
Selected Answer: A
A - Correct
upvoted 1 times
...
RikinPatel
1 year, 2 months ago
Ans.: B As per my understanding. step as follow as per microsoft.. - Create a resource group - Create an AKS cluster - Connect to the cluster - Deploy the application https://learn.microsoft.com/en-us/azure/aks/learn/quick-kubernetes-deploy-cli Missting step: Connect to the cluster
upvoted 1 times
...
MikeAWS
1 year, 2 months ago
A should be correct! kubectl apply -f myapp.yaml
upvoted 1 times
...
collocollo
1 year, 3 months ago
Selected Answer: A
A - ok
upvoted 1 times
...
viking2
1 year, 5 months ago
Selected Answer: A
As the command is written, the answer would be NO, as that is invalid syntax for kubectl. However, assuming that this is just another transcription issue on ExamTopics, and that `" should be a - instead, the answer is A.
upvoted 4 times
...
LuchoGonzalez
1 year, 6 months ago
Chat gpt said Yes, and then give me the instruccion to achieve it: Yes, your solution is correct. To deploy the YAML manifest file for the application on your Azure Kubernetes Service (AKS) cluster, you can follow these steps: Install the Azure CLI on your Azure AD-joined device. You can download and install the Azure CLI from the official Microsoft Azure CLI documentation. Once the Azure CLI is installed, open a terminal or command prompt. Log in to your Azure account by running the following command and following the prompts:...
upvoted 3 times
...
felipementel
1 year, 8 months ago
Install Azure CLI cannot enable you to use kubectl commands. For it, you need to install Kubernetes command-line tool (kubectl) - my opnion, B!
upvoted 3 times
LuchoGonzalez
1 year, 6 months ago
Chat gpt said Yes, and then give me the instruccion to achieve it: Yes, your solution is correct. To deploy the YAML manifest file for the application on your Azure Kubernetes Service (AKS) cluster, you can follow these steps: Install the Azure CLI on your Azure AD-joined device. You can download and install the Azure CLI from the official Microsoft Azure CLI documentation. Once the Azure CLI is installed, open a terminal or command prompt. Log in to your Azure account by running the following command and following the prompts:...
upvoted 1 times
...
...
SmartTechieGrv
1 year, 8 months ago
A is coorect
upvoted 1 times
...
vmakharashvili
1 year, 9 months ago
Correct answer is A
upvoted 1 times
...
forgetfulalligator
1 year, 10 months ago
Selected Answer: A
The "kubectl apply -f" command is used to deploy Kubernetes manifests, including YAML files, to a Kubernetes cluster
upvoted 4 times
...
uffuchsi
1 year, 10 months ago
A - Yes
upvoted 1 times
...
examinator007
1 year, 10 months ago
AKS is not part of the AZ-204 - see: https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE4oZ7B (But ACI is)
upvoted 2 times
Net_IT
1 year, 10 months ago
Probably not but welcome to MS exams where everything and anythin is supposed to be known in order to pass. I'm starting to believe taht MS assumes you read all of the documentation regarding any subject they mention in the lesson material, e.g. Kubernetes in this case.
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