Courseiva

CKAD Application Design and Build Practice Question

Which of the following is the correct apiVersion for a CronJob in Kubernetes v1.29?

⚠ Common exam trap

The trap here is that candidates may remember older Kubernetes versions where CronJob was still in beta (batch/v1beta1) and fail to update their knowledge to the stable batch/v1, or they might confuse the apiVersion format with a non-existent cronjob/v1.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

batch/v1

In Kubernetes v1.29, the correct apiVersion for a CronJob is batch/v1, as CronJob has been stable since v1.21. Option D is correct because batch/v1 is the stable API version for CronJob resources in this release.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    v1

    Why it's wrong here

    The bare apiVersion `v1` refers to the core API group (e.g., Pods, Services, ConfigMaps). CronJob is not a core resource; it belongs to the batch API group, so the server rejects `v1` as the apiVersion for a CronJob manifest. A valid apiVersion must include the API group for resources outside the core group.

  • ✗

    cronjob/v1

    Why it's wrong here

    The string `cronjob/v1` is not a valid apiVersion because the format is `<api-group>/<version>`, and `cronjob` is the resource kind, not an API group. The API server interprets the part before the slash as the group name, so this would look for a non-existent group named 'cronjob'. The correct group for CronJob is `batch`.

  • ✗

    batch/v1beta1

    Why it's wrong here

    While `batch/v1beta1` was the apiVersion used for CronJob in older Kubernetes releases, it is deprecated and was completely removed in Kubernetes v1.25. On any modern cluster, specifying `batch/v1beta1` returns an error because the API endpoint no longer exists. For Kubernetes v1.21 and later, the stable `batch/v1` is the only appropriate version.

  • ✓

    batch/v1

    Why this is correct

    Since Kubernetes v1.21, CronJob is available as a stable API with the apiVersion `batch/v1`. The apiVersion correctly includes the API group `batch` (which also contains Job) and the stable version `v1`, ensuring the manifest is accepted by the API server. This is the recommended and currently supported version for creating CronJob resources.

About these practice questions

This CKAD question is part of Courseiva's 826-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CKAD practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CKAD exam.