Kubernetes - NetworkingWhat is the primary purpose of a Kubernetes NetworkPolicy?ATo control traffic flow between pods and namespacesBTo schedule pods on specific nodesCTo manage storage volumes for podsDTo monitor pod resource usageCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand NetworkPolicy roleKubernetes NetworkPolicy is designed to control how pods communicate with each other and with other network endpoints.Step 2: Identify correct functionIt specifically allows or blocks traffic between pods and namespaces to improve security.Final Answer:To control traffic flow between pods and namespaces -> Option AQuick Check:NetworkPolicy controls pod traffic = A [OK]Quick Trick: NetworkPolicy controls pod communication, not scheduling or storage [OK]Common Mistakes:Confusing NetworkPolicy with pod schedulingThinking NetworkPolicy manages storageAssuming NetworkPolicy monitors resources
Master "Networking" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Health Checks and Probes - TCP probe configuration - Quiz 3easy Ingress - TLS termination with Ingress - Quiz 7medium Ingress - Ingress vs LoadBalancer Service decision - Quiz 8hard Ingress - Ingress controllers (Nginx, Traefik) - Quiz 1easy Networking - Container Network Interface (CNI) - Quiz 13medium Resource Management - Vertical Pod Autoscaler concept - Quiz 15hard Scheduling - DaemonSets for per-node workloads - Quiz 6medium Secrets - Why Secrets manage sensitive data - Quiz 3easy Secrets - External secret management integration - Quiz 2easy Secrets - Using Secrets as mounted volumes - Quiz 6medium