exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 45 discussion

Actual exam question from Microsoft's AZ-204
Question #: 45
Topic #: 6
[All AZ-204 Questions]

HOTSPOT -

You are developing a new API to be hosted by Azure API Management (APIM). The backend service that implements the API has not been completed. You are creating a test API and operation.

You must enable developers to continue with the implementation and testing of the APIM instance integrations while you complete the backend API development.

You need to configure a test API response.

How should you complete the configuration? To answer, select the appropriate options in the answer area.

Show Suggested Answer Hide Answer
Suggested Answer:

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
AbidooKing
Highly Voted 1 year, 9 months ago
Answer is wrong. It should be inbound not backend.
 Correct is: Mock-response, inbound and 200 https://learn.microsoft.com/en-us/azure/api-management/mock-api-responses?tabs=azure-portal#enable-response-mocking
upvoted 30 times
...
junix_
Highly Voted 1 year, 9 months ago
Answer should be: 1. mock-response 2. inbound 3. 200 refs: https://learn.microsoft.com/en-us/azure/api-management/mock-api-responses?tabs=azure-cli
upvoted 18 times
applepie
1 year, 9 months ago
got this question today, went with this answer - 7/30/2023, score 895/1000
upvoted 5 times
...
...
Vichu_1607
Most Recent 7 months ago
Policy c. mock-response: The mock-response policy allows you to simulate the behavior of the backend by returning a sample response to the caller. This is useful when the backend service is not yet completed. Policy Section a. inbound: The inbound section is where you would place the mock-response policy. This policy is executed before the request is forwarded to the backend service. Http Response code a. 200: HTTP status code 200 represents a successful HTTP request. This would be appropriate for a mock response indicating a successful operation.
upvoted 1 times
...
sekelsenmat
1 year, 2 months ago
I just tested it on Azure. The documentation and the examtopics answer are wrong, it says: Usage Policy sections: inbound, outbound, on-error here: https://learn.microsoft.com/en-us/azure/api-management/mock-response-policy But if I put <mock-response> inside <backend> I get an error: Error in element 'mock-response' on line 18, column 10: Policy is not allowed in this section The correct place is <inbound> beyond any doubt. So the answer is: 1. mock-response 2. inbound 3. 200
upvoted 9 times
sekelsenmat
1 year, 2 months ago
ah, I see the list actually doesn't include <backend> as a possibility :D So the docs are right, I just need glasses.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago