exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 50 discussion

A developer is creating a mobile app that calls a backend service by using an Amazon API Gateway REST API. For integration testing during the development phase, the developer wants to simulate different backend responses without invoking the backend service.
Which solution will meet these requirements with the LEAST operational overhead?

  • A. Create an AWS Lambda function. Use API Gateway proxy integration to return constant HTTP responses.
  • B. Create an Amazon EC2 instance that serves the backend REST API by using an AWS CloudFormation template.
  • C. Customize the API Gateway stage to select a response type based on the request.
  • D. Use a request mapping template to select the mock integration response.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Untamables
Highly Voted 2 years, 4 months ago
Selected Answer: D
D https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-mock-integration.html
upvoted 17 times
...
Dun6
Highly Voted 2 years, 4 months ago
Chatgpt said D
upvoted 6 times
...
sumanshu
Most Recent 7 months, 4 weeks ago
Selected Answer: D
C) Eliminated - Stages are not designed for selecting mock responses dynamically. D) Correct - API Gateway provides a mock integration feature where request mapping templates can simulate responses.
upvoted 3 times
...
tsangckl
1 year, 2 months ago
This appear at 17 Jun exam
upvoted 1 times
...
65703c1
1 year, 2 months ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
Umuntu
1 year, 10 months ago
D. Use a request mapping template to select the mock integration response. Option D allows you to use a request mapping template in API Gateway to select the mock integration response. This approach allows you to simulate different backend responses without invoking the actual backend service. It provides flexibility and control over the responses without the need for additional AWS resources like Lambda functions or EC2 instances, thus minimizing operational overhead.
upvoted 5 times
...
hsinchang
1 year, 11 months ago
without invoking backend service -> mock
upvoted 2 times
...
ninomfr64
1 year, 12 months ago
Selected Answer: D
D as per doc https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-mock-integration.html Wording confused me a bit, with mapping template you do not "select" a response, instead you actually craft it in this case
upvoted 1 times
...
KhyatiChhajed
2 years, 3 months ago
Selected Answer: D
it's D
upvoted 1 times
...
March2023
2 years, 4 months ago
Selected Answer: D
I'm going with D as well.
upvoted 4 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 ...