0
0
Microservicessystem_design~20 mins

Graceful degradation in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Graceful Degradation Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Graceful Degradation in Microservices

Which of the following best describes the concept of graceful degradation in a microservices architecture?

AThe system shuts down completely to avoid inconsistent states when any service fails.
BThe system continues to operate with reduced functionality when some services fail.
CThe system automatically scales up all services to prevent any failure.
DThe system ignores failures and retries indefinitely without fallback.
Attempts:
2 left
💡 Hint

Think about how a system behaves when parts of it stop working but the whole does not fail.

Architecture
intermediate
2:00remaining
Designing a Graceful Degradation Strategy

You are designing a microservices system for an online store. Which architectural approach best supports graceful degradation when the payment service is down?

AAllow users to place orders but queue payments for later processing.
BBlock all order placements until the payment service is fully operational.
CAutomatically cancel all orders if payment service is unavailable.
DRedirect users to a static error page without any order options.
Attempts:
2 left
💡 Hint

Consider how to keep the core functionality available even if payment is temporarily unavailable.

scaling
advanced
2:00remaining
Scaling Considerations for Graceful Degradation

In a microservices system, which scaling strategy best supports graceful degradation during high load on a critical service?

AIgnore load and let the service fail to force a restart.
BIncrease the number of requests sent to the overloaded service to speed up processing.
CDisable all other services to focus resources on the overloaded service.
DImplement circuit breakers to temporarily stop requests to the overloaded service and fallback to cached data.
Attempts:
2 left
💡 Hint

Think about how to protect a service under stress while still providing some response.

tradeoff
advanced
2:00remaining
Trade-offs in Graceful Degradation Design

What is a common trade-off when implementing graceful degradation in microservices?

AReduced feature availability in exchange for higher system availability.
BIncreased feature complexity with no impact on system availability.
CComplete system shutdown to ensure data consistency.
DUnlimited retries causing increased latency but no feature loss.
Attempts:
2 left
💡 Hint

Consider what the system sacrifices to keep running during partial failures.

estimation
expert
2:00remaining
Estimating Impact of Graceful Degradation on User Experience

A microservices system has 10 services. If 2 services degrade gracefully by reducing functionality, what percentage of total services are fully operational?

A60%
B20%
C80%
D100%
Attempts:
2 left
💡 Hint

Calculate the number of services fully operational versus total services.