Courseiva
mediumMultiple ChoiceObjective-mapped

CKS Kubelet authentication Practice Question

Which flag must be set on the kubelet to prevent it from using the default namespace for pods and to enforce that pods only use namespaces that match the node's assigned namespace?

⚠ Common exam trap

A common trap is assuming that a specific kubelet flag exists for namespace enforcement. In reality, no such flag exists; namespace restrictions are enforced by the API server's NodeRestriction admission plugin, not by kubelet flags.

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

--authentication-token-webhook=true

The kubelet does not have a flag to directly enforce that pods only use namespaces matching the node's assigned namespace. Namespace enforcement for pods on a node is part of the NodeRestriction admission plugin on the API server, which restricts kubelet's ability to only update pods bound to its node. None of the listed kubelet flags provide this functionality. --authentication-token-webhook=true enables token authentication but does not enforce namespace restrictions.

Answer analysis

Option-by-option breakdown

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

  • --protect-kernel-defaults=true

    Why it's wrong here

    --protect-kernel-defaults is a kubelet flag for kernel tuning, unrelated to namespace enforcement.

  • --namespace-default=restricted

    Why it's wrong here

    --namespace-default is not a valid kubelet flag.

  • --authentication-token-webhook=true

    Why this is correct

    --authentication-token-webhook enables token authentication, not namespace enforcement.

  • --anonymous-auth=false

    Why it's wrong here

    --anonymous-auth disables anonymous requests, but does not enforce namespace restrictions.

About these practice questions

Courseiva writes every CKS question from scratch — 114 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 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.