- A
Enable RBAC authorization on etcd
etcd supports RBAC to control which users can perform operations.
- B
Disable the etcd API and use only the embedded etcd in control plane
Why wrong: Disabling the API is not a valid method; the API is needed for communication with the API server.
- C
Use firewall rules to limit access to etcd port 2379
Network-level restrictions can limit which hosts can connect to etcd.
- D
Use TLS client certificates to authenticate clients
etcd supports TLS client authentication to restrict access to clients with valid certificates.
- E
Encrypt etcd data at rest using EncryptionConfiguration
Why wrong: Encryption protects data confidentiality but does not restrict access to the etcd API.
Restrict etcd Access: TLS, RBAC, and Firewall Methods
This CKS practice question tests your understanding of cluster setup and hardening. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Which three of the following are valid methods to restrict access to etcd? (Choose three.)
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
Enable RBAC authorization on etcd
Option A is correct because etcd supports Role-Based Access Control (RBAC) natively since version 3.0. By enabling RBAC on etcd, you can define roles and permissions to restrict which users or processes can read or write to specific keys or prefixes. This is a direct method to secure the etcd datastore against unauthorized access.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Enable RBAC authorization on etcd
Why this is correct
etcd supports RBAC to control which users can perform operations.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Disable the etcd API and use only the embedded etcd in control plane
Why it's wrong here
Disabling the API is not a valid method; the API is needed for communication with the API server.
- ✓
Use firewall rules to limit access to etcd port 2379
Why this is correct
Network-level restrictions can limit which hosts can connect to etcd.
Related concept
Read the scenario before looking for a memorised answer.
- ✓
Use TLS client certificates to authenticate clients
Why this is correct
etcd supports TLS client authentication to restrict access to clients with valid certificates.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Encrypt etcd data at rest using EncryptionConfiguration
Why it's wrong here
Encryption protects data confidentiality but does not restrict access to the etcd API.
Common exam traps
Common exam trap: answer the scenario, not the keyword
CNCF often tests the distinction between access control (who can connect to etcd) and data protection (encryption at rest), leading candidates to incorrectly select encryption as a method to restrict access.
Detailed technical explanation
How to think about this question
etcd listens on port 2379 for client traffic (from kube-apiserver) and port 2380 for peer-to-peer traffic. TLS client certificates enforce mutual TLS (mTLS) authentication, where the server verifies the client's certificate against a trusted CA, ensuring only authenticated clients can connect. Firewall rules (e.g., iptables, cloud security groups) can restrict network access to port 2379 to only the kube-apiserver nodes, providing a network-layer isolation that complements TLS and RBAC.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A junior network technician can log in to a core router but cannot reach the enable prompt or configuration mode. The AAA server is authenticating the login — but the authorisation policy only grants privilege level 1, not 15. Authentication (who you are) is working; authorisation (what you can do) is not.
Quick reference
Access Control Model Comparison
| Model | Acronym | Who Controls Access? | Best For |
|---|---|---|---|
| Discretionary Access Control | DAC | Resource owner | Small teams, file shares |
| Mandatory Access Control | MAC | System / security labels | Classified govt / military |
| Role-Based Access Control | RBAC | Administrator (via roles) | Enterprise environments |
| Attribute-Based Access Control | ABAC | Policy engine (user + resource attributes) | Fine-grained, dynamic policies |
| Rule-Based Access Control | RuBAC | System rules / ACLs | Firewall rules, network ACLs |
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Cluster Setup and Hardening — study guide chapter
Learn the concepts, then practise the questions
- →
Cluster Setup and Hardening practice questions
Targeted practice on this topic area only
- →
All CKS questions
997 questions across all exam domains
- →
Certified Kubernetes Security Specialist CKS study guide
Full concept coverage aligned to exam objectives
- →
CKS practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related CKS practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Monitoring Logging and Runtime Security practice questions
Practise CKS questions linked to Monitoring Logging and Runtime Security.
Cluster Setup and Hardening practice questions
Practise CKS questions linked to Cluster Setup and Hardening.
System Hardening practice questions
Practise CKS questions linked to System Hardening.
Minimize Microservice Vulnerabilities practice questions
Practise CKS questions linked to Minimize Microservice Vulnerabilities.
Supply Chain Security practice questions
Practise CKS questions linked to Supply Chain Security.
Monitoring, Logging and Runtime Security practice questions
Practise CKS questions linked to Monitoring, Logging and Runtime Security.
Cluster Setup practice questions
Practise CKS questions linked to Cluster Setup.
Cluster Hardening practice questions
Practise CKS questions linked to Cluster Hardening.
CKS fundamentals practice questions
Practise CKS questions linked to CKS fundamentals.
CKS scenario practice questions
Practise CKS questions linked to CKS scenario.
CKS troubleshooting practice questions
Practise CKS questions linked to CKS troubleshooting.
Practice this exam
Start a free CKS practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this CKS question test?
Cluster Setup and Hardening — This question tests Cluster Setup and Hardening — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Enable RBAC authorization on etcd — Option A is correct because etcd supports Role-Based Access Control (RBAC) natively since version 3.0. By enabling RBAC on etcd, you can define roles and permissions to restrict which users or processes can read or write to specific keys or prefixes. This is a direct method to secure the etcd datastore against unauthorized access.
What should I do if I get this CKS question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
5 more ways this is tested on CKS
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Which TWO of the following are valid methods to restrict etcd access? (Choose two.)
easy- A.Use firewall rules to restrict access to etcd port 2379
- ✓ B.Use TLS client certificates for authentication
- ✓ C.Enable etcd RBAC
- D.Use etcd's built-in password authentication
- E.Set the --etcd-certfile flag on kube-apiserver
Why B: Option B is correct because etcd supports mutual TLS (mTLS) authentication, where the client (e.g., kube-apiserver) presents a client certificate signed by the etcd CA. This ensures that only authenticated clients can communicate with etcd, effectively restricting access. Option C is correct because etcd has its own Role-Based Access Control (RBAC) system, which can be enabled to restrict read/write operations to specific users or roles, providing fine-grained access control.
Variation 2. You need to restrict access to etcd so that only the API server can communicate with it. Which method should you use?
hard- ✓ A.Configure etcd with TLS client certificates and require authentication
- B.Set the etcd flag --peer-auto-tls=true
- C.Configure etcd to use RBAC with a role that allows only the API server
- D.Use a firewall rule to restrict access to etcd's port from the API server's IP
Why A: Option A is correct because etcd supports mutual TLS (mTLS) authentication, which requires clients to present a valid TLS certificate signed by a trusted CA. By configuring etcd with `--client-cert-auth=true` and providing the API server's client certificate, you ensure that only the API server (or any client with a valid certificate) can communicate with etcd. This is the recommended Kubernetes approach to restrict access to etcd, as it cryptographically verifies the identity of the client.
Variation 3. Which THREE of the following are valid methods to restrict access to etcd in a Kubernetes cluster? (Select THREE)
hard- ✓ A.Use TLS certificates for client and server authentication
- ✓ B.Enable RBAC authorization in etcd
- C.Use simple username and password authentication
- D.Put etcd on the same network as the API server without firewall
- E.Encrypt etcd data at rest
Why A: Restricting access to etcd means controlling which clients can connect and what operations they can perform. Option A is correct because mutual TLS (mTLS) authentication ensures that only clients with a valid certificate (like kube-apiserver) can establish a connection to etcd. Option B is correct because etcd supports RBAC authorization, which limits the operations that an authenticated client can perform on etcd keys. Option C is incorrect because etcd does not support simple username/password authentication. Option D is incorrect because placing etcd on the same network without a firewall does not restrict access; it may even increase risk. Option E is incorrect because encrypting data at rest protects confidentiality but does not restrict who can read or write to etcd; it is a separate security control. Note: Although the stem asks to 'Select THREE', only two of the given options are valid methods to restrict access to etcd. The third correct method (e.g., network policies or firewall rules) is not listed among the choices.
Variation 4. Which TWO of the following are valid ways to restrict access to etcd? (Select 2)
medium- ✓ A.Enable RBAC on etcd by setting --auth-token=jwt and configuring roles.
- B.Use --peer-auto-tls=true to auto-generate certificates.
- C.Use --admission-control=NodeRestriction on etcd.
- ✓ D.Use TLS client certificates for authentication.
- E.Set --client-cert-auth=false to disable authentication.
Why A: Option A is correct because etcd supports Role-Based Access Control (RBAC) when you enable it with the `--auth-token=jwt` flag and then configure roles and users via `etcdctl`. This allows you to restrict which clients can read or write to the etcd key-value store, which is critical for securing Kubernetes cluster state. Without RBAC, any client that can reach the etcd port can access all secrets and configuration data.
Variation 5. Which THREE of the following are valid ways to restrict access to etcd? (Select 3)
hard- ✓ A.Enable etcd RBAC to restrict read/write access
- B.Use HTTP instead of HTTPS
- C.Disable client authentication for simplicity
- ✓ D.Use firewall rules to restrict network access to etcd
- ✓ E.Use TLS client certificates for authentication
Why A: Option A is correct because etcd supports Role-Based Access Control (RBAC) that allows you to define roles and permissions to restrict read and write access to keys. By enabling etcd RBAC, you can enforce fine-grained authorization, ensuring that only authenticated and authorized clients (e.g., the Kubernetes API server) can perform specific operations on etcd data.
Keep practising
More CKS practice questions
- Which flag is used to restrict the kubelet's ability to modify node status and pods?
- A Falco rule has priority `WARNING` and output: `Sensitive file opened (user=%user.name command=%proc.cmdline file=%fd.n…
- Falco detects a shell being opened inside a container. Which Falco rule field is used to specify the syscall condition f…
- A security audit reveals that a ServiceAccount named 'monitor' has a ClusterRoleBinding to the cluster-admin role. What…
- Match each Kubernetes security component to its description.
- Match each Kubernetes certificate type to its usage.
Last reviewed: Jun 30, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.