AWS Certified Developer - Associate (DVA-C03) free question 2 / 10 · Domain 1: Development with AWS Services
A SaaS company exposes a REST API in Amazon API Gateway. A developer creates a usage plan for premium customers that sets a per-client rate higher than the account-level rate of the Region, and attaches the customers' API keys to it. How does API Gateway treat this per-client limit?
- API Gateway rejects the usage plan when it is created and expects the higher rate to be set on the API stage instead
- The per-client limit is capped by the per-account limit, so the premium customers stay within the account rate
- The usage plan overrides the account-level limit for its clients and lets the premium customers exceed the account rate
- The usage plan limit applies first and AWS raises the account-level limit of the Region to match the per-client rate
Show the answer and explanation
Answer: B
Why this is correct
API Gateway applies four kinds of throttling settings: AWS throttling limits, per-account limits, per-API per-stage limits and per-client limits. Per-client limits apply to clients that use the API keys associated with a usage plan as their client identifier. The page notes that these limits cannot be higher than the per-account limits, so a usage plan can give the premium tier its own rate but cannot lift it above the account-level limit of the Region. If the premium tier needs more than the account limit allows, the account-level rate is raised by contacting the AWS Support Center, and it cannot be higher than the AWS throttling limits.
Why the other options are wrong
"The usage plan overrides the account-level limit for its clients and lets the premium customers exceed the account rate" … The page states that per-client throttling limits cannot be higher than the per-account limits. A usage plan sets limits for its clients inside the account limit and does not lift them above it.
"The usage plan limit applies first and AWS raises the account-level limit of the Region to match the per-client rate" … The page says the account-level rate limit can be increased on request by contacting the AWS Support Center. A usage plan setting does not change it, and the per-client limits cannot be higher than the per-account limits.
"API Gateway rejects the usage plan when it is created and expects the higher rate to be set on the API stage instead" … The page describes per-client limits as settings of a usage plan that apply to clients identified by their API keys. The usage plan is not rejected; its limits are simply held to the per-account limits.
Key points
Per-client limits (usage plan and API keys) cannot be higher than the per-account limits. The account-level limit is raised through the AWS Support Center, up to the AWS throttling limits.