🃏 CI/CD Pipelines Flashcards

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

Card 1 of 10

Question

What are the CodeDeploy deployment types for EC2?

Click to reveal answer

Answer

In-place (stop app, update, restart) and Blue/Green (new instances, traffic shift, terminate old). Blue/green requires an ELB.

Click to flip back

All CI/CD Pipelines Flashcards

1

Q: What are the CodeDeploy deployment types for EC2?

A: In-place (stop app, update, restart) and Blue/Green (new instances, traffic shift, terminate old). Blue/green requires an ELB.

2

Q: How does CodePipeline handle cross-account deployments?

A: The pipeline assumes an IAM role in the target account. Artifacts are encrypted with a CMK shared across accounts via key policy grants.

3

Q: What is a CodeDeploy deployment group?

A: A set of target instances/tasks identified by tags, ASG, or ECS service. Each group has its own deployment configuration and alarm settings.

4

Q: What are CodeDeploy lifecycle hooks for EC2?

A: ApplicationStop → BeforeInstall → AfterInstall → ApplicationStart → ValidateService. BeforeBlockTraffic and AfterBlockTraffic for ELB.

5

Q: How do you implement manual approval in CodePipeline?

A: Add a Manual Approval action in a stage. Optionally send SNS notification. Pipeline pauses until approved/rejected or times out (7 days max).

6

Q: What is CodeBuild batch build?

A: Run multiple build jobs in parallel from a single buildspec. Useful for testing across multiple runtimes or running unit/integration tests simultaneously.

7

Q: What is CodeDeploy canary deployment for Lambda?

A: Shifts a percentage of traffic (e.g., 10%) to new version, waits, then shifts remaining 100%. Rolls back if alarms trigger during the wait period.

8

Q: How do you trigger a pipeline from a Git push?

A: EventBridge rule detects CodeCommit/GitHub push events and starts the pipeline. Preferred over polling for lower latency and cost.

9

Q: What happens when a CodeDeploy deployment fails?

A: If auto-rollback is enabled, CodeDeploy redeploys the last known good revision. For blue/green, it reroutes traffic back to the original instances.

10

Q: What is a CodePipeline artifact?

A: A ZIP file stored in the pipeline S3 bucket containing source code, build output, or deployment packages passed between stages.

More DOP-C02 Flashcard Decks