CertKeen

Certified Kubernetes Administrator (CKA) · Free practice question 2 of 12

CronJob concurrencyPolicy Forbid

A nightly CronJob at Holloway Dyes sometimes runs longer than its 30-minute schedule interval, and two runs then overlap and corrupt a report. Which setting makes the controller skip a new run while the previous one is still active?

  1. A.concurrencyPolicy: Forbid
  2. B.suspend: true
  3. C.startingDeadlineSeconds: 0
  4. D.concurrencyPolicy: Replace
Show answer and explanation

Correct answer: A. concurrencyPolicy: Forbid

Why: Forbid skips a scheduled run if the previous Job has not finished. Replace would stop the running Job and start the new one, which is not wanted here. startingDeadlineSeconds controls how late a missed run may start, and suspend stops all future runs.

More free Certified Kubernetes Administrator (CKA) questions