← All CKA Flashcard Decks

Security Flashcards

5 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 5 Security flashcards as text
  1. What is the primary purpose of Role-Based Access Control (RBAC) in Kubernetes?

    Answer: To control access to Kubernetes resources based on user roles.

    Role-Based Access Control (RBAC) is a method of regulating access to computer or network resources based on the roles of individual users within an enterprise. In Kubernetes, RBAC allows administrators to define granular permissions (Roles) and then bind those permissions to users or ServiceAccounts (RoleBindings), ensuring that only authorized entities can perform specific actions on cluster resources. This is fundamental for securing the Kubernetes API.

  2. Which Kubernetes resource is used to securely store sensitive data like API keys and passwords?

    Answer: Secret

    Secrets are Kubernetes objects designed to store sensitive information, such as passwords, OAuth tokens, and SSH keys. They provide a more secure way to manage this data than putting it directly into Pod definitions or ConfigMaps. Secrets can be mounted as files into Pods or exposed as environment variables, allowing applications to access sensitive data without hardcoding it.

  3. How can you enforce API access policies for specific users or groups in Kubernetes?

    Answer: By configuring Role and RoleBinding objects.

    Roles define a set of permissions within a specific namespace, while ClusterRoles define permissions across the entire cluster. RoleBindings then grant the permissions defined in a Role (or ClusterRole) to a specific user, group, or ServiceAccount. This combination allows for precise control over who can access and manipulate Kubernetes resources, enforcing API access policies.

  4. What is the purpose of a Network Policy in Kubernetes?

    Answer: To control Pod communication at the network level.

    Network Policies are Kubernetes resources that specify how groups of Pods are allowed to communicate with each other and with other network endpoints. They enable network segmentation and security by defining rules for ingress and egress traffic, acting as a firewall for Pods. This helps to isolate applications and prevent unauthorized communication within the cluster.

  5. Which of the following ensures that Pods run with restricted permissions in Kubernetes?

    Answer: Security Context

    A Security Context defines privilege and access control settings for a Pod or an individual container within a Pod. It allows you to specify parameters like the user ID (UID) and group ID (GID) under which the container's process runs, whether it can run as root, and other Linux capabilities. This ensures that Pods operate with the principle of least privilege, enhancing security.

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