AWS Certified Developer – Associate — Question 243

A company needs to develop a proof of concept for a web service application. The application will show the weather forecast for one of the company's office locations. The application will provide a REST endpoint that clients can call. Where possible, the application should use caching features provided by AWS to limit the number of requests to the backend service. The application backend will receive a small amount of traffic only during testing.

Which approach should the developer take to provide the REST endpoint MOST cost-effectively?

Answer options

Correct answer: B

Explanation

The correct answer is B because AWS Lambda is a serverless solution that charges based on the number of requests and execution time, making it the most cost-effective option for handling small amounts of traffic. Other options like deploying containers or using Elastic Beanstalk involve more overhead and costs associated with running and managing servers or clusters, which is unnecessary for a proof of concept with limited traffic.