A. API Gateway triggers the Lambda function on GET /hello requests
B. API Gateway returns a static response without calling Lambda
C. Lambda function is triggered only on POST requests
D. The template will fail to deploy due to missing integration
Solution
Step 1: Analyze the SAM template event
The event defines an API trigger on path /hello with GET method linked to the Lambda function.
Step 2: Understand behavior on API call
Calling GET /hello triggers the Lambda function as defined.
Final Answer:
API Gateway triggers the Lambda function on GET /hello requests -> Option A
Quick Check:
API event with GET triggers Lambda [OK]
Hint: API event with GET method triggers Lambda [OK]
Common Mistakes:
Assuming static response without Lambda call
Confusing HTTP methods for trigger
Thinking deployment fails without explicit integration
4. You set up API Gateway with Lambda integration but get a 403 Forbidden error when calling the API. What is the most likely cause?
medium
A. API Gateway lacks permission to invoke the Lambda function
B. The API Gateway endpoint URL is incorrect
C. The Lambda function code has syntax errors
D. The Lambda function timeout is too short
Solution
Step 1: Understand 403 Forbidden meaning
403 means access denied, often due to missing permissions.
Step 2: Check Lambda invoke permissions
API Gateway must have permission to invoke Lambda; missing this causes 403 errors.
Final Answer:
API Gateway lacks permission to invoke the Lambda function -> Option A
Quick Check:
403 Forbidden = missing invoke permission [OK]
Hint: 403 Forbidden means missing invoke permission [OK]
Common Mistakes:
Blaming Lambda code errors for 403
Assuming wrong URL causes 403
Thinking timeout causes 403 instead of 504
5. You want API Gateway to forward the full client request (headers, query, body) to your Lambda function and receive the Lambda response directly. Which integration type and setup should you use?
hard
A. Use AWS integration type with manual mapping templates
B. Use MOCK integration type and configure static responses
C. Use HTTP integration type pointing to Lambda's REST endpoint
D. Use AWS_PROXY integration type with Lambda and grant invoke permissions
Solution
Step 1: Identify integration type for full request forwarding
AWS_PROXY integration forwards the entire client request to Lambda and returns Lambda's response directly.
Step 2: Confirm permissions and setup
Granting API Gateway permission to invoke Lambda is required for this integration to work.
Final Answer:
Use AWS_PROXY integration type with Lambda and grant invoke permissions -> Option D
Quick Check:
AWS_PROXY + invoke permission = full request forwarding [OK]
Hint: AWS_PROXY forwards full request and response [OK]
Common Mistakes:
Using MOCK for dynamic Lambda calls
Using HTTP integration which doesn't call Lambda directly
Using AWS integration without proxy causing manual mapping
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.