AWS Certified Developer – Associate (DVA-C02) — Question 113

A company has a web application that is deployed on AWS. The application uses an Amazon API Gateway API and an AWS Lambda function as its backend.

The application recently demonstrated unexpected behavior. A developer examines the Lambda function code, finds an error, and modifies the code to resolve the problem. Before deploying the change to production, the developer needs to run tests to validate that the application operates properly.

The application has only a production environment available. The developer must create a new development environment to test the code changes. The developer must also prevent other developers from overwriting these changes during the test cycle.

Which combination of steps will meet these requirements with the LEAST development effort? (Choose two.)

Answer options

Correct answer: B, D

Explanation

Option B is correct as it allows for testing the changes by deploying to a new stage with minimal alterations to the existing setup. Option D is also correct since it involves fixing the code, publishing a new version, and creating an alias to ensure that the testing environment is stable. Options A, C, and E involve unnecessary complexity or do not provide the required isolation for testing.