exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 36 discussion

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

HOTSPOT
-

You develop an image upload service that is exposed using Azure API Management. Images are analyzed after upload for automatic tagging.

Images over 500 KB are processed by a different backend that offers a lower tier of service that costs less money. The lower tier of service is denoted by a header named x-large-request. Images over 500 KB must never be processed by backends for smaller images and must always be charged the lower price.

You need to implement API Management policies to ensure that images are processed correctly.
How should you complete the API Management inbound policy? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

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
kvtborad
Highly Voted 1 year, 9 months ago
I got this question on 6th August 2023. chose given answers. passed with 904. I got Case study: city and Lights. All questions are from ExamTopics.
upvoted 15 times
1CY1
9 months, 1 week ago
Did exam 29 July 2024, passed with a score of 907. Most questions from ExamTopics. This question was in there, went with this answer. One case study in ExamTopics and one I had not seen before about a Coffee Shop. No Logic Apps or Kubernetes.
upvoted 3 times
...
1CY1
9 months, 4 weeks ago
If the image is small then delete this header. Otherwise set the backend base-url to large-image-host.
upvoted 1 times
...
sphinx0005
1 year, 6 months ago
Where did you refer case studies. Can you please tell me
upvoted 1 times
...
...
CarlosTheBoldest
Highly Voted 1 year, 5 months ago
I got this question on my exam, 2023Dec, go with what I remember was the most voted answer. Score 902, most of the questions were here, slightly different on wording because the Azure Ad <-> Entra Id change. Case was City Power & Light. Good luck! Important tip, you have access to microsoft learn during the exam!
upvoted 5 times
...
jv1
Most Recent 9 months, 1 week ago
exists-action: override, since exists-action specifies what action to take if the header already exists.
upvoted 1 times
...
ce77bdc
11 months, 4 weeks ago
I think it's correct, if size is less than 512k but has header 'x-large' delete otherwise make base url 'large-image-host'....
upvoted 1 times
...
Veeresh114
1 year, 2 months ago
Correction : Images below 500 KB are processed by a different backend that offers a lower tier of service that costs less money. The lower tier of service is denoted by a header named x-large-request. Images over 500 KB must never be processed by backends for smaller images and must always be charged the lower price
upvoted 2 times
...
SSR999
1 year, 4 months ago
In question it is mentioned 'Images over 500kb' in both scenarios, ideally in second place it should be 'Images less than 500KB must never process'
upvoted 4 times
macfuk
10 months, 4 weeks ago
Correct, please upvote this comment.
upvoted 1 times
...
...
Firo
1 year, 9 months ago
The given answer looks correct the condition here is for "Images < 500KB" so based on the below reference we need to delete the header. https://learn.microsoft.com/en-us/azure/api-management/set-header-policy#attributes This is also the reference for back end service https://learn.microsoft.com/en-us/azure/api-management/set-backend-service-policy
upvoted 4 times
VarunDashora26
1 year, 8 months ago
In my opinion, why would there be a need to Delete the header when " The lower tier of service is denoted by a header named x-large-request" .... instead it should be override, set-backend, baseURl
upvoted 3 times
...
...
Heighte
2 years, 1 month ago
question seem broken, it doesn't make any sense to me to have delete and value true below.
upvoted 3 times
damianadalid
1 year, 11 months ago
Indeed. And if the answer were override (to set it to true), we would need a complementary set-header for x-large-request to false in the otherwise block...
upvoted 2 times
...
...
adilkhan
2 years, 2 months ago
<when condition="@((int)context.Request.Headers.GetValueOrDefault("Content-Length", "0") > 500000)"> <set-header name="x-large-request" exists-action="override"> <value>true</value> </set-header> <set-backend-service base-url="https://backend-large-service.com" /> </when> <otherwise> <set-header name="x-large-request" exists-action="override"> <value>false</value> </set-header> <set-backend-service base-url="https://backend-small-service.com" /> </otherwise> chat gpt
upvoted 4 times
...
JustHereToLearn
2 years, 3 months ago
The given answer looks correct https://learn.microsoft.com/en-us/azure/api-management/set-header-policy#attributes https://learn.microsoft.com/en-us/azure/api-management/set-backend-service-policy
upvoted 3 times
daothanhyen
2 years, 2 months ago
Size < 512 should process. Why is it delete?
upvoted 3 times
NK203
2 years, 2 months ago
x-large-request should be set on Size>=512.if Size<512kb,remove this header.
upvoted 10 times
...
...
IvanIco
1 year, 10 months ago
it's definitely not delete
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