Courseiva
KCSA
Kubernetes Security FundamentalshardMultiple ChoiceObjective-mapped

KCSA Kubernetes Security Fundamentals Practice Question

An external identity provider (OIDC) is integrated with your Kubernetes cluster. You want to restrict a group named 'contractors' so they can only view pods in the 'staging' namespace. Which configuration correctly maps this requirement?

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

A ClusterRole granting pod read access bound via a RoleBinding in the 'staging' namespace to the subject kind 'Group' with name 'contractors'.

A ClusterRole providing read access to pods, combined with a RoleBinding in the 'staging' namespace referencing the OIDC group 'contractors'.

Answer analysis

Option-by-option breakdown

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

  • A ClusterRole granting pod read access bound via a RoleBinding in the 'staging' namespace to the subject kind 'Group' with name 'contractors'.

    Why this is correct

    Binding a ClusterRole via a RoleBinding scopes the permissions strictly to the target namespace for the specified OIDC group.

  • A Namespace-scoped ServiceAccount configured with an OIDC JWT issuer URL.

    Why it's wrong here

    ServiceAccounts are for workloads, whereas OIDC integration maps human users via tokens.

  • A Role in the 'staging' namespace bound via a ClusterRoleBinding to the 'contractors' group.

    Why it's wrong here

    A ClusterRoleBinding grants cluster-wide permissions and cannot be paired with a namespace-scoped Role.

  • An OIDC webhook configuration in the kube-apiserver specifying namespace boundaries.

    Why it's wrong here

    OIDC handles authentication (who you are), while Kubernetes RBAC handles authorization (what you can do).

About these practice questions

This KCSA question is part of Courseiva's 320-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official CNCF / Linux Foundation exam blueprint

This KCSA practice question is part of Courseiva's free CNCF / Linux Foundation 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 KCSA exam.