AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 307
Which of the following is true when you don't configure Amazon CloudFront to forward cookies to your origin?
Answer options
- A. CloudFront removes the Cookie header from requests that it forwards to your origin.
- B. CloudFront disables viewer requests to your origin, including all cookies.
- C. CloudFront caches your objects based on cookie values.
- D. CloudFront automates code deployments to any instance.
Correct answer: A
Explanation
When CloudFront is configured not to forward cookies to the origin, it removes the Cookie header from the forwarded viewer requests. This behavior maximizes cache hit ratios because CloudFront does not need to partition the cache based on unique cookie values. The other options are incorrect because CloudFront does not block viewer requests, cannot cache by cookies when forwarding is disabled, and is not a code deployment service.