nerdexam
AmazonAmazon

DVA-C02 · Question #497

DVA-C02 Question #497: Real Exam Question with Answer & Explanation

Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #497. The question stem and answer options stay visible for context.

Submitted by ngozi_ng· Mar 5, 2026Development with AWS Services - Implementing and managing serverless APIs using Amazon API Gateway, including configuring mock integrations and request/response mapping templates

Question

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. Which statement will meet these requirements? A. B. C. D.

Options

  • 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 }

Unlock DVA-C02 to see the answer

You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#API Gateway#Mock Integration#Velocity Template Language#Mapping Templates
Full DVA-C02 PracticeBrowse All DVA-C02 Questions