Question
What are the CodeDeploy deployment types for Lambda?
Click to reveal answer
Answer
All-at-once (immediate shift), Canary (percentage then remainder), Linear (incremental equal steps). All use Lambda aliases.
Click to flip back
All CI/CD on AWS Flashcards
Q: What are the CodeDeploy deployment types for Lambda?
A: All-at-once (immediate shift), Canary (percentage then remainder), Linear (incremental equal steps). All use Lambda aliases.
Q: What is a buildspec.yml?
A: A YAML file that defines CodeBuild phases (install, pre_build, build, post_build), environment variables, and artifact outputs.
Q: What is the difference between in-place and blue/green CodeDeploy?
A: In-place updates existing instances one at a time. Blue/green creates new instances, shifts traffic, and terminates old ones.
Q: What does sam local invoke do?
A: Runs a Lambda function locally in a Docker container, emulating the Lambda execution environment for testing.
Q: How does CloudFormation change set work?
A: A change set previews the resources that will be added, modified, or replaced before you execute the update.
Q: What is CodePipeline's artifact store?
A: An S3 bucket that stores pipeline artifacts (source code, build outputs) passed between stages.
Q: What is Elastic Beanstalk immutable deployment?
A: Launches a new set of instances in a temporary ASG, deploys to them, then swaps into the original ASG. Quick rollback by terminating new instances.
Q: What are CDK construct levels?
A: L1: direct CloudFormation resources. L2: curated defaults with sensible APIs. L3: patterns that compose multiple resources for common architectures.
Q: What lifecycle hooks does CodeDeploy EC2 support?
A: BeforeInstall, AfterInstall, ApplicationStart, ApplicationStop, ValidateService, and others. Defined in appspec.yml.
Q: How does CodeDeploy automatic rollback work?
A: Rollback triggers on deployment failure or when CloudWatch alarms breach thresholds during deployment.