Bird
0
0

What is the main difference between a Kubernetes Job and a CronJob?

easy📝 Conceptual Q11 of 15
Kubernetes - Scheduling
What is the main difference between a Kubernetes Job and a CronJob?
A<code>Job</code> runs tasks repeatedly; <code>CronJob</code> runs a task once.
B<code>Job</code> automatically restarts pods; <code>CronJob</code> does not.
C<code>Job</code> is for long-running services; <code>CronJob</code> is for batch tasks.
D<code>Job</code> runs a task once; <code>CronJob</code> runs tasks repeatedly on a schedule.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of a Job

    A Kubernetes Job runs a batch task once and completes when the task finishes.
  2. Step 2: Understand the purpose of a CronJob

    A CronJob schedules Jobs to run repeatedly at specified times, like a clock.
  3. Final Answer:

    Job runs a task once; CronJob runs tasks repeatedly on a schedule. -> Option D
  4. Quick Check:

    Job = one-time, CronJob = scheduled repeat [OK]
Quick Trick: Jobs run once; CronJobs run on a schedule [OK]
Common Mistakes:
  • Confusing Job as repeating task
  • Thinking CronJob runs only once
  • Mixing up Job with long-running services

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes