Challenge - 5 Problems
API Gateway Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What is a primary role of an API Gateway in system design?
Choose the main function of an API Gateway in a microservices architecture.
Attempts:
2 left
💡 Hint
Think about how clients communicate with multiple backend services.
✗ Incorrect
API Gateway serves as a single entry point that routes requests to the correct backend service, simplifying client communication and improving security.
❓ Architecture
intermediate2:00remaining
How does API Gateway improve security in a system?
Select the best way an API Gateway enhances security for backend services.
Attempts:
2 left
💡 Hint
Consider where security checks happen in the request flow.
✗ Incorrect
API Gateway can validate tokens, authenticate users, and reject unauthorized requests before they reach backend services, improving security.
❓ scaling
advanced2:00remaining
What role does API Gateway play in scaling backend services?
Identify how API Gateway helps manage scaling in a distributed system.
Attempts:
2 left
💡 Hint
Think about how to protect backend services from too many requests.
✗ Incorrect
API Gateway can throttle requests, limiting the rate clients can send requests to backend services, preventing overload and enabling smoother scaling.
❓ tradeoff
advanced2:00remaining
What is a tradeoff when using an API Gateway in system architecture?
Choose the correct tradeoff involved in introducing an API Gateway.
Attempts:
2 left
💡 Hint
Consider what new risks or costs come with adding a new component.
✗ Incorrect
While API Gateway simplifies client access and adds security, it also introduces a single point of failure that must be managed carefully.
❓ estimation
expert3:00remaining
Estimate the capacity needed for an API Gateway handling 10,000 requests per second with 5 backend services.
If each backend service can handle 3,000 requests per second, what is the minimum capacity the API Gateway must support to avoid bottlenecks?
Attempts:
2 left
💡 Hint
Focus on the number of incoming requests the gateway must process, not backend sum.
✗ Incorrect
The API Gateway must handle all incoming client requests, so it needs capacity for 10,000 requests per second. Backend services handle requests distributed by the gateway.