0
0
HLDsystem_design~10 mins

Read replicas in HLD - 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 the main purpose of a read replica.

HLD
A read replica is primarily used to [1] the load on the primary database.
Drag options to blanks, or click blank then click option'
Aignore
Bincrease
Creduce
Dduplicate
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'increase' because it sounds like more work is done.
2fill in blank
medium

Complete the code to describe how read replicas get updated.

HLD
Read replicas are updated asynchronously from the primary database using [1] replication.
Drag options to blanks, or click blank then click option'
Aasynchronous
Bsynchronous
Cmanual
Dbatch
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'synchronous' which would slow down the primary database.
3fill in blank
hard

Fix the error in the statement about read replica consistency.

HLD
Read replicas provide [1] consistency with the primary database.
Drag options to blanks, or click blank then click option'
Astrict
Bimmediate
Cstrong
Deventual
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'strong' or 'immediate' which imply no delay.
4fill in blank
hard

Fill both blanks to complete the read replica benefits.

HLD
Read replicas help [1] read throughput and [2] latency for read requests.
Drag options to blanks, or click blank then click option'
Aincrease
Bdecrease
Cignore
Dduplicate
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'decrease' for throughput or 'increase' for latency.
5fill in blank
hard

Fill all three blanks to complete the read replica setup code snippet.

HLD
replica = create_replica(primary_db, replication_type=[1], consistency=[2], purpose=[3])
Drag options to blanks, or click blank then click option'
Aasynchronous
Beventual
Cread_scaling
Dsynchronous
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing synchronous replication or strong consistency.