SAP-C02 Question 351
Select 2Your organization has deployed an application in AWS that serves global users. The application is hosted in an Auto Scaling group behind an Application Load Balancer (ALB) in the us-east-1 region. It stores data in an Amazon S3 bucket located in the same region. To reduce latency for users in Europe, you have deployed an Amazon CloudFront distribution. The CloudFront origin is the ALB. Recently, you noticed a significant increase in data transfer costs. Which of the following actions would help reduce the data transfer costs while maintaining application performance?
- A
Enable Origin Shield in CloudFront and configure it for the us-east-1 region.
- B
Enable S3 Transfer Acceleration on the S3 bucket and update the CloudFront origin to point to the S3 bucket.
- C
Configure CloudFront to cache static content more aggressively by increasing the TTL values for cached objects.
- D
Use AWS Global Accelerator to route user traffic directly to the ALB in us-east-1.
- E
Deploy an additional ALB in Europe and configure CloudFront to use weighted origins for traffic distribution.
Show answer and explanation
Correct answers: A, C
Explanation
To reduce data transfer costs in this scenario, it is essential to minimize the number of requests going from CloudFront to the ALB. Enabling Origin Shield in CloudFront reduces origin fetches and associated data transfer costs, especially when placed in the same region as the origin. Configuring CloudFront to cache static content more aggressively (by increasing TTL values) further decreases the number of origin requests, leading to reduced data transfer costs. Other options either do not address the specific cost issue or add unnecessary complexity.
- A. Correct.
Enabling Origin Shield in CloudFront reduces the number of requests made to the origin (ALB in this case), which can lower data transfer costs from the origin. Configuring it in the same region as the origin (us-east-1) ensures optimal performance and cost reduction.
- B. Incorrect.
S3 Transfer Acceleration is designed to speed up transfers to and from S3 over long distances, but it does not address data transfer costs related to CloudFront and ALB. Additionally, changing the origin to S3 would require architectural changes and might impact application behavior.
- C. Correct.
Caching static content more aggressively in CloudFront reduces the number of times content is fetched from the origin (ALB), which helps in lowering data transfer costs. This action also improves performance for end users.
- D. Incorrect.
AWS Global Accelerator is designed to improve network performance for global users but does not directly reduce data transfer costs between ALB and CloudFront.
- E. Incorrect.
Deploying an additional ALB in Europe would increase infrastructure costs and complexity, and it would not directly reduce data transfer costs from the ALB to CloudFront.