Which resource is used to run scheduled tasks in Kubernetes?

Prepare for the Kubernetes Certified Network Administrator (KCNA) exam. Utilize flashcards and multiple-choice questions, complete with explanations. Excel in your certification!

Multiple Choice

Which resource is used to run scheduled tasks in Kubernetes?

Explanation:
CronJob is the resource used for scheduled tasks in Kubernetes. It lets you specify a cron-like schedule and a job template; the CronJob controller creates a new Job on the schedule, and that Job runs to completion just like a regular Job. This makes it ideal for periodic tasks such as backups, reports, or cleanup. A plain Job runs once when created, DaemonSet ensures a pod runs on every node (for ongoing node-local tasks), and StatefulSet manages stable identities and storage for stateful applications. So CronJob is the right choice for scheduling work.

CronJob is the resource used for scheduled tasks in Kubernetes. It lets you specify a cron-like schedule and a job template; the CronJob controller creates a new Job on the schedule, and that Job runs to completion just like a regular Job. This makes it ideal for periodic tasks such as backups, reports, or cleanup. A plain Job runs once when created, DaemonSet ensures a pod runs on every node (for ongoing node-local tasks), and StatefulSet manages stable identities and storage for stateful applications. So CronJob is the right choice for scheduling work.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy