AmazonAmazon Solution Architect Professional SAP-C02 Certification ·EN ·Updated 31 Jul 2026

An unauthenticated static website (www.example.com) hosted on Amazon S3 and delivered via CloudFront uses AWS WAF. The site includes a registration form that calls an Amazon API Gateway endpoint, which invokes a Lambda function that forwards data to an external API. During testing, the submission triggers a CORS error. The CloudFront origin is configured to include an Access-Control-Allow-Origin header set to www.example.com. What should the solutions architect do to fix the CORS error?

Choose an answer

Tap an option to check your answer.

Pass your exam — without the endless answer hunt

Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.

Pass your exam faster No card needed
✓ Verified by ExamRoll editorial · Updated 31 July 2026 · Source: official academy
All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product