CK.V · CKAD practice question

A Service named api-svc has selector app: api, port: 80, and targetPort: 8080, while the target Deployment's Pods have label app: api-v2 and containerPort: 8080. Why does curl to api-svc fail or time out?

Choose one answer
Check answer and explanation

Correct answer: The Pod label (app: api-v2) does not match the Service selector (app: api), so the Service has no endpoints

Explanation

A Service selects Pods whose labels match all keys/values in spec.selector; because app: api-v2 does not match app: api, no endpoints are populated.

Common trap

A Service selects Pods whose labels match all keys/values in spec.selector; because app: api-v2 does not match app: api, no endpoints are populated.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question