List of questions
Related questions
Question 290 - DVA-C02 discussion
A developer is updating an Amazon API Gateway REST API to have a mock endpoint. The developer wants to update the integration request mapping template so the endpoint will respond to mock integration requests with specific HTTP status codes based on various conditions.
A.
{ if( $input.params('integration') == 'mock' ) 'statusCode': 404 else 'statusCode': 500 end }
B.
{ if( $input.params('scope') == 'internal' ) 'statusCode': 200 else 'statusCode': 500 end }
C.
{ if( $input.path('integration') ) 'statusCode': 200 else 'statusCode':404 end }
D.
{ if( $context.integration.status ) 'statusCode': 200 else 'statusCode': 500 end }
Your answer:
0 comments
Sorted by
Leave a comment first