DVA-C02 Question 316
Single answerYour application uses an Amazon S3 bucket to store and serve static content. Recently, users have reported slow load times and intermittent 503 errors when accessing files. After reviewing the application, you notice that the S3 bucket is receiving a high volume of read requests. Which action should you take to troubleshoot and optimize the performance of the S3 bucket?
- A
Enable S3 Transfer Acceleration for the bucket
- B
Use Amazon CloudFront to distribute content from the S3 bucket
- C
Increase the provisioned throughput for the S3 bucket
- D
Configure S3 Object Lock to improve read performance
Show answer and explanation
Correct answer: B
Explanation
The issue stems from a high volume of read requests overwhelming the S3 bucket, causing slow performance and intermittent 503 errors. By using Amazon CloudFront, you offload traffic from the S3 bucket to the CloudFront edge locations, improving performance and availability for end users. This is the most appropriate solution for optimizing the application in this scenario.
- A. Incorrect.
Enabling S3 Transfer Acceleration improves performance for uploads and downloads over long distances, but it does not directly address high read request volumes or intermittent 503 errors.
- B. Correct.
Using Amazon CloudFront creates a content delivery network (CDN) in front of your S3 bucket, caching files at edge locations. This reduces the load on the S3 bucket, improves response times, and mitigates 503 errors caused by high read traffic.
- C. Incorrect.
Amazon S3 does not allow users to manually configure provisioned throughput. It automatically scales to handle request volumes, so this option is not applicable to the issue described.
- D. Incorrect.
S3 Object Lock is designed for data protection and compliance by preventing object versions from being deleted or overwritten. It does not optimize read performance.