DevOps Engineering on AWS Certification SDLC Automation and CI/CD Pipelines 2 — Questions and Answers
Question 1: Which AWS CodeDeploy deployment type is supported for AWS Lambda functions?
- In-place
- Rolling
- Blue/green (Correct answer)
- Immutable
Correct answer: Blue/green
AWS Lambda deployments only support blue/green deployments, which shift traffic between Lambda function versions using aliases.
Question 2: In a CodePipeline, where must build artifacts be stored when passed between stages?
- Amazon EFS
- Amazon S3 (Correct answer)
- AWS CodeCommit
- Amazon DynamoDB
Correct answer: Amazon S3
CodePipeline uses Amazon S3 as the artifact store to pass build artifacts between pipeline stages.
Question 3: Which CodeDeploy appspec.yml section defines the scripts to run at each lifecycle event hook for an EC2 deployment?
- Resources
- Hooks (Correct answer)
- Files
- Permissions
Correct answer: Hooks
The Hooks section of appspec.yml specifies the scripts to run at each lifecycle event hook during a CodeDeploy deployment.
Question 4: A CodeBuild project needs to cache Maven dependencies between builds. Which cache type should be configured?
- No cache
- Amazon S3 cache (Correct answer)
- Local cache
- ElastiCache
Correct answer: Amazon S3 cache
Amazon S3 cache in CodeBuild stores and retrieves build dependencies between builds, reducing build time for projects like Maven.
Question 5: Which CodePipeline action category is used to deploy artifacts to AWS CloudFormation?
- Source
- Build
- Test
- Deploy (Correct answer)
Correct answer: Deploy
The Deploy action category in CodePipeline handles deployment tasks, including deploying stacks using AWS CloudFormation.
Question 6: What feature of AWS CodeDeploy allows automatic rollback when a deployment triggers a CloudWatch alarm?
- Deployment group rollback policy
- Automatic rollback configuration (Correct answer)
- Deployment health threshold
- Lifecycle event timeout
Correct answer: Automatic rollback configuration
Automatic rollback configuration in CodeDeploy can be set to roll back deployments when specified CloudWatch alarms are triggered.
Which AWS CodeDeploy deployment type is supported for AWS Lambda functions?