Free AWS DVA-C01 Actual Exam Questions - Question 8 Discussion

Question No. 8
A developer implemented a static website hosted in amazon s3 that makes web service requests in
amazon api gateway and aws lambda. The site is showing an error that reads.
''No 'access control-allow-origin'header' header is present on the requested resource. Origin 'null is
therefore not allowed access ''
What should the developer do to resolve this issue?
Select one option, then reveal solution.
US
SH
Shoaib H.
2026-02-21

B (API Gateway handles CORS, so enabling it there fixes the header issue).

0
KY
Karan Y.
2026-02-19

B. The error is about response headers; API Gateway needs CORS enabled on the method.

0
RJ
Ryan J.
2026-01-26

B, since the error’s about the API response missing CORS headers, not the S3 bucket.

0
RJ
Ryan J.
2026-01-25

Isn't it also possible the Lambda function needs the headers added before API Gateway returns the response?

0
RJ
Ryan J.
2026-01-19

B The error usually means the API Gateway isn’t sending the right CORS headers, so enabling CORS on the API method is the way to go. The S3 bucket doesn’t control those headers for API responses.

0
AK
Andre K.
2026-01-18

B tbh, the issue is with the API Gateway response missing CORS headers, not the S3 bucket itself. Enabling CORS on the API method should fix it.

0