nerdexam
Amazon

DVA-C02 · Question #177

A developer has observed an increase in bugs in the AWS Lambda functions that a development team has deployed in its Node.js application. To minimize these bugs, the developer wants to implement autom

The correct answer is C. Install the AWS Serverless Application Model (AWS SAM) CLI tool. Use the sam local generate-. Solution (C) is the best option to meet the developer's requirements. The AWS SAM CLI tool provides an easy way to generate sample events and invoke Lambda functions locally. The solution is also easy to document and integrate into the CI/CD pipeline.

Submitted by brentm· Mar 5, 2026Development with AWS Services

Question

A developer has observed an increase in bugs in the AWS Lambda functions that a development team has deployed in its Node.js application. To minimize these bugs, the developer wants to implement automated testing of Lambda functions in an environment that closely simulates the Lambda environment. The developer needs to give other developers the ability to run the tests locally. The developer also needs to integrate the tests into the team's continuous integration and continuous delivery (CI/CD) pipeline before the AWS Cloud Development Kit (AWS CDK) deployment. Which solution will meet these requirements?

Options

  • ACreate sample events based on the Lambda documentation. Create automated test scripts that
  • BInstall a unit testing framework that reproduces the Lambda execution environment. Create
  • CInstall the AWS Serverless Application Model (AWS SAM) CLI tool. Use the sam local generate-
  • DCreate sample events based on the Lambda documentation. Create a Docker container from the

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    75% (15)
  • D
    15% (3)

Explanation

Solution (C) is the best option to meet the developer's requirements. The AWS SAM CLI tool provides an easy way to generate sample events and invoke Lambda functions locally. The solution is also easy to document and integrate into the CI/CD pipeline.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice