Microsoft Certified: Azure Developer Associate (AZ-204)Connect to and consume Azure services and third-party servicesHard
A company uses Azure Logic Apps to automate business processes. One critical Logic App needs to integrate with a third-party API that has strict rate limits of 10 requests per minute and a burst capacity of 15 requests for short periods. The Logic App often exceeds this limit, leading to failures. Which feature should be implemented to respect the third-party API's rate limits?
- AIncrease the Logic App's concurrency settings.
- BImplement a custom delay action with a fixed interval.
- CUtilize a managed API Management instance to front the API.
- DConfigure a custom throttling policy within the Logic App's HTTP action.
Show answer & explanationAnswer & explanation
Correct answer: C. Utilize a managed API Management instance to front the API.
Azure API Management (APIM) is specifically designed to manage, secure, and scale APIs. It offers robust rate limiting and throttling policies that can be configured to precisely match the third-party API's limits, including burst capacity, and apply them across all consumers (like the Logic App). This offloads rate limit management from the Logic App itself.
Why the other options are wrong
- A. Increasing concurrency would exacerbate the rate limit problem, not solve it.
- B. A fixed delay might work but is not dynamic enough to handle burst capacity or varying load, and is less efficient than a dedicated throttling solution.
- D. Logic Apps do not have built-in custom throttling policies for HTTP actions that can intelligently manage external API rate limits with burst capacity. Retry policies are for error handling, not rate limiting.
API Management Throttling
A feature in Azure API Management to control the number of requests clients can make to an API over a specific time period, preventing overuse and protecting backend services.
- Protects backend APIs from abuse.
- Enforces rate limits and quotas.
- Can be configured with burst capacity settings.
Memory trick: APIM is the traffic cop for your APIs, ensuring no one speeds or jams the lanes.