0
0
Microservicessystem_design~20 mins

Services and networking in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Services and Networking Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Designing Service Communication in Microservices

You have three microservices: User, Order, and Inventory. Which communication pattern best reduces tight coupling and improves scalability?

AUsing an asynchronous message broker for event-driven communication
BSynchronous HTTP calls directly between services for every request
CEmbedding all logic into a single monolithic service
DUsing shared database tables for communication between services
Attempts:
2 left
💡 Hint

Think about how services can work independently without waiting on each other.

scaling
intermediate
2:00remaining
Scaling Service Discovery in a Microservices Environment

You have 100 microservices instances running across multiple servers. Which approach best supports automatic service discovery and load balancing?

AManually configure IP addresses of all instances in each service
BUse a centralized service registry with health checks and client-side load balancing
CUse DNS with static entries for each service instance
DHardcode service endpoints in configuration files
Attempts:
2 left
💡 Hint

Consider how services can find healthy instances dynamically without manual updates.

tradeoff
advanced
2:00remaining
Choosing Between API Gateway and Service Mesh

Which statement best describes a key tradeoff when choosing between an API Gateway and a Service Mesh for microservices networking?

AAPI Gateway centralizes external client requests, while Service Mesh manages internal service-to-service communication with fine-grained control
BAPI Gateway handles internal service-to-service communication, while Service Mesh manages external client requests
CAPI Gateway and Service Mesh are identical and interchangeable in all scenarios
DService Mesh replaces the need for load balancers, while API Gateway replaces the need for service discovery
Attempts:
2 left
💡 Hint

Think about the roles of API Gateway and Service Mesh in handling traffic.

🧠 Conceptual
advanced
2:00remaining
Understanding Circuit Breaker Pattern in Microservices

What is the primary purpose of the circuit breaker pattern in microservices networking?

ATo encrypt all network traffic between services
BTo route requests to the nearest service instance geographically
CTo automatically scale services based on load
DTo prevent a service from repeatedly calling a failing service and causing cascading failures
Attempts:
2 left
💡 Hint

Consider how to protect the system when one service is down or slow.

estimation
expert
3:00remaining
Estimating Network Bandwidth for Microservices Communication

You have 50 microservices instances communicating via REST APIs. Each instance sends 100 requests per second, each request is 2KB, and the response is 3KB. Estimate the total network bandwidth required in Mbps.

A80 Mbps
B100 Mbps
C160 Mbps
D120 Mbps
Attempts:
2 left
💡 Hint

Calculate total data per second and convert bytes to bits, then to Mbps.