
Answer-first summary for fast verification
Answer: Adopt Amazon DynamoDB global tables for the database, and create an Amazon CloudFront distribution. Incorporate the CloudFront distribution with a Lambda@Edge function that includes the backend logic for barcode validation. Establish an Amazon Route 53 record to connect api.example.com with the CloudFront distribution.
The correct solution is option D. Using Amazon DynamoDB global tables ensures low-latency, globally distributed data access. Attaching a Lambda@Edge function to an Amazon CloudFront distribution allows the backend logic to run at edge locations, minimizing latency further by processing requests closer to where they originate. Route 53 can then map api.example.com to the CloudFront distribution, ensuring global low-latency access to the API.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A global company requires a mobile app for displaying ticket barcodes used at live events. The app's backend API validates barcode data against a database upon scanning. The company aims to deploy this app on AWS with the DNS name api.example.com and host the database across three AWS regions worldwide. What is the most efficient solution to achieve the lowest latency for this setup?
A
Utilize Amazon Aurora global database clusters for the database, and deploy the backend on three Amazon Elastic Container Service (Amazon ECS) clusters in the same regions. Use AWS Global Accelerator to direct requests to the nearest ECS cluster, and set up an Amazon Route 53 record to link api.example.com to the accelerator endpoint.
B
Employ Amazon Aurora global database clusters for the database, and set up the backend on three Amazon Elastic Kubernetes Service (Amazon EKS) clusters in the same regions. Configure an Amazon CloudFront distribution with these clusters as origins, directing requests to the nearest EKS cluster, and create an Amazon Route 53 record to associate api.example.com with the CloudFront distribution.
C
Implement Amazon DynamoDB global tables for the database, and establish an Amazon CloudFront distribution. Integrate the CloudFront distribution with a CloudFront function containing the backend logic for barcode validation. Map api.example.com to the CloudFront distribution via an Amazon Route 53 record.
D
Adopt Amazon DynamoDB global tables for the database, and create an Amazon CloudFront distribution. Incorporate the CloudFront distribution with a Lambda@Edge function that includes the backend logic for barcode validation. Establish an Amazon Route 53 record to connect api.example.com with the CloudFront distribution.