nerdexam
Amazon

DVA-C02 · Question #271

A developer is building an application that will use an Amazon API Gateway API with an AWS Lambda backend. The team that will develop the frontend requires immediate access to the API endpoints to bui

The correct answer is B. Set the integration type to MOCK. Configure the method's integration request and integration. Setting the integration type to MOCK allows you to create mock responses without having a backend implementation. With this approach, you can easily provide predefined JSON responses for specific HTTP status codes, allowing the frontend team to work on UI development with realist

Submitted by marco_it· Mar 5, 2026Development with AWS Services

Question

A developer is building an application that will use an Amazon API Gateway API with an AWS Lambda backend. The team that will develop the frontend requires immediate access to the API endpoints to build the UI. To prepare the backend application for integration, the developer needs to set up endpoints. The endpoints need to return predefined HTTP status codes and JSON responses for the frontend team. The developer creates a method for an API resource. Which solution will meet these requirements?

Options

  • ASet the integration type to AWS_PROXY. Provision Lambda functions to return hardcoded JSON
  • BSet the integration type to MOCK. Configure the method's integration request and integration
  • CSet the integration type to HTTP_PROXY. Configure API Gateway to pass all requests to an
  • DSet the integration type to MOCK. Use a method request to define HTTP status codes. Use an

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    77% (30)
  • C
    13% (5)
  • D
    8% (3)

Explanation

Setting the integration type to MOCK allows you to create mock responses without having a backend implementation. With this approach, you can easily provide predefined JSON responses for specific HTTP status codes, allowing the frontend team to work on UI development with realistic data. Configuring the method's integration request and integration response in API Gateway allows you to define the expected request and response formats, including associating JSON responses with specific HTTP status codes.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice