DevOps CI/CD Pipeline Design & Implementation Flashcards
7 cards from real AWS practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 DevOps CI/CD Pipeline Design & Implementation flashcards as text
A team wants to run integration tests in AWS CodePipeline only after unit tests pass, and in parallel with security scans. Which pipeline configuration achieves this?
Answer: Use a single stage with multiple action groups: unit tests in group 1, integration tests and security scans in group 2
CodePipeline action groups within a stage run sequentially by group number, but actions within the same group run in parallel, enabling this dependency pattern.
Which AWS CodeBuild feature allows you to cache dependencies between builds to reduce build time?
Answer: CodeBuild cache configured with S3 or local cache for dependency directories
CodeBuild supports S3 caching and local caching (within the same build host) for directories like node_modules or .m2 to speed up subsequent builds.
A company needs to deploy a Lambda function with zero downtime and the ability to instantly roll back if errors spike. Which deployment configuration should they use?
Answer: CodeDeploy with a Canary10Percent5Minutes deployment configuration
CodeDeploy Canary deployments shift a small percentage of traffic first, monitor CloudWatch alarms, and automatically roll back if the alarm triggers within the specified window.
In AWS CodePipeline, what is the purpose of a manual approval action?
Answer: It pauses the pipeline and sends a notification, requiring a human to explicitly approve or reject before the pipeline continues
Manual approval actions halt pipeline execution and notify approvers via SNS; the pipeline resumes only when someone approves or rejects within the configured timeout.
A developer committed a broken build to the main branch. The CI system should prevent merges that break the build. Which approach enforces this on AWS CodeCommit?
Answer: Enable branch protection rules that require all pull requests to pass a CodeBuild project before merging
CodeCommit branch protection rules can require pull request approvals and associate a CodeBuild status check that must pass before a merge is allowed.
Which artifact store does AWS CodePipeline use by default to pass artifacts between stages?
Answer: Amazon S3 bucket created in the same region as the pipeline
CodePipeline uses an S3 bucket as the default artifact store; output artifacts from one stage are uploaded to S3 and downloaded by the next stage.
A team uses AWS CDK to define their infrastructure and wants pipeline changes (including the pipeline itself) to be deployed automatically when CDK code changes. Which CDK Pipelines feature enables this?
Answer: Self-mutation, where the pipeline updates itself before deploying application stages
CDK Pipelines supports self-mutation: the pipeline first runs cdk synth and updates its own CloudFormation stack, then proceeds to deploy application stages with the latest changes.