AWS Certified Cloud Practitioner / Question #1169 of 719

Question #1169

A company needs to host static website assets (e.g., HTML, CSS, JavaScript files) that must be accessible globally via public URLs. Which AWS service or feature should they use?

A

Amazon RDS

B

Amazon Elastic Block Store (Amazon EBS)

C

Amazon Elastic File System (Amazon EFS)

D

Amazon S3

Explanation

Amazon S3 (Option D) is the correct answer because it is specifically designed for storing static web content like HTML, CSS, and JavaScript files. S3 allows users to enable static website hosting on a bucket, which automatically generates a public URL for accessing the content globally. It integrates seamlessly with services like Amazon CloudFront for low-latency content delivery.

Other options are incorrect because:
- A. Amazon RDS: A managed relational database service, not suitable for hosting static files.
- B. Amazon EBS: Block storage for EC2 instances, requiring manual setup to serve web content and lacking native global accessibility.
- C. Amazon EFS: A shared file system for EC2 instances, which requires additional configuration to host static websites and lacks native public URL support.

Key points to remember: S3 is the go-to service for static website hosting on AWS, offering simplicity, scalability, and built-in public access features.

Answer

The correct answer is: D