Medium1 markMultiple Choice
Domain 4.2: Application ArchitectureDomain 4API ManagementPoliciesPerformance

AZ-305 · Question 43 · Domain 4.2: Application Architecture

You are managing a set of APIs using Azure API Management (APIM).

A specific backend API is struggling to handle the load during peak hours. The API returns a list of product categories, which changes only once a week. Additionally, you notice that a single partner is making thousands of requests per minute, starving other users of resources.

You need to implement APIM policies to resolve these issues without modifying the backend API code.

Which TWO policies should you apply? (Select TWO)

Answer options:

A.

Rate limit by key

B.

Cache responses

C.

Validate JWT

D.

Set body

E.

Mock response

How to approach this question

Identify the APIM policy for throttling users and the policy for storing infrequent data in memory.

Full Answer

Rate limit by key, Cache responses
Azure API Management uses policies to change the behavior of APIs through configuration. To prevent a single partner from overwhelming the system, use the `rate-limit-by-key` policy to throttle requests based on their subscription key. To reduce the load on the backend for infrequently changing data, use the `cache-responses` policy. This stores the backend response in APIM's cache, serving future requests instantly without hitting the backend.

Common mistakes

Confusing `rate-limit` with `quota`. Rate limits protect against short bursts (e.g., 100 calls/minute), while quotas enforce long-term business limits (e.g., 10,000 calls/month). Rate limit is correct here.

Practice the full Azure Solutions Architect Expert AZ-305 Practice Exam 2

55 questions · hints · full answers · grading

More questions from this exam