VMware Carbon Black Cloud Enterprise EDR (2020) — Question 27
Which command provides valid syntax to deploy a vSphere Pod?
Answer options
- A. tkg apply -c containerName
- B. docker run containerName
- C. kubectl apply -c deployment.yaml
- D. kubectl apply -f deployment.yaml
Correct answer: D
Explanation
The correct answer is D because 'kubectl apply -f deployment.yaml' is the proper way to apply a configuration file in Kubernetes. Option A is incorrect as 'tkg' is not the right command for vSphere Pod deployment, while option B pertains to Docker and is not applicable here. Option C has an incorrect flag '-c' instead of '-f', making it invalid for the deployment of a vSphere Pod.