Bird
0
0

A developer created a resource and added a GET method but forgot to deploy the API. What will happen when clients try to access the resource?

medium📝 Debug Q7 of 15
AWS - API Gateway
A developer created a resource and added a GET method but forgot to deploy the API. What will happen when clients try to access the resource?
AClients receive a 403 Forbidden error
BClients receive a 500 Internal Server Error
CClients receive a 200 OK with cached data
DClients receive a 404 Not Found error
Step-by-Step Solution
Solution:
  1. Step 1: Understand deployment effect

    API Gateway changes are not live until deployed to a stage.
  2. Step 2: Identify response for undeployed changes

    Requests to undeployed resources return 404 Not Found because the API stage lacks the new resource.
  3. Final Answer:

    Clients receive a 404 Not Found error -> Option D
  4. Quick Check:

    Undeployed API = 404 error [OK]
Quick Trick: Undeployed API changes cause 404 errors [OK]
Common Mistakes:
  • Expecting 403 instead of 404
  • Assuming 200 OK with no deployment
  • Thinking 500 error occurs here

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes