Courseiva

CKS · domain

Cluster Setup

Cluster Setup is 15% of the CKS exam and covers hardening the Kubernetes control plane and worker nodes. You will perform live tasks in a terminal: applying NetworkPolicies, configuring API server admission controls, securing Ingress, and running kube-bench or CIS benchmark checks. Expect hands-on editing of manifests and verifying behaviour with kubectl rather than multiple-choice recall.

8 questions2 easy4 medium2 hard

Focused practice

Practice Cluster Setup questions

Scored sessions drawing only from this domain — pick a length below.

What this domain covers

What to know about Cluster Setup

Apply NetworkPolicies, configure API server admission plugins, secure Ingress with TLS, and run kube-bench. The critical thing: verify your NetworkPolicy actually blocks traffic using kubectl exec between pods.

Creating NetworkPolicy objects to restrict pod ingress and egress by namespace, label, and port

Enabling and configuring admission controllers such as NodeRestriction and PodSecurity admission on the API server

Hardening Ingress with TLS, and restricting access using NetworkPolicy or Ingress annotations

Running CIS benchmark tooling like kube-bench and remediating control plane and kubelet findings

Watch out for

Common Cluster Setup exam traps

  • ▸Writing a NetworkPolicy that selects pods but forgets a matching egress or ingress rule, leaving traffic default-allowed in the other direction
  • ▸Editing API server flags in a static pod manifest but not restarting the kubelet or verifying the change took effect
  • ▸Assuming a default-deny NetworkPolicy blocks all traffic cluster-wide, when it only affects pods selected in that namespace

Question index

All Cluster Setup questions (8)

Click any question to see the full explanation, or start a practice session above.

1

A platform team runs a multi-tenant cluster and wants to enforce that all newly created Pods in the 'payments' namespace must run as non-root and must drop all Linux capabilities. The team decides to use a Pod Security Admission (PSA) label on the namespace. Which label value should they apply to the namespace to enforce these restrictions while still allowing other namespaces to remain unrestricted?

Hard
2

A security audit reveals that the kube-apiserver is using the default insecure port 8080 on a production cluster. Which is the most secure and recommended remediation?

Medium
3

A team needs to set up a highly available Kubernetes control plane across three availability zones. What is the minimum number of etcd members required to achieve fault tolerance against one zone failure?

Easy
4

Match each Kubernetes admission controller to its role in security.

Medium
5

A cluster is using kubeadm and the control plane components are running as static pods. Where are the static pod manifests for the API server located by default?

Easy
6

A cluster administrator wants to enforce that all newly created pods in the 'production' namespace run with a read-only root filesystem. The cluster uses Kubernetes 1.25+ and the Pod Security Admission controller is enabled with the baseline and restricted profiles. Which namespace label must be applied to enforce the restricted policy?

Hard
7

Order the steps to rotate a Kubernetes API server certificate.

Medium
8

A security team wants to ensure that all communication between the kubelet and the API server is encrypted. Which flag must be set on the kubelet to enforce this?

Medium

Frequently asked questions

What does the Cluster Setup domain cover on the CKS exam?
Apply NetworkPolicies, configure API server admission plugins, secure Ingress with TLS, and run kube-bench. The critical thing: verify your NetworkPolicy actually blocks traffic using kubectl exec between pods.
How many questions are in this domain?
This page lists all 8 Cluster Setup questions in the CKS question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Cluster Setup questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
cncf-cks CNCF-CKS cluster setup Practice Questions