Bird
0
0

You created a CronJob but it never runs. Which is the most likely cause?

medium📝 Troubleshoot Q6 of 15
Kubernetes - Scheduling
You created a CronJob but it never runs. Which is the most likely cause?
AThe Job template is missing containers
BThe CronJob name is too long
CThe restartPolicy is set to Always
DThe schedule field is invalid or incorrectly formatted
Step-by-Step Solution
Solution:
  1. Step 1: Check common reasons for CronJob not running

    Invalid or malformed schedule prevents CronJob from triggering.
  2. Step 2: Evaluate other options

    Missing containers or restartPolicy issues cause pod failures but not no runs; name length rarely blocks execution.
  3. Final Answer:

    The schedule field is invalid or incorrectly formatted -> Option D
  4. Quick Check:

    Invalid schedule = CronJob won't run [OK]
Quick Trick: Always validate CronJob schedule syntax first [OK]
Common Mistakes:
  • Ignoring schedule format errors
  • Assuming restartPolicy blocks execution
  • Blaming name length for failures

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes