← Back to Index
Chapter 05 of 20

Amazon RDS & Aurora

Domain 3 — High-Performing Architectures (24%)
🗃️
Question 1Scenario

A company runs an RDS MySQL database. They need automatic failover with minimal downtime if the primary database AZ fails. Which RDS feature should be enabled?

Explanation

RDS Multi-AZ maintains a synchronous standby replica in a different AZ. If the primary fails, RDS automatically promotes the standby (typically 60–120 seconds). Read Replicas use asynchronous replication and do NOT provide automatic failover — they are for read scaling only. Automated backups support PITR but cannot provide automatic failover.

Question 2Scenario

A company's RDS PostgreSQL instance is overwhelmed by read queries from a reporting application. The primary instance must not be impacted. What is the BEST solution?

Explanation

RDS Read Replicas use asynchronous replication to maintain one or more read-only copies of the primary. You can direct read-heavy applications (reporting, analytics) to these replicas, reducing load on the primary. The Multi-AZ standby is NOT used for read traffic — it is only for failover purposes.

Question 3Knowledge

What is the maximum retention period for RDS automated backups?

Explanation

RDS automated backups can be retained for 0 to 35 days. The default is 7 days. Setting retention to 0 disables automated backups. For longer retention, you must use manual DB snapshots, which are kept until you explicitly delete them. Aurora supports backup retention of up to 35 days as well.

Question 4Scenario

A company uses AWS Lambda functions that create many short-lived database connections to RDS, causing connection exhaustion. What is the BEST solution?

Explanation

RDS Proxy maintains a pool of established database connections and multiplexes many application connections onto fewer database connections. This is specifically designed for serverless architectures (Lambda) and microservices that open/close connections rapidly. It improves database efficiency and application resilience during failover.

Question 5Scenario

A company runs a global application and needs sub-second Aurora MySQL replication across multiple AWS regions for low-latency local reads and cross-region DR. Which Aurora feature provides this?

Explanation

Aurora Global Database uses dedicated replication infrastructure to achieve typical replication lag of less than 1 second across regions. The primary region handles reads and writes; secondary regions handle reads and can be promoted to a primary within 1 minute for DR. It supports up to 5 secondary regions.