Bird
0
0

You want to create a REST API in API Gateway that accepts a JSON payload, validates it, and forwards it to a Lambda function. Which combination of features should you use?

hard📝 Application Q8 of 15
AWS - API Gateway
You want to create a REST API in API Gateway that accepts a JSON payload, validates it, and forwards it to a Lambda function. Which combination of features should you use?
AUse a POST method with a request model for JSON schema validation and Lambda integration
BUse a GET method with MOCK integration and no validation
CUse a POST method with no request model and HTTP integration
DUse a DELETE method with request model and Lambda integration
Step-by-Step Solution
Solution:
  1. Step 1: Identify method for sending JSON payload

    POST method is used to send data in request body.
  2. Step 2: Use request model for validation and Lambda integration

    Request models validate JSON schema; Lambda processes the payload.
  3. Final Answer:

    Use a POST method with a request model for JSON schema validation and Lambda integration -> Option A
  4. Quick Check:

    POST + model + Lambda = validate and process JSON [OK]
Quick Trick: POST with request model validates JSON before Lambda [OK]
Common Mistakes:
  • Using GET for payload submission
  • Skipping request model for validation
  • Using HTTP integration instead of Lambda

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes