CK.II · CKAD practice question
A Deployment named checkout has revisionHistoryLimit: 3 and has undergone 6 rollouts. How many old ReplicaSets does the Deployment controller typically retain?
Check answer and explanation
Correct answer: At most 3 old ReplicaSets (plus the active ReplicaSet)
Explanation
spec.revisionHistoryLimit controls how many old ReplicaSets Kubernetes keeps for rollbacks; the default is 10, and setting 3 retains up to 3 old ReplicaSets.
Common trap
spec.revisionHistoryLimit controls how many old ReplicaSets Kubernetes keeps for rollbacks; the default is 10, and setting 3 retains up to 3 old ReplicaSets.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.