0
0
Microservicessystem_design~20 mins

Lessons from microservices failures - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Microservices Failure Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is a common cause of cascading failures in microservices?
In a microservices architecture, what often triggers cascading failures that affect multiple services?
ADeploying services with different programming languages
BUsing too many databases for different services
CA single service becoming overloaded and causing dependent services to fail
DHaving too many developers working on the same service
Attempts:
2 left
💡 Hint
Think about how one service's failure can impact others that rely on it.
Architecture
intermediate
2:00remaining
Which design helps prevent cascading failures in microservices?
Which architectural pattern is best suited to isolate failures and prevent cascading effects in microservices?
ACircuit breaker pattern that stops calls to failing services
BDirect synchronous calls without retries
CUsing a single database for all services
DMonolithic deployment of all services together
Attempts:
2 left
💡 Hint
Think about a way to stop repeated calls to a failing service.
scaling
advanced
2:30remaining
What is a key challenge when scaling microservices to avoid failures?
When scaling microservices, what is a critical challenge that can lead to failures if not handled properly?
AEnsuring consistent data across distributed services
BUsing the same hardware for all services
CAvoiding any form of caching
DDeploying all services in a single data center
Attempts:
2 left
💡 Hint
Think about data consistency when services are spread out.
tradeoff
advanced
2:30remaining
What is a tradeoff when using asynchronous communication in microservices?
Choosing asynchronous communication between microservices improves resilience but introduces what tradeoff?
AHigher latency in synchronous calls
BSimpler debugging and tracing
CReduced fault tolerance
DIncreased complexity in handling eventual consistency
Attempts:
2 left
💡 Hint
Think about data state when messages are delayed.
estimation
expert
3:00remaining
Estimate the maximum number of microservices calls per second before failure risk increases
A microservices system has 50 services, each making 10 calls per second to others. What is the approximate total number of calls per second in the system, and why does exceeding this number increase failure risk?
A50 calls per second; exceeding this causes database locks
B500 calls per second; exceeding this overloads network and services causing failures
C1000 calls per second; exceeding this causes CPU overheating
D100 calls per second; exceeding this causes memory leaks
Attempts:
2 left
💡 Hint
Multiply services by calls per service to find total calls.