Kubernetes - ServicesWhy does a Kubernetes Service use label selectors instead of static IPs to provide stable networking?ABecause pod IPs are dynamic and label selectors allow flexible routingBBecause static IPs are assigned to Services onlyCBecause label selectors improve pod securityDBecause static IPs cause network conflictsCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand pod IP dynamicsPods get dynamic IPs that can change frequently, making static IPs unreliable.Step 2: Role of label selectorsLabel selectors allow Services to route traffic to any pods matching criteria, regardless of IP changes.Final Answer:Because pod IPs are dynamic and label selectors allow flexible routing -> Option AQuick Check:Dynamic IPs + selectors = stable routing [OK]Quick Trick: Selectors handle dynamic pod IPs flexibly [OK]Common Mistakes:Confusing static IP assignmentAssuming selectors improve security onlyThinking static IPs cause conflicts always
Master "Services" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Kubernetes Fundamentals - Setting up a local cluster (minikube, kind) - Quiz 15hard Namespaces - Switching namespace context - Quiz 8hard Namespaces - Resource quotas per namespace - Quiz 2easy Pods - Sidecar container pattern - Quiz 12easy Pods - Creating Pods with kubectl - Quiz 5medium ReplicaSets and Deployments - Desired replicas vs actual replicas - Quiz 3easy ReplicaSets and Deployments - Rolling update strategy - Quiz 3easy ReplicaSets and Deployments - ReplicaSet definition - Quiz 4medium kubectl Essential Commands - kubectl apply vs create - Quiz 12easy kubectl Essential Commands - Why kubectl mastery matters - Quiz 11easy