Question 557 of 1,005

Quick Answer

The answer is X.509 client certificates, which are one of three valid authentication methods to the Kubernetes API server. This method works by having the API server validate a TLS certificate presented by the client against a trusted Certificate Authority, typically configured via the --client-ca-file flag on the API server. Service account bearer tokens are another valid method, where a signed JWT token is automatically mounted into pods at /var/run/secrets/kubernetes.io/serviceaccount/token and validated through the TokenReview API. On the CKA exam, this question tests your understanding of the authentication layer before authorization occurs, and a common trap is confusing authentication methods like HTTP basic auth or static token files, which are deprecated or less common. Remember the memory tip: “Certs, Tokens, and OpenID” — the three pillars of API server authentication.

CKA Practice Question: Cluster Architecture, Installation and Configuration

This CKA practice question tests your understanding of cluster architecture, installation and configuration. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.

Which THREE of the following are valid methods to authenticate to the Kubernetes API server? (Select 3)

Question 1hardmulti select
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

Service account bearer tokens

Service account bearer tokens are a valid authentication method to the Kubernetes API server. When a pod is associated with a service account, Kubernetes automatically mounts a token into the pod at /var/run/secrets/kubernetes.io/serviceaccount/token. This token is a signed JWT that the API server validates against the TokenReview API, allowing the pod to authenticate as that service account.

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.

  • Service account bearer tokens

    Why this is correct

    Used by pods to authenticate.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Anonymous requests

    Why it's wrong here

    While possible, it's not a recommended authentication method and is often disabled.

  • Static token file

    Why this is correct

    Tokens from a static file can be used for authentication.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Password file with usernames and passwords

    Why it's wrong here

    Kubernetes does not support password file authentication; it uses tokens or certificates.

  • X.509 client certificates

    Why this is correct

    Common authentication method.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

CNCF often tests the misconception that static token files and password files are equivalent, but static token files (option C) are valid while password files (option D) were deprecated and removed, so candidates must remember the deprecation timeline.

Detailed technical explanation

How to think about this question

Bearer tokens from service accounts are validated using the TokenReview API, which calls the kube-apiserver's authentication webhook or the built-in service account token controller. The tokens are signed with the API server's private key and include the service account name, namespace, and expiration. In real-world scenarios, if a service account token is compromised, an attacker can impersonate that service account until the token expires or is rotated.

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 CKA 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 CKA 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 CKA 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 CKA question test?

Cluster Architecture, Installation and Configuration — This question tests Cluster Architecture, Installation and Configuration — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Service account bearer tokens — Service account bearer tokens are a valid authentication method to the Kubernetes API server. When a pod is associated with a service account, Kubernetes automatically mounts a token into the pod at /var/run/secrets/kubernetes.io/serviceaccount/token. This token is a signed JWT that the API server validates against the TokenReview API, allowing the pod to authenticate as that service account.

What should I do if I get this CKA 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

Same concept, more angles

2 more ways this is tested on CKA

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Which TWO of the following are valid methods to authenticate to the Kubernetes API server?

medium
  • A.Client certificate
  • B.ServiceAccount token
  • C.Secrets
  • D.RBAC
  • E.Node authorization

Why A: Client certificate authentication (option A) is valid because the Kubernetes API server can be configured with TLS to require clients to present a valid X.509 certificate signed by the cluster's Certificate Authority (CA). The API server verifies the certificate's Common Name (CN) or Subject Alternative Name (SAN) against the user identity, and the 'organizational unit' (O) field can map to Kubernetes groups. This is a core authentication method used by tools like kubectl and kubelet.

Variation 2. Which THREE are valid methods to authenticate a user to the Kubernetes API server? (Select 3)

hard
  • A.Bearer tokens (e.g., service account tokens)
  • B.Username/password via HTTP Basic Auth
  • C.Client certificates
  • D.Static password file
  • E.OpenID Connect (OIDC) tokens

Why A: Bearer tokens, such as those used by service accounts, are a valid authentication method for the Kubernetes API server. The API server validates the token against the token authentication file or, for service accounts, against the TokenReview API, which verifies the token's validity and associated identity.

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 CKA 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 CKA exam.