Bird
0
0

Given this AWS API Gateway setup: a GET method integrated with a Lambda function that returns {"status": "ok"}, what will the client receive when calling the endpoint?

medium📝 Predict Output Q13 of 15
AWS - API Gateway
Given this AWS API Gateway setup: a GET method integrated with a Lambda function that returns {"status": "ok"}, what will the client receive when calling the endpoint?
A{"status": "ok"}
BAn error because API Gateway cannot integrate with Lambda
CEmpty response with status 200
DHTML page instead of JSON
Step-by-Step Solution
Solution:
  1. Step 1: Understand API Gateway and Lambda integration

    API Gateway forwards the request to Lambda, which returns a JSON response {"status": "ok"}.
  2. Step 2: Determine client response

    The client receives the Lambda output as JSON through API Gateway, so the response is {"status": "ok"}.
  3. Final Answer:

    {"status": "ok"} -> Option A
  4. Quick Check:

    Lambda output = client response via API Gateway [OK]
Quick Trick: API Gateway passes Lambda output as response [OK]
Common Mistakes:
  • Thinking API Gateway blocks Lambda responses
  • Expecting empty or HTML response by default
  • Confusing integration types

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes