According to a CronJob's schedule, which Kubernetes object is created?

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

According to a CronJob's schedule, which Kubernetes object is created?

Explanation:
A CronJob creates a Job object on its schedule. The CronJob defines a jobTemplate that specifies the Job to be instantiated each time the schedule fires. That Job then creates Pods according to its Pod template and manages their lifecycle. Pods themselves are created by the Job, not directly by the CronJob, and Deployments or StatefulSets are for long-running services rather than periodic, finite tasks. So the thing created on schedule is a Job resource.

A CronJob creates a Job object on its schedule. The CronJob defines a jobTemplate that specifies the Job to be instantiated each time the schedule fires. That Job then creates Pods according to its Pod template and manages their lifecycle. Pods themselves are created by the Job, not directly by the CronJob, and Deployments or StatefulSets are for long-running services rather than periodic, finite tasks. So the thing created on schedule is a Job resource.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy