CI/CD Pipelines 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 CI/CD Pipelines flashcards as text
A company wants to implement canary deployments for an AWS Lambda function through CodeDeploy. Which deployment preference type should they configure?
Answer: Canary
The Canary deployment preference in CodeDeploy shifts a small percentage of traffic to the new Lambda version first, then shifts the remainder after a validation interval.
What does the 'transition disabled' state on a CodePipeline stage mean?
Answer: Artifacts cannot pass from the previous stage into this stage until the transition is re-enabled
Disabling a stage transition prevents new executions from entering that stage while allowing in-progress executions to complete, useful for freeze windows.
A CodeBuild project needs access to resources inside a private VPC. Which configuration is required?
Answer: Configure VPC settings (VPC ID, subnets, security groups) in the CodeBuild project
CodeBuild can be configured with a VPC, subnets, and security groups so build containers are placed inside the VPC and can reach private resources.
Which AWS CodePipeline source action type natively supports triggering on a pull request event from a GitHub repository?
Answer: CodeStarSourceConnection action (GitHub version 2)
The CodeStarSourceConnection action (GitHub version 2) uses AWS CodeStar Connections and supports pull request triggers as well as push events.
A team wants to enforce that unit tests must pass before the Docker image is pushed to ECR in CodeBuild. How should they order the buildspec phases?
Answer: pre_build → build → post_build, with tests in build and push in post_build
Best practice is to run tests in the build phase and push artifacts (like Docker images to ECR) in post_build, so a test failure stops the pipeline before the push.
Which resource allows AWS CodeDeploy to identify the set of EC2 instances that should receive a deployment?
Answer: CodeDeploy Deployment Group
A CodeDeploy Deployment Group defines the target instances (via tags, Auto Scaling groups, or on-premises instances) for a deployment.
A DevOps engineer needs to roll back a failed CodeDeploy deployment on EC2 instances automatically. What setting enables this?
Answer: Configure 'Automatic rollback on deployment failure' in the deployment group settings
CodeDeploy deployment groups have a built-in automatic rollback option that triggers a new deployment of the last successful revision when a deployment fails.