Topic 1 Question 3
A company is running a website on Amazon EC2 instances behind an Application Load Balancer (ALB). The company configured an Amazon CloudFront distribution and set the ALB as the origin. The company created an Amazon Route 53 CNAME record to send all traffic through the CloudFront distribution. As an unintended side effect, mobile users are now being served the desktop version of the website. Which action should a SysOps administrator take to resolve this issue?
Configure the CloudFront distribution behavior to forward the User-Agent header.
Configure the CloudFront distribution origin settings. Add a User-Agent header to the list of origin custom headers.
Enable IPv6 on the ALB. Update the CloudFront distribution origin settings to use the dualstack endpoint.
Enable IPv6 on the CloudFront distribution. Update the Route 53 record to use the dualstack endpoint.
解説
ユーザの投票
コメント(17)
- 正解だと思う選択肢: A
I agree it is A because:
- B is wrong, since you are modifying origin custom headers that are values that you set unilaterally, independent of the Header of the request that you received from client. As the documentation states, the uses cases for for origin custom headers are: Identifying requests from CloudFront Determining which requests come from a particular distribution Enabling cross-origin resource sharing (CORS) Controlling access to content (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html)
👍 12Pepepep2022/06/01 Why would this not be B? It would serve the same function more efficiently?
👍 8dontcomplain2022/04/22B but its not recommended, a better answer is to send custom CF headers based in User-Agent header https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
👍 1CVDON2022/09/27
シャッフルモード
