DevOps Engineer interview question · Most asked

Design an end-to-end CI/CD and GitOps setup for 50 microservices, with testing, security scanning, artifact management and production deployment.

Design Asked in DevOps Engineer · Site Reliability Engineer (SRE) interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Each service's CI builds once per commit: test, scan, build an image tagged with the commit SHA, sign it, attach an SBOM and push it to a registry. CD is GitOps: a separate config repository (Helm or Kustomize per environment) records which image runs where, and Argo CD or Flux syncs clusters to it. Promotion is a pull request that changes the image tag for the next environment, with progressive delivery and automated rollback in production.

Longer Answer

CI (per service, from a shared reusable pipeline)

  • Lint, unit tests, SAST and dependency scanning on every pull request; required checks before merge.
  • On merge: build the image once, scan it (Trivy/Grype), generate an SBOM, sign it (cosign), push to the registry (ECR, GHCR, Artifactory) with an immutable SHA tag.
  • Contract and integration tests against ephemeral environments where they add value.

CD (GitOps)

  • Environment repository with dev, staging, prod overlays; Argo CD ApplicationSets generate one app per service per cluster.
  • Dev updates automatically (image updater or a CI commit); staging and prod via pull requests, with approvals and policy checks (Kyverno/OPA: signed images only, no latest, resource limits required).
  • Argo Rollouts or Flagger canaries with automated analysis against error rate and latency; automatic rollback.

Platform concerns

  • Golden templates so 50 teams don't each invent pipelines; versioned and owned by a platform team.
  • Secrets via External Secrets Operator from a vault, not in Git.
  • Observability: deploy markers, DORA metrics, per-service SLOs.
  • Scale: monorepo or polyrepo both work; in a monorepo, build only changed services.

Key Points

  • Build once, scan, sign, SBOM, immutable tags.
  • GitOps repo is the source of truth for what runs where.
  • Promotion by pull request; policy checks at admission.
  • Canaries with automatic analysis and rollback.
  • Shared templates so every team gets the controls.

Explanation

What interviewers look for

A coherent design that separates CI from CD, covers supply-chain security and promotion, and scales to many teams through standard templates.

More DevOps Engineer questions

← All DevOps Engineer questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake