Q&A-3Define the contract of a paved road.
Answer
A paved road's contract is the versioned set of promises the platform makes to a workload that adopts it, plus the obligations the workload takes on in return. Four parts: interface (what you must expose), guarantees (what the platform will hold to), ownership (who is paged for what), and exit (how you leave). If a clause can't be measured or enforced, it's a documented default, not a contract term.
Assumptions: an internal platform, one paved road per workload class, and the contract versioned like an API so consumers can pin to it.
| Clause | Platform promises | Consumer owes | Enforced by |
|---|---|---|---|
| Interface | HTTP on :8080, /healthz, /metrics, OCI image, config via env | conform to those endpoints | admission webhook rejects non-conforming manifests |
| Guarantees | p99 request latency 300 ms, 99.9% monthly availability, 30-day log retention | emit RED metrics; no >2x traffic spike without notice | SLO burn-rate alerts |
| Ownership | platform on-call for road defects, 4 h response | workload owner on-call for their app | pager routing rules |
| Lifecycle | 12 months support per contract major version, 6 months deprecation notice | upgrade inside the window | version pinning plus expiry warnings |
| Exit | config and data export in documented formats | none | off-road checklist |
Loose versus strict. A strict contract (pinned base image, mandatory sidecar, fixed ingress) buys uniform SLOs and one upgrade path, and costs you every workload that doesn't fit: a GPU batch job needing an 8-hour runtime gets rejected at admission. A loose contract (platform supplies networking only) buys adoption but you can't promise an SLO you don't control. The rule is to specify only what you can measure and enforce, and leave the rest as defaults. Over-specification has a price: a contract with 40 mandatory clauses typically ends up with 15–20% of teams on waivers, and a road most teams are excused from isn't paved.
Failure modes.
- No contract. Every team invents its own deploy path; the platform can't page anyone and onboarding runs on Slack for weeks.
- Contract ignored. Teams go off-road. Detect it by inventory drift: diff the road registry against the cluster API. More than ~10% of running workloads unregistered means the road is failing, not the teams.
- Contract drifts from reality. Docs claim p99 300 ms; measured is 900 ms. Detect by comparing published guarantees to measured SLOs monthly: a stated guarantee violated two months running is stale and must be renegotiated or fixed.
Worked check. A team migrates a Java service. The contract's startup budget is 5 s to a 200 from /healthz, base image pinned to JRE 21. Their service warms in 12 s. Trace: admission passes (image conforms), the readiness probe fails at 5 s, so the rollout never completes; the liveness probe shares the budget, kubelet restarts the container, and it lands in CrashLoopBackOff. The deciding clause is the startup budget: they either add a warmup endpoint or negotiate a 15 s budget for their workload class. That's the contract working: it surfaced the mismatch before production traffic did.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.