- Home
- All questions
- Networking
CKA study material: Networking
147 questions of the 1000 in the CKA — Certified Kubernetes Administrator quiz. Each opens with its answer, the reasoning and where that is written down.
Challenge yourself on this topic → Study as cards
The questions
- 12. Under what circumstance can nodes run without kube-proxy?
- 13. How does kube-proxy handle Service traffic when the operating system offers a packet filtering layer?
- 16. Which addon does the documentation treat as effectively mandatory in every cluster?
- 33. Which CNI specification version does the Kubernetes project recommend a plugin be compatible with?
- 34. What changed about CNI plugin management in Kubernetes 1.24? Choose two.
- 35. Besides the CNI plugin, what must the container runtime provide for every Pod sandbox?
- 36. A Pod using hostPort gets no traffic on the node's port. Which CNI configuration setting is likely missing?
- 63. What must be true of the Pod network CIDR chosen for a cluster?
- 65. How many Pod networks may be installed in one cluster?
- 84. Which kernel setting commonly has to be enabled by hand before cluster networking works?
- 140. What kind of Service does a StatefulSet use to control its Pods' DNS domain?
- 209. Which Service type performs no proxying and simply resolves to another DNS name?
- 213. A Service sets internalTrafficPolicy to Local. What happens to traffic from a Pod on a node with no local endpoints?
- 234. A cluster's Service range is 10.96.0.0/16. Which address do many installers give the DNS Service by convention?
- 241. Which proxy modes are available to kube-proxy on a Linux node? Choose two.
- 242. How does kube-proxy in iptables mode choose a backend Pod for a new connection?
- 243. What is the recommended replacement for kube-proxy's deprecated ipvs mode?
- 244. Which kernel version does kube-proxy's nftables mode require?
- 245. Why is it recommended to name kube-proxy's mode explicitly in its configuration?
- 246. Which Service field sends a given client's connections to the same Pod each time?
- 251. A namespace holds no NetworkPolicy objects. What traffic is permitted to and from its Pods?
- 252. When does a Pod become isolated for egress?
- 253. A NetworkPolicy restricts inbound traffic to a set of Pods. What is the effect on their outbound traffic?
- 254. Two NetworkPolicies select the same Pod with different ingress rules. What traffic is allowed?
- 255. What must hold for a connection from one Pod to another to be allowed? Choose two.
- 256. A NetworkPolicy allows an inbound connection. Must a matching rule also permit the reply?
- 257. A Pod is isolated for ingress by a policy with no matching rule. Which traffic still reaches it?
- 258. How is a namespace-wide default-deny for ingress written?
- 259. A NetworkPolicy omits policyTypes but contains egress rules. Which types are set?
- 260. Which peer selectors may a NetworkPolicy rule use? Choose two.
- 261. A policy names namespaceSelector and podSelector inside a single from entry. What does it match?
- 262. A NetworkPolicy is applied successfully but traffic is not restricted at all. What is the likeliest cause?
- 263. Which protocols does NetworkPolicy cover? Choose two.
- 264. Which field lets one NetworkPolicy rule cover a range of ports?
- 265. How does a NetworkPolicy target a namespace by its name?
- 266. A Pod in the test namespace cannot resolve a Service called data that lives in prod. Which two statements explain it? Choose two.
- 267. Which component writes each Pod's /etc/resolv.conf?
- 268. What does the DNS A record for a normal, non-headless Service resolve to?
- 269. A client resolves a headless Service's DNS name. What comes back?
- 270. Which record type does cluster DNS create for a Service's named ports?
- 271. What is a Pod's hostname by default?
- 272. A Pod sets hostname foo and subdomain bar in namespace my-namespace. What is its FQDN?
- 273. For DNS to publish records for a Pod's subdomain, what else must exist?
- 274. Which dnsPolicy is used when a Pod does not set one?
- 275. What does dnsPolicy Default actually do?
- 276. A hostNetwork Pod with dnsPolicy ClusterFirst cannot resolve Service names. What should be set?
- 277. A Pod sets dnsPolicy None. Where must its nameservers come from?
- 278. Which are among the four networking problems Kubernetes addresses? Choose two.
- 279. How does Kubernetes avoid making applications coordinate host port numbers?
- 280. Which components assign the cluster's non-overlapping address ranges? Choose two.
- 281. Which addresses count toward the network model in a dual-stack cluster?
- 282. Why is the cluster DNS Service still named kube-dns when CoreDNS implements it?
- 283. Which kubelet flags configure a container's DNS? Choose two.
- 284. What does the kubelet's --resolv-conf flag control? Choose two.
- 285. Where is CoreDNS configured in a standard cluster?
- 286. Which zones does the default Corefile's kubernetes plugin serve? Choose two.
- 287. Where does the default Corefile send queries that fall outside the cluster zones?
- 288. Which record type does cluster DNS use for reverse lookups of Pod and Service addresses?
- 289. Which control plane ports are correct? Choose two.
- 290. Which port serves the kubelet API on both control-plane and worker nodes?
- 291. A load balancer's health check targets a node port and fails. Which kube-proxy port serves health checks?
- 292. External clients cannot reach a NodePort Service through a firewall. Which range must be open?
- 293. Which two statements about Kubernetes' default ports are correct? Choose two.
- 294. Where does a Service's default address family come from?
- 295. How do PreferDualStack and RequireDualStack differ? Choose two.
- 296. Which part of a Service's ipFamilies may be changed after creation?
- 297. On a dual-stack Service, which field is authoritative for the addresses assigned?
- 298. A Service is created on a dual-stack cluster without setting ipFamilyPolicy. What is it?
- 299. What does a label selector's comma mean, and what operators are set-based? Choose two.
- 300. What are the length limits on a label key?
- 386. Which test distinguishes a DNS fault from a proxying fault for a Service?
- 391. A Service is defined correctly and has endpoints, yet traffic still fails. Which policy object should be reviewed?
- 411. kube-proxy logs a failure to retrieve the node IP and falls back to 127.0.0.1. What happened?
- 490. A colleague cannot reach a port-forwarded application from another machine. Why?
- 504. A cluster runs a CNI plugin that implements Service routing in its own dataplane. What does that make possible for the node components?
- 541. A cluster still relies on SSH tunnels for control-plane-to-node traffic. What is the documented replacement?
- 545. An engineer installs a CNI plugin whose manifest assumes 10.244.0.0/16, but Pods never get addresses in that range. What was most likely missed at kubeadm init?
- 548. You are choosing a Pod CIDR for a new cluster. Which two statements are correct? Choose two.
- 556. After running kubeadm reset you plan to reuse the machine as a worker in a different cluster. What does reset leave behind?
- 649. Which DaemonSet Pods get an automatic toleration for the node.kubernetes.io/network-unavailable taint?
- 704. A Service of type ExternalName maps db to db.example.com. What does a Pod's DNS lookup of db return?
- 708. Which two statements describe a headless Service? Choose two.
- 715. A Service sets trafficDistribution to PreferSameZone. What does this guarantee?
- 723. Why is externalTrafficPolicy: Local often chosen for a LoadBalancer Service?
- 727. In iptables proxy mode, how is a backend chosen for a new connection to a Service?
- 728. An operator is choosing a kube-proxy mode for a new Linux cluster and is considering ipvs. What is the current guidance?
- 729. Which two capabilities does IPVS proxy mode offer that iptables mode does not? Choose two.
- 743. A dual-stack Service serves both IPv4 and IPv6. How many EndpointSlices does it have at a minimum?
- 746. In Gateway API, what is the relationship between a Gateway and a GatewayClass?
- 750. A NodePort Service has three backing Pods on three of a cluster's ten nodes. Which nodes answer on the allocated node port?
- 751. Three different components allocate the three address ranges in a cluster. Which two pairings are correct? Choose two.
- 752. An engineer proposes a Pod CIDR that partially overlaps the Service CIDR to save address space. Why is this rejected?
- 753. A node's interfaces carry several addresses, but Kubernetes only ever uses one of them. Which does it consider?
- 754. You are writing firewall rules for a control plane node. Which two inbound ports are needed by default? Choose two.
- 755. Which protocols must be permitted for the NodePort range on a worker node?
- 756. A namespace contains no NetworkPolicy objects at all. What traffic may its Pods send and receive?
- 757. A NetworkPolicy selects a Pod, lists an ingress rule, and sets policyTypes to ["Ingress"]. What is the Pod's egress isolation?
- 758. Two NetworkPolicies select the same Pod and permit different ingress sources. What may reach the Pod?
- 759. Pod A's namespace has a default-deny egress policy. Pod B's namespace has an ingress policy explicitly allowing A. Can A reach B?
- 760. A NetworkPolicy allows Pod A to open a connection to Pod B on port 8080. What about the responses B sends back?
- 761. A Pod is isolated for ingress by a policy that names no peers. The kubelet's liveness probe still succeeds. Why?
- 762. A from block contains two list entries: one with a namespaceSelector and one with a podSelector. What does it allow?
- 763. Why does the documentation say ipBlock should name cluster-external addresses?
- 764. A team wants to allow a namespace broad egress but block one specific external CIDR. What does the NetworkPolicy API support?
- 765. Which two things can a NetworkPolicy not do? Choose two.
- 766. An incident responder applies a restrictive NetworkPolicy to cut off a compromised Pod's live connections. What should they expect?
- 767. A NetworkPolicy is applied successfully but traffic it should block still flows. What is the first thing to check?
- 768. A Pod resolves the DNS name of a headless Service. What does it get back?
- 769. A Pod in namespace test cannot resolve the name data, which is a Service in namespace prod. What should the client use?
- 770. Reading a Pod's /etc/resolv.conf you find options ndots:5. What does the kubelet write it for?
- 771. For which Service ports does cluster DNS create SRV records?
- 772. A Pod manifest omits dnsPolicy entirely. Which policy applies?
- 773. A Pod with hostNetwork: true and dnsPolicy: ClusterFirst cannot resolve any in-cluster Service names. Why?
- 774. A Pod sets dnsPolicy to None. What must accompany it?
- 775. How many nameservers may a Pod's dnsConfig list?
- 776. A Pod uses dnsPolicy ClusterFirst and adds options in its dnsConfig. What happens to the options the policy would have produced?
- 777. What limits does Kubernetes place on a Pod's DNS search domain list?
- 778. Which two Pod spec fields shape the DNS name a Pod is given under a headless Service? Choose two.
- 779. An administrator needs to change how cluster DNS forwards external queries. Where is that configured?
- 780. In the default Corefile, which two plugins divide the work of answering queries? Choose two.
- 781. Which CoreDNS plugin exists to catch a configuration in which queries would be forwarded back to CoreDNS itself?
- 782. A cluster must send queries for internal.example.com to a particular corporate nameserver. How is that expressed in CoreDNS?
- 783. After editing the CoreDNS ConfigMap, an operator wonders whether to restart the CoreDNS Deployment. What does the default configuration provide?
- 784. A Service sets ipFamilyPolicy to RequireDualStack and is applied to a single-stack cluster. What happens?
- 785. Which field determines a dual-stack Service's primary IP family?
- 786. An engineer looks for the kubelet's --network-plugin and --cni-bin-dir flags on a current release and cannot find them. What changed?
- 787. A cluster operator is evaluating a CNI plugin that declares compatibility with CNI specification v0.3.1 only. What does the Kubernetes project require?
- 788. A cluster deploys NodeLocal DNSCache. Which two effects does it have on a Pod's DNS queries? Choose two.
- 789. What change must applications make to benefit from NodeLocal DNSCache?
- 790. Cluster DNS has stopped working. Which two checks does the troubleshooting guide begin with? Choose two.
- 791. How is a default-deny ingress policy for a namespace written?
- 792. After a default-deny egress policy is applied to a namespace, its Pods can no longer resolve any names. What is missing?
- 793. A namespace has an allow-all ingress policy. A second policy is added that permits only one source. What can now reach the Pods?
- 794. A NetworkPolicy rule sets endPort: 32768 but omits port. Why is that invalid?
- 795. A NetworkPolicy using endPort is applied, but traffic to the middle of the range is still blocked. What should be verified?
- 796. A NetworkPolicy must permit traffic from the namespace named monitoring, which carries no custom labels. What can the namespaceSelector match on?
- 797. You need a NetworkPolicy that limits who may reach an nginx Service. What does the policy actually select?
- 798. Two containers in the same Pod need to talk to each other. Which networking problem is that, in the documentation's terms?
- 799. A cluster's API server is reached on port 443 rather than 6443. What does that tell you?
- 800. A NetworkPolicy in namespace web has an ingress rule whose from block contains only a podSelector matching app=api. Which Pods does it admit?
- 873. A Service name will not resolve from inside a Pod. Which lookup isolates cluster DNS itself as the problem?
- 880. A Pod cannot reach itself through its own Service IP. Which two hairpin-mode values allow that to work? Choose two.
- 881. The kubelet was started with --hairpin-mode=promiscuous-bridge, but hairpin traffic still fails. Where is the effective mode confirmed?
- 882. A Service is configured correctly and its Pods are healthy, but only some clients can reach it. What should be ruled out before deep proxy debugging?
- 908. hostPort does not work in a cluster. Which capability does it depend on?
- 959. A containerd log shows "incompatible CNI versions; config is 1.0.0, plugin supports ...". What is wrong?
- 960. Pods start normally but cannot be stopped, and the runtime reports "invalid version: the version is empty" from StopPodSandbox. What is missing?