5v0-2320 Exam QuestionsBrowse all questions from this exam

5v0-2320 Exam - Question 113


Which kubectl command is used to deploy the application when using a Kubernetes deployment specification file, my-app.yaml?

Show Answer
Correct Answer: B

The correct command to deploy an application using a Kubernetes deployment specification file is "kubectl apply -f my-app.yaml". The "apply" command is used to update a Kubernetes cluster to match the state defined in a configuration file. The "-f" flag specifies the filename of the YAML file that contains the deployment specifications.

Discussion

2 comments
Sign in to comment
obeythefistOption: B
Mar 26, 2023

It's B. Always look for the -F parameter with these questions (the filename parameter). VMware seem to omit this in the "wrong" answers.

diegof1Option: B
Apr 11, 2024

B is correct https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/2.5/using-tkg/workload-clusters-sample-app.html