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

Study for the Kubernetes Cloud Native Associate (KCNA) Certification. Prepare with flashcards and multiple choice questions. Ensure success with detailed explanations. Ready for 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