0
0
Microservicessystem_design~10 mins

When to revert to monolith in Microservices - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify a common reason to revert to a monolith.

Microservices
if system_complexity > [1]:
    consider_revert = True
Drag options to blanks, or click blank then click option'
Ahigh
Blow
Cmedium
Dzero
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'low' or 'zero' complexity as reasons to revert.
2fill in blank
medium

Complete the code to check if latency issues suggest reverting to a monolith.

Microservices
if average_latency > [1]:
    revert_to_monolith = True
Drag options to blanks, or click blank then click option'
A500ms
B10ms
C1s
D100ms
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing too low or too high latency values.
3fill in blank
hard

Fix the error in the code that decides to revert based on deployment complexity.

Microservices
if deployment_steps > [1]:
    revert = True
Drag options to blanks, or click blank then click option'
A5
B20
C10
D50
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing too low or too high numbers that don't reflect practical deployment complexity.
4fill in blank
hard

Fill both blanks to complete the condition for reverting to monolith based on team size and communication overhead.

Microservices
if team_size > [1] and communication_channels > [2]:
    revert = True
Drag options to blanks, or click blank then click option'
A15
B10
C45
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up team size and communication channel numbers.
5fill in blank
hard

Fill all three blanks to complete the code deciding to revert based on data consistency, transaction complexity, and monitoring difficulty.

Microservices
if data_consistency == [1] and transaction_complexity > [2] and monitoring_difficulty == [3]:
    revert_to_monolith = True
Drag options to blanks, or click blank then click option'
Astrong
Bhigh
Chard
Deventual
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'eventual' consistency or low complexity values.