Question 273 of 997
Cluster Setup and HardeninghardMultiple ChoiceObjective-mapped

CKS Cluster Setup and Hardening Practice Question

This CKS practice question tests your understanding of cluster setup and hardening. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A Kubernetes cluster is experiencing issues where pods cannot pull images from a private container registry. The registry requires authentication via imagePullSecrets. The cluster has a pod running with the following spec snippet. What is the likely cause of the failure?

Question 1hardmultiple choice
Full question →

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

The pod does not set serviceAccountName to the service account that has the imagePullSecrets

The pod spec snippet shows that the pod does not have a `serviceAccountName` field set, meaning it uses the default service account in the namespace. The default service account typically does not have `imagePullSecrets` attached. Even if the secret 'regcred' exists, the pod cannot use it unless the service account associated with the pod has that secret linked via `imagePullSecrets` in the service account definition. Therefore, the pod fails to authenticate to the private registry.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • The secret 'regcred' does not exist in the namespace

    Why it's wrong here

    The secret is assumed to exist if referenced.

  • The service account lacks RBAC permissions to use the secret

    Why it's wrong here

    Service accounts can reference secrets without extra RBAC.

  • The pod does not set serviceAccountName to the service account that has the imagePullSecrets

    Why this is correct

    Without explicit service account, pod uses 'default' SA which has no imagePullSecrets.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The imagePullSecret is of type 'Opaque' instead of 'kubernetes.io/dockerconfigjson'

    Why it's wrong here

    The type should be dockerconfigjson, but if it's correct, it's not the issue.

Common exam traps

Common exam trap: answer the scenario, not the keyword

CNCF often tests the nuance that simply referencing a secret in a pod spec via `imagePullSecrets` is not enough; the pod must be associated with a service account that has that secret attached, or the pod must explicitly list the secret in its own `imagePullSecrets` field.

Detailed technical explanation

How to think about this question

When a pod does not specify `serviceAccountName`, it inherits the `default` service account in its namespace. The kubelet uses the `imagePullSecrets` from the pod's service account to authenticate to private registries. If the default service account has no `imagePullSecrets`, the pod cannot pull images even if a secret exists in the namespace. This is a common misconfiguration because users often create secrets but forget to attach them to the service account or set the pod's service account explicitly.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the CKS exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related CKS practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CKS practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CKS question test?

Cluster Setup and Hardening — This question tests Cluster Setup and Hardening — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The pod does not set serviceAccountName to the service account that has the imagePullSecrets — The pod spec snippet shows that the pod does not have a `serviceAccountName` field set, meaning it uses the default service account in the namespace. The default service account typically does not have `imagePullSecrets` attached. Even if the secret 'regcred' exists, the pod cannot use it unless the service account associated with the pod has that secret linked via `imagePullSecrets` in the service account definition. Therefore, the pod fails to authenticate to the private registry.

What should I do if I get this CKS question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This CKS 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 CKS exam.