Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Exam DVA-C02 All Questions
Exam DVA-C02 All Questions

View all questions & answers for the DVA-C02 exam

Amazon Web Services AWS Certified Associate DVA-C02 Question # 85 Topic 9 Discussion

DVA-C02 Exam Topic 9 Question 85 Discussion:
Question #: 85
Topic #: 9

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 }


Get Premium DVA-C02 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.