Which Kubernetes object is used to schedule periodic tasks?

Study for the Kubernetes Certified Network Administrator Exam. Our test offers comprehensive flashcards, multiple-choice questions, and detailed explanations. Be confident for your 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