Conquer the CKAD Challenge 2025: Unleash Your Kubernetes Power!

Question: 1 / 400

How do you restrict access to certain resources in Kubernetes?

By using Tag-Based Access Control (TBAC)

By implementing Role-Based Access Control (RBAC)

Restricting access to certain resources in Kubernetes is effectively achieved through Role-Based Access Control (RBAC). RBAC allows administrators to define roles that grant specific permissions to users or groups concerning resources within the Kubernetes cluster. This enables fine-grained control over who can perform what actions on which resources, thereby enhancing security and governance within the cluster.

With RBAC, the roles can be defined to include permissions for various operations such as get, list, create, update, and delete on specific resources like pods, services, or deployments. Furthermore, these roles can be bound to individual users or service accounts, allowing for tailored access depending on the needs of different users or applications. This approach helps ensure that users have the minimal necessary permissions required to perform their duties, thereby following the principle of least privilege.

In contrast, Tag-Based Access Control (TBAC) is not a recognized method in Kubernetes for managing access control. Node affinity rules are related to scheduling pods on specific nodes based on labels but do not govern user access to resources. Network Policies are crucial for controlling traffic between pods and enforcing network security but do not manage user permissions or access to resources directly.

Get further explanation with Examzify DeepDiveBeta

By setting node affinity rules

By using Network Policies

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy