🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Kubernetes Basics: all 10 questions

Quiz: Kubernetes Basics · Question 7 of 10

How does a Service know which pods to send traffic to?

How does a Service know which pods to send traffic to?

  1. A.It selects pods whose labels match its selector, such as app: courses-api
  2. B.It sends traffic to every pod in the cluster
  3. C.Pods register their IPs by email
  4. D.The scheduler hard-codes the IPs
Answer & explanation

Correct answer: It selects pods whose labels match its selector, such as app: courses-api

Labels are the glue between Deployments, pods and Services.

Can you get the rest right without peeking?

Take the timed Quiz: Kubernetes Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →