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.

MediumTechnical
45 practiced

Design a SQL schema for artifact metadata to support queries such as 'find all artifacts built from commit X' and 'list unsigned artifacts older than 30 days'. Provide a CREATE TABLE example with fields: artifact_id (PK), version, build_id, commit_sha, builder, created_at, size_bytes, signed (boolean), provenance_blob (JSON). Then write SQL queries for the two sample questions and explain indexing choices.

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).

MediumTechnical
85 practiced

As a solutions architect evaluate three approaches for secrets in CI/CD: (A) a centralized Vault with dynamic credentials, (B) platform-native sealed secrets or cluster secret stores, and (C) encrypted variables stored in the CI system. For each approach discuss security guarantees, operational complexity, secret rotation capabilities, developer experience, and auditability. Recommend which to use for a regulated financial customer and why.

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.

That is every published CI/CD Pipeline Design and Architecture question for Full-Stack Developer so far. Browse the other topics in this category, or practice this one interactively.