Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft PL-400 Exam - Topic 4 Question 124 Discussion

Posted by Lilli on Aug 19, 2025 at 12:34 AM

You need to reduce the number of Azure consumption API calls for User2.

Which markup segment should you use?

A)

B)

C)

D)

Suggested Answer: C

Scenario: User2 reports that Azure consumption for API calls has increased significantly to 100 calls per minute in the last month.

Example:

In the following example, the rate limit of 10 calls per 60 seconds is keyed by the caller IP address. After each

policy execution, the remaining calls allowed in the time period are stored in the variable remainingCallsPerIP.

<inbound>

<base />

<rate-limit-by-key calls='10'

renewal-period='60'

increment-condition='@(context.Response.StatusCode == 200)'

counter-key='@(context.Request.IpAddress)'

remaining-calls-variable-name='remainingCallsPerIP'/>

</inbound>

<outbound>

<base />

</outbound>

Note: The rate-limit-by-key policy prevents API usage spikes on a per key basis by limiting the call rate to a

specified number per a specified time period. The key can have an arbitrary string value and is typically

provided using a policy expression. Optional increment condition can be added to specify which requests

should be counted towards the limit. When this call rate is exceeded, the caller receives a 429 Too Many

Requests response status code.

Incorrect Answers:

A: With renewal-period='30' 200 calls/minute would be allowed.

B: This would increase the calls/minute limit to 1000.


https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies

Get Premium PL-400 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
18 comments · newest first
BL
Blossom 11 months ago
I read somewhere that D might actually be more efficient.
JO
Josefa 11 months ago
Option A has some good points too, not sure why everyone is leaning towards C.
HA
Hannah 11 months ago
Wait, are we sure about C? It seems too simple.
HO
Hoa 11 months ago
I think Option C is the best choice for reducing API calls.
SU
Sueann 12 months ago
Totally agree, C looks solid!
AL
Albina 12 months ago
I feel like I’ve seen a question like this before, but I can’t recall if it was about Azure or another platform.
RY
Ryan 12 months ago
I’m a bit confused about the differences between Options C and D. They both seem to have similar structures.
TA
Tawna 1 year ago
I think Option B looks familiar; it might be the one we practiced that optimizes API consumption.
EL
Elly 1 year ago
I remember we discussed reducing API calls in our last study session, but I’m not sure which markup segment is the best fit here.
KR
Kristin 1 year ago
This is a great question to test our understanding of Azure consumption APIs. I'm going to carefully consider each option and try to identify the one that will most effectively reduce the API calls for User2.
SH
Shawnda 1 year ago
I'm a little confused by the different code snippets. I'll need to take some time to really understand what each one is doing before I can make a confident decision.
MY
Myrtie 1 year ago
Okay, I've got this. Based on the information provided, I think Option C is the way to go. It looks like it consolidates the API calls, which should reduce the number for User2.
MI
Micah 1 year ago
Hmm, I'm a bit unsure about this one. I'll need to review my notes on Azure consumption APIs and think through the different options to see which one is the most efficient.
NI
Nickolas 1 year ago
This looks like a tricky question. I'll need to carefully analyze the code snippets to determine which one reduces the number of Azure consumption API calls for User2.
TI
Tijuana 1 year ago
I agree, Option C seems like the best choice to reduce API calls.
DO
Dong 1 year ago
I think we should go with Option C.
KA
Kara 1 year ago
Option C looks good, it seems to have the necessary filters to reduce the Azure consumption API calls.
JU
Justine 1 year ago
↳ replying to Kara
User1: I think Option C is the way to go.
0/2000 characters

Save Cancel