← Quiz: Kubernetes Basics: all 10 questions
Quiz: Kubernetes Basics · Question 2 of 10
Why do we need a Service in front of pods?
Why do we need a Service in front of pods?
- A.Pods come and go with changing IPs; a Service gives a stable name and load-balances to them
- B.To build Docker images
- C.To store secrets
- D.To schedule pods onto nodes
Answer & explanation
Correct answer: Pods come and go with changing IPs; a Service gives a stable name and load-balances to them
The Service selects pods by label and stays stable as pods are replaced.
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 →