0
0
Microservicessystem_design~20 mins

Why resilience prevents cascading failures in Microservices - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Resilience Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does circuit breaker pattern improve resilience?
In a microservices system, what is the main way the circuit breaker pattern helps prevent cascading failures?
AIt stops requests to a failing service after a threshold, preventing overload on dependent services.
BIt duplicates requests to multiple services to increase availability.
CIt retries failed requests indefinitely to ensure success.
DIt caches all responses to avoid calling any service.
Attempts:
2 left
💡 Hint
Think about how stopping calls to a failing service helps the system.
Architecture
intermediate
2:00remaining
Which design helps isolate failures in microservices?
Which architectural design choice best helps prevent cascading failures by isolating faults in microservices?
AUsing synchronous calls between all services without timeouts.
BSharing a single database for all microservices.
CImplementing asynchronous messaging with queues and timeouts.
DAllowing unlimited retries on failed requests.
Attempts:
2 left
💡 Hint
Consider how asynchronous messaging can decouple services.
scaling
advanced
2:00remaining
Estimating capacity to avoid cascading failures
If a microservice handles 1000 requests per second and has a failure rate of 5%, what is the minimum capacity the downstream service should have to avoid cascading failures assuming retries double the load?
AAt least 500 requests per second capacity.
BExactly 1000 requests per second capacity.
CAt least 1500 requests per second capacity.
DAt least 2000 requests per second capacity.
Attempts:
2 left
💡 Hint
Consider the original load plus retries doubling the requests.
tradeoff
advanced
2:00remaining
Tradeoff of aggressive retry policies in microservices
What is a major downside of aggressive retry policies in microservices when trying to improve resilience?
AThey always guarantee faster recovery from failures.
BThey can increase load and cause cascading failures by overwhelming services.
CThey reduce network traffic significantly.
DThey eliminate the need for circuit breakers.
Attempts:
2 left
💡 Hint
Think about what happens if many retries happen at once.
component
expert
2:00remaining
Identifying the component that prevents cascading failures
In a microservices architecture, which component is primarily responsible for preventing cascading failures by isolating faults and controlling traffic flow?
AAPI Gateway with rate limiting and circuit breaker features.
BDatabase replication system.
CLogging and monitoring system.
DLoad balancer distributing requests evenly.
Attempts:
2 left
💡 Hint
Consider which component controls request flow and handles failures.