🐳 Amazon ECS - DVA-C02 Practice Questions

Run containerized applications with ECS — task definitions, services, Fargate, EC2 launch type, service discovery, load balancing, auto-scaling, and ECR integration.

9Questions Available
2Exam Domains

Practice ECS Questions Now

Start a timed practice session focusing on Amazon ECS topics from the DVA-C02 question bank.

Start DVA-C02 Practice Quiz →

DVA-C02 ECS Question Bank (9 Questions)

Browse all 9 practice questions covering Amazon ECS for the DVA-C02 certification exam. Answers are intentionally hidden on this page so you can self-test first before checking results in quiz mode.

  1. Question 1Deployment

    A developer wants to deploy containerized microservices using ECS on Fargate. Which launch type eliminates the need to manage EC2 instances?

    AEC2 launch type
    BFargate launch type
    CExternal launch type
    DSpot launch type

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  2. Question 2Deployment

    A developer uses ECS Fargate with task definitions. They want to inject environment-specific values (e.g., DB endpoint) without rebuilding the container image. What is the approach?

    AHardcode values in the Docker image
    BPass environment variables in the ECS task definition, referencing Secrets Manager or SSM Parameter Store
    CUse a CloudFormation parameter in the container
    DMount an EFS volume with a config file

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  3. Question 3Deployment

    A developer uses CloudFormation to deploy an ECS service. The task definition references an ECR image. How should the image tag be managed in the template?

    AUse 'latest' tag always
    BUse a specific image tag or digest, or use a CloudFormation parameter for the tag
    CUse the ECR repository URI without a tag
    DUse a Lambda custom resource to get the latest tag

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  4. Question 4Deployment

    A developer needs to store the Docker image for their ECS application. Which AWS service provides a managed container registry?

    AS3
    BAmazon ECR
    CAWS CodeArtifact
    DEFS

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  5. Question 5Deployment

    An ECS task definition needs to expose port 8080 on the container. Which setting in the task definition configures this?

    ANetworkMode: bridge with hostPort: 8080
    BPortMappings with containerPort: 8080
    CSecurity group inbound rule for port 8080
    DALB listener on port 8080

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  6. Question 6Deployment

    A developer deploys ECS tasks with Fargate. The tasks need to pull images from a private ECR registry in a different account. What is required?

    ACreate a VPC peering connection between accounts
    BConfigure the ECR repository resource policy to allow the ECS task execution role from the other account
    CCopy the Docker image to the local account's ECR
    DUse ECS task networking with NAT Gateway

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  7. Question 7Deployment

    A developer wants CodePipeline to deploy to an ECS service using a new Docker image. Which action provider performs this deployment?

    ACodeDeploy action with ECS
    BAmazon ECS action (Deploy to ECS)
    CCloudFormation action with ECS update
    DCodeBuild action with ECS CLI

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  8. Question 8Security

    A developer wants to store OAuth 2.0 client secrets securely and rotate them automatically without redeploying the application. Which service handles this best?

    ALambda environment variables
    BAWS Secrets Manager with automatic rotation
    CCloudFormation parameter with NoEcho
    DS3 with server-side encryption

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  9. Question 9Deployment

    A developer wants to use a canary deployment for an ECS service to minimize risk. Which service enables traffic shifting for ECS with automatic rollback?

    AElastic Beanstalk
    BAWS CodeDeploy with ECS deployment group using ALB target groups
    CAWS App Mesh
    DRoute 53 weighted routing

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz

Key ECS Concepts for DVA-C02

ecsfargatetask definitionservicecontainerecrservice discoveryauto-scalingcluster

DVA-C02 ECS Exam Tips

Amazon ECS questions in DVA-C02 are typically scenario-based. Focus on application development patterns, event-driven integration, and secure coding on AWS. Priority concepts: ecs, fargate, task definition, service, container, ecr.

What DVA-C02 Expects

  • Anchor your answer in select developer-friendly managed services and patterns that minimize custom undifferentiated code.
  • ECS scenarios for DVA-C02 are frequently mapped to Domain 1 (32%), Domain 3 (24%), so read the objective carefully before picking controls or architecture.
  • Expect multi-topic scenarios where ECS interacts with IAM, networking, storage, or observability patterns rather than appearing as an isolated question.
  • When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Associate) and vendor best practices.

High-Value ECS Concepts

  • Know the core ECS building blocks cold: ecs, fargate, task definition, service.
  • Review the edge-case features and limits for container, ecr; these details are commonly used to differentiate answer choices.
  • Practice service-integration reasoning: how ECS pairs with ECR, CodeDeploy, Lambda in real deployment patterns.
  • For DVA-C02, explain why the chosen ECS design meets reliability, security, and cost expectations better than the alternatives.

Common DVA-C02 Traps

  • Watch for using infrastructure-centric answers instead of application-centric ones.
  • Questions in Development with AWS Services often include distractors that look correct for ECS but violate least-privilege, durability, or availability requirements.
  • Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
  • If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.

Fast Review Checklist

  • Can you compare at least two ECS implementation paths and justify which one best fits the scenario?
  • Can you map the chosen answer back to Development with AWS Services (32%) outcomes for DVA-C02?
  • Can you explain security and access boundaries for ECS without relying on default-open assumptions?
  • Can you describe how ECS integrates with ECR and CodeDeploy during failure, scaling, and monitoring events?

Exam Domains Covering ECS

Related Resources

More DVA-C02 Study Resources