🃏 CI/CD on AWS Flashcards

Test your knowledge of CodePipeline, CodeBuild, CodeDeploy, SAM, and deployment strategies.

Card 1 of 10

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

1

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.

2

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.

3

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.

4

Q: What does sam local invoke do?

A: Runs a Lambda function locally in a Docker container, emulating the Lambda execution environment for testing.

5

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.

6

Q: What is CodePipeline's artifact store?

A: An S3 bucket that stores pipeline artifacts (source code, build outputs) passed between stages.

7

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.

8

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.

9

Q: What lifecycle hooks does CodeDeploy EC2 support?

A: BeforeInstall, AfterInstall, ApplicationStart, ApplicationStop, ValidateService, and others. Defined in appspec.yml.

10

Q: How does CodeDeploy automatic rollback work?

A: Rollback triggers on deployment failure or when CloudWatch alarms breach thresholds during deployment.

More DVA-C02 Flashcard Decks