Bird
0
0

Given an API Gateway REST API with a GET method integrated with a Lambda function that returns {"message": "Hello"}, what will the client receive when calling the GET endpoint?

medium📝 Predict Output Q4 of 15
AWS - API Gateway
Given an API Gateway REST API with a GET method integrated with a Lambda function that returns {"message": "Hello"}, what will the client receive when calling the GET endpoint?
A{"statusCode": 200}
BHello
C{"message": "Hello"}
DError: No response
Step-by-Step Solution
Solution:
  1. Step 1: Understand Lambda integration response

    Lambda returns JSON object; API Gateway forwards it as JSON string.
  2. Step 2: Identify client response

    Client receives the JSON string with message key and value.
  3. Final Answer:

    {"message": "Hello"} -> Option C
  4. Quick Check:

    Lambda JSON output = client JSON response [OK]
Quick Trick: Lambda JSON output is returned as JSON to client [OK]
Common Mistakes:
MISTAKES
  • Expecting plain string instead of JSON
  • Confusing statusCode with message
  • Assuming no response is returned

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes