Interview Prep/CI/CD/Pipeline Design and Architecture

How would you design CI/CD for 200 microservices in 30 teams?

AdvancedProductionPipeline Design and Architecture
Answer
  1. Golden path templates: shared workflows/components per language, owned by a platform team, versioned.
  2. Self-service: a repo scaffold (Backstage template) creates the app, pipeline, and GitOps entries together.
  3. Ephemeral runners on Kubernetes (ARC / GitLab Kubernetes executor), autoscaled, with separate pools for untrusted and deploy jobs.
  4. GitOps for deployment: CI updates a config repo, Argo CD/Flux deploys, so CI has no cluster credentials.
  5. Policy gates enforced centrally: required scans via rulesets or policy, image signing, admission control (Kyverno/Gatekeeper) verifying signatures.
  6. Observability: DORA metrics per team from deployment events, pipeline duration/failure dashboards.
  7. Governance: deprecation windows for template versions, platform office hours.

The trade-off is standardisation versus autonomy; we keep the paved road easy and allow escape hatches that are visible and audited.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Pipeline Design and Architecture