Which CronJob field controls how many completed and failed jobs are kept?

Prepare for the KCNA Certification Test. Study with flashcards, multiple-choice questions, and detailed explanations to enhance your understanding of Kubernetes Cloud Native concepts. Ace your exam!

Multiple Choice

Which CronJob field controls how many completed and failed jobs are kept?

Explanation:
CronJob keeps a limited history of finished Jobs to avoid unbounded resource use. The setting that controls how many successful (completed) Jobs are retained is the field for successful jobs history limit. When there are more successful Jobs than this limit, the oldest successful ones are cleaned up, keeping only the most recent ones. There is a separate, parallel setting for failed Jobs called failedJobsHistoryLimit, but the option that matches retaining completed jobs is the successfulJobsHistoryLimit field. The other names listed aren’t actual CronJob fields.

CronJob keeps a limited history of finished Jobs to avoid unbounded resource use. The setting that controls how many successful (completed) Jobs are retained is the field for successful jobs history limit. When there are more successful Jobs than this limit, the oldest successful ones are cleaned up, keeping only the most recent ones. There is a separate, parallel setting for failed Jobs called failedJobsHistoryLimit, but the option that matches retaining completed jobs is the successfulJobsHistoryLimit field. The other names listed aren’t actual CronJob fields.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy