CertsPoint
See all results for ""
Exams About Us
Sign In Get Started
Exam Overview
Exam Code DVA-C02
Exam Name AWS Certified Developer - Associate
Vendor Amazon
Total Questions 344
Last Updated 26-Oct, 2026
Why CertsPoint?
  • Latest & Verified Questions
  • Detailed Explanations
  • Regular Updates
  • Full-Length Practice Tests
  • Boost Your Exam Confidence

PDF Study Materials

Downloadable guides and resources

Practice Tests

Full-length tests with real exam experience

Progress Tracking

Monitor your performance and improvement

Study Anywhere

Access on desktop, tablet, and mobile

Excellent
4.6 (398 Up Votes)
Secure Payment Privacy Protected Money Back Guarantee

Free DVA-C02 Practice Questions

Explore 8 free practice questions for the Amazon DVA-C02 exam and review the answers and explanations to support your preparation.

  1. Question 1

    Single answer

    Acompany is running a custom application on a set of on-premises Linux servers that are accessed
    using Amazon API Gateway. AWS X-Ray tracing has been enabled on the API test stage.
    How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of
    configuration?

    • Option A:
      Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the XRay service.
      Correct
    • Option B:
      Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the
      X-Ray service.
      Correct
    • Option C:
      Capture incoming requests on-premises and configure an AWS Lambda function to pull, process,
      and relay relevant data to X-Ray using the PutTraceSegments API call.
      Correct
    • Option D:
      Capture incoming requests on-premises and configure an AWS Lambda function to pull, process,
      and relay relevant data to X-Ray using the PutTelemetryRecords API call.
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: B

    Explanation

    The X-Ray daemon is a software that collects trace data from the X-Ray SDK and relays it to the X-Ray
    service. The X-Ray daemon can run on any platform that supports Go, including Linux, Windows, and
    macOS. The developer can install and run the X-Ray daemon on the on-premises servers to capture
    and relay the data to the X-Ray service with minimal configuration. The X-Ray SDK is used to
    instrument the application code, not to capture and relay data. The Lambda function solutions are
    more complex and require additional configuration.
    Reference:
    [AWS X-Ray concepts - AWS X-Ray]
    [Setting up AWS X-Ray - AWS X-Ray]
  2. Question 2

    Multiple answers

    Adeveloper has an application that makes batch requests directly to Amazon DynamoDB by using
    the BatchGetItem low-level API operation. The responses frequently return values in the
    UnprocessedKeys element.
    Which actions should the developer take to increase the resiliency of the application when the batch
    response includes values in UnprocessedKeys? (Choose two.)

    • Option A:
      Retry the batch operation immediately.
      Correct
    • Option B:
      Retry the batch operation with exponential backoff and randomized delay.
      Correct
    • Option C:
      Update the application to use an AWS software development kit (AWS SDK) to make the requests.
      Correct
    • Option D:
      Increase the provisioned read capacity of the DynamoDB tables that the operation accesses.
      Correct
    • Option E:
      Increase the provisioned write capacity of the DynamoDB tables that the operation accesses.
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: B, C

    Explanation

    The UnprocessedKeys element indicates that the BatchGetItem operation did not process all of the
    requested items in the current response. This can happen if the response size limit is exceeded or if
    the table’s provisioned throughput is exceeded. To handle this situation, the developer should retry
    the batch operation with exponential backoff and randomized delay to avoid throttling errors and
    reduce the load on the table. The developer should also use an AWS SDK to make the requests, as
    the SDKs automatically retry requests that return UnprocessedKeys.
    Reference:
    [BatchGetItem - Amazon DynamoDB]
    [Working with Queries and Scans - Amazon DynamoDB]
  3. Question 3

    Multiple answers

    Adeveloper is creating an AWS CloudFormation template to deploy Amazon EC2 instances across
    multiple AWS accounts. The developer must choose the EC2 instances from a list of approved
    instance types.
    How can the developer incorporate the list of approved instance types in the CloudFormation
    template?

    • Option A:
      Create a separate CloudFormation template for each EC2 instance type in the list.

      Correct
    • Option B:

      In the Resources section of the CloudFormation template, create resources for each EC2 instance

      type in the list.
      Correct
    • Option C:
      In the CloudFormation template, create a separate parameter for each EC2 instance type in the
      list.
      Correct
    • Option D:
      In the CloudFormation template, create a parameter with the list of EC2 instance types as
      AllowedValues.
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: D

    Explanation

    In the CloudFormation template, the developer should create a parameter with the list of approved
    EC2 instance types as AllowedValues. This way, users can select the instance type they want to use
    when launching the CloudFormation stack, but only from the approved list.
  4. Question 4

    Single answer

    Adeveloper has created an AWS Lambda function that is written in Python. The Lambda function
    reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table. The function is
    successfully invoked from an S3 event notification when an object is created. However, the function
    fails when it attempts to write to the DynamoDB table.
    What is the MOST likely cause of this issue?


    • Option A:
      The Lambda function's concurrency limit has been exceeded.

      Correct
    • Option B:
      DynamoDB table requires a global secondary index (GSI) to support writes.

      Correct
    • Option C:
      The Lambda function does not have IAM permissions to write to DynamoDB.

      Correct
    • Option D:
      The DynamoDB table is not running in the same Availability Zone as the Lambda function.
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: C

    Explanation

    The most likely cause is that the AWS Lambda function does not have the required IAM permissions to write to the Amazon DynamoDB table. While the function is successfully triggered by the Amazon S3 event notification, which indicates that its basic execution role and S3 permissions are correct, the failure occurs specifically when attempting a DynamoDB write operation. This strongly points to missing or insufficient permissions in the Lambda execution role, such as lacking dynamodb:PutItem, UpdateItem, or Write access on the table. In AWS, Lambda functions must explicitly be granted IAM permissions for every service they interact with, and without proper DynamoDB permissions, write operations will fail even though the function itself runs successfully.
  5. Question 5

    Single answer

    Acompany is building a scalable data management solution by using AWS services to improve the
    speed and agility of development. The solution will ingest large volumes of data from various sources
    and will process this data through multiple business rules and transformations.
    The solution requires business rules to run in sequence and to handle reprocessing of data if errors
    occur when the business rules run. The company needs the solution to be scalable and to require the
    least possible maintenance.
    Which AWS service should the company use to manage and automate the orchestration of the data
    flows to meet these requirements?


    • Option A:
      AWS Batch

      Correct
    • Option B:
      AWS Step Functions

      Correct
    • Option C:
      AWS Glue
      Correct
    • Option D:
      AWS Lambda
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: B

    Explanation

    The requirement is to orchestrate a scalable data pipeline where multiple business rules and transformations must run in a specific sequence, with built-in support for error handling and reprocessing when failures occur. AWS Step Functions is designed exactly for this use case because it allows you to build state machines that coordinate multiple AWS services (like Lambda, Glue, or Batch) in a controlled workflow with retries, error handling, and step-by-step execution. It is highly scalable, fully managed, and requires minimal operational maintenance, making it ideal for orchestrating complex data flows.
  6. Question 6

    Single answer

    An application is using Amazon Cognito user pools and identity pools for secure access. A developer
    wants to integrate the user-specific file upload and download features in the application with
    Amazon S3. The developer must ensure that the files are saved and retrieved in a secure manner and
    that users can access only their own files. The file sizes range from 3 KB to 300 MB.
    Which option will meet these requirements with the HIGHEST level of security?


    • Option A:
      Use S3 Event Notifications to validate the file upload and download requests and update the user
      interface (UI).

      Correct
    • Option B:
      Save the details of the uploaded files in a separate Amazon DynamoDB table. Filter the list of files
      in the user interface (UI) by comparing the current user ID with the user ID associated with the file in
      the table.

      Correct
    • Option C:
      Use Amazon API Gateway and an AWS Lambda function to upload and download files. Validate
      each request in the Lambda function before performing the requested operation.

      Correct
    • Option D:
      Use an IAM policy within the Amazon Cognito identity prefix to restrict users to use their own
      folders in Amazon S3.
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: D

    Explanation

    The most secure and scalable way to ensure users can only access their own files in Amazon S3 when using Amazon Cognito User Pools and Identity Pools is to use IAM policies scoped with Cognito identity-based prefixes (e.g., cognito-identity.amazonaws.com:sub). This allows you to enforce fine-grained access control at the S3 bucket level, ensuring each authenticated user is restricted to their own folder (for example, s3://bucket/${cognito-identity-id}/*). This approach is fully managed, highly secure, and does not require custom application logic or additional services, which makes it the best fit for handling large file uploads (3 KB to 300 MB) efficiently and securely.
  7. Question 7

    Single answer

    Acompany is running Amazon EC2 instances in multiple AWS accounts. A developer needs to
    implement an application that collects all the lifecycle events of the EC2 instances. The application
    needs to store the lifecycle events in a single Amazon Simple Queue Service (Amazon SQS) queue in
    the company's main AWS account for further processing.
    Which solution will meet these requirements?

    • Option A:
      Configure Amazon EC2 to deliver the EC2 instance lifecycle events from all accounts to the Amazon
      EventBridge event bus of the main account. Add an EventBridge rule to the event bus of the main
      account that matches all EC2 instance lifecycle events. Add the SQS queue as a target of the rule.

      Correct
    • Option B:
      Use the resource policies of the SQS queue in the main account to give each account permissions
      to write to that SQS queue. Add to the Amazon EventBridge event bus of each account an
      EventBridge rule that matches all EC2 instance lifecycle events. Add the SQS queue in the main
      account as a target of the rule.

      Correct
    • Option C:
      Write an AWS Lambda function that scans through all EC2 instances in the company accounts to
      detect EC2 instance lifecycle changes. Configure the Lambda function to write a notification message
      to the SQS queue in the main account if the function detects an EC2 instance lifecycle change. Add an
      Amazon EventBridge scheduled rule that invokes the Lambda function every minute.

      Correct
    • Option D:
      Configure the permissions on the main account event bus to receive events from all accounts.
      Create an Amazon EventBridge rule in each account to send all the EC2 instance lifecycle events to
      the main account event bus. Add an EventBridge rule to the main account event bus that matches all
      EC2 instance lifecycle events. Set the SQS queue as a target for the rule.
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: D

    Explanation

    Amazon EC2 instances can send the state-change notification events to Amazon EventBridge.
    https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instance-state-changes.html
    Amazon EventBridge can send and receive events between event buses in AWS accounts.
    https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cross-account.html
  8. Question 8

    Single answer

    Acompany is implementing an application on Amazon EC2 instances. The application needs to
    process incoming transactions. When the application detects a transaction that is not valid, the
    application must send a chat message to the company's support team. To send the message, the
    application needs to retrieve the access token to authenticate by using the chat API.
    A developer needs to implement a solution to store the access token. The access token must be
    encrypted at rest and in transit. The access token must also be accessible from other AWS accounts.
    Which solution will meet these requirements with the LEAST management overhead?


    • Option A:
      Use an AWS Systems Manager Parameter Store SecureString parameter that uses an AWS Key
      Management Service (AWS KMS) AWS managed key to store the access token. Add a resource-based
      policy to the parameter to allow access from other accounts. Update the IAM role of the EC2
      instances with permissions to access Parameter Store. Retrieve the token from Parameter Store with
      the decrypt flag enabled. Use the decrypted access token to send the message to the chat.


      Correct
    • Option B:
      Encrypt the access token by using an AWS Key Management Service (AWS KMS) customer
      managed key. Store the access token in an Amazon DynamoDB table. Update the IAM role of the EC2
      instances with permissions to access DynamoDB and AWS KMS. Retrieve the token from DynamoDB.
      Decrypt the token by using AWS KMS on the EC2 instances. Use the decrypted access token to send
      the message to the chat.


      Correct
    • Option C:
      Use AWS Secrets Manager with an AWS Key Management Service (AWS KMS) customer managed
      key to store the access token. Add a resource-based policy to the secret to allow access from other
      accounts. Update the IAM role of the EC2 instances with permissions to access Secrets Manager.
      Retrieve the token from Secrets Manager. Use the decrypted access token to send the message to
      the chat.


      Correct
    • Option D:
      Encrypt the access token by using an AWS Key Management Service (AWS KMS) AWS managed
      key. Store the access token in an Amazon S3 bucket. Add a bucket policy to the S3 bucket to allow
      access from other accounts. Update the IAM role of the EC2 instances with permissions to access
      Amazon S3 and AWS KMS. Retrieve the token from the S3 bucket. Decrypt the token by using AWS
      KMS on the EC2 instances. Use the decrypted access token to send the massage to the chat.
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: C

    Explanation

    The best solution with the least management overhead and strongest security is to use AWS Secrets Manager with a customer managed AWS KMS key to store the access token. Secrets Manager is purpose-built for storing and retrieving sensitive credentials such as API keys and access tokens, and it automatically provides encryption at rest and in transit, fine-grained IAM access control, and built-in cross-account access via resource-based policies. The application running on Amazon EC2 can securely retrieve the secret using IAM permissions without needing to manually manage encryption/decryption logic. This eliminates the need for custom storage, manual key handling, or additional infrastructure, making it the simplest and most secure option that meets all requirements.
    Why others are incorrect:
    • A: AWS Systems Manager Parameter Store SecureString is secure, but cross-account access via resource policies is more limited and less flexible than Secrets Manager for this use case.
    • B: Requires manual encryption/decryption logic and DynamoDB management, increasing overhead.
    • D: Using S3 for secret storage is not designed for secrets management and adds unnecessary complexity and risk.
    Therefore, AWS Secrets Manager (Option C) provides the best balance of security, simplicity, and cross-account accessibility.