Study. uk . com
  1. Home
  2. All questions
  3. Question 481

CKA study material · question 481 of 1000

What is the risk of kubectl replace --force compared with kubectl apply?

  1. It bypasses RBAC
  2. It deletes and recreates the object, causing an outage
  3. It cannot be used on Deployments
  4. It ignores validation
Show the answer

Answer: B. It deletes and recreates the object, causing an outage

replace --force deletes and recreates the resource, unlike apply, which patches it in place.

Source: kubectl Quick Reference (Kubernetes) — Updating resources

Challenge yourself on this topic → Study as cards