Courseiva
Container Orchestration →easyMultiple Choice

KCNA Container Orchestration Practice Question

What is the purpose of the 'kubectl scale' command?

⚠ Common exam trap

Candidates often confuse 'kubectl scale' (changing replica count) with 'kubectl set image' or 'kubectl rollout' (updating pod template).

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

✓

To change the number of replicas in a Deployment

The 'kubectl scale' command is used to change the number of replicas in a Deployment, StatefulSet, ReplicaSet, or ReplicationController. This allows you to horizontally scale the application by increasing or decreasing the desired replica count, which the controller then reconciles by creating or terminating pods.

Answer analysis

Option-by-option breakdown

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

  • ✗

    To update the container image of a Deployment

    Why it's wrong here

    Updating a container image is performed by `kubectl set image` (or by editing the Deployment spec), which patches the pod template and triggers a rolling update. `kubectl scale` only changes the `replicas` field. The tempting overlap is that both mutate a Deployment, so `kubectl set image` would be correct when asked how to roll out a new image version.

  • ✗

    To delete a resource

    Why it's wrong here

    kubectl scale changes the desired replica count; it removes no resources. Deletion is handled by kubectl delete, which would be the correct command when decommissioning a Deployment, pod or service that is no longer required.

  • ✗

    To view the logs of a pod

    Why it's wrong here

    kubectl scale adjusts the replica count of a Deployment, ReplicaSet or StatefulSet; it does not retrieve container output. Log viewing is performed by kubectl logs, which would be the correct command when diagnosing a crashing or misbehaving pod.

  • ✓

    To change the number of replicas in a Deployment

    Why this is correct

    kubectl scale adjusts the replica count declared in a Deployment, StatefulSet or ReplicaSet, letting operators increase or decrease running Pod instances to match load. Changing replicas in a Deployment is precisely the mechanism the command provides for horizontal capacity adjustment.

About these practice questions

Courseiva writes every KCNA question from scratch — 930 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 KCNA 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 KCNA exam.