開発者は、以前に開発したアプリケーションでセキュリティの問題を経験しました。そのアプリケーションが提供する API はオープンで、何の制約もありません。最近の攻撃では、アプリケーションが API リクエストで過負荷になりました。この問題に対処するために、将来の攻撃や突然のスロットリングからアプリケーションを保護する API 制約が実装されています。この状況でアプリケーション開発者が実装する必要がある API 制約はどれですか?
正解:B
Rate limiting is a technique used to control the amount of incoming and outgoing traffic to or from a network. It restricts the number of API requests a user can make within a specified time window, protecting the application from being overwhelmed by too many requests at once. * Definition and Purpose: Rate limiting sets a threshold for the number of requests a user or system can * make in a given timeframe (e.g., 100 requests per minute). * Implementation: Developers can implement rate limiting using various strategies such as token buckets or fixed windows. * Benefits: This constraint helps prevent abuse, reduces server load, and ensures the application remains available and performant even during high traffic periods or attacks. References: * Rate Limiting and Throttling in APIs: Rate Limiting