Challenge - 5 Problems
Batch Processing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Output of a Kubernetes Job status command
What is the output of the following command after the Job completes successfully?
kubectl get jobs batch-job -o jsonpath='{.status.succeeded}'Attempts:
2 left
💡 Hint
The .status.succeeded field shows how many pods completed successfully.
✗ Incorrect
When a Kubernetes Job finishes successfully, the .status.succeeded field shows the count of successful pods, usually 1 for a single-run Job.
🧠 Conceptual
intermediate1:30remaining
Understanding CronJob schedule format
Which of the following CronJob schedule strings runs a job every day at 3:30 AM?
Attempts:
2 left
💡 Hint
Cron format is: minute hour day month weekday
✗ Incorrect
The schedule '30 3 * * *' means at minute 30 of hour 3 every day.
❓ Configuration
advanced2:30remaining
Correct YAML for a Kubernetes Job with restartPolicy
Which YAML snippet correctly defines a Kubernetes Job with a pod restart policy of 'Never'?
Attempts:
2 left
💡 Hint
The restartPolicy must be under spec.template.spec and set to 'Never' for Jobs.
✗ Incorrect
In Kubernetes Jobs, restartPolicy is set inside the pod template spec. 'Never' means pods won't restart on failure.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting a CronJob that never runs
A CronJob is created with schedule '0 25 * * *'. What is the likely reason it never runs?
Attempts:
2 left
💡 Hint
Check the valid ranges for cron schedule fields.
✗ Incorrect
Cron schedules use 0-23 for hours. '25' is invalid, so the job never triggers.
🔀 Workflow
expert3:00remaining
Order the steps to create and verify a Kubernetes CronJob
Put these steps in the correct order to create and verify a Kubernetes CronJob that runs a batch task every hour.
Attempts:
2 left
💡 Hint
Think about writing, applying, then checking status and logs.
✗ Incorrect
First write the manifest, then apply it, then check status, then verify pods and logs.