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.

MediumSystem Design
47 practiced

Design an autoscaling strategy for CI build agents/runners that must handle bursty, mixed workloads (short CPU-bound jobs alongside long-running GPU jobs). Cover autoscaling triggers (queue length, pending jobs, historical ramp patterns), binpacking small jobs onto leftover capacity, pre-warmed pools to reduce cold-start latency, scale-down cooldowns, and how you'd ensure fair-share capacity across teams sharing the pool.

EasyTechnical
57 practiced

Write a GitHub Actions workflow YAML that builds a Docker image on push to main, tags it with the commit SHA and a build number, and pushes it to a container registry using repository secrets for authentication. Show the major steps (checkout, build, registry login, push) and explain exactly where and how the secrets are referenced so they never appear in logs. Then explain how you'd restrict which branches are allowed to run the push/deploy steps.

EasyTechnical
59 practiced

Write a declarative Jenkinsfile for a Java Maven service that checks out the repository, runs mvn validate, runs the unit test suite, archives the built JAR as a pipeline artifact, and publishes JUnit test results. Target an agent labeled for Linux with Maven available, and include a post block that always publishes test results and prints a short build summary.

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.

EasyTechnical
51 practiced

Explain the difference between Continuous Integration, Continuous Delivery, and Continuous Deployment. Describe an organizational scenario where you would stop at Continuous Delivery (a manual gate before production) rather than go fully automated to Continuous Deployment, and what changes about testing responsibility and release risk in each case.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.