Amazon
DVA-C02 · Question #144
A developer is creating an AWS Lambda function. The Lambda function will consume messages from an Amazon Simple Queue Service (Amazon SQS) queue. The developer wants to integrate unit testing as part
Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #144. The question stem and answer options stay visible for context.
Submitted by satoshi_tk· Mar 5, 2026Deployment
Question
A developer is creating an AWS Lambda function. The Lambda function will consume messages from an Amazon Simple Queue Service (Amazon SQS) queue. The developer wants to integrate unit testing as part of the function's continuous integration and continuous delivery (CI/CD) process. How can the developer unit test the function?
Options
- ACreate an AWS CloudFormation template that creates an SQS queue and deploys the Lambda
- BCreate an SQS event for tests. Use a test that consumes messages from the SQS queue during
- CCreate an SQS queue for tests. Use this SQS queue in the application's unit test. Run the unit
- DUse the aws lambda invoke command with a test event during the CIICD process.
Unlock DVA-C02 to see the answer
You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.