AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A media-streaming startup hosts a single-page web application in an Amazon S3 bucket behind an Amazon CloudFront distribution. Every viewer request is forwarded to an Amazon API Gateway endpoint in us-east-1 where a Lambda function (about 8 MB of Node.js libraries) generates a personalized HTML page after reading viewer cookies and making a brief call to Amazon DynamoDB. Global users experience 300-500 ms of additional latency because each request must reach the AWS Region before the page can be formed.

The company wants to reduce first-byte latency by moving the personalization logic as close to viewers as possible while continuing to use serverless services. The new solution must allow the existing Node.js code size, support occasional network calls to DynamoDB, and require minimal operational overhead.

Which AWS solution will meet these requirements?

  • Use AWS Global Accelerator to route traffic to multiple Regional API Gateway endpoints that host the Lambda function.

  • Migrate the personalization code to a Lambda@Edge function that is invoked on the CloudFront origin request event.

  • Deploy the code on Amazon EC2 instances inside AWS Wavelength Zones in each target geography.

  • Move the personalization code to CloudFront Functions and attach it to the viewer response event.

AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot