Which combination of AWS services or resources should the developer use to meet these requirements?
Application Load Balancer and Amazon EC2
Amazon API Gateway and AWS Lambda
Amazon CloudFront and Amazon S3
Amazon CloudFront and AWS Elastic Beanstalk
Explanations:
An Application Load Balancer and EC2 are typically used for dynamic, server-side rendered applications or when the application needs to run backend code. Since this is a static website, using EC2 would be overkill and not cost-effective.
API Gateway and Lambda are used for serverless functions and APIs. For a static site with no server-side logic, these services are unnecessary and would add complexity and cost.
Amazon CloudFront is a content delivery network (CDN) that can cache and serve static assets from S3, making it ideal for static websites. S3 provides highly scalable storage for static files, and CloudFront optimizes performance and cost by distributing content globally.
Elastic Beanstalk is a platform-as-a-service (PaaS) designed for dynamic applications with backend code, which isn’t needed for a static website. CloudFront and S3 are sufficient and more cost-effective for serving static content.