Question 450
At Horizon observability, in a disposable simulated environment during a monitored release window: A CronJob hourly-rollup in namespace observability needs to stop scheduling new runs during a planned dependency outage. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
CronJob suspension prevents new scheduled Jobs but does not terminate existing Jobs already running. This explains the stated condition. The corresponding action is: Run kubectl -n observability patch cronjob hourly-rollup --type=merge -p '{"spec":{"suspend":true}}'. The direct acceptance evidence is: Run kubectl -n observability get cronjob hourly-rollup -o jsonpath='{.spec.suspend}' and verify true.
Incorrect Answers
A toleration allows a Pod past a matching taint but does not ensure placement without node selection and capacity. That explanation applies to a different technical failure. Here the controlling principle is: CronJob suspension prevents new scheduled Jobs but does not terminate existing Jobs already running.
This principle describes a separate cause: Scaling the Deployment changes desired replica count through its controller; editing an individual Pod would not preserve the desired state. The reported condition is governed by: CronJob suspension prevents new scheduled Jobs but does not terminate existing Jobs already running. The two mechanisms should not be conflated.
A Deployment tracks ReplicaSet revisions and rollout undo restores a recorded earlier Pod template. That explanation applies to a different technical failure. Here the controlling principle is: CronJob suspension prevents new scheduled Jobs but does not terminate existing Jobs already running.