AWS Certified Developer – Associate — Question 151

A developer is building a static, client-side rendered website that is powered by ReactJS. The code has no server-side generated components and does not need to run any programming languages on the server. However, the code serves static HTML, CSS, and JavaScript to the client on each request. The developer’s solution to host the website must maximize performance and cost-effectiveness.

Which combination of AWS services or resources should the developer use to meet these requirements?

Answer options

Correct answer: C

Explanation

The correct answer is C, as Amazon CloudFront can cache the static content and deliver it quickly from edge locations, while Amazon S3 provides an efficient and cost-effective way to store and serve static files. The other options involve services that either introduce unnecessary complexity or are not optimized for serving static content, such as EC2 or Lambda, which are meant for dynamic processing.