0
0
AWScloud~20 mins

Read replicas for performance in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Read Replica Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How do read replicas improve database performance?

Imagine you have a busy online store. You want to make sure many customers can browse products quickly without slowing down the main database that handles orders. How do read replicas help in this situation?

AThey copy the main database and handle read requests, reducing load on the main database.
BThey store backups of the database for disaster recovery only.
CThey replace the main database to handle all write operations.
DThey encrypt data to improve security during reads.
Attempts:
2 left
💡 Hint

Think about separating read and write tasks to improve speed.

Architecture
intermediate
2:00remaining
Choosing the right number of read replicas

You run a web app with a main database and several read replicas. What is a good reason to add more read replicas?

ATo increase the number of write operations the database can handle.
BTo improve read query performance by distributing read traffic.
CTo reduce the storage size of the main database.
DTo automatically backup data more frequently.
Attempts:
2 left
💡 Hint

Think about how read replicas share the work of reading data.

service_behavior
advanced
2:00remaining
Behavior of read replicas during failover

In AWS RDS, if the main database instance fails, what happens to the read replicas?

AThey automatically become writable and take over as the new main database.
BThey shut down to prevent data loss.
CThey delete their data and resync from a backup.
DThey continue to serve read requests but do not become writable automatically.
Attempts:
2 left
💡 Hint

Consider what read replicas are designed for and how failover is handled.

security
advanced
2:00remaining
Securing data on read replicas

Which practice best protects sensitive data on AWS read replicas?

ADisable encryption on read replicas to improve performance.
BAllow open network access to read replicas for faster connections.
CUse the same encryption settings as the main database and restrict network access.
DStore sensitive data only on read replicas, not on the main database.
Attempts:
2 left
💡 Hint

Think about keeping data safe both at rest and during access.

Best Practice
expert
2:00remaining
Optimizing read replica lag in AWS RDS

You notice your AWS RDS read replicas have high replication lag, causing stale data for users. Which action best reduces this lag?

AIncrease the instance class size of the read replicas to improve processing power.
BAdd more read replicas without changing instance sizes.
CSwitch read replicas to a different AWS region to balance traffic.
DDisable automated backups on the main database to reduce load.
Attempts:
2 left
💡 Hint

Think about what affects how fast replicas can apply changes.