Which Kubernetes object is used to schedule periodic tasks?

Prepare for the Kubernetes Certified Network Administrator (KCNA) exam with our detailed tests. Use flashcards and multiple choice questions, complete with hints and explanations, to enhance your learning experience. Get exam-ready today!

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