Bird
0
0

In AWS API Gateway, if you configure a GET method with MOCK integration and set a 200 response containing a fixed JSON payload, what will the client receive upon invoking this endpoint?

medium📝 Predict Output Q5 of 15
AWS - API Gateway
In AWS API Gateway, if you configure a GET method with MOCK integration and set a 200 response containing a fixed JSON payload, what will the client receive upon invoking this endpoint?
AA 403 Forbidden error due to missing permissions
BAn error indicating no backend integration is configured
CA dynamically generated response from a Lambda function
DThe static JSON payload defined in the MOCK integration response
Step-by-Step Solution
Solution:
  1. Step 1: Understand MOCK Integration

    MOCK integration returns a predefined static response without calling any backend.
  2. Step 2: Check the 200 Response Setup

    The 200 response is configured with a static JSON body, so API Gateway returns this exact payload.
  3. Final Answer:

    The static JSON payload defined in the MOCK integration response -> Option D
  4. Quick Check:

    MOCK integration returns static responses [OK]
Quick Trick: MOCK integration returns static responses only [OK]
Common Mistakes:
  • Assuming MOCK calls a backend service
  • Expecting dynamic data from MOCK integration
  • Confusing MOCK with Lambda integration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes