Which statement describes CronJob in Kubernetes?

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 statement describes CronJob in Kubernetes?

Explanation:
CronJob is used to run batch-style tasks on a schedule. It defines a cron-like schedule and a template for a Job. When the schedule matches, the CronJob controller creates a new Job, which then launches pods to run the task to completion. That is why the statement describing CronJob as running a job on a predefined schedule is the best fit. CronJob itself does not create services, update deployments, or manage ConfigMaps; those functions are handled by other Kubernetes resources.

CronJob is used to run batch-style tasks on a schedule. It defines a cron-like schedule and a template for a Job. When the schedule matches, the CronJob controller creates a new Job, which then launches pods to run the task to completion. That is why the statement describing CronJob as running a job on a predefined schedule is the best fit. CronJob itself does not create services, update deployments, or manage ConfigMaps; those functions are handled by other Kubernetes resources.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy