DevOps Engineering on AWS Certification SDLC Automation and CI/CD Pipelines 1 — Questions and Answers
Question 1: Which AWS service is used to create fully managed continuous integration and continuous delivery (CI/CD) pipelines?
- AWS CodePipeline (Correct answer)
- AWS CodeBuild
- AWS CodeDeploy
- AWS CodeCommit
Correct answer: AWS CodePipeline
AWS CodePipeline is the fully managed CI/CD service that automates build, test, and deploy phases of your release process.
Question 2: In AWS CodeDeploy, what deployment configuration gradually shifts traffic from the original to the replacement environment?
- In-place deployment
- Blue/green deployment (Correct answer)
- Rolling deployment
- Canary deployment
Correct answer: Blue/green deployment
Blue/green deployments shift traffic from the original (blue) environment to the replacement (green) environment, reducing downtime and risk.
Question 3: Which CodeDeploy lifecycle event hook runs BEFORE the application revision is downloaded to the instance?
- ApplicationStart
- BeforeInstall (Correct answer)
- ValidateService
- AfterInstall
Correct answer: BeforeInstall
The BeforeInstall hook runs before the application revision is downloaded, allowing you to prepare the instance for installation.
Question 4: A team wants CodePipeline to trigger automatically when code is pushed to an S3 bucket. Which service should they use to detect the S3 change?
- AWS CloudTrail
- Amazon EventBridge (Correct answer)
- AWS Config
- Amazon SNS
Correct answer: Amazon EventBridge
Amazon EventBridge can detect S3 object-level events and trigger CodePipeline automatically when new artifacts are uploaded.
Question 5: Which AWS CodeBuild environment variable contains the full commit ID of the source version being built?
- CODEBUILD_SOURCE_REPO_URL
- CODEBUILD_BUILD_ID
- CODEBUILD_RESOLVED_SOURCE_VERSION (Correct answer)
- CODEBUILD_SOURCE_VERSION
Correct answer: CODEBUILD_RESOLVED_SOURCE_VERSION
CODEBUILD_RESOLVED_SOURCE_VERSION contains the resolved commit ID of the source version used in the current build.
Question 6: What is the purpose of an approval action in AWS CodePipeline?
- Automatically approves deployments based on test results
- Pauses the pipeline and waits for manual approval before proceeding (Correct answer)
- Sends deployment notifications to SNS
- Validates IAM permissions for the pipeline
Correct answer: Pauses the pipeline and waits for manual approval before proceeding
An approval action pauses pipeline execution and requires a designated reviewer to manually approve or reject before the pipeline continues.
Which AWS service is used to create fully managed continuous integration and continuous delivery (CI/CD) pipelines?