Skip to content
Tech Interview Prep
Technical interview guide

Internal Developer Platforms

The self-service layer that lets product engineers provision infrastructure without filing a ticket to a platform team.

Minutes to read
4
Practice MCQs
25
Interview Q&A
25
Edition
v4
Editorial status
Reviewed
Relevant for
Platform Engineer

Scope: AWS Internal Developer Platform Prescriptive Guidance, Microsoft Platform Engineering Capability Model, Google Cloud platform engineering guidance, and CNCF Platform Engineering Maturity Model current 2026-08-31.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-2

Define the boundary between an IDP and developer portal.

Answer

The boundary is ownership of state and enforcement. The IDP owns the source of truth: catalog records, policy decisions, provisioning execution, secrets, and the audit log. The portal owns presentation and initiation: it renders what the platform exposes, collects input, and calls the platform's API. If a capability cannot be driven from CLI, API, or Git, it is not in the platform yet: it is a portal feature, and that is a debt you should name.

Assumptions: more than one interface exists or will exist in six months, and there is a platform team separate from the teams consuming it. If you are ten people with one interface, the boundary is academic; pick one and move.

Why it matters: interfaces multiply. If the portal owns the "create service" workflow, then the CLI team reimplements it, the GitOps team reimplements it, and the three drift. Authorization is the sharpest case. A portal that checks "is this user an admin?" in React and then calls a platform API that trusts the caller has moved the decision to the least auditable place. Put the policy in the platform service (OPA, Cedar, whatever you run) and let the portal hide buttons as a UX nicety only.

Trade-off: the credible alternative is letting the portal own the workflow. Backstage's scaffolder with custom actions that call cloud APIs directly is a real pattern, and it ships faster because you skip the platform API layer. It is the right call when the portal is the only interface and will stay that way. The deciding question: will a non-portal consumer need this capability in the next two quarters? If yes, platform. If no, portal is acceptable, but write it down as debt, because the second interface is when it breaks. Read-only aggregation is different: joining Datadog SLOs with catalog ownership in the portal is fine, because there is no state to diverge.

Failure modes, with detection and cost:

Portal-only path. A team needs a service account and the portal has no button, so they file a ticket. Detection: query the ticket system for requests that have no matching platform API call in the audit log. Cost: each request waits on a human; if portal-only provisioning takes two days of lead time and you get forty service requests a quarter, that is eighty engineer-days of waiting. (Hypothetical figures.)

Hidden state. The portal stores a "deployed" flag in its own database. Detection: a nightly job compares the portal's status field to Argo CD's sync status and alerts on mismatch. Cost: a false green during an incident sends the on-call down the wrong path.

Duplicated authorization. Detection: run the same action through the portal and the CLI as a user with a restricted role. If the portal succeeds and the CLI fails, you have a privilege escalation bug. Cost: security incident.

Deep link rot. Detection: a CI link checker over the portal's catalog URLs. Cost: MTTR climbs when runbooks 404.

Worked trace: a developer clicks "Create service" in the portal.

  1. Portal collects name, owner, tier; calls POST /api/v1/services on the platform.
  2. Platform authenticates the user, calls OPA with the user's groups and requested tier. Policy denies tier-1 for non-SRE.
  3. On allow, platform writes the service to the catalog DB, runs the scaffolder template, creates the repo, registers it in Argo CD, returns 201 with the service URL.
  4. Portal renders the response. If the platform is down, the portal shows an error; it does not queue the request locally.

Boundary table:

CapabilityIDP ownsPortal owns
Service creationTemplate execution, repo creation, catalog writeForm, required-field validation
AuthorizationPolicy evaluation (OPA)Hiding buttons (UX only)
Deployment statusArgo CD sync status APIRendering it
OwnershipCatalog of recordDisplay, link to team page
SecretsVault / secret managerNever

What would change my decision: if the portal is the only interface and the platform team is one person, letting the portal own the workflow is a reasonable trade. Revisit when a second interface appears, or when the first non-portal consumer asks for the same capability.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-1

Design an internal developer platform for 100 engineering teams.

Answer

Assumptions. 100 teams, roughly 1,000–2,000 engineers, already on one cloud and one CI system. The platform team is 8–12 people. I am not replacing Kubernetes, Terraform or GitHub: I am putting a golden path on top of them.

The answer. Build a thin, opinionated self-service layer over the primitives you already run, and make the golden path the easiest path rather than the only one. The platform owns the contract, not the runtime. Concretely:

LayerChoiceWhy
Portal / catalogBackstageOSS catalog plus scaffolder; you operate it, so budget for that
DeliveryArgo CD (GitOps)Cluster state is reconcilable and drift is visible from Git alone
InfraTerraform or CrossplaneTerraform for existing estates; Crossplane when you want infra as Kubernetes CRDs
PolicyOPA / GatekeeperAdmission-time enforcement, not a wiki page
SecretsVaultDynamic, short-lived credentials instead of static keys

The portal, a CLI and an API are three front ends over one versioned API, so teams that script get the same result as teams that click.

Why it behaves this way. A scaffolder template renders a repo containing a Dockerfile, a Helm chart, a CI workflow and a namespace manifest. The developer opens a PR; CI builds and signs the image; Argo CD watches the manifest repo and syncs the change into the cluster. Because delivery is GitOps, you can answer "what is deployed and who changed it" from Git history: that is the property that makes the rest of the platform debuggable.

Worked trace of platform new service payments-api:

  1. Scaffolder renders the repo with chart, CI workflow and namespace manifest; opens a PR.
  2. CI builds the image, signs it, pushes to the registry, and updates the image tag in the manifest repo.
  3. Argo CD detects the manifest commit and syncs; the pod starts in the team's namespace.
  4. OPA admits the pod only if it declares resource limits, runs as non-root, and has a network policy.

Trade-offs. Buy the portal, build the golden path. Backstage is open source but you operate it; do not build a portal from scratch. Golden path versus flexibility: the path must be the easiest, not the only. Teams can drop to raw Terraform, but then they own paging for it. Portal versus CLI: portal for discovery and onboarding, CLI for automation; both hit the same API so they cannot diverge. For CI, use GitHub Actions or GitLab CI rather than writing your own.

Failure modes.

  • Template rot: scaffolder templates drift from production reality. Detect by deploying a freshly scaffolded service to a test cluster nightly and alerting on failure.
  • Link-farm portal: if the portal only links out, teams bypass it. Detect by comparing scaffolder-created repos against total new repos in the org.
  • Policy over-blocking: OPA denies a deploy with an opaque message. Detect by counting denials and time-to-resolution; a spike means the policy is too strict.
  • Sync storms: Argo CD out-of-sync alerts firing repeatedly. Detect via sync-status metrics and alert on rate, not on a single event.

Sizing. 8–12 platform engineers for 100 teams is about 1:10. A rule of thumb, not a law. If the ratio drops below roughly 1:20, the platform becomes a ticket queue and teams route around it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6

Design IDP abstraction levels.

Answer

Assume a 200-engineer org, 40 services, AWS with EKS, PCI scope, and an existing Backstage portal. The platform team is 6 people. The goal is to cut time-to-first-deploy without hiding compliance-critical decisions.

I'd design four abstraction levels, each with a contract and an escape hatch.

LevelWhat the developer writesWhat the platform ownsEscape hatch
L0Terraform module, Helm chartNothingN/A
L1Backstage template (cookiecutter)CI, observability, deployment pipelineFork template
L2Crossplane composite resource (e.g., PostgresInstance)Provisioning, backups, patchingOverride composition
L3Intent CR (Service with slo, dataClassification, region)SLO, compliance, scalingDrop to L2

At L3, a developer writes:

YAML
apiVersion: platform.example.com/v1
kind: Service
metadata:
  name: payments
spec:
  slo: 99.9
  dataClassification: pci
  region: eu-west-1
  scaling:
    minReplicas: 3
    maxReplicas: 20

The platform translates this to a Crossplane PostgresInstance (L2), which composes an RDS instance with encryption, a security group, and a backup policy. The developer never sees the VPC peering or KMS key.

Why progressive disclosure works: it matches the decision to the role. A product engineer owns the SLO and data classification; the platform owns the mechanism. Each level has a support boundary: if you stay at L3, the platform team owns the SLO. If you drop to L2, you own the resource and get best-effort support. If you drop to L1, you own the pipeline. If you drop to L0, you own everything.

Failure modes:

  1. Abstraction leak: L3 Service hides a required PCI network policy. Detection: OPA/Gatekeeper rejects the resource at admission with a clear error. Cost: 2-week remediation if it reaches production.
  2. Over-abstraction: L3 forces a single database size, causing p99 latency to spike from 40 ms to 180 ms under load. Detection: latency alert. Cost: migration to L2.
  3. Escape hatch abuse: teams fork L1 templates, drift from golden path. Detection: Argo CD drift detection. Cost: 30% of platform team time on support.

Test with a game day: a novice tries L3, an expert tries L0. Measure time-to-first-deploy. Hypothetical: L0 5 days, L1 2 hours, L2 30 minutes, L3 5 minutes. If L3 hides critical behavior: e.g., a service is public-facing: add a required field exposure: public|internal and surface it in the UI. Remove abstraction where it obscures critical behavior.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3

Choose the first golden path for an IDP.

Answer

The 90-second version. A golden path is one opinionated, supported, end-to-end route for a single developer journey: defaults baked in, no ticket to the platform team required. Assumptions I'd state up front: platform team of 4–8 engineers, 150–400 product engineers, Kubernetes-based, no IDP yet. Under those, the first path is almost always new stateless service: repo → CI → deploy → logs/metrics/alerts → rollback. Not the compliance-heavy exception, not the data pipeline. The rule: highest frequency × toil × risk, lowest variance, and something the platform team can own end-to-end in one quarter.

How I'd score the candidates. Weights, not vibes:

criterionweighthow you get the number
frequency3journeys/month from CI runs, repo-creation events, tickets
toil3engineer-hours per journey, timed on a pilot team
risk2incidents traced to this journey in the last two quarters
homogeneity2sample 20 journeys; below ~60% identical, the path forks
eligible users1teams × services per team, next 6 months
feasibility2count of dependencies on other teams

Score = Σ weight × normalised 1–5. Illustrative numbers: new service = 5,5,3,4,5,4 → 15+15+6+8+5+8 = 57. Data pipeline = 3,5,4,2,3,2 → 9+15+8+4+3+4 = 43. Compliance exception = 1,4,5,2,2,2 → 3+12+10+4+2+4 = 35. The exception loses on frequency and homogeneity even though it wins on risk: that's the trap, because risk is the criterion that shouts loudest in a steering meeting.

The payoff arithmetic. 40 new services a year × 3 days of setup toil = 120 engineer-days. A path that gets time-to-first-deploy to 4 hours returns roughly 110 of those days, before any incident reduction. If that number doesn't clear the platform team's build cost, you picked the wrong journey.

Prove it before you scale it. 3–5 pilot teams, 6–8 weeks, success criteria written down first: time-to-first-deploy, change failure rate, platform tickets per service. Baseline all three before the pilot starts.

How it fails, and how you'd see it.

  • Pilot teams game the metric. They use the path because you're watching. Detect: compare pilot vs non-pilot time-to-first-deploy 90 days after the pilot ends, and check whether pilot teams still file platform tickets.
  • Path drift. Base image, CI runner and cluster version age out and the path silently stops working. Detect: a canary service that runs the path on every platform release; alert on failure.
  • Forced adoption. Mandate the path before it covers the 20% of cases teams actually have, so they fork it. Detect: count repos whose workflow or Dockerfile has diverged from the template.
  • Ticket queue. No self-service escape hatch, so the platform team becomes the bottleneck. Detect: tickets per 100 services per month trending up.
  • Adoption mistaken for outcome. 80% adoption, time-to-first-deploy unchanged. Detect: always pair adoption with the DORA metrics.

Alternatives, and when each is right. The loudest stakeholder's ask buys political capital fast, but if it's low-frequency you build a path nobody walks: only take it when it's also high-frequency. The hardest journey first (multi-region data pipeline) proves the platform handles complexity, but costs a quarter before anyone gets value; right only if that journey is the business. The cheapest build, a docs page plus a template repo, ships in a week but isn't a path, it's a suggestion; teams still hand-roll CI, deploy and observability. A portal or catalog first gives discoverability, but a catalog of manual steps is a directory of toil; build it after the first path works.

Expand on evidence: a second path only once the first holds adoption and the ticket rate is flat.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5

Design a service template for a golden path.

Answer

First, clarify scope: how many services, one cloud or multi-cloud, and is Kubernetes the deployment target? I'll assume 100–300 services, one cloud, Kubernetes, and a platform team of 3–5. The golden path is a versioned generator plus an upgrade path, not a folder of YAML.

A strong candidate answers in three parts: what the template takes in, what it emits, and how it changes after day one.

Inputs: service name, owning team, workload class (HTTP API, queue consumer, cron job), runtime (Go 1.22, Node 20, Python 3.12), exposure (internal/public), data classification. Everything else is defaulted. The template emits a repo the team owns, not a platform-owned repo.

Concretely, I'd use Backstage software templates for the portal and catalog, and Copier for the repo update path. Backstage gives the scaffolder and catalog-info.yaml; Copier records answers in .copier-answers.yml and can re-render on a template version bump. The generated repo contains: src/, Dockerfile, k8s/base/deployment.yaml, k8s/overlays/dev|prod, terraform/ for namespace, service account, IAM role, .github/workflows/build.yaml, catalog-info.yaml, runbook.md, slo.yaml.

Defaults: two replicas, PodDisruptionBudget minAvailable: 1, readiness /healthz, liveness /livez, resource requests 100m/128Mi, HPA on CPU at 70%. Dependency policy: lockfile, Renovate or Dependabot, SBOM with Syft. Build: GitHub Actions builds an OCI image, pushes to GHCR, signs with cosign keyless OIDC, attaches SLSA provenance. Deployment: Argo CD syncs the overlay; Argo Rollouts canary 10% for 5 minutes with a Prometheus analysis on error rate. Rollback: argo rollouts abort or kubectl rollout undo. Identity: Kubernetes ServiceAccount bound to cloud IAM via IRSA on EKS or Workload Identity on GKE. Secrets: External Secrets Operator pulls from Vault or Secrets Manager; no secret in git. Observability: OpenTelemetry SDK, metrics to Prometheus, JSON logs to stdout, traces to Tempo. SLO: 99.9% availability, p99 < 300 ms. Alerts: multi-window burn-rate (2% budget in 1h, 5% in 6h) to PagerDuty. Catalog: catalog-info.yaml with owner, system, lifecycle, cost-center label. Deletion: a workflow opens a PR to remove the Argo app, run terraform destroy, and archive the repo.

Trade-offs:

ApproachStrengthCostPick when
Backstage + CopierPortal, catalog, update pathHeavy, plugin maintenance>200 services
Copier + GitHub templateSimple, real updatesNo portal<50 services
Custom CLIFull controlYou own everythingRegulated, unusual stack

The bigger trade-off is opinionated defaults vs flexibility. Too rigid and teams fork; too loose and there is no golden path. I'd default 80% and allow a kustomize overlay plus an ADR for the other 20%.

Failure modes. Template drift: generated repos diverge and upgrades conflict. Detect by running copier update on a sample repo in CI and failing on conflicts. Abandoned upgrades: teams ignore PRs. Detect by tracking the golden-path/template-version annotation and dashboarding repos more than two minor versions behind. Silent rewrite: a template update force-pushes over team code. Avoid by opening a PR with conflict markers, never force-pushing. Broken template: a bug ships to every service. Detect by rendering and deploying a template-test service to a kind cluster on every template PR. Secret leakage: a placeholder gets committed. Detect with gitleaks pre-commit and CI secret scanning.

Finally, validate one real service through the template before broad rollout. Measure time-to-first-deploy, collect friction, and only add extensions that at least three teams need. Record the template version in the repo so upgrades are traceable.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-4

Design true self-service infrastructure provisioning.

Answer

"True self-service" means a developer gets a working resource without a human approving it, and the platform team's safety comes from policy evaluated at request time rather than from a review queue. If a person still reads the request, it's a ticket form with a nicer front end, not self-service.

Assumptions: one cloud, Terraform (or OpenTofu) as the IaC engine, an OIDC-capable CI identity, a policy engine (OPA/Rego or Cedar), and a catalog of versioned modules. If you don't have workload identity yet, fix that first: everything below depends on not shipping long-lived cloud keys.

The core is a control loop with three planes, not a pipeline.

Intent plane. A versioned API, the CLI and portal are just clients, takes a small typed schema: template name and version, environment, region, size class, owner, cost center. Not free text.

Decision plane. Resolve the template to a pinned module commit, render it, run terraform plan, convert the plan to JSON with terraform show -json, and evaluate policy against that JSON. Policy is code: deny instance types outside an allowlist, deny a missing cost-center tag, deny a region outside the approved set. This is the mechanism that replaces the human: the decision is a deterministic function of the plan, so it is reviewable, testable, and fast.

Execution plane. Mint short-lived credentials scoped to the request (OIDC → STS, default 1-hour session), apply in a least-privilege runner, write state to a remote backend with locking, and put outputs (connection strings, endpoints) in a secret store, not in the response body.

Why it behaves this way: the ticket queue exists because the platform team holds the only credentials and the only knowledge. Move credentials to per-request short-lived tokens and knowledge to policy-as-code, and the queue has nothing left to do. The button is not the point.

Trade-off: golden-path modules versus free-form IaC.

Golden pathFree-form IaC
inputs~20 typed paramswhole repo
coverage~80% of requestsanything
upgradescentral, one PRper team
blast radiusbounded by moduleunbounded
use forshared resources: VPC, DB, IAM rolea team's own app infra

Deciding criterion is blast radius and team count. Shared or security-sensitive resources go through a golden path. Team-owned app infra can be free-form, but still policy-gated on the plan.

A single request, traced: platform create --template postgres@3.2 --env staging --size small --owner team-payments

  1. API validates the schema, resolves postgres@3.2 to a module commit, renders variables.
  2. Runner assumes its role via OIDC, runs plan, gets exit code 2 (changes present) and the plan JSON.
  3. Policy: db.t3.small in allowlist, cost-center tag present, region approved → allow.
  4. Apply creates the instance, writes state, stores the connection string in the secret store.
  5. Response returns the resource id and the secret path.

Failure modes and how you catch them:

  • Drift. Someone edits in the console. Detect with a scheduled terraform plan -detailed-exitcode; exit 2 means changes exist. Auto-applying on shared resources is how you cause an outage: open a PR instead.
  • Partial apply. Apply dies halfway; state holds some resources. Retry is safe because plan recomputes from state, but an untracked resource can still be billing you. Diff cloud inventory against state weekly.
  • Quota exhaustion. Policy passes, the cloud quota is hit at apply. Check quota at plan time or you burn ~4 minutes to fail.
  • Stale template. Module pinned to a deprecated provider version. Fail at resolve time, not at apply.

Arithmetic: 40 requests a week, 2-day median wait, 30 minutes of engineer time each is 20 hours a week of toil. Self-service costs ~200 ms of policy evaluation, ~40 s of plan, ~90 s of apply. Median time-to-resource drops from 2 days to about 3 minutes.

What would change the decision: a resource class that is genuinely one-off and judgment-heavy (a new network topology, a compliance boundary) stays manual, and you say so out loud. The test is whether the decision can be written as policy. If it can, it shouldn't need a human.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Choose whether to build or buy IDP capabilities.

Answer

The 90-second answer

The question isn't build or buy the platform: it's build or buy each capability, and the deciding line is whether the capability encodes your organisation's topology or is undifferentiated operations behind a standard interface. Buy the substrate, build the opinion.

Assumption I'd state out loud: 100–500 engineers, more than one cluster or cloud, and no mandate to run a platform team bigger than about 1 in 20 engineers.

Decision rule: if the integration surface is a standard (OIDC, OCI, the Kubernetes API, OpenTelemetry, Terraform/OpenTofu providers) and the value is uptime, SSO and plugin maintenance, buy it. If the artefact encodes who owns what, what your golden path is, or how your compliance regime maps to controls, build it, because no vendor knows your org chart.

Where I'd actually land

CapabilityCallWhyExit cost
Portal / catalogBuy the shell, build the modelBackstage is a CNCF project and free, but the ownership model and scaffolder templates are yours; managed portals (Port, Cortex, OpsLevel) sell the integrationsLow if the catalog is backed by a file or API you own
CI/CDBuyGitHub Actions and GitLab CI are commodity; self-hosting runners is undifferentiated opsMedium: pipeline YAML is portable, runner config isn't
IaC executionBuy the runner, own the modulesSpacelift, Atlantis or Pulumi over hand-rolled runnersHigh if you adopt vendor-only resource types
PolicyBuild the rules, buy the engineOPA/Gatekeeper and Kyverno are CNCF; the rules encode your compliance regimeLow: Rego and CEL are portable
SecretsBuyVault, AWS Secrets Manager, External Secrets OperatorMedium: Vault's BUSL relicense in Aug 2023 is why OpenBao exists; check the licence before you standardise
ObservabilityBuy the pipeline, build the SLOsOpenTelemetry keeps instrumentation portableLow if you emit OTLP

Failure modes, with detection

  • Portal with no product owner. Catalog entities drift: owners go stale, scaffolder templates rot against the golden path. Detect by the share of entities with no owner or no update in 90 days, plus scaffolder template success rate. Cost: engineers route around it back to Slack and a wiki.
  • Bought portal with a closed plugin model. You can't express your deploy topology, so teams keep shadow docs. Detect by portal page views per active developer trending down while wiki edits trend up.
  • Policy engine that can't see cluster state. Admission decisions need in-cluster evaluation; a SaaS policy tool that only reads your repo finds violations in audit, after deploy. Detect by counting violations caught post-deploy rather than blocked at admission.
  • Proprietary IaC runner. State and plan format are the lock-in, not the YAML. Detect by counting modules that import vendor-only resources: that count is your rewrite bill.

The arithmetic, with assumed rates

Assume 300 engineers, a platform engineer at $100/hr fully loaded, and 12 integrations to wire. Two weeks per integration is $8,000; twelve is about $96k one-time, plus roughly 20% a year to keep them working, so about $19k/yr. A managed portal that ships 8 of those integrations removes about $64k of build and $13k/yr, but you still own the 4 that encode your topology. That's the whole trade: you're buying integration maintenance, not the decision.

When not to do either

Don't build a portal before you have a golden path worth exposing: a portal over 40 inconsistent pipelines just publishes the mess. And don't buy a portal to fix adoption; that's a product problem, and no vendor's onboarding flow solves it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21

Design platform team staffing and operating model.

Answer

Clarify, then assume. Three questions before designing anything: how many product engineers the platform serves, whether adoption is mandated or opt-in, and what the current pain actually is. Assume 150 product engineers, a 12-person platform team, and that the pain is the team spending most of its week on support tickets instead of building. That assumption drives the whole design.

Core answer. Run the platform as a product with three operating modes, not one team doing all three:

ModeHeadcountOwnsSignal it's working
Platform product1 PM + 1 engRoadmap, internal customer research, adoption metricsAdoption up; roadmap items traceable to a named team's request
Core platform engineering6–7 engPaved road: APIs, IaC modules, golden CI pipelinesTime-to-first-deploy for a new service falls
Reliability & support (rotating)2–3 engOn-call, ticket triage, escalationPages per shift and tickets per engineer flat or falling

The rule that stops the drowning: any ticket category above 5% of monthly volume for two consecutive months gets a named owner and a self-service or automation fix on the roadmap. Support becomes an input to the roadmap, not a permanent tax.

Worked example. 12 engineers × 160 productive hours = 1,920 hours/month. At a 40% interrupt load that is 768 hours. At 45 minutes per ticket, roughly 1,024 tickets/month. Grouped by category:

CategoryTickets/moHours/moFixHours recovered
Access & permissions280210Self-service role grants via IdP groups105
CI failures / flaky builds200150Quarantine flaky tests, cache dependencies75
Environment provisioning134100Golden Terraform module, one-command env50
Long tail (12 categories)410308Triage only0
Total1,024768230

The top three categories are 60% of volume. Each fix halves its category, recovering 230 hours/month: 230 ÷ 160 = 1.4 FTE, reinvested in the paved road. That is the whole argument for treating support as a roadmap input: three fixes buy back more than a head.

Ratios. 1 platform engineer per 8–15 product engineers. Below roughly 50–80 product engineers a dedicated platform team usually costs more than it saves: embed instead. On-call under 25% of an engineer's time and under 2 actionable pages per 12-hour shift, per Google's SRE book.

Trade-offs. Central platform versus embedded enabling team: central wins when many teams share the same need and you can mandate adoption; embed when teams are heterogeneous or the platform is immature. Opt-in versus mandate: opt-in keeps the platform honest but caps adoption; a mandate gets adoption but risks building the wrong thing. Don't build a platform before you have enough internal customers to amortize it.

Failure modes. Ticket swamp: support hours per engineer trending up while roadmap throughput trends down. On-call burnout: pages per shift above 2 and rising attrition on the rotation. Platform drift: adoption rate falling while you keep shipping features.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16

Design multi-tenancy for an IDP.

Answer

Assumption: "IDP" here means an Internal Developer Platform. Portal, CI runners, cloud accounts, IaC state. If you meant Identity Provider, the same three primitives apply but the tenant boundary is the OIDC client/realm instead of the namespace. State which one you're answering in your first sentence; the rest of the design follows from it.

Core answer (first 90 seconds)

Tenant = team. One tenant per team, not per environment and not per workload. The team is the unit of ownership, on-call and cost, and per-environment tenants turn every promotion into a cross-tenant operation that now needs its own authorization path. Environments are sub-scopes inside a tenant.

Keep two identity planes apart. The platform control plane (the provisioner that creates namespaces, cloud accounts and IAM roles) has broad rights. Tenant workload identities have narrow rights. A workload identity must never be able to assume the provisioner role; that one rule removes most privilege-escalation paths.

Enforce ownership server-side, in the API, from the token. The portal and CLI are clients; anything they scope can be replayed with curl. The server derives the tenant from an authenticated claim (tenant_id in the OIDC token), never from the request body, then checks the target resource's owner label matches before acting.

Why server-side beats client-side scoping: the confused deputy

The provisioner is a deputy with broad rights. A tenant calls POST /api/v1/envs with {"namespace":"team-b-prod"}. If the provisioner trusts that parameter and acts with its own cluster-admin role, tenant A just wrote into tenant B's namespace. The fix is not a better UI: it is deriving the tenant from the caller's token and comparing it to the target's owner label:

  1. Authenticate token → tenant_id=team-a.
  2. Load team-b-prod → owner label tenant=team-b.
  3. Mismatch → 403, reason namespace team-b-prod owned by team-b.

Skip step 3 and the write succeeds. Detection: every provisioner action logs actor=provisioner, on_behalf_of=<tenant>, target=<resource>; alert when on_behalf_of differs from the target's owner. That audit line is also what you hand an incident review.

Isolation tiers and what decides between them

TierMechanismUse whenCost
Shared namespace, RBAC onlyK8s RBAC + NetworkPolicyLow-risk internal teamsCheapest; blast radius = whole cluster
Namespace per tenantNamespace + ResourceQuota + LimitRangeDefault for most platforms~1 namespace per team, negligible
Cluster or cloud account per tenantSeparate cluster / AWS accountRegulated data, or a tenant whose load can starve othersEKS control plane $0.10/hr ≈ $73/mo per cluster; a NAT gateway ≈ $32/mo plus $0.045/GB processed (AWS list, us-east-1, 2024)

Deciding criteria, in order: data classification, blast-radius tolerance, cost per tenant, operational overhead. Per-account isolation is wrong for a 40-person company with 8 teams: that's ~$580/mo in control planes plus NAT before any workload runs. Shared RBAC is wrong the moment a tenant holds PCI or HIPAA data, or when one team's CI can saturate the shared runner pool.

Failure modes, with detection and blast radius

  • Identifier collision. Two teams pick the same namespace or repo name. Detect with a uniqueness constraint on (tenant_id, name) plus a global registry. Blast radius: one team's deploy overwrites another's. Cost: rename and redeploy.
  • Noisy neighbour / quota exhaustion. One tenant's CI saturates shared runners. Detect per-tenant queue depth and runner-seconds; alert when one tenant exceeds, say, 40% of pool capacity for 10 minutes. Blast radius: every tenant on the shared pool. Mitigate with a per-tenant concurrency cap (e.g. 20 concurrent jobs) and fair-share scheduling.
  • Deletion. Offboarding deletes a namespace still referenced by another tenant's DNS record or secret. Detect by building the reference graph before delete and refusing on inbound edges. Blast radius: cross-tenant outage.
  • Team transfer. Moving a repo between tenants leaves stale RBAC bindings. Detect with a periodic reconciliation diff between desired ownership and actual bindings; drift is the signal.

What would change the decision

If the platform is multi-tenant SaaS, you host it for customers, tenant = customer, and you need hard isolation plus per-tenant encryption keys, because a shared namespace is a data-residency and breach-scope problem, not a convenience one. For an internal platform, team-level soft isolation with strong audit and per-tenant quotas is usually the right call, and the audit trail is what lets you stay there.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-8

Secure the IDP control plane.

Answer

Core answer

First, pin the scope: "IDP control plane" here means the components that hold authority to create and mutate infrastructure on developers' behalf. The scaffolder (Backstage software templates), the provisioning engine (Crossplane compositions or a Terraform runner), and the GitOps reconciler (Argo CD). Assume multi-tenant, developers self-serve, a platform team owns the control plane.

The objective isn't "protect the portal." It's this: the control plane holds cloud credentials, so a compromise of any component that can author or execute a template is a compromise of those credentials. Everything else follows from that.

Three decisions:

  1. No long-lived cloud credentials. The runner federates via OIDC to a per-environment role. GitHub Actions id-token: write → sts:AssumeRoleWithWebIdentity; default session is 3600 s, so cap DurationSeconds at the minimum your longest apply needs. A leaked runner then has no static key to steal.
  2. Policy at admission, not inside the template. A template is a program. In Backstage, a custom scaffolder action is Node code running with the scaffolder backend's identity; in Crossplane, a Composition runs with the provider's ServiceAccount. Guardrails written inside the template are advisory: the author can delete them. Enforce with Kyverno or OPA on the API server, plus an IAM permission boundary on the role.
  3. Templates, providers and plugins are supply chain. Sign and pin them.

Why templates and plugins are the surface

A Backstage template is YAML naming actions: fetch:template, publish:github, plus any custom action the platform registered. The scaffolder executes those actions in-process with its own credentials. So the trust boundary is who can register an action, not who can fill in a form. Crossplane has the same shape: an XRD/Composition is a program, and the provider pod's ServiceAccount is the privilege.

Trade-off: central policy vs per-template guardrails

approachwhen it winscost
Review + CI scan of templatessmall, trusted author set (platform team only)doesn't scale past a handful of authors; review fatigue
Admission policy (Kyverno/OPA) + IAM boundaryfederated template authoring across product teamspolicy authoring is its own skill; false rejects block deploys

Deciding criterion: can a product team author a template without the platform team reading it? If yes, you need admission-time enforcement, because review is not a control you can rely on at that volume. If no, CI scanning plus signed template versions is proportionate.

Failure modes and detection

  • Runner credential theft. Detection: CloudTrail AssumeRoleWithWebIdentity from an unexpected repo/ref or region. Alert on role assumption whose OIDC subject isn't the CI repo. Blast radius = the role's permissions, so scope one role per environment, not one per org.
  • Malicious or drifted provider/plugin. Detection: admission rejects images whose cosign signature or digest doesn't match the pinned value; alert on digest drift in the running pod spec. Blast radius = the cluster, because providers are often bound broadly.
  • Bad template version. Detection: scaffolder task failure rate and orphaned resources; mitigate by pinning templateRef to a version and rolling back the template, not the resources it created.

Artefact: OIDC trust scoped to repo and ref

JSON
{
  "Effect": "Allow",
  "Principal": {"Federated": "arn:aws:iam::123456789012:oidc-provider/token.actions.githubusercontent.com"},
  "Action": "sts:AssumeRoleWithWebIdentity",
  "Condition": {
    "StringEquals": {"token.actions.githubusercontent.com:aud": "sts.amazonaws.com"},
    "StringLike": {"token.actions.githubusercontent.com:sub": "repo:acme/idp-templates:ref:refs/heads/main"}
  }
}

The sub condition is the control: without it, any repo in the org can assume the role. Session duration defaults to 3600 s; set DurationSeconds to your longest apply, not the 12 h maximum.

If pushed further: the highest-leverage single change is usually removing static cloud keys from the runner and scoping the OIDC sub. It's cheap, and it converts "stolen runner = stolen cloud account" into "stolen runner = a token that expires in an hour and only works from one repo."

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

Design secrets handling in an IDP.

Answer

Assumptions

Kubernetes-based IDP, GitOps with Argo CD, CI on GitHub Actions, AWS, HashiCorp Vault as the secret manager, tenants = teams. Swap the names for your stack; the shape holds.

Core answer (first 90 seconds)

The platform never stores secret values. It stores references, a path and a key, and resolves them at the moment of use, under the workload's own identity. Three moves:

  1. Identity, not credentials. Every runner and workload authenticates with a short-lived token minted from a platform-issued identity: GitHub Actions OIDC → sts:AssumeRoleWithWebIdentity, or a projected Kubernetes ServiceAccount token → Vault's Kubernetes auth. Nothing static is stored, so there is nothing to leak from a repo, a template, or a state file.

  2. Authorization at the path. Vault policies grant read on secret/data/team-a/* to team-a's role only. Writing a value and creating a path are separate capabilities from reading, held by a different group, so a compromised app role can read its own secrets and cannot mint new ones or widen its own scope.

  3. Injection at runtime, not at build. The CSI Secrets Store driver mounts the value as a file in a tmpfs volume. It never lands in the image, the Git repo, or Terraform state.

Why short-lived beats static

A static key is a bearer token: its leak window equals its lifetime, and rotation needs coordination across every consumer. An OIDC token is minted per job, valid for minutes, and bound to claims: sub, aud, ref. AssumeRoleWithWebIdentity returns credentials with a default 1-hour session (role MaxSessionDuration up to 12h). The trust policy can pin sub to repo:org/repo:ref:refs/heads/main, so a fork PR, whose sub is repo:org/repo:pull_request, cannot assume the role at all. The fork problem is solved by identity, not by a scanner.

Trade-offs

BackendStrengthCost / when not to use
Vaultdynamic secrets (DB creds minted per lease), fine-grained policy, auditanother HA control plane to run; overkill if you only need static KV
Cloud Secrets Manager / KMSmanaged, IAM-native, no opsper-secret cost, cross-cloud friction, coarse policy
SPIFFE/SPIREworkload identity without a cloud, mTLSyou now run SPIRE; worth it only multi-cloud/multi-runtime

Injection: CSI driver (tmpfs, no etcd copy) vs External Secrets Operator (syncs into a Kubernetes Secret. Convenient, but that is a second copy at rest, and etcd encryption is opt-in via EncryptionConfiguration, not default). Prefer CSI; use ESO only where a controller needs a native Secret object. Env vars leak through /proc/<pid>/environ, crash dumps and child processes: mount as a file and read it at startup.

Failure modes

  • Control-plane outage (Vault sealed, API down): the CSI driver caches the last mount on the node, so running pods keep their files; new pods fail to start. Detect via Vault's seal-status endpoint; runbook is unseal or fail over to the secondary.
  • Log leakage: masking is exact-match against registered values and fails on base64/URL-encoded or split values. Treat redaction as defense-in-depth; the control is that the value never enters the log stream.
  • Rotation: rotate the value behind the reference, not the reference. Consumers re-read on next mount or lease renewal.

Artefact: the OIDC exchange

YAML
permissions:
  id-token: write   # mint the OIDC token
  contents: read
jobs:
  deploy:
    steps:
      - uses: aws-actions/configure-aws-credentials@v4
        with:
          role-to-assume: arn:aws:iam::123456789012:role/idp-deploy
          aws-region: us-east-1

Trust policy condition: "token.actions.githubusercontent.com:sub": "repo:org/repo:ref:refs/heads/main".

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-17

Integrate policy-as-code into an IDP.

Answer

Assumptions: the IDP is Backstage for the portal and scaffolder, Terraform for provisioning, Kubernetes for runtime, GitHub Actions for CI. Policy-as-code means policies live in a git repo, get reviewed like code, and are evaluated by an engine (OPA/Rego, Kyverno, or Sentinel) not by a form in the portal.

Core answer. Pick one engine and one policy repo, then run the same policy at four gates, cheapest first:

  1. Template intent, before anything exists. Backstage scaffolder actions execute in the Backstage backend, so a custom action can POST the template's parameters to OPA and refuse to generate the repo. This catches "developer asked for a public bucket" in seconds and names the offending field.
  2. CI on the plan. terraform plan -out=tfplan, terraform show -json tfplan, then conftest test. This is the last point where the whole change is visible and nothing is real yet.
  3. Admission / apply. Kyverno or Gatekeeper in the cluster, or a policy hook in the cloud account. The only gate that catches changes made outside the pipeline.
  4. Continuous audit. Gatekeeper's audit controller or a scheduled conftest run against live state, for drift and for whatever slipped through.

Decide prevent vs warn per gate by blast radius and reversibility: deny at admission for public buckets, IAM * actions, data-residency violations; warn or audit for tagging and cost. Every decision returns rule id, rationale, the offending resource, and a remediation string.

Why the gates are ordered that way. Cost of a violation grows with how real the resource is. A rejected template costs a re-run; a rejected plan costs a CI cycle; a rejected apply costs a rollback; a violation found in audit costs an incident. The plan gate exists because terraform show -json gives the full before/after diff: the only input where you can see a deletion before it happens.

Artefact: the plan gate, end to end.

REGO
# policy/terraform/s3.rego
package main

deny[msg] {
  r := input.resource_changes[_]
  r.type == "aws_s3_bucket"
  r.change.after.acl == "public-read"
  msg := sprintf("%s: public-read ACL; attach a bucket policy with an explicit principal instead", [r.address])
}
$ terraform plan -out=tfplan && terraform show -json tfplan > plan.json
$ conftest test plan.json
FAIL - plan.json - main - aws_s3_bucket.logs: public-read ACL; attach a bucket policy with an explicit principal instead
1 test, 0 passed, 0 warnings, 1 failure, 0 exceptions
$ echo $?
1

Trace: plan.json has one entry in resource_changes. Address aws_s3_bucket.logs, type aws_s3_bucket, change.after.acl = "public-read". Rego iterates the array, all three conditions hold, sprintf builds the message, deny is non-empty, conftest exits 1 and CI stops before apply. Set the ACL to private and deny is empty, so conftest exits 0.

Artefact: gate table.

GateEngineInputLatency budgetOn failure
TemplateOPA over HTTPscaffolder params JSON< 100 msblock generation
CIConftest / OPAterraform show -jsonsecondsfail the build
AdmissionKyverno / GatekeeperAdmissionReviewp99 < 25 ms (target)Enforce denies, Audit logs
AuditGatekeeper audit / cronlive objectsminutesticket + dashboard

Failure modes.

  • Webhook outage. If the admission webhook's failurePolicy is Fail, a policy-engine outage rejects every matching write: a policy bug becomes a platform outage. Ignore keeps the cluster writable but silently stops enforcing. Choose deliberately, and alert on webhook error rate and on the delta between audit findings and admission denials.
  • Stale policy. OPA pulls bundles from a bundle server on a polling interval (defaults are on the order of a minute), so admission can enforce an older revision than CI. Log the bundle revision in every decision and alert when it differs from the revision CI pinned.
  • Exception rot. Exceptions need an owner and an expiry date in the policy data, not a comment. Alert on exceptions past expiry; a growing count means the policy is wrong, not the team.
  • Bypass. If the pipeline is the only enforcement, anyone with cloud credentials goes around it. Measure it: count resources missing the provenance tag CI applies, and alert on the ratio.

Trade-offs. Sentinel is Terraform Cloud/Enterprise-only and evaluates inside the run: fine if you are already there, useless for cluster admission. OPA/Rego is one language across CI, admission and app authz, at the cost of Rego's learning curve. Kyverno is Kubernetes-only but YAML, so platform teams adopt it faster. Don't put everything in prevent: a policy that blocks deploys over a missing tag gets routed around within a week.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-13

Design platform API versioning and deprecation.

Answer

What I'd say first

Assume a control-plane REST API plus an event stream, with two client classes: internal services we can deploy in lockstep, and customer automation we cannot. The goal is that a client pinned to v1 keeps working unchanged for a published window, and that we can tell at any moment who is still on v1.

Version at the wire boundary, one major at a time

Put the major version in the URL path: POST /v2/clusters. Not a header. Path versioning is routable at the edge, cacheable without Vary gymnastics, and visible in access logs: a v1 request shows up in the log line, not buried in an Accept header. Header versioning (Accept: application/vnd.acme.v2+json) keeps URLs stable and allows per-resource granularity, but it breaks naive CDN caching and turns "who is on v1" into a log-parsing problem. When the main risk is invisible old clients, path wins.

Within a major version, changes are additive only: new optional fields, new endpoints, new enum values clients must tolerate. Removing a field, tightening validation, or changing a default is breaking and needs a new major.

For events and internal gRPC, don't version the name: evolve the schema. Protobuf field numbers are the contract: never reuse a number, reserved the ones you retire, add fields as optional. A consumer that ignores unknown fields keeps working across additive changes with no version negotiation at all.

Deprecation is a dated, observable process

When v1 must go:

  1. Ship v2 and dual-serve both from one routing layer with two handlers, so there is no second deployment to drift.
  2. Announce with a replacement, a migration guide, and a sunset date. Emit Sunset: Wed, 01 Jan 2026 00:00:00 GMT (RFC 8594) and the Deprecation header (IETF draft, @1735689600 timestamp form) on every v1 response.
  3. Window: 12 months for GA, 90 days for beta. Long enough for a customer's quarterly release train.
  4. After sunset, return 410 Gone with a body pointing at v2. Not 404, which reads as a typo.

Telemetry is the whole game

Track requests per (version, client ID). The failure mode is not "someone forgot to migrate": it's "we didn't know who was still calling." Portal traffic is not API traffic: a dashboard showing 0.1% of requests on v1 can be one automation account doing 40% of your write volume. Alert when a version's non-zero traffic persists past sunset, and page the owning team.

Failure modes and how you catch them

  • Silent field removal: a client's strict deserializer throws. Caught by consumer-driven contract tests (Pact) in CI, not by your own tests.
  • Dual-serve drift: two handlers diverge on shared validation. Caught by running the same conformance suite against both.
  • Enum addition breaking a switch with no default: caught by a lint rule requiring default branches, or by having the SDK treat unknown enums as errors.

Deciding criteria

SchemeGranularityCostUse for
URL path (/v2/)Whole APIClient changes base URLPublic control planes
Header (Accept: ...v2+json)Per resourceCache-hostile, log-invisibleOnly when URLs are contractual
Schema evolution (protobuf)Per fieldAdditive-only, needs disciplineEvents, internal RPC

Pick path for the public surface, schema evolution for everything behind it, and reserve header negotiation for the rare case where a URL is itself a published contract.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-14

Design IDP status and failure feedback.

Answer

The first 60–120 seconds

Assume the IDP provisions a service through an async workflow (repo, CI pipeline, database, DNS record, IAM role) where the DB and DNS steps take minutes. The request is a durable record, not an HTTP call. I'd model it as a state machine with per-step state, because one boolean can't tell a user whether they're waiting on DNS or stuck.

Overall state is derived from step rows, not stored as a single enum: FAILED if any step FAILED, SUCCEEDED if all SUCCEEDED, otherwise PROVISIONING. ROLLING_BACK is transient after a mid-flight cancel.

StateMeaningTerminal
PENDINGaccepted, no step startedno
VALIDATINGpolicy/quota checksno
PROVISIONING≥1 step RUNNINGno
ROLLING_BACKcompensating deletes after cancel/failno
SUCCEEDEDevery step SUCCEEDEDyes
FAILEDa step exhausted its retriesyes
CANCELLEDuser cancelled, rollback finishedyes

Per-step states: PENDING, RUNNING, SUCCEEDED, FAILED, SKIPPED.

Schema

SQL
CREATE TABLE requests (
  request_id      BIGSERIAL PRIMARY KEY,
  idempotency_key TEXT NOT NULL UNIQUE,
  state           TEXT NOT NULL DEFAULT 'PENDING',
  created_at      TIMESTAMPTZ NOT NULL DEFAULT now()
);

CREATE TABLE request_steps (
  request_id  BIGINT NOT NULL REFERENCES requests(request_id),
  step_name   TEXT   NOT NULL,
  state       TEXT   NOT NULL DEFAULT 'PENDING',
  attempts    INT    NOT NULL DEFAULT 0,
  deadline_at TIMESTAMPTZ NOT NULL,
  updated_at  TIMESTAMPTZ NOT NULL DEFAULT now(),
  PRIMARY KEY (request_id, step_name)
);

The UNIQUE on idempotency_key makes a duplicate POST return the existing request ID with 200 instead of starting a second workflow. The composite primary key makes a retried workflow skip steps already SUCCEEDED and re-run only the failed one.

Reconciler (Python 3.11, psycopg-style; runs every 60 s)

Python
MAX_ATTEMPTS = 1  # one retry after the first deadline miss

def reconcile(now):
    rows = db.query(
        "SELECT request_id, step_name, attempts FROM request_steps "
        "WHERE state = 'RUNNING' AND deadline_at < %s", (now,))
    for r in rows:
        if cloud.read(r.step_name, r.request_id) == "ready":
            db.execute("UPDATE request_steps SET state='SUCCEEDED', updated_at=%s "
                       "WHERE request_id=%s AND step_name=%s",
                       (now, r.request_id, r.step_name))
        elif r.attempts >= MAX_ATTEMPTS:
            db.execute("UPDATE request_steps SET state='FAILED' "
                       "WHERE request_id=%s AND step_name=%s",
                       (r.request_id, r.step_name))
        else:
            db.execute("UPDATE request_steps SET attempts=attempts+1, deadline_at=%s "
                       "WHERE request_id=%s AND step_name=%s",
                       (now + timedelta(minutes=10), r.request_id, r.step_name))

Worked trace: duplicate POST, then a DB step that never becomes ready. Reconciler period P = 60 s, DB deadline D = 600 s, one retry.

t (s)Eventrequests.staterequest_steps
0.000POST /services, Idempotency-Key: abcPENDING—
0.010workflow startsPROVISIONING(42,repo,RUNNING)
0.900repo donePROVISIONING(42,repo,SUCCEEDED)
0.910db startsPROVISIONING(42,db,RUNNING, deadline=600.910)
600.000client retries POST abcPROVISIONINGunchanged: unique index hit, 200 {request_id: 42}
660.000reconciler tickPROVISIONINGdb not ready, attempts 0→1, deadline=1260.000
1260.000tickPROVISIONINGdeadline 1260.000 < 1260.000 is false → skipped
1320.000tickFAILEDdb not ready, attempts 1 ≥ 1 → FAILED

First-pass detection bound is D + P = 660 s; with one retry the worst case is 2D + 2P = 1320 s (22 min). The client polls GET /requests/42 every 5 s, so it sees FAILED within 5 s of the tick.

Trade-offs

Coarse vs per-step status: one enum is a day's work, but a 6-minute DB provision looks identical to a hung one. Per-step costs a status table and a UI, and buys you "stuck on DNS for 12 minutes".

Push vs pull: provider webhooks give sub-second feedback but need signature verification and retry, and many providers don't offer them. Polling every 5 s is simpler and bounded, at the cost of up to 5 s of extra latency.

Fail-fast vs rollback: fail-fast leaves orphaned resources. A DNS record and a half-created DB that cost money and confuse the next attempt. Rollback is more code and can itself fail, so I'd roll back only steps that are cheap to reverse and mark the rest for an orphan sweep.

Failure modes and how they're detected

  • Double-click duplicate: two request IDs sharing an idempotency key. Should be impossible with the unique index; alert if the count is ever above zero.
  • Provider timeout: a step exceeds its deadline (10 minutes for DB). The reconciler marks FAILED with retryable=true; the retry reuses the same request ID.
  • Late completion after cancel: a nightly orphan sweep compares cloud resources against request records.
  • Browser disconnect: status is server-side, so reconnecting re-fetches it; nothing is lost.

Error payload

JSON
{
  "code": "DB_PROVISION_TIMEOUT",
  "reason": "policy: db.tier=standard requires 10m deadline",
  "remediation": "POST /requests/42/retry",
  "retryable": true,
  "correlation_id": "c7f1e2a4"
}

Internal diagnostics stay in logs keyed by correlation ID, never in the response body.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

Operate the IDP as a production dependency.

Answer

What I'd say first (60–120s). Treat the IDP as a tier-1 service with an owner, an SLO, an error budget and a documented degraded mode, not as tooling. The one architectural decision that buys most of the reliability is separating the control plane (API, reconcilers, policy engine, provider clients) from the workload runtime (the clusters, namespaces and pipelines it manages). If the control plane is down, running workloads keep serving; you lose the ability to change them, which is a survivable failure. I'd assume multi-tenant, GitOps-style desired state, third-party providers (cloud, VCS, CI), and a platform team of roughly 6–10, so single-region active-passive is the starting point, not multi-region active-active.

SLOs and error budgets. Pick a small set of surfaces and give each a number. Illustrative targets for a 28-day window:

SurfaceSLISLOBudget (28d)
Auth (OIDC token issue)fraction < 300 ms99.9%~40 min
Discovery (catalog read)availability99.95%~20 min
Provisioning (env create)success within 15 min99%~6.7 h
Deployment (trigger→rollout)p95 < 5 min99.5%~3.4 h
Status pagefreshness < 60 s99.9%~40 min

99.9% of 28 days is 0.001 × 40,320 min ≈ 40 min: that's the arithmetic behind the first row. For platform state (desired state, policy bundles, audit) I'd set RPO 5 min via continuous backup and RTO 1 h. Credentials are the exception: RPO 0, because secrets live in an external store and are re-fetched, never restored from a blob.

Mechanism. Desired state lives in Git; a controller diffs actual against desired and applies. Two properties make this safe under failure: idempotency keys on every provider call, so a retried create can't produce two clusters, and timeouts plus cancellation, so a hung provider call doesn't wedge the queue.

Worked trace: partial provisioning. User requests env payments-staging; the DB provider starts returning 429.

  1. Reconcile #1: create project → prj-8842, written to status.
  2. Create VPC → vpc-11a, written to status.
  3. Create DB → provider 429 at t=30s; timeout fires; controller records Provisioning=False, reason=ProviderThrottled and requeues with backoff 1s, 2s, 4s… capped at 5 min.
  4. Reconcile #2 at t≈31s: project and VPC already exist, idempotency keys match, both skipped. Only the DB is retried.
  5. If the provider never recovers, at 15 min the env flips to Degraded, idp_provision_stuck_total alerts, and the status page shows it. No orphaned resources, because every step is keyed.

Trade-offs. Active-active control plane across regions roughly doubles cost and forces you to solve cross-region state conflicts. I'd stay active-passive until the IDP gates deploys for revenue services, then the 1 h RTO stops being acceptable. And I wouldn't hand-roll a reconciler if Argo CD or Crossplane already covers the loop; owning a control plane means owning a pager rotation, and that cost is real.

Failure modes and how you see them.

  • Provider outage: provider error rate > 5% for 5 min fires idp_provider_errors; queue depth climbs while deploys still work from cached artifacts.
  • Lost events: a dropped VCS webhook causes drift. A full reconcile every 30 min catches it; alert on drift count, not on webhook delivery.
  • Break-glass: control plane down, prod needs a change. Documented path is direct kubectl with audit, then reconcile back; detection is an break_glass=true audit entry.

Change safety. Policy bundles get unit tests, the reconciler canaries to one tenant before fleet-wide, and rollback is reverting the Git commit plus pinning the controller version.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Test an IDP before production rollout.

Answer

Before I test anything I'd pin down what the IDP actually is, because the plan changes completely. I'll assume the common shape: a Backstage portal in front of a control plane, Crossplane or Terraform, that provisions namespaces, repos, pipelines, databases and secrets into shared clusters, with product teams as tenants. The thing under test is not the UI. It's the contract: can a developer get from a request to a running, observable, recoverable service, and what happens to platform state when a step in the middle fails.

So the core answer is two passes. First, walk the golden path end-to-end through every interface a developer actually uses (portal, CLI, API, and the GitOps PR) because teams will use all four and they drift. Second, inject failures into the control plane, because that's where the expensive bugs live.

Here's the trace I'd run first. A developer requests a new service. The platform creates a composite with three managed resources: a namespace, an IAM role, an RDS instance. I inject a timeout on the RDS provisioner: realistic, since RDS creation takes 10-20 minutes. Namespace and role land; RDS sits in "creating"; the composite never goes ready.

Now re-submit the identical request. If the composite is keyed on a deterministic name, team plus service, the second request is a no-op that reconciles the existing one. Good. If the platform generates a fresh UUID per request, you get a second namespace and a second RDS: split state and duplicate spend. That's the defect. A duplicate db.t3.medium left running is on the order of $50 a month at list price: illustrative, but the point is it's silent.

Then check what the developer sees. "Provisioning" forever with no error is a failure. Expected: a status naming the failing resource and a retry that resumes rather than restarts.

That's one check. The full plan is tiered, and the tier you pick is a trade-off, not a checklist.

tiercoversenough when
smokegolden path end-to-end, one tenantearly platform, few teams, non-prod blast radius
control-plane failuretimeout, duplicate request, partial provisioning, portal/API outageshared clusters, multi-tenant
fullrestore drill, ownership transfer, policy exception, cost, secret rotationregulated, prod blast radius

The deciding criteria are blast radius, tenant count, and whether the platform owns cloud resources or just namespaces. A platform that only cuts namespaces is cheap to get wrong; one that owns databases and IAM roles is not. Don't run the full suite on day one, but don't ship to a shared prod cluster on the smoke tier either.

Failure modes I'd name explicitly, with how each is detected: orphaned resources after partial provisioning, caught by drift detection or a cost anomaly; non-idempotent re-request, caught by counting resources per service; secret rotation that doesn't propagate, caught by Vault audit-log age versus pod restart age; a policy exception silently allowed, caught by OPA decision logs; portal outage blocking deploys, caught by a synthetic check that deploys via GitOps with the portal down.

Before expanding to more teams, I want named owners and evidence that recovery actually worked: a restore that ran, not a runbook that exists.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-19

Handle a faulty platform template released broadly.

Answer

Clarify first. The one thing I need before touching anything: is this template consumed by reference (a Terraform module, a Helm chart, a shared CI pipeline that services point at) or scaffolded once (Backstage software template, cookiecutter) so each generated repo is a frozen copy? That single fact decides revert versus migration, and it's the fork the whole incident turns on. I'll assume a versioned internal template in a registry, consumed by ~400 services, with a bad version published this morning.

Core answer. Freeze, measure, then choose the fork.

Freeze is minutes and reversible: pin the release channel back to last-known-good, block the Renovate/Dependabot PRs that bump the template, and disable the scaffolder template so no new repos are born from it. Don't delete the bad version: you need it to reproduce.

Measure blast radius by version, not by guess. Query the registry and adoption telemetry for who actually resolved the bad version, and split that into "consumed by reference" and "scaffolded from it." Those two populations need different fixes.

The fork, and why. If consumers reference the template, the bad version is a pointer. Reverting the pointer and re-running plan/apply restores them, unless the bad version created durable state the previous version can't describe. A renamed Terraform resource is the classic case: the old module plans a destroy/create, and if that resource is a database, revert is data loss. So the deciding question is: did the bad version mutate state that last-known-good cannot represent? No → revert. Yes → forward-fix with a versioned migration.

If the template scaffolds once, reverting fixes nothing for existing repos: they're frozen copies. You ship a codemod/migration PR instead, and you must diff against the original scaffold commit so you don't clobber user edits made after generation.

SignalRevertForward-fix + migration
Consumptionby referencescaffolded once, or state mutated
terraform plan on old versionno-op / in-place-/+ on a stateful resource
Generated reposuntouchedalready diverged from scaffold
Time to safeminuteshours, staged

Blast radius, worked (hypothetical figures). 400 services; telemetry shows 248 resolved v3.4.0. Of those, 190 reference the module, 58 were scaffolded. Of the 190, terraform plan against v3.3.9 is a no-op for 176 and shows -/+ on a stateful resource for 14. So: revert 176, forward-fix 14, codemod 58. That's the whole incident scoped to three queues instead of "all services."

Failure modes. Reverting a module that renamed a resource silently queues a destroy: detect it in terraform plan before apply, never after. A codemod that rewrites generated files overwrites user edits: detect by diffing each repo against its scaffold commit and refusing to touch files that diverged. And a scaffolder left enabled keeps minting bad repos while you fix the old ones.

Prevention, tied to root cause. Contract tests on the template's rendered output, signed releases so a bad version can't be published unreviewed, staged rollout through release channels (internal → 10% → all) with adoption telemetry as the gate, and a rollback drill that actually exercises the revert path.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-22

Retire an IDP capability or tool.

Answer

What I'd say first

Retiring an IDP capability is a dependency-closure problem, not a communications problem. The question that decides the plan is: what breaks the day after the endpoint returns 410, and who finds out? I'd assume the capability has a named owner, a replacement exists that covers the same use cases, and I can read the platform's own call telemetry. If any of those is false the plan changes: see the trade-offs below.

The order is freeze, baseline, migrate, degrade, delete. Baseline comes before the announcement because announcing changes behaviour: the moment you publish a deprecation notice, teams stop calling the old path, and your usage data goes stale exactly when you need it to decide who still has to move. Snapshot actual callers first, then announce, then keep measuring.

Eligible vs actual consumers

Eligible consumers are everything that could call it: every repo with the SDK in its lockfile, every service account holding the scope. Actual consumers are who called it in the observation window. The gap is often an order of magnitude or more, and closing it is the whole job. Portal visits measure interest, not use: a team that opened the migration guide and never migrated looks identical to one that finished.

Pull callers from the gateway or audit log, grouped by caller identity, over a window longer than the longest scheduled consumer. A nightly job shows up in a 7-day window; a monthly billing reconciliation does not.

Shell
# distinct callers of the legacy route over 90 days
aws logs filter-log-events \
  --log-group-name /aws/apigateway/prod \
  --start-time $(( $(date +%s) - 90*86400 ))000 \
  --filter-pattern '"POST /v1/legacy-tokens"' \
  --query 'events[].message' --output text \
  | jq -r '.identity.serviceAccount' | sort | uniq -c | sort -rn

Field names follow your gateway's log schema; the shape is what matters.

Phases and exit criteria

PhaseExit criterionEvidence
Freezeno new scope grantsIAM audit: count of service accounts holding the scope stops rising
Baseline90 days of calls grouped by callergateway access log
Migrateevery caller with at least one call in the window has a merged migration PRCI plus repo search
Degradezero write calls for 14 daysgateway log filtered on method
Deletezero calls for 30 days and no IaC referencegateway log plus grep over infra repos

Those windows are policy choices, not measurements: derive them from your longest scheduled consumer rather than copying a template.

Trade-offs

Big-bang is fine when actual consumers are a handful and you can reach every owner directly. Staged degrade (warn, then read-only, then 410) is for when the tail is unknown. The rollback window should be set by the cost of being wrong, not by habit. If the replacement is drop-in and data is migrated, two weeks is generous. If it changes semantics (different token format, different consistency guarantees) keep read-only for a quarter, and keep it read-only: a read-write rollback means two systems of record and a reconciliation problem you did not have before.

Don't retire at all if the capability is the only path to a compliance or audit requirement the replacement does not cover. Deprecate the interface, keep the backend.

Failure modes

Resurrection: a Terraform module or service template still references the capability and a new service calls it after the cutoff. Detect with an alert on any call to the route post-deletion, plus a grep for the module name across infra repos.

Invisible periodic consumers: a quarterly job that never appears in a 30-day window. Detect by comparing the observation window against every scheduled job's period.

Orphaned secrets: the service is deleted, the credentials are not. Scan the secret store for the capability's prefix before closing the ticket.

Vendor auto-renewal: contracts renew silently. Calendar the notice period, commonly 30 to 90 days, before you fix the deletion date.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-11

Migrate existing services onto a golden path.

Answer

Clarify first. "Golden path" means the platform's supported default: one CI/CD pipeline, one infra module, one observability and identity stack. So the real question is how to move brownfield services onto it without breaking production or freezing feature work. I'd assume the golden path already exists and new services use it, teams keep shipping during the migration, and the platform team is a handful of engineers, not a fleet-wide rewrite crew.

Core answer. Migrate a wave at a time, and never overwrite a repo. The sequence:

  1. Inventory and score. Per service: owner, runtime, dependencies, state, ingress, identity, secrets, delivery, SLOs. Score fit: a Kubernetes Deployment with a Helm chart is a config change; a VM with a hand-rolled deploy script is a rebuild.
  2. Add metadata and telemetry before moving anything. Register the service in the catalog (Backstage) and get OpenTelemetry traces plus RED metrics flowing. You cannot cut over what you cannot see.
  3. Generate, don't overwrite. Emit the golden-path pipeline and Terraform module into the repo as a PR. The old pipeline stays until the new one is green.
  4. Shadow, then shift. Run the new path in parallel, reconcile config drift, then move traffic with a weighted split.
  5. Cut over by risk, keep rollback.

Why shadow-then-cutover is safer. The failure you're guarding against is a config difference that only shows under real load: a missing env var, a different secret mount, a NetworkPolicy that blocks a dependency. Shadowing exercises the new path with production-shaped input while the old path still serves, so the diff surfaces before users see it. Weighted traffic (1% → 10% → 50% → 100%) bounds blast radius: at 1% a bad release costs 1% of requests, and rollback is a weight change, not a redeploy.

Trade-offs. Big-bang (fork-lift) is right when the service is small, stateless and low-traffic: one weekend, done. Strangler/incremental is right when the service is stateful, carries an SLO, or has downstream consumers you don't control. When not to migrate: a service being decommissioned within a quarter, or one whose owner is gone and is frozen. Leave it, document it as off-road, revisit. Migrating a service nobody owns just relocates the orphan.

Failure modes.

  • Config drift: new path reads a different secret path, 500s on first request. Detect: shadow error rate vs baseline.
  • Stateful cutover: two writers to one database. Detect: duplicate writes or constraint violations. Cost: data repair.
  • Old-path rot: nobody patches the legacy pipeline, a CVE sits. Detect: dependency scan on legacy repos.
  • Exception creep: 30% of services "can't" use the golden path. That means the path is wrong, not the services.

Wave plan (hypothetical figures).

WaveCriteriaCountEffort each
1Stateless, standard runtime, owned40~4 h config PR
2Stateful, standard runtime25~3 days + data migration
3Non-standard runtime15~2 weeks rebuild
4Frozen / unowned10document, defer

Arithmetic. 40×4 h = 160 h; 25×3 d = 600 h; 15×2 wk = 1200 h → ~1960 h ≈ one engineer-year. With 8 platform engineers that's roughly 6 months, which is why wave 4 gets deferred rather than forced. Kubernetes readiness probes default to periodSeconds: 10, failureThreshold: 3: a 30-second window before a bad pod is pulled, so size your traffic steps to outlast it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

Roll out an IDP without a big-bang mandate.

Answer

Assumptions I'd state up front: 8–15 teams, 30–80 services, an existing CI/CD that mostly works, a platform team of 3–6 engineers, and no exec mandate to force migration. If any of those are wrong (say, 200 teams or a compliance deadline) the plan changes, and I'd say so before answering.

The answer: don't roll out an IDP. Roll out one golden path to three teams, prove it beats what they already have, then widen. A big-bang mandate buys compliance in weeks and engagement never arrives; the first friction point sends teams back to the old path the moment the mandate lapses.

Concretely: recruit 3 design partners who share a painful journey, not "they're friendly," but their stack matches the median team's stack. If the median team runs Node on Kubernetes with a hand-rolled Helm chart, the design partners should too. Ship the thinnest end-to-end path that covers that journey: commit → build → test → deploy → rollback. Nothing else. No service catalog, no scorecards, no portal.

Then measure against the status quo on a metric the teams already track: cycle time from merge to prod, and rollback time. Not "developer satisfaction."

Worked example (hypothetical figures, labelled as such):

metricstatus quo (3 teams, 22 services)golden path
median merge→prod47 min11 min
p90 merge→prod3 h 20 m38 min
rollbackmanual, ~25 min, 1 in 6 deploysone command, ~90 s
onboarding a new service2 days of copy-paste15 min

After 6 weeks, 2 of 3 teams made the golden path their default. The third didn't: its build needed a Windows-only dependency the path didn't cover. That's the signal: fix the gap before widening eligibility, because the next 5 teams will hit the same wall.

Why this works (the mechanism): adoption without a mandate is a diffusion problem, not a compliance problem. Teams switch when the new path is measurably less work than the old one and they can verify that themselves. Comparative measurement defuses the "you're forcing this on us" objection because you're not asking for trust: you're handing them their own numbers. A mandate inverts this: it gets you compliance in weeks, but engagement never arrives, and the first friction point sends teams back.

Failure modes and how you detect them:

  • Design partners are friends, not representative. Detect: compare their stack to the median team's stack; if it doesn't match, the results don't transfer.
  • The golden path drifts into a snowflake. Detect: track the share of deploys that use the path vs. escape hatches. If escape-hatch use climbs past ~20%, the path is losing.
  • Premature retirement of old tooling. Detect: count remaining callers before you turn anything off. Retire only when the count is zero for a full release cycle and you've verified recovery from the new path.

Tradeoffs:

  • Mandate vs. adoption: mandate is faster (weeks) and produces compliance; adoption is slower (2–4 quarters) and produces durable usage. Mandate where authority already exists: security controls, deprecated runtimes with CVEs, cost caps. Don't mandate product usage to manufacture a success metric.
  • Cost of the chosen path: you run two systems for 2–4 quarters. Budget for it; the alternative is a migration that stalls halfway.

What would change my decision: a CVE or compliance deadline that forces migration on a fixed date. Then I'd mandate for that slice only, and keep the golden path as the destination.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12

Govern off-road platform use.

Answer

"Off-road" here means a team running something the platform doesn't support: their own Kafka, their own ingress controller, a hand-rolled deploy pipeline. Assume a platform team of ~35 engineers supporting ~400 services, a paved path of a service template, managed Postgres and shared CI, and a security org that owns encryption and data-residency rules.

Don't ban it and don't bless it. Make off-road a time-boxed, owned exception with an expiry date that something actually enforces, and keep a short non-waivable security floor. Everything else is negotiable.

tierwho approvestime boxwhat it costs the team
pavednobodynonenothing
off-road waiverplatform lead + owning director90 days, renewable twiceown on-call for the component, own upgrades, SLO reported in the catalog
prohibitedcannot be waived——

The prohibited list is short and specific: public object storage, unencrypted PII at rest, self-managed auth/identity, anything writing directly into another team's database. Enforce those in CI with policy-as-code (OPA/Conftest against the Terraform plan), not in review: review is exactly where they get waived.

Mechanism: the waiver is a record in the service catalog (a Backstage entity annotation, say) carrying owner, reason code and expiry. A nightly job reads the catalog; anything past expiry flips to expired and opens a PagerDuty incident on the owning team. That's the whole loop. It works because the cost lands on the team that took the exception rather than on the platform team, and because expiry is a date, not a judgment call.

Why govern tightly at all: leverage. One upgrade path, one on-call, one security review. When it's the wrong call: the platform is often the bottleneck. If adding a queue to the paved path takes six weeks and the product needs it in three days, forcing paved loses the deal and you get a shadow deployment anyway. So govern by outcome (SLO, security floor, cost attribution) rather than by mechanism. When the off-road thing is genuinely novel and the platform team can't yet say what "good" looks like, a 90-day waiver is the right call: you're buying information, not granting permission.

Failure modes worth naming:

  • Waiver sprawl. 200 open waivers, none reviewed. Detect by counting waivers with expiry more than 180 days out; alert at 20. Cost: each is a snowflake the platform team can't patch, and the upgrade train slows for everyone.
  • Shadow platform. One team's off-road component becomes a dependency of five others. Detect by inbound dependency count on a non-paved component in the service graph; alert at 3. Cost: you now run two platforms with half the headcount.
  • Renewal theater. Median renewal time under two minutes means nobody read it. Detect by measuring the gap between expiry notice and renewal.
  • Security floor erosion. Detect via Conftest policy failures in CI. These block the merge; they don't page.

Cluster signal: three or more waivers sharing a reason code is the platform's roadmap. Build the paved capability, set a convergence date, migrate. If the cluster survives two cycles, the honest move is to reaffirm the boundary in writing, "we will not support this", and have the owning director accept the risk.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-24

Assess whether an IDP should be mandatory.

Answer

The 90-second answer

First, pin down "mandatory": for whom, for what, and enforced where? I'll assume a few hundred engineers, Kubernetes-based delivery, a regulatory obligation (SOC 2 or PCI), and a mix of CI systems already in use.

My answer: don't mandate the platform. Mandate the control interface. Four things are non-negotiable for anything reaching production: human identity through OIDC SSO with no local accounts, workload identity through short-lived OIDC-issued tokens instead of static cloud keys, artifact provenance verified at admission, and audit logs retained 12 months with the most recent 3 months immediately searchable (PCI DSS v4.0, 10.5.1). Everything else (which CI, which language, which deploy tool) is a golden path, not a gate.

Why a blanket mandate backfires

A mandate changes the platform team's question from "is this better than what teams already have?" to "are they allowed to do otherwise?" That kills the feedback loop. Under voluntary adoption, low uptake is a signal the platform is worse. Under a mandate, low uptake looks like compliance and the signal disappears. You discover the problem a year later, when the platform is required, unloved, and the real work happens in a shadow pipeline.

The decoupling that makes this work: the control plane is where authority and risk live, so enforce there. The workload path is where developer throughput lives, so compete there. Enforce at the admission boundary: a Kubernetes ValidatingAdmissionPolicy (GA in 1.30) or the equivalent CI gate, not in the IDE or the repo template.

ControlMandate?Enforcement point
Human identityYesOIDC SSO, local accounts disabled
Workload identityYesShort-lived OIDC tokens, static cloud keys rejected
Artifact provenanceYes for prodSLSA Build L3 attestation verified at admission
SBOMYes for prodCycloneDX generated in CI, attached to the image
Audit log retentionYes12 months retained, 3 months hot
CI systemNoGolden path default, documented escape hatch
Language / frameworkNoSupported templates, not enforced
Deploy toolingNoAny tool that emits provenance

Failure modes and how you'd see them

  1. Shadow systems. Teams keep the old path for "urgent" work. Detection: cloud spend on service accounts outside the platform's OIDC trust, resources missing platform tags, CI minutes on non-platform runners. Cost: duplicate on-call, security blind spots, two ways to do everything.

  2. Exception collapse. Exceptions are granted with an owner and an expiry, then never revisited. Detection: median exception age, share past expiry, and the ratio, if exceptions grow faster than services onboard, the mandate is losing. Cost: the exception process becomes the real platform.

  3. Mandate without task success. The platform is required but slower than what it replaced. Detection: DORA lead time for changes rising after the mandate date, platform deploy success rate below ~95%, or a spike in "deploy failed, retried by hand" tickets.

Arithmetic (hypothetical)

300 services, 8% needing an exception = 24. Each costs 3 h of engineer time plus 1 h of security review = 96 h, about 2.5 engineer-weeks per quarter just to administer. Meanwhile, if the golden path saves 25 minutes per deploy and 60 teams deploy 3×/week, that's 75 min/week/team, or 75 h/week across the org. The admin cost is noise next to that: the real cost is the shadow systems the mandate creates.

When not to mandate

If the platform can't yet serve a workload class (GPU training jobs, mainframe batch, a vendor SaaS you don't control) mandating it just manufactures exceptions. Publish the eligibility criteria, measure coverage per class, and revisit once the gap closes.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

Measure developer experience for a platform.

Answer

Start by naming what you're measuring: the friction between "I have an idea" and "it's running in production safely," plus how the developer feels about that friction. Two frameworks keep you honest: DORA's four delivery metrics (deployment frequency, lead time for changes, change failure rate, time to restore) and SPACE, which adds satisfaction and flow. I'd instrument both, because telemetry tells you where the time goes and surveys tell you whether the time was worth it. Neither alone is enough: a team can have a 20-minute lead time and still hate the platform, and a team can love the platform while shipping once a month.

Pick three or four tasks that represent the platform's actual job: onboard a new service, ship a one-line change to production, get a preview environment, recover from a failed deploy, and define the start and end event for each so the number is unambiguous. Then wire the events to sources you already have: CI pipeline start/end and queue timestamps, the deploy tool's rollout and rollback events, the incident tool's page-to-resolve times, and a two-question survey fired after the task completes rather than quarterly, so it isn't recency-biased.

SignalSourceDecision it drives
Lead time p50/p90CI + deploy eventsWhere to add capacity
Environment waitqueue timestampsPool size vs ephemeral envs
Change failure ratedeploys vs rollbacksTest and rollout investment
Task satisfactionpost-task surveyDirection when telemetry is flat

Here's why the decomposition matters more than the headline. Suppose a service's lead time is 26 hours at the median but 6 days at p90. Break the 26 hours apart: 40 minutes of CI, 2 hours waiting on review, and 20 hours waiting for a shared staging slot. The median says "fine." The breakdown says the staging pool is the bottleneck, and that's a decision, add slots or move to ephemeral environments, not a dashboard. The p90 is the second story: if the tail is 6 days, some change class is stuck, and you go find which one.

On approach, telemetry is cheap, continuous, and blind to friction that leaves no trace: the developer who gave up and asked a colleague in Slack. Surveys capture that perception but suffer low response rates and recency bias. Task analysis, watching five engineers do the onboarding task, is expensive and finds the real blocker. Use telemetry for volume and trend, surveys for direction, and task analysis when telemetry is flat but sentiment is bad.

Three failure modes, each with a detection signal. A single "DX score" is a vanity aggregate: compute per-segment p90 and if the aggregate is flat while one segment's p90 is ten times the rest, the mean is hiding a blocked team and the roadmap funds nothing. Activity surveillance (commits per day, keystrokes) shows up when the metric tracks headcount rather than outcomes and commit-splitting appears; the cost is that survey response rates collapse and the data becomes worthless. Goodhart on DORA shows up when deployment frequency rises and change failure rate rises with it, so always read those two together.

Segment results and set a minimum reporting size, don't publish a segment under five people, and never rank individuals. Close the loop by publishing the one or two bottlenecks you found and the roadmap change that follows, or the next survey gets ignored.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

Design cost visibility and guardrails in an IDP.

Answer

Say this first (the 90-second version)

Assumptions: ~200 engineers, ~600 services on one shared EKS cluster, ~$4M/year cloud spend, provisioning through Backstage templates + Terraform modules + Argo CD, and Finance wants chargeback next year. Under ~$50k/month of spend or under ~30 engineers, I would not build chargeback: enforced tags plus a monthly review is enough.

I build it in this order: attribution, visibility, guardrails. Guardrails layered on attribution nobody trusts just put an unbelievable number in front of a team, and the first thing they do is route around the platform.

Attribution: a closed loop, not a convention

Tags are set by the provisioning path, not by the human. The Terraform module requires owner, team, env and cost_center variables; Kyverno or OPA Gatekeeper rejects any workload in a namespace missing cost_center; a mutating webhook blocks later edits to that label. Then the loop closes nightly: a job joins the billing export (CUR via Athena, or the BigQuery billing export) to the resource inventory and publishes unallocated spend per account. Page the platform team above 5% of that account's spend. Spend that cannot be tagged (data transfer, support, tax, marketplace) gets one documented allocation rule (proportional to tagged compute inside the account), and that rule lives on the dashboard rather than in a wiki.

Visibility: estimate before, unit cost after

Before provisioning, the Backstage template shows a monthly estimate and the top two drivers, priced from a cached price list rather than a live API call. After, show total and unit cost per service. Unit cost is the number that changes behaviour.

Hypothetical prices, real shape: 6 pods x 2 vCPU = 12 vCPU at $0.0408 per vCPU-hour (m7g.medium on-demand list, us-east-1, before commitments) = $0.49/hr, about $357/month at 730 hours. At 30M requests/month that is $11.90 per million requests; at 60M on the same pods it is $5.95. The same workload requests 12 vCPU and averages 2.5, 21%, so the cheapest lever is VPA recommendations after 14 days of observation, not a node-family change. If 0.5-vCPU requests survive a load test and the autoscaler drops two m7g.xlarge nodes, that is roughly $240/month, which is a number a team will actually act on.

Guardrails: four tiers, escalating

tiertriggermechanismlifted by
defaultalways250m CPU / 256Mi requests, HPA 2-10 at 70% target, cheapest viable SKU in the modulePR to the module
alert80% of linear month-to-date forecastSlack to the team channel; 100% includes the EM; owned alias, track time-to-acknot lifted
quotanon-prod namespacesResourceQuota; preview environments reaped at 3 days idle, 7 days maxplatform team
exceptiongenuinely neededowner plus expiry date, listed on the dashboardservice owner, expiring

Cost anomaly detection ($100 absolute, 20% relative impact threshold) is a backstop, never the primary control: the billing export lands daily, so it fires up to ~24 hours late.

Failure modes, and how each is detected

  • Tag drift leaves spend unallocated; the nightly per-account unallocated number is the detector.
  • A guardrail that blocks the launch path sends teams to the cloud console. Track the share of resources carrying the platform's managed-by tag; below 95% means your guardrail is being avoided, not obeyed.
  • Even-split chargeback makes a two-person team pay for the shared cluster. Allocate only on a measurable driver (vCPU-hours, requests, GB-months) and leave the remainder as a visible platform overhead line.
  • A cost change that breaks the SLO: lowering HPA max is free until p99 crosses the target. Gate cost changes on error budget, not on the estimate.

What would change this

Showback for two quarters, then chargeback, gated on unallocated spend under 5%. If most of the bill is a managed warehouse, query-level attribution there matters more than anything the IDP does. If compliance demands hard isolation, per-team clusters make attribution trivial and cost 30-40% more: a real trade, not a default.

Track: percent of spend allocated, median idle-to-deleted time, unit-cost trend for the top 20 services, and the count of open exceptions.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-25

Measure whether the IDP reduced cognitive load.

Answer

The 90-second answer

Don't ask "is the platform easier to use?" Ask: for a fixed task, did the number of things a developer has to hold in their head go down, and did that show up in behaviour? Pick three tasks (bootstrap a new service, ship a change to prod, debug a failing deploy) and measure each one before and after, on the same teams, with a control group that stayed on the old path.

Concretely: NASA-TLX (six subscales, 0–100, about two minutes to fill in) immediately after the task, plus the task's own clock and error count. Then difference-in-differences against the control group, because raw before/after numbers will lie to you.

Why the control group is the whole answer

A team's deploy time drops for a dozen reasons that have nothing to do with your IDP: they hired a senior, a shared CI cache landed, the holiday freeze ended, on-call load changed. Without a comparison you cannot separate the platform from team maturity or a concurrent tooling change.

Hypothetical worked example. Twelve teams adopt, four stay on the old path. Median time-to-first-deploy: adopters 3d 4h → 40m; control 3d 2h → 2d 6h, because they got the CI cache too. Raw adopter delta is −3d 3h, control delta is −20h, so the net IDP effect is about −2d 7h. NASA-TLX raw score for "deploy a new service": 62 → 41 for adopters, 60 → 57 for control. A net −18 points. The survey and the clock agree, which is the point of triangulating rather than trusting either.

Where the load goes

Two failure modes are worth instrumenting, because both look like success on the headline metric.

Load shifted to the platform team. Detect it by tagging the platform ticket queue "how do I" versus "platform bug" and tracking how-do-I tickets per 100 deploys, weekly. If adoption climbs and how-do-I tickets per developer climb with it, you moved the load rather than removing it. The cost is real: six platform engineers spending 30% of their week on how-do-I tickets is 1.8 FTE, and that is the price of the abstraction.

Abstraction hid the mechanism. Detect it by comparing MTTR for IDP-deployed services against non-IDP ones, and by a five-question comprehension check ("what actually runs when you merge?"). Deploy time down 80% while MTTR doubles means developers can no longer debug what they can't see.

Choosing the instrument

NASA-TLX on a fixed task is the best fit for "did load drop": cheap, comparable across teams, weak on where the load went. Shadowing five to eight developers for a day is the best fit for where it went and for counting context switches, but it doesn't scale and the Hawthorne effect is real. Proxies (time-to-first-deploy, docs search rate, ticket ratio, change-failure rate) are free and continuous but confounded; use them to trigger a study, not to conclude one. SUS measures perceived usability of the portal, not task load, so don't substitute it for TLX; its published cross-study average sits around 68, which is a benchmark, not a target.

Deciding rule: if the IDP has fewer than about 20 regular users, or shipped less than a sprint ago, skip the study. Read the ticket queue and the deploy logs instead: below that scale the noise swamps the effect.

Two things that keep it honest

Segment by experience and by whether the person was on call that week; a senior on a quiet week is not your median developer. Pre-register the tasks and the primary metric before rollout so you can't pick the flattering one afterwards. And report at team level, never per individual: TLX plus a name is a performance review waiting to happen.

Curated: · Written: · Reviewed:

Difficulty: Hard