SAP-C02 Question 533
Select 2A company is running an e-commerce platform on AWS with web servers in an Auto Scaling group behind an Application Load Balancer (ALB). The web servers retrieve product images from an Amazon S3 bucket in the same AWS Region. The company has noticed an increase in data transfer costs and wants to minimize these costs without impacting performance. Which of the following steps should the company take to reduce data transfer costs?
- A
Enable S3 Transfer Acceleration on the S3 bucket to speed up data transfers.
- B
Configure an S3 bucket policy to allow access only from the web servers' private IP addresses.
- C
Ensure the web servers access the S3 bucket over a VPC endpoint instead of public internet.
- D
Use Amazon CloudFront to cache the product images closer to end users.
- E
Move the S3 bucket to a different AWS Region closer to the end users.
Show answer and explanation
Correct answers: C, D
Explanation
To reduce data transfer costs, the company should use an S3 VPC endpoint to ensure traffic remains within the AWS network and avoid public data transfer charges. Additionally, leveraging Amazon CloudFront to cache product images closer to end users reduces the need for repeated transfers from the S3 bucket, lowering data transfer costs while improving performance for end users.
- A. Incorrect.
S3 Transfer Acceleration is designed to improve upload and download performance for S3 objects over long distances, but it increases costs rather than reducing them. This is not a cost-saving measure.
- B. Incorrect.
Restricting access to the S3 bucket using a bucket policy enhances security, but it does not directly reduce data transfer costs.
- C. Correct.
Using an S3 VPC endpoint enables direct communication between the web servers and the S3 bucket within the AWS network, avoiding data transfer charges associated with public internet traffic.
- D. Correct.
Amazon CloudFront caches content closer to end users, reducing the amount of data transferred from the S3 bucket and lowering overall data transfer costs.
- E. Incorrect.
Moving the S3 bucket to a different Region could increase latency for the web servers and would not necessarily reduce data transfer costs, as cross-Region traffic incurs additional charges.