KCNA · Question #112
What sentence is true about CronJobs in Kubernetes?
The correct answer is A. A CronJob creates one or multiple Jobs on a repeating schedule. CronJobs in Kubernetes are used to schedule tasks, creating one or more Jobs on a repeating schedule.
Question
What sentence is true about CronJobs in Kubernetes?
Options
- AA CronJob creates one or multiple Jobs on a repeating schedule.
- BA CronJob creates one container on a repeating schedule.
- CCronJobs are useful on Linux but are obsolete In Kubernetes.
- DThe CronJob schedule format Is different in Kubernetes and Linux.
How the community answered
(29 responses)- A93% (27)
- B3% (1)
- C3% (1)
Why each option
CronJobs in Kubernetes are used to schedule tasks, creating one or more Jobs on a repeating schedule.
A CronJob object defines a schedule using cron format and, when triggered, creates a Job resource. This Job then manages the creation of Pods to execute the specified task according to the defined schedule.
CronJobs create Job objects, which then manage containers indirectly via pods, rather than directly creating individual containers.
CronJobs are a fundamental and widely used feature in Kubernetes for running scheduled tasks, not obsolete.
The CronJob schedule format in Kubernetes is based on the standard Unix cron format, making it largely consistent with Linux cron.
Concept tested: Kubernetes CronJob functionality and scheduling
Source: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
Topics
Community Discussion
No community discussion yet for this question.