AWS Certified Developer – Associate — Question 283

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

Publishing a new Lambda version (Option D) is necessary because Lambda versions are immutable, preventing other developers from overwriting the code under test, unlike the mutable $LATEST identifier (Option C). Deploying the API Gateway to a new stage called 'hotfix' targeting this alias (Option B) establishes a isolated test environment with minimal overhead, whereas creating an entirely new API Gateway instance (Option E) requires significantly more development effort.