AWS Certified Developer – Associate (DVA-C02) — Question 439
A developer is launching a global application that delivers content to multiple countries. The developer needs to serve specific content based on the country of each user and each user’s primary language. The developer must ensure that content is served reliably and with low latency.
Which solution will meet these requirements?
Answer options
- A. Create an Amazon API Gateway REST API. Create an AWS Global Accelerator standard accelerator to resolve requests to the API. Configure endpoint groups on the accelerator. Attach listeners for each country and language.
- B. Store the content in a centralized Amazon S3 bucket. Enable S3 Transfer Acceleration on the bucket. Create an Amazon Route 53 hosted zone that includes the endpoint for the S3 bucket. Create records in Route 53 that use geoproximity and geolocation routing policies.
- C. Create an Amazon API Gateway REST API. Connect the REST API to AWS WAF. Use geo match statements and regex match statements to allow or deny requests based on the labels returned from web request evaluations.
- D. Configure an Amazon CloudFront distribution that uses the application as an origin. Configure the distribution to forward the Accept-Language header and the CloudFront-Viewer-Country header to the origin.
Correct answer: D
Explanation
Amazon CloudFront delivers content with low latency globally by caching and serving content from edge locations close to users. By configuring CloudFront to forward the CloudFront-Viewer-Country and Accept-Language headers, the origin application can inspect these headers and dynamically return the appropriate localized content. Other options either do not support low-latency content customization based on these specific headers or are intended for access control rather than dynamic content delivery.