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

You need to reduce the number of Azure consumption API calls for User2.Which markup segment should you use?A)B)C)D)
C) Option C
A) Option A
B) Option B
D) Option D

Microsoft PL-400 Exam - Topic 4 Question 124 Discussion

Actual exam question for Microsoft's PL-400 exam
Question #: 124
Topic #: 4
[All PL-400 Questions]

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

Which markup segment should you use?

A)

B)

C)

D)

Show Suggested Answer Hide Answer
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

Contribute your Thoughts:

0/2000 characters
Blossom
9 months ago
I read somewhere that D might actually be more efficient.
upvoted 0 times
...
Josefa
9 months ago
Option A has some good points too, not sure why everyone is leaning towards C.
upvoted 0 times
...
Hannah
9 months ago
Wait, are we sure about C? It seems too simple.
upvoted 0 times
...
Hoa
10 months ago
I think Option C is the best choice for reducing API calls.
upvoted 0 times
...
Sueann
10 months ago
Totally agree, C looks solid!
upvoted 0 times
...
Albina
10 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.
upvoted 0 times
...
Ryan
10 months ago
I’m a bit confused about the differences between Options C and D. They both seem to have similar structures.
upvoted 0 times
...
Tawna
11 months ago
I think Option B looks familiar; it might be the one we practiced that optimizes API consumption.
upvoted 0 times
...
Elly
11 months 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.
upvoted 0 times
...
Kristin
11 months 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.
upvoted 0 times
...
Shawnda
11 months 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.
upvoted 0 times
...
Myrtie
11 months 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.
upvoted 0 times
...
Micah
11 months 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.
upvoted 0 times
...
Nickolas
12 months 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.
upvoted 0 times
...
Tijuana
1 year ago
I agree, Option C seems like the best choice to reduce API calls.
upvoted 0 times
...
Dong
1 year ago
I think we should go with Option C.
upvoted 0 times
...
Kara
1 year ago
Option C looks good, it seems to have the necessary filters to reduce the Azure consumption API calls.
upvoted 0 times
Justine
1 year ago
User1: I think Option C is the way to go.
upvoted 0 times
...
...

Save Cancel