DVA-C02 · Question #445
DVA-C02 Question #445: Real Exam Question with Answer & Explanation
Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #445. The question stem and answer options stay visible for context.
Question
A developer is troubleshooting an application. The application includes several AWS Lambda functions that invoke an Amazon API Gateway API. The API Gateway's method request is set up to use an Amazon Cognito authorizer for authentication. All the Lambda functions pass the user ID as part of the Authorization header to the API Gateway API. The API Gateway API returns a 403 status code for all GET requests. How should the developer resolve this issue?
Options
- AModify the client GET request to include a valid API key in the Authorization header.
- BModify the client GET request to include a valid token in the Authorization header.
- CUpdate the resource policy for the API Gateway API to allow the execute-api:Invoke action.
- DModify the client to send an OPTIONS preflight request before the GET request.
Unlock DVA-C02 to see the answer
You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.