exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 432 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 432
Topic #: 1
[All AWS Certified Developer Associate Questions]

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?

  • A. 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.
  • B. 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.
  • C. 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.
  • D. 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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Phinx
Highly Voted 2 years, 5 months ago
Selected Answer: C
This could be C. https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-mock-integration.html https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-mock-integration-console.html https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-from-example.html
upvoted 7 times
llw33
1 year, 9 months ago
"statusCode of 200" sound more appropriate to integration response, rather than integration request.
upvoted 2 times
...
llw33
1 year, 8 months ago
https://www.youtube.com/watch?v=c-wQMiGYmGA&ab_channel=LalitBhatt
upvoted 3 times
...
...
ahadh7621
Most Recent 11 months, 2 weeks ago
Selected Answer: C
This question was on my exam July 23rd, 2024. The answer is C.
upvoted 1 times
...
a15ce96
1 year, 3 months ago
Selected Answer: C
For a method with the mock integration to return a 200 response, configure the integration request body mapping template to return the following. {"statusCode": 200} Sounds confusing having the desired status code in the request though...
upvoted 1 times
...
hulongdou
1 year, 6 months ago
In C, should the statusCode configured by the response mapping template?
upvoted 1 times
...
pancman
2 years, 4 months ago
This question was on the exam today (Feb 2023)
upvoted 2 times
...
pancman
2 years, 5 months ago
Selected Answer: C
Correct answer is C
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...