# Which command would you use to create a deployment from a YAML file?

Kubernetes, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-create-a-deployment-from-a-yaml-file

- A. kubectl create -f deployment.yaml
- B. kubectl apply -f deployment.yaml
- C. kubectl deploy -f deployment.yaml
- D. kubectl start -f deployment.yaml

**Answer:** kubectl apply -f deployment.yaml

**Explanation:** The 'kubectl apply -f deployment.yaml' command is used to create or update resources defined in a YAML file. It's the recommended way to manage Kubernetes resources declaratively.
