DevOps Engineering on AWS Certification CI/CD Pipelines on AWS 1 — Questions and Answers
Question 1: Which AWS service is used to create fully managed continuous delivery pipelines?
- AWS CodePipeline (Correct answer)
- AWS CodeBuild
- AWS CodeCommit
- AWS CodeDeploy
Correct answer: AWS CodePipeline
AWS CodePipeline is the fully managed continuous delivery service that automates release pipelines for fast and reliable application updates.
Question 2: In AWS CodeBuild, what file defines the build commands and related settings?
- buildspec.yml (Correct answer)
- pipeline.yml
- appspec.yml
- taskdef.json
Correct answer: buildspec.yml
The buildspec.yml file is a collection of build commands and related settings used by CodeBuild to run a build.
Question 3: Which CodeDeploy deployment type shifts traffic from the original environment to the replacement environment all at once?
- Blue/Green
- In-Place (Correct answer)
- Canary
- Linear
Correct answer: In-Place
An in-place deployment updates the application on existing instances, replacing the old version all at once on each instance.
Question 4: What is the purpose of an approval action in AWS CodePipeline?
- To pause the pipeline until a human approves continuation (Correct answer)
- To automatically approve all stages
- To trigger a Lambda function
- To run integration tests
Correct answer: To pause the pipeline until a human approves continuation
An approval action pauses a pipeline execution until a reviewer approves or rejects the action, enabling manual gates in automated pipelines.
Question 5: Which AWS CodeDeploy hook runs validation tests after traffic is shifted to the new instances in a blue/green deployment?
- AfterAllowTraffic (Correct answer)
- BeforeInstall
- ApplicationStart
- ValidateService
Correct answer: AfterAllowTraffic
The AfterAllowTraffic hook runs after the load balancer routes traffic to the replacement instances, allowing post-deployment validation.
Question 6: Which artifact store type is natively supported by AWS CodePipeline for storing pipeline artifacts?
- Amazon S3 (Correct answer)
- Amazon EFS
- Amazon EBS
- Amazon Glacier
Correct answer: Amazon S3
AWS CodePipeline uses Amazon S3 as the default artifact store to pass artifacts between pipeline stages.
Which AWS service is used to create fully managed continuous delivery pipelines?