Topic 1 Question 373
A company has a serverless application that uses Amazon API Gateway backed by AWS Lambda proxy integration. The company is developing several backend APIs. The company needs a landing page to provide an overview of navigation to the APIs.
A developer creates a new/LandingPage resource and a new GET method that uses mock integration.
What should the developer do next to meet these requirements?
Configure the integration request mapping template with Content-Type of text/html and statusCode of 200. Configure the integration response mapping template with Content-Type of application/json. In the integration response mapping template, include the LandingPage HTML code that references the APIs.
Configure the integration request mapping template with Content-Type of application/json. In the integration request mapping template, include the LandingPage HMTL code that references the APIs. Configure the integration response mapping template with Content-Type of text/html and statusCode of 200.
Configure the integration request mapping template with Content-Type of application/json and statusCode of 200. Configure the integration response mapping template with Content-Type of text/html. In the integration response mapping template, include the LandingPage HTML code that references the APIs.
Configure the integration request mapping template with Content-Type of text/html. In the integration request mapping template, include the LandingPage HTML code that references the APIs. Configure the integration response mapping template with Content-Type of application/json and statusCode of 200.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: C
Integration Request Mapping Template: { "statusCode": 200 }
Integration Response Mapping Template: <html> <head> <title>Landing Page</title> </head> <body> <h1>Welcome to our API Gateway!</h1> <p>Here are our APIs:</p> <ul> <li><a href="/api1">API 1</a></li> <li><a href="/api2">API 2</a></li> <li><a href="/api3">API 3</a></li> </ul> </body> </html>
👍 3albert_kuo2024/07/27 - 正解だと思う選択肢: C
By configuring the integration request and response mapping templates as described, you ensure that the mock integration correctly serves the HTML landing page, meeting the requirement of providing an overview and navigation to the backend APIs.
👍 2Alabi2024/06/29
シャッフルモード