Volume 9 · Chapter 11 — CI/CD, DevOps and Infrastructure as Code

Volume Summary and Interview Rapid-Fire

Goutham Mayaluri 3 min read AWSCloudCI/CDInfrastructure as Code

11.1 What This Volume Covered

This volume covered how software reaches production reliably: CI/CD fundamentals, continuous integration in depth (frequent integration, automated testing, quality gates), continuous delivery and AWS pipeline tooling (build-once-promote, CodePipeline/CodeBuild/CodeDeploy), infrastructure as code (CloudFormation/CDK/Terraform and plan/apply), DevSecOps (shift-left scanning, secrets, least-privilege pipelines), and GitOps with environment consistency and drift prevention. The unifying theme is automating the path to production with discipline - automated verification, immutable artifacts promoted through gated environments, infrastructure and desired state in version control, security built in, and everything reviewed, reproducible, and auditable. The rest of this chapter consolidates the essentials.

11.2 Rapid-Fire Interview Questions

Rapid-Fire

CI vs CD?

CI frequently merges changes, each auto-built and tested to catch problems early. CD keeps passing changes always releasable (Continuous Delivery) or auto-deploys them (Continuous Deployment). Together they automate the commit-to-production path with quality gates.

Rapid-Fire

Why frequent small releases over big ones?

Small changes are easy to understand, diagnose, and roll back, so each release is low-risk; big releases bundle many changes and make failures hard to isolate. Frequent and safe deployment reinforce each other.

Rapid-Fire

Why build once and promote?

So production runs exactly what was tested. Rebuilding per environment risks a different artifact, breaking the value of testing. Build one immutable versioned artifact, inject config per environment, and promote it - which also makes rollback trivial.

Rapid-Fire

What are the AWS pipeline services?

CodePipeline orchestrates the stages, CodeBuild builds and tests, CodeDeploy deploys with strategies like blue-green; artifacts live in S3/ECR. The same concepts apply with GitHub Actions, GitLab CI, or Jenkins deploying to AWS.

Rapid-Fire

What does the IaC plan/apply workflow protect against?

Making unreviewed, surprising, or destructive infrastructure changes. Plan/what-if shows exactly what will be created, changed, or destroyed before anything happens, reviewed in a PR; only then does apply execute it - catching a database deletion or firewall opening before it occurs.

Rapid-Fire

CloudFormation vs CDK vs Terraform?

CloudFormation is AWS-native declarative (no state to manage); CDK defines infrastructure in real languages generating CloudFormation; Terraform is cloud-agnostic with a state file to manage carefully. All provision declaratively from version control.

Rapid-Fire

What does "shift security left" mean?

Move security checks earlier - to coding and build - so vulnerabilities are caught cheaply before production. Run static analysis, dependency scanning, image scanning, and IaC scanning as gates that stop a failing change.

Rapid-Fire

Why must the pipeline be least-privileged?

Because it can deploy to production, so it’s a powerful identity - a compromised over-privileged pipeline could do enormous damage. Scope its IAM role per stage/environment to exactly what it needs, limiting blast radius.

Rapid-Fire

What is GitOps?

An operating model where the desired state of apps and infrastructure is declared in Git and automation reconciles the running system to it. Git is the single source of truth; changes go through reviewed PRs, giving auditability, reproducibility, and easy rollback.

Rapid-Fire

What is configuration drift and how do you prevent it?

Drift is a running environment silently diverging from its code definition due to manual changes. Prevent it by prohibiting manual production changes and routing everything through reviewed Git/pipelines, and catch it with drift detection that alerts on divergence.

11.3 Closing

CI/CD, infrastructure as code, and GitOps turn delivery into an automated, disciplined, auditable practice - catching problems early, promoting immutable artifacts through gated environments, defining infrastructure and desired state in version control, and building security in throughout. These practices operationalize everything the earlier volumes built. The next volume turns to the asynchronous backbone that ties distributed systems together: messaging and event-driven architecture on AWS.