← All CKA Flashcard Decks

Security Flashcards

7 cards from real CKA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Security flashcards as text
  1. Which admission controller enforces Pod Security Standards when you label a namespace with `pod-security.kubernetes.io/enforce: restricted`?

    Answer: PodSecurity

    The PodSecurity admission controller (GA in 1.25) enforces Pod Security Standards using namespace labels.

  2. A ServiceAccount token mounted in a pod by default has what scope of access in Kubernetes 1.24+?

    Answer: No RBAC permissions unless explicitly granted

    ServiceAccounts have no permissions by default; RBAC must explicitly grant them roles.

  3. What flag on a container's SecurityContext prevents privilege escalation via setuid binaries?

    Answer: allowPrivilegeEscalation: false

    `allowPrivilegeEscalation: false` sets the no_new_privs flag, blocking setuid/setgid escalation.

  4. Which kubeconfig field stores the cluster's certificate authority data used by kubectl to verify the API server?

    Answer: certificate-authority-data

    `certificate-authority-data` holds the base64-encoded CA bundle that kubectl uses to trust the API server's TLS certificate.

  5. An attacker exploits a container and tries to read `/run/secrets/kubernetes.io/serviceaccount/token`. What is this file?

    Answer: A projected ServiceAccount JWT used to authenticate to the API server

    Kubernetes mounts a projected ServiceAccount JWT at that path, which pods use to authenticate API requests.

  6. Which Kubernetes object can restrict egress traffic from pods in a namespace to only port 5432 on a specific database pod?

    Answer: NetworkPolicy

    NetworkPolicy objects control pod-level ingress and egress traffic using label selectors and port rules.

  7. When using `kubectl certificate approve`, what signer must be used for a kubelet serving certificate CSR?

    Answer: kubernetes.io/kubelet-serving

    The `kubernetes.io/kubelet-serving` signer is used for kubelet serving certificates that authenticate the kubelet's HTTPS endpoint.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. training.linuxfoundation.org — Test delivery, eligibility, fees, time limit, exam information · verified Nov 2026
  2. docs.linuxfoundation.org — Passing score, renewal, score release, score validity, test dates · verified Oct 2026