Which Kubernetes object is used to schedule periodic tasks?

Enhance your knowledge for the Kubernetes Certified Network Administrator Test. Utilize flashcards and multiple choice questions with detailed explanations. Prepare effectively for your KCNA exam!

Multiple Choice

Which Kubernetes object is used to schedule periodic tasks?

Explanation:
Scheduling periodic tasks in Kubernetes is handled by a CronJob. A CronJob defines a schedule with a cron expression and automatically creates a Job at each scheduled time. That Job then runs to completion, handling retries and parallelism as configured. This makes CronJob ideal for recurring tasks like backups, reports, or cleanup tasks. A plain Job runs once (or a fixed number of completions) when created, not on a repeating schedule. DaemonSet keeps a pod on every node, and StatefulSet manages stateful workloads with stable identities and storage. So CronJob is the correct choice for periodic execution.

Scheduling periodic tasks in Kubernetes is handled by a CronJob. A CronJob defines a schedule with a cron expression and automatically creates a Job at each scheduled time. That Job then runs to completion, handling retries and parallelism as configured. This makes CronJob ideal for recurring tasks like backups, reports, or cleanup tasks. A plain Job runs once (or a fixed number of completions) when created, not on a repeating schedule. DaemonSet keeps a pod on every node, and StatefulSet manages stateful workloads with stable identities and storage. So CronJob is the correct choice for periodic execution.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy