DVA-C02 exam dumps

DVA-C02 practice question 239 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 239

Single answer

You are testing an application in a development environment that interacts with an Amazon DynamoDB table. You want to ensure that the tests do not incur costs or affect the data in the production DynamoDB table. What is the MOST appropriate solution to achieve this?

  1. A

    Use the AWS SDK to enable read-only mode on the production DynamoDB table during testing.

  2. B

    Create a dedicated DynamoDB table for the development environment and configure the application to use it during testing.

  3. C

    Use the same production DynamoDB table but configure the application to use a dedicated IAM role with limited permissions.

  4. D

    Enable DynamoDB Streams on the production table and replay the data in the development environment for testing purposes.

Show answer and explanation

Correct answer: B

Explanation

When testing applications in development environments, it is a best practice to use dedicated resources that are isolated from production. This prevents interference with production data and avoids unnecessary costs. Creating a separate DynamoDB table for the development environment is the most appropriate solution for safe and cost-effective testing.

  • A. Incorrect.

    This option is incorrect because DynamoDB does not have a built-in 'read-only mode' that can be enabled for testing purposes.

  • B. Correct.

    This is the correct option. Using a separate development DynamoDB table ensures that the testing process is isolated from production data and avoids any accidental modifications or costs incurred on production resources.

  • C. Incorrect.

    This option is incorrect because using the same production table, even with an IAM role with limited permissions, can still risk unintended interactions with the production data during testing.

  • D. Incorrect.

    This option is incorrect because DynamoDB Streams is primarily used for capturing table activity for change data capture, not for creating isolated environments for testing.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam