CK.I · CKAD practice question
A StatefulSet named ledger has replicas: 3 and a headless Service named ledger-headless. What is the predictable DNS name of the second Pod (ordinal 1) in namespace finance?
Check answer and explanation
Correct answer: ledger-1.ledger-headless.finance.svc.cluster.local
Explanation
StatefulSet Pods get deterministic network identities in the form ...svc.cluster.local, which for ordinal 1 is ledger-1.ledger-headless.finance.svc.cluster.local.
Common trap
StatefulSet Pods get deterministic network identities in the form ...svc.cluster.local, which for ordinal 1 is ledger-1.ledger-headless.finance.svc.cluster.local.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.