Quiz: Module 12: CI/CD Pipelines
Test your understanding of the concepts covered in this module.
9 questions
- 1
Which of the following best describes the difference between Continuous Integration (CI) and Continuous Delivery (CD)?
- 2
A developer is writing a `buildspec.yml` file for an AWS CodeBuild project. The file needs to install dependencies, run linting and unit tests, compile the application, and log a completion message. Which of the following correctly maps each task to the appropriate buildspec phase? | Task | Phase | |------|-------| | Install npm dependencies | _______ | | Run linting and unit tests | _______ | | Compile the application with `npm run build` | _______ | | Log a completion timestamp | _______ | Options:
- 3
In an AWS CodeDeploy `appspec.yml` file for an EC2/on-premises deployment, which lifecycle hook should you use to run a script that verifies the application is responding to HTTP requests after the deployment completes?
- 5
A team is deploying a critical e-commerce application that processes thousands of orders per minute. They need a deployment strategy that provides near-zero downtime and the ability to roll back to the previous version within seconds if the new version has a defect. Which deployment strategy best meets these requirements?
- 6
Which of the following is a key advantage of using a manual approval action in an AWS CodePipeline production pipeline?
- 7
A development team uses GitHub as their source control platform and needs to deploy their application to Amazon ECS using blue/green deployments managed by AWS CodeDeploy. They want pull request builds and tests to run in GitHub, but production deployments must use the AWS deployment toolchain. Which approach best fits these requirements?
- 8
How does AWS CodePipeline pass data between stages in a pipeline?
- 9
Your team has a CodePipeline that deploys a web application to Amazon EC2 instances using CodeDeploy with the `AllAtOnce` deployment configuration. During a recent deployment, a bug in the new version caused all instances to return HTTP 500 errors simultaneously, resulting in a 15-minute outage while the team manually redeployed the previous version. The team wants to prevent this from happening again while keeping deployment times reasonable. Which combination of changes would most effectively reduce the risk of a full outage during future deployments?
- 10
A team stores their pipeline definition as a CloudFormation template in version control alongside their application code. Which of the following is NOT a benefit of defining the pipeline as code?