AWS Certified Developer Associate DVA-C02 Practice Question

An application includes an AWS Lambda function that is triggered when an object is uploaded to an Amazon S3 bucket. The function extracts metadata from the file and stores it in an Amazon DynamoDB table. The development team is adding a CI workflow that will run unit tests on every commit. They want the tests to execute quickly on build servers without provisioning AWS resources or incurring charges, while still confirming that the function calls S3 and DynamoDB with the expected parameters. Which approach should they use?

  • Use a mocking framework or AWS SDK stubber to simulate Amazon S3 and Amazon DynamoDB in the unit tests.

  • Configure a Lambda alias named test and invoke that alias from the unit tests.

  • Create a dedicated developer AWS account and provision the S3 bucket and DynamoDB table as part of test setup.

  • Enable AWS X-Ray tracing and analyze the service calls recorded during test execution.

AWS Certified Developer Associate DVA-C02
Deployment
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot