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

Prepare for the Kubernetes Cloud Native Associate (KCNA) Certification test with engaging questions and detailed explanations. Perfect your knowledge and boost your confidence to pass the exam successfully!

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