Bird
0
0

Given this API Gateway setup: a resource /items with a POST method integrated to a Lambda function. What happens when a client sends a POST request to /items?

medium📝 Predict Output Q13 of 15
AWS - API Gateway
Given this API Gateway setup: a resource /items with a POST method integrated to a Lambda function. What happens when a client sends a POST request to /items?
AThe API Gateway returns a static mock response
BThe API Gateway returns a 404 Not Found error
CThe Lambda function is triggered to process the request
DThe request is ignored because POST is not allowed
Step-by-Step Solution
Solution:
  1. Step 1: Understand the integration of POST method with Lambda

    The POST method on the /items resource is connected to a Lambda function, so requests trigger that function.
  2. Step 2: Analyze the client request effect

    When a client sends a POST request to /items, API Gateway forwards it to Lambda for processing.
  3. Final Answer:

    The Lambda function is triggered to process the request -> Option C
  4. Quick Check:

    POST + Lambda integration = Lambda triggered [OK]
Quick Trick: POST method triggers Lambda if integrated [OK]
Common Mistakes:
MISTAKES
  • Assuming POST is not allowed without checking method setup
  • Thinking API Gateway returns 404 if resource exists
  • Confusing mock responses with Lambda integration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes