💻 Amazon EC2 - DVA-C02 Practice Questions

Understand EC2 instance types, AMIs, user data, instance metadata (IMDSv2), security groups, key pairs, placement groups, and instance store vs EBS.

11Questions Available
2Exam Domains

Practice EC2 Questions Now

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

Start DVA-C02 Practice Quiz →

DVA-C02 EC2 Question Bank (11 Questions)

Browse all 11 practice questions covering Amazon EC2 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

    Which CloudFormation resource enables a developer to wait for an EC2 instance to complete initialization (e.g., run user data scripts) before the stack proceeds?

    AAWS::CloudFormation::WaitCondition with a WaitConditionHandle
    BCreationPolicy on the EC2 instance with cfn-signal
    CDependsOn with a sleep parameter
    DAWS::CloudFormation::Init

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  2. Question 2Development with AWS Services

    A development team needs to maintain session state for a web application deployed across multiple EC2 instances behind a load balancer. Which service provides a centralized, low-latency session store?

    AAmazon DynamoDB
    BAmazon ElastiCache (Redis)
    CAmazon RDS
    DAWS Systems Manager Parameter Store

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  3. Question 3Security

    A developer needs to grant an EC2 instance temporary access to DynamoDB without storing credentials on the instance. What is the correct approach?

    ACreate an IAM user and store credentials in /etc/aws/credentials
    BAttach an IAM role with the required permissions to the EC2 instance
    CUse environment variables to store access keys
    DHardcode access keys in the application config file

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  4. Question 4Deployment

    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
  5. Question 5Security

    A developer needs to use an EC2 instance to assume a role in another AWS account. Which configuration is required on the target role?

    AAttach a permission boundary to the target role
    BAdd the source account's EC2 instance role ARN to the target role's trust policy
    CCreate an IAM user in the target account
    DEnable cross-account access in IAM settings

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  6. Question 6Security

    A developer uses AWS SDK to call DynamoDB from an EC2 instance. The call fails with 'InvalidClientTokenId'. What is the MOST likely cause?

    AThe DynamoDB table does not exist
    BThe EC2 instance's IAM role credentials have expired or are missing
    CThe DynamoDB region is incorrect
    DThe SDK version is outdated

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  7. Question 7Deployment

    A CodeDeploy deployment to EC2 instances must wait for the application to pass health checks before marking the deployment successful. Which lifecycle event is used?

    AAfterInstall
    BApplicationStart
    CValidateService
    DBeforeInstall

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  8. Question 8Security

    An EC2 instance accesses the AWS SSM Parameter Store. The instance profile role has ssm:GetParameter. The parameter is encrypted with a custom KMS key. The call fails. Why?

    ASSM Parameter Store does not work with EC2
    BThe instance profile role lacks kms:Decrypt on the custom KMS key
    CThe parameter is in the wrong region
    DEC2 cannot use SecureString parameters

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  9. Question 9Security

    A developer needs to ensure that EC2 instances in a VPC cannot communicate with the internet, even with an Internet Gateway attached. Which VPC feature enforces this?

    ASecurity group with outbound deny-all rule
    BNetwork ACL with outbound deny rule for 0.0.0.0/0
    CRoute table with no route to the Internet Gateway
    DVPC endpoint with restrictive policy

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  10. Question 10Deployment

    A developer uses CloudFormation to update a stack. The update requires replacing an EC2 instance. How can the developer minimize disruption?

    AUse a change set and review the replacement before applying
    BUpdate the stack without reviewing
    CDelete and recreate the stack
    DUse cfn-init to update in place

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  11. Question 11Deployment

    A developer uses CodeDeploy to deploy to an Auto Scaling Group (ASG). Which deployment type creates new EC2 instances instead of modifying existing ones?

    AIn-place deployment
    BBlue/Green deployment with auto-replacement
    CRolling deployment with health checks
    DAllAtOnce deployment

    Answer hidden for practice.

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

    Start DVA-C02 Quiz

Key EC2 Concepts for DVA-C02

ec2instanceamiuser datametadataimdsv2security groupebsinstance store

DVA-C02 EC2 Exam Tips

Amazon EC2 questions in DVA-C02 are typically scenario-based. Focus on application development patterns, event-driven integration, and secure coding on AWS. Priority concepts: ec2, instance, ami, user data, metadata, imdsv2.

What DVA-C02 Expects

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

  • Know the core EC2 building blocks cold: ec2, instance, ami, user data.
  • Review the edge-case features and limits for metadata, imdsv2; these details are commonly used to differentiate answer choices.
  • Practice service-integration reasoning: how EC2 pairs with Elastic Beanstalk, ECS, Auto Scaling in real deployment patterns.
  • For DVA-C02, explain why the chosen EC2 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 EC2 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 EC2 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 EC2 without relying on default-open assumptions?
  • Can you describe how EC2 integrates with Elastic Beanstalk and ECS during failure, scaling, and monitoring events?

Exam Domains Covering EC2

Related Resources

More DVA-C02 Study Resources