
Certified Kubernetes Administrator (CKA)
Domain 5Objective 2
Define and Enforce Network Policies CKA Practice Questions (Page 1)
Part of the Servicing and Networking domain, which accounts for 20% of the CKA exam. Linux Foundation does not publish an official question count, but from its 120-minute exam (~50–80 total, ~10–16 in this domain), expect 2–3 from this objective — we provide 12 practice questions to prepare you well beyond it. (estimate)
12questions here
3free pages
7concepts
20%of the exam
Questions 1–5
- 1
You are securing a Kubernetes cluster. The security team requires that no pod can initiate outbound connections to any destination by default, but you must allow pods in the 'frontend' namespace to reach the Kubernetes API server (which has the label 'app=kube-apiserver' and is in the 'kube-system' namespace). You create a NetworkPolicy in the 'frontend' namespace with an egress rule that selects all pods and allows traffic to the API server using a namespaceSelector. However, you notice that pods in 'frontend' can still reach other destinations. What is the most likely reason?
Select an answer first - 2
What is the primary purpose of a Kubernetes NetworkPolicy?
Select an answer first - 3
What is a prerequisite for NetworkPolicy enforcement in a Kubernetes cluster?
Select an answer first - 4
What is the correct semantics of the `ipBlock` field in a NetworkPolicy rule?
Select an answer first - 5
You need to allow ingress traffic to pods with label 'app=web' from pods with label 'tier=frontend' in the same namespace, and also from pods in the 'monitoring' namespace. You create a NetworkPolicy with two ingress rules: one with a podSelector and one with a namespaceSelector. After applying the policy, you notice that traffic from the 'monitoring' namespace is allowed, but traffic from the 'tier=frontend' pods is not. What is the most likely reason?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Linux Foundation. “CKA” is a trademark of its owner, used for identification only.