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

Prepare for the Kubernetes Cloud Native Associate (KCNA) Certification test with engaging questions and detailed explanations. Perfect your knowledge and boost your confidence to pass the exam successfully!

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