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

Study for the Kubernetes Cloud Native Associate (KCNA) Certification 1 Test. Master the core concepts of Kubernetes with multiple-choice questions and detailed explanations. Prepare and boost your confidence for the KCNA certification 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