KCNA · Question #126
What can be used to create a job that will run at specified times/dates or on a repeating schedule?
The correct answer is D. CronJob. A CronJob is a Kubernetes resource that schedules Jobs using standard Unix cron syntax (e.g., '0 2 *' to run daily at 2 AM). It can trigger one-time runs at a specific date/time or recurring runs on any schedule expressible in cron format. The controller creates a new Job object
Question
What can be used to create a job that will run at specified times/dates or on a repeating schedule?
Options
- AJob
- BCalenderJob
- CBatchJob
- DCronJob
How the community answered
(21 responses)- A5% (1)
- C5% (1)
- D90% (19)
Explanation
A CronJob is a Kubernetes resource that schedules Jobs using standard Unix cron syntax (e.g., '0 2 * * *' to run daily at 2 AM). It can trigger one-time runs at a specific date/time or recurring runs on any schedule expressible in cron format. The controller creates a new Job object each time the schedule fires. A plain Job (A) runs once and to completion with no scheduling capability. CalendarJob (B) and BatchJob (C) are not standard Kubernetes resource types - they are distractors. CronJob is the canonical Kubernetes primitive for time-based or repeating task automation.
Topics
Community Discussion
No community discussion yet for this question.