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 2 years, 4 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 7 times
PaoLoi
1 month, 1 week ago
Yes this is correct
upvoted 1 times
...
...
kingalexp
Most Recent 6 days, 21 hours ago
Selected Answer: B
B. Syntax error (kubectl apply -f myapp.yaml)
upvoted 1 times
...
brenobaronte
2 weeks, 1 day ago
Selected Answer: A
A is the correct one.
upvoted 1 times
...
adelaTM
2 months ago
Selected Answer: B
The answer is `No`, because there is a typo in the command; it should be with `-f`: kubectl apply -f myapp.yaml
upvoted 3 times
...
Ira89
2 months, 3 weeks ago
Selected Answer: A
kubectl apply -f myapp.yaml This is correct command to run manifest
upvoted 1 times
...
HernanP
3 months, 2 weeks ago
Selected Answer: B
B # Create a service using the definition in example-service.yaml. kubectl apply -f example-service.yaml # Create a replication controller using the definition in example-controller.yaml. kubectl apply -f example-controller.yaml # Create the objects that are defined in any .yaml, .yml, or .json file within the <directory> directory. kubectl apply -f <directory>
upvoted 1 times
...
DheerajPatyal
4 months, 1 week ago
Selected Answer: B
No, this solution does not meet the goal as stated because the command provided contains a syntax error. The correct kubectl apply command should use the -f flag instead of "f
upvoted 1 times
...
ErickIMT
4 months, 2 weeks ago
Selected Answer: B
The response must be "B", beacause the command is not correct at all, it says "kubectl apply `"f myapp.yaml command" but must be "kubectl apply -f myapp.yaml command"
upvoted 2 times
...
Cicy
4 months, 3 weeks ago
Selected Answer: A
Installing the Azure CLI enables you to interact with Azure resources, including AKS.
upvoted 1 times
...
Nhantran20000502
7 months, 2 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 2 times
...
CESBCN
8 months 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 3 times
...
man5484
8 months, 2 weeks 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
1 year, 2 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
11 months, 3 weeks 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, 5 months ago
Selected Answer: A
A - Correct
upvoted 1 times
...
RikinPatel
1 year, 8 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, 8 months ago
A should be correct! kubectl apply -f myapp.yaml
upvoted 1 times
...
collocollo
1 year, 8 months ago
Selected Answer: A
A - ok
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 ...