📋 Amazon ECR - DVA-C02 Practice Questions

Store, manage, and deploy container images with ECR — image scanning, lifecycle policies, cross-account access, immutable tags, and encryption.

4Questions Available
1Exam Domains

Practice ECR Questions Now

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

Start DVA-C02 Practice Quiz →

DVA-C02 ECR Question Bank (4 Questions)

Browse all 4 practice questions covering Amazon ECR 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 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
  2. Question 2Deployment

    A developer creates a CodeBuild project that builds a Docker image and pushes to ECR. Which buildspec.yml phase should contain the 'docker push' command?

    Ainstall
    Bpre_build
    Cbuild
    Dpost_build

    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 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

Key ECR Concepts for DVA-C02

ecrcontainer registryimagescanlifecycle policyimmutable tagcross-account

DVA-C02 ECR Exam Tips

Amazon ECR questions in DVA-C02 are typically scenario-based. Focus on application development patterns, event-driven integration, and secure coding on AWS. Priority concepts: ecr, container registry, image, scan, lifecycle policy, immutable tag.

What DVA-C02 Expects

  • Anchor your answer in select developer-friendly managed services and patterns that minimize custom undifferentiated code.
  • ECR scenarios for DVA-C02 are frequently mapped to Domain 3 (24%), so read the objective carefully before picking controls or architecture.
  • Expect multi-topic scenarios where ECR 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 ECR Concepts

  • Know the core ECR building blocks cold: ecr, container registry, image, scan.
  • Review the edge-case features and limits for lifecycle policy, immutable tag; these details are commonly used to differentiate answer choices.
  • Practice service-integration reasoning: how ECR pairs with ECS, CodeBuild, CodePipeline in real deployment patterns.
  • For DVA-C02, explain why the chosen ECR 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 Deployment often include distractors that look correct for ECR 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 ECR implementation paths and justify which one best fits the scenario?
  • Can you map the chosen answer back to Deployment (24%) outcomes for DVA-C02?
  • Can you explain security and access boundaries for ECR without relying on default-open assumptions?
  • Can you describe how ECR integrates with ECS and CodeBuild during failure, scaling, and monitoring events?

Exam Domains Covering ECR

Related Resources

More DVA-C02 Study Resources