AWS Application Development & DevOps 2 — Questions and Answers
Question 1: Which AWS service automates the build, test, and deploy phases of your release process in a single managed pipeline?
- AWS CodePipeline (Correct answer)
- AWS CodeCommit
- Amazon CloudWatch
- AWS Config
Correct answer: AWS CodePipeline
CodePipeline orchestrates the full continuous delivery workflow across source, build, test, and deploy stages.
Question 2: In AWS CodeBuild, where do you define the build commands and phases?
- buildspec.yml (Correct answer)
- appspec.yml
- template.yaml
- Dockerfile
Correct answer: buildspec.yml
CodeBuild reads build phases and commands from a buildspec.yml file.
Question 3: Which deployment strategy gradually shifts traffic from the old version to the new version to minimize risk?
- Canary deployment (Correct answer)
- In-place all-at-once
- Recreate
- Cold standby
Correct answer: Canary deployment
Canary deployments route a small percentage of traffic to the new version before full rollout.
Question 4: What does AWS CodeDeploy use to define deployment lifecycle hooks for an EC2/On-Premises deployment?
- appspec.yml (Correct answer)
- buildspec.yml
- serverless.yml
- cfn-init
Correct answer: appspec.yml
The appspec.yml file specifies files to copy and lifecycle event hooks for CodeDeploy.
Question 5: Which service provides a fully managed Git-based source control repository within AWS?
- AWS CodeCommit (Correct answer)
- AWS CodeArtifact
- AWS CodeBuild
- Amazon ECR
Correct answer: AWS CodeCommit
CodeCommit hosts secure, scalable private Git repositories.
Question 6: What is the primary benefit of using Infrastructure as Code (IaC) with AWS CloudFormation?
- Repeatable, version-controlled provisioning of resources (Correct answer)
- Faster CPU performance for EC2
- Automatic cost reduction of all services
- Built-in DDoS protection
Correct answer: Repeatable, version-controlled provisioning of resources
IaC lets you define and reproduce infrastructure consistently through versioned templates.
Question 7: Which AWS service is a fully managed artifact repository for software packages like npm, Maven, and PyPI?
- AWS CodeArtifact (Correct answer)
- Amazon S3
- AWS CodeCommit
- Amazon ECR
Correct answer: AWS CodeArtifact
CodeArtifact stores and shares software packages across common package managers.
Which AWS service automates the build, test, and deploy phases of your release process in a single managed pipeline?