Courseiva

CKAD Application Design and Build Practice Question

Which Kubernetes API version is used for creating a CronJob?

⚠ Common exam trap

The trap here is that candidates may recall the older batch/v1beta1 API version from earlier Kubernetes versions or confuse CronJob with other resources like Deployments (apps/v1), leading them to select a deprecated or incorrect API group.

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

CronJob is a Kubernetes resource that was promoted to a stable API version in Kubernetes 1.21. The correct API version for creating a CronJob is batch/v1, as it is the current stable version. The batch/v1beta1 version is deprecated and removed in Kubernetes 1.25, so batch/v1 is the correct choice for CKAD exam scenarios.

Answer analysis

Option-by-option breakdown

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

  • ✗

    batch/v1beta1

    Why it's wrong here

    The batch/v1beta1 API version was the original way to define CronJobs, but it has been deprecated since Kubernetes 1.21 and is no longer served in 1.25 or later. Using it on a modern cluster causes your manifest to be rejected by the API server because the version has been removed, so it cannot create a CronJob in current Kubernetes. Always specify batch/v1 for new and existing CronJob definitions.

  • ✓

    batch/v1

    Why this is correct

    batch/v1 is the stable API version for CronJob, promoted to GA in Kubernetes 1.21. It is the only currently served version, so any CronJob manifest must use apiVersion: batch/v1, kind: CronJob. This indicates that the resource is a controller in the batch group that creates Jobs on a schedule.

  • ✗

    cron/v1

    Why it's wrong here

    There is no such API group as cron in Kubernetes; the API groups are defined in the core or registered extensions like batch, apps, and networking. A manifest with apiVersion: cron/v1 and kind: CronJob is invalid because the API server has no route for that group, resulting in an error like no matches for kind CronJob in version cron/v1. The Cron part of the resource name does not translate into an API group.

  • ✗

    apps/v1

    Why it's wrong here

    apps/v1 is a workload API group used for higher-level controllers such as Deployments, StatefulSets, DaemonSets, and ReplicaSets, none of which cover scheduled execution. CronJob is specifically part of the batch API group because, like Job, it exists to create one or more pods for finite, completable work rather than long-running services. Using apiVersion: apps/v1 with kind: CronJob will fail validation since apps/v1 does not define a CronJob resource.

Go deeper

Related to this question

About these practice questions

Courseiva writes every CKAD question from scratch — 826 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.