InterviewStack.io LogoInterviewStack.io

CI/CD Pipeline Design and Architecture Questions

Structure and operation of continuous integration and continuous delivery pipelines: stages, triggers, build/test/deploy steps, pipeline-as-code, caching, and parallelization. Covers designing enterprise-scale CI/CD architecture, integrating version control with automated pipelines, and shaping delivery workflows across many services. Focuses on how work moves from commit to production, not on the individual test suites that run inside it.

HardTechnical
43 practiced

Write a GitHub Actions workflow YAML (provide the YAML content) that builds a multi-architecture Docker image (linux/amd64 and linux/arm64) using docker buildx, caches layers, generates an SBOM using syft, scans the image with Trivy, signs the image with cosign, and pushes immutable tags to a container registry. Include secure handling of registry credentials and cosign keys using GitHub Secrets and best practices for caching.

HardSystem Design
51 practiced

Design a scalable policy-as-code enforcement mechanism for CI/CD pipelines that evaluates OPA/Gatekeeper style policies at PR-time and admission-time. Discuss caching strategies to keep evaluations performant, testability and versioning of policies, mitigating false positives, and a safe rollout strategy for changing or removing policies in production.

HardTechnical
51 practiced

Write a concise Go CLI program that accepts three inputs: (1) a JSON array of build inputs (file paths + SHA256), (2) a JSON array of outputs (file paths + SHA256), and (3) a PEM-format private key file path. The program should produce a JSON provenance attestation containing inputs, outputs, timestamp, builder ID (from BUILDER_ID env var), and a base64 signature field signing the attestation. Use only Go standard library packages. Include comments to explain deterministic JSON serialization choices.

HardSystem Design
50 practiced

Design a secrets management architecture that supports pipelines, multiple Kubernetes clusters across regions, and third-party SaaS integrations while ensuring automated rotation and least-privilege access. Cover signing and trust model, secret replication vs on-demand retrieval, cache strategies for performance, audit logging, disaster recovery of secrets, and safe decommissioning of rotated secrets.

MediumSystem Design
55 practiced

Design a CI/CD pipeline that builds container images from git commits for 200 microservices, performs static code analysis, runs unit tests, builds the image, generates an SBOM, scans the image for vulnerabilities, signs the image, and then promotes without rebuilding from dev to staging to prod. Sketch pipeline stages, gating criteria for promotion, optional manual approvals for prod, and tooling choices (examples: GitHub Actions/GitLab CI/Tekton, Trivy, Syft, Cosign).

Unlock Full Question Bank

Get access to all 11 CI/CD Pipeline Design and Architecture interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.