AWS Certified SysOps Administrator – Associate — Question 159
A company plans to launch a static website on its domain example.com and subdomain www.example.com using Amazon S3.
How should the SysOps administrator meet this requirement?
Answer options
- A. Create one S3 bucket named example.com for both the domain and subdomain.
- B. Create one S3 bucket with a wildcard named *.example.com for both the domain and subdomain.
- C. Create two S3 buckets named example.com and www.example.com. Configure the subdomain bucket to redirect requests to the domain bucket.
- D. Create two S3 buckets named http://example.com and http://*.example.com. Configure the wildcard (*) bucket to redirect requests to the domain bucket.
Correct answer: C
Explanation
The correct answer is C because creating two separate S3 buckets allows for proper management of the main domain and subdomain, with the subdomain bucket redirecting traffic to the main domain bucket. Options A and B do not appropriately handle the subdomain, while option D incorrectly includes 'http://' in the bucket names, which is not allowed.