Courseiva

DVA-C02 · topic practice

Deployment practice questions

The Deployment domain covers how code moves from repository to running AWS environments. Expect questions on CodePipeline stages and actions, CodeBuild buildspec.yml, CodeDeploy appspec.yml and deployment strategies, Elastic Beanstalk configuration and environments, and CloudFormation change sets and rollbacks. Scenarios ask you to pick the service or configuration that automates a described workflow.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Deployment

What the exam tests

What to know about Deployment

Be able to map a deployment scenario to the right service and configuration file. The single most important thing: know which artifact each service consumes and produces, and where buildspec.yml versus appspec.yml belongs.

Choosing CodeDeploy, CodePipeline, CodeBuild, or Elastic Beanstalk for a given deployment scenario

Writing buildspec.yml phases and artifacts for AWS CodeBuild builds

Using appspec.yml hooks and deployment strategies like blue/green in CodeDeploy

Configuring Elastic Beanstalk with .ebextensions and saved configurations for EC2 customization

Watch out for

Common Deployment exam traps

  • ▸Confusing CodeBuild (compiles and tests) with CodeDeploy (installs the built artifact onto instances or Lambda).
  • ▸Forgetting that CodePipeline stage actions need a runOrder and that a failed stage halts the pipeline unless retried.
  • ▸Assuming .ebextensions files run at every deploy; they run during environment creation and configuration updates, not arbitrary code pushes.

Practice set

Deployment questions

20 questions · select your answer, then reveal the explanation

Question 1mediummultiple choice
Read the full Deployment explanation →

A developer is deploying a serverless application using the AWS Serverless Application Model (SAM). The application includes an Amazon API Gateway HTTP API and several AWS Lambda functions. The developer wants to implement a canary deployment for the API Gateway stage so that 10% of traffic is shifted to the new version for 30 minutes before the remaining 90% is shifted. Which SAM resource attribute should the developer configure on the API Gateway resource?

Question 2mediummultiple choice
Review the full routing breakdown →

A developer is deploying an application to Amazon ECS using AWS CodeDeploy with a blue/green deployment strategy. After the new task set is created, it fails health checks. The developer wants to immediately route traffic back to the original task set without waiting for CodeDeploy to complete the rollback process. Which action should the developer take?

Question 3mediummultiple choice
Review the full routing breakdown →

A developer is deploying a new version of a web application to an EC2 Auto Scaling group using AWS CodeDeploy with a blue/green deployment strategy. The Auto Scaling group is associated with an Application Load Balancer (ALB). The developer wants to ensure that the new instances are registered with the ALB and pass health checks before any traffic is routed to them. Which CodeDeploy configuration should the developer use?

Question 4hardmultiple choice
Read the full Deployment explanation →

A developer is using AWS CodeDeploy to deploy an application to an Auto Scaling group of EC2 instances. The application is critical and must have zero downtime. The Auto Scaling group currently has 4 instances spread across 2 Availability Zones. Which predefined deployment configuration minimizes the number of instances taken out of service at any given time?

Question 5mediummultiple choice
Read the full Deployment explanation →

A developer is using AWS CodeDeploy to deploy an application to an Amazon ECS service with the Fargate launch type. The deployment uses a blue/green strategy. After the new task set is created and passes the initial health checks, the traffic is shifted to the new task set. However, the new task set is immediately replaced by the old one after a few minutes, causing a rollback. What is the most likely reason?

Question 6mediummultiple choice
Read the full Deployment explanation →

A developer is deploying a microservice using AWS CodeDeploy with an Amazon ECS compute platform. The service must be updated with a blue/green deployment strategy. The developer wants to ensure that if the deployment fails, the new task set is automatically terminated and the original task set continues to serve traffic. Which configuration should the developer set?

Question 7mediummultiple choice
Read the full Deployment explanation →

A company deploys a serverless application using AWS SAM. The application includes an Amazon API Gateway HTTP API and several AWS Lambda functions. The developer wants to implement a canary deployment for the API Gateway stage: 5% of traffic should be immediately shifted to the new version, and after 15 minutes, the remaining 95% should be shifted. Which SAM resource attribute should the developer configure?

Question 8hardmultiple choice
Read the full Deployment explanation →

A developer is using AWS CodePipeline with a two-stage pipeline: Source (CodeCommit) and Deploy (Elastic Beanstalk). The developer wants to add a test stage that runs unit tests using AWS CodeBuild. The test stage should run only when a specific branch (development) is pushed. Which approach should the developer use?

Question 9hardmultiple choice
Read the full Deployment explanation →

A developer is deploying a serverless application using AWS SAM. The application consists of multiple Lambda functions and an Amazon API Gateway. The developer wants to enable canary deployments for the API Gateway stage to gradually shift traffic. Which SAM resource attribute should the developer use?

Question 10mediummultiple choice
Read the full Deployment explanation →

A developer is using AWS CodeDeploy to deploy an application to an EC2 Auto Scaling group. The deployment must be rolled back automatically if any instance in the deployment fails a health check within 10 minutes after the deployment. Which configuration should the developer set in the CodeDeploy deployment group?

Question 11mediummultiple choice
Read the full Deployment explanation →

A company uses AWS CodeDeploy to deploy a web application to an Auto Scaling group of EC2 instances. The deployment must automatically roll back if the new application version causes health check failures for more than 20% of the instances within the first 5 minutes after deployment. Which configuration should the developer set in the deployment group?

Question 12hardmultiple choice
Review the full routing breakdown →

A company uses AWS Elastic Beanstalk to deploy a web application. The development team wants to test a new feature by routing a small percentage of traffic to a separate environment before fully rolling out. Which Elastic Beanstalk deployment strategy should the developer use?

Question 13mediummultiple choice
Read the full Deployment explanation →

A developer is using AWS Elastic Beanstalk to deploy a Node.js application. The application requires an environment variable that contains a secret (e.g., a database password). The developer wants to store the secret securely and make it available to the application instances. Which Elastic Beanstalk feature should be used?

Question 14easymultiple choice
Read the full Deployment explanation →

A developer is deploying a new version of a web application on AWS Elastic Beanstalk. The application currently runs in a single environment with an Auto Scaling group. The developer wants to ensure zero downtime during the deployment and that the new version can be fully tested before receiving any traffic. Which Elastic Beanstalk deployment policy should the developer use?

Question 15mediummultiple choice
Read the full Deployment explanation →

A developer is using AWS CloudFormation to deploy a stack with multiple resources. To ensure that a specific EC2 instance is created only after a security group is created, the developer wants to define the dependency. How should the developer achieve this in the CloudFormation template?

Question 16easymultiple choice
Read the full Deployment explanation →

A developer is deploying an application using AWS Elastic Beanstalk. The application requires a custom Amazon Machine Image (AMI) that includes specific software packages not available in the standard Elastic Beanstalk platform. Which approach should the developer use to ensure the custom AMI is used for all EC2 instances in the environment?

Question 17mediummultiple choice
Review the full routing breakdown →

A developer is deploying an application using AWS Elastic Beanstalk with a Docker platform. The developer wants to minimize downtime during deployments and ensure that the new version is fully tested before routing traffic to it. Which deployment policy should the developer choose?

Question 18easymultiple choice
Read the full Deployment explanation →

A developer is deploying a web application using AWS Elastic Beanstalk. The application runs on multiple Amazon EC2 instances behind an Application Load Balancer. The developer wants to deploy a new version with zero downtime and the ability to quickly roll back if issues are discovered. Which deployment policy should the developer choose?

Question 19mediummultiple choice
Read the full Deployment explanation →

A developer is deploying a web application on AWS Elastic Beanstalk. The environment must maintain the same number of running instances throughout the deployment to ensure capacity. The developer also wants to minimize downtime. Which deployment policy should be used?

Question 20hardmultiple choice
Read the full Deployment explanation →

An Elastic Beanstalk deployment must avoid downtime and create a full new set of instances before swapping traffic, accepting higher temporary cost. Which policy fits?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Deployment sessions

Start a Deployment only practice session

Every question in these sessions is drawn from the Deployment domain — nothing else.

Related practice questions

Related DVA-C02 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the DVA-C02 exam test about Deployment?
Be able to map a deployment scenario to the right service and configuration file. The single most important thing: know which artifact each service consumes and produces, and where buildspec.yml versus appspec.yml belongs.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Deployment questions in a focused session?
Yes — the session launcher on this page draws every question from the Deployment domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other DVA-C02 topics?
Use the topic links above to move to related areas, or go back to the DVA-C02 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the DVA-C02 exam covers. They are not copied from any real exam or dump site.