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?
- A.concurrencyPolicy: Forbid
- B.suspend: true
- C.startingDeadlineSeconds: 0
- 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
- Drain flags for DaemonSets and emptyDir
- Listing cluster-scoped API resources
- Setting the default namespace in a context
- Session affinity by client IP
- Pod dnsPolicy Default versus ClusterFirst
- Raw block volumes with volumeMode
- Debugging a node with kubectl debug
- CreateContainerConfigError from missing ConfigMap
- Approving a client CertificateSigningRequest
- NetworkPolicy ipBlock with except
- Restoring a PVC from a VolumeSnapshot