Show answerHide answer
Correct answer: C Enable throttling on APIs.
Explanation
Explanation:The core problem is a spike in usage during peak hours that consumes all available network bandwidth, causing performance degradation for all customers. The requirement is to ensure access is "fair and accessible at all times" in the "most cost-effective" way.
Why C is Correct:
Throttling (or rate limiting) is an API management technique that controls how many requests a user can make to an API within a specific time window.
How it fixes the issue:
It directly enforces fairness by preventing any single customer or a small group of customers from consuming a disproportionate share of the bandwidth during peak times. By capping the request rate per customer, the available network capacity is shared equitably, ensuring all customers get a "fair" slice of the bandwidth and the service remains "accessible" for everyone.
Cost:
This is a software or configuration-based solution, often a feature of API gateways or cloud load balancers (e.g., AWS API Gateway, Azure API Management). It requires no new hardware or ongoing compute costs, making it the most cost-effective option
Why the Other Options Are Incorrect or Less Cost-Effective:
A. Use an allow list for customers using APIs:
An allow list (whitelist) restricts API access to only a pre-approved set of customers. This is a security feature to block unauthorized access. It does not manage bandwidth consumption among approved customers. If anything, it would make the problem worse by guaranteeing that the fixed resources are only available to a subset of users, which violates the requirement that access should be for "all customers."
B. Increase the number of VMs running APIs:
This is a scaling solution (scaling out). While adding more VMs would increase total available bandwidth and compute power, it is not the most cost-effective way. It adds significant ongoing compute costs, especially if the VMs are running 24/7 to handle peak loads that only occur for a few hours each day. The requirement for cost-effectiveness makes this a less ideal solution than throttling.
D. Increase the MTU on the VMs:
The Maximum Transmission Unit (MTU) is the largest data packet a network interface can transmit. Increasing it can slightly improve efficiency by reducing protocol overhead per byte of data sent. However, this has a negligible impact on bandwidth congestion caused by excessive API calls. It does not address the root cause of too many requests and does not enforce fairness among customers. It is a low-level network tuning that is irrelevant to this application-layer traffic management problem.
Reference:
Throttling is a core principle of API management and is a standard feature of all major cloud providers' API services. It is a fundamental technique for ensuring quality of service, preventing abuse, and managing capacity fairly, as described in cloud architecture best practices (e.g., AWS Well-Architected Framework, Microsoft Azure Architecture Framework).