Beginner
Kubernetes
Q35 / 100
What is the difference between "kubectl create" and "kubectl apply"?
Correct! Well done.
Incorrect.
The correct answer is B) "kubectl create" creates a new resource and fails if it already exists, while "kubectl apply" creates the resource if it doesn't exist or updates it to match the file if it does
B
Correct Answer
"kubectl create" creates a new resource and fails if it already exists, while "kubectl apply" creates the resource if it doesn't exist or updates it to match the file if it does
Explanation
"create" is imperative and errors on existing resources, while "apply" is declarative, supporting both creation and incremental updates based on the desired configuration.
Progress
35/100