Conquer the CKAD Challenge 2025: Unleash Your Kubernetes Power!

Question: 1 / 400

Which command is used to create a deployment in Kubernetes?

kubectl start deployment [deployment-name]

kubectl create deploy [deployment-name] --image=[image-name]

kubectl create deployment [deployment-name] --image=[image-name]

The command to create a deployment in Kubernetes is structured as follows: `kubectl create deployment [deployment-name] --image=[image-name]`. This command uses the `kubectl` command-line tool, which is the primary way to interact with the Kubernetes cluster.

In this command:

- `create deployment` specifies that you want to create a new deployment resource. This part of the command precisely tells Kubernetes what type of resource you are creating.

- `[deployment-name]` is a placeholder for the name you wish to give to the deployment, and it must be unique within the namespace.

- `--image=[image-name]` indicates the container image to be used for the deployment. This part is crucial as it defines what application will run inside the pods created by the deployment.

This command is complete and properly formatted, allowing Kubernetes to understand the intent and parameters provided.

The other command options do not correctly reflect the standard syntax or capabilities provided by `kubectl` for deployment creation, which is why they are not valid. The correct structure and use of deployment commands are essential for managing applications effectively in Kubernetes.

Get further explanation with Examzify DeepDiveBeta

kubectl deploy [deployment-name] --image=[image-name]

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy