Bird
0
0

Given this API Gateway setup: a resource path /books with a GET method using MOCK integration. What happens when a client sends a GET request to /books?

medium📝 service behavior Q13 of 15
AWS - API Gateway
Given this API Gateway setup: a resource path /books with a GET method using MOCK integration. What happens when a client sends a GET request to /books?
AThe API fetches book data from a connected database.
BThe API returns an error because MOCK integration is invalid.
CThe API triggers a Lambda function to process the request.
DThe API returns a predefined mock response without calling any backend.
Step-by-Step Solution
Solution:
  1. Step 1: Understand MOCK integration

    MOCK integration returns a fixed response defined in API Gateway without backend calls.
  2. Step 2: Analyze GET method on /books

    Since GET uses MOCK, the client receives the mock response directly.
  3. Final Answer:

    The API returns a predefined mock response without calling any backend. -> Option D
  4. Quick Check:

    MOCK integration = fixed response [OK]
Quick Trick: MOCK returns fixed response, no backend called [OK]
Common Mistakes:
  • Assuming MOCK calls database or Lambda
  • Thinking MOCK integration causes errors
  • Confusing MOCK with real backend integration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes