A company is designing a new multi-tenant online booking platform that requires a highly available database to handle a read-heavy OLTP workload. The database must automatically fail over to a standby instance in another Availability Zone during an outage to minimize downtime. Additionally, the platform must handle heavy read traffic for reporting dashboards with minimal latency without impacting the performance of the write operations. Which database configuration best meets these requirements?
- ADeploy Amazon RDS for PostgreSQL in a Multi-AZ configuration. Route write operations to the primary endpoint and configure the application to query the passive standby database instance in the secondary Availability Zone to handle reporting reads.
- BDeploy a single-AZ Amazon RDS for PostgreSQL database instance. Implement a cron job to take manual database snapshots every hour and restore them to a secondary instance in a separate Availability Zone to serve read traffic and act as a standby.
- Deploy Amazon RDS for PostgreSQL in a Multi-AZ configuration, and create one or more RDS Read Replicas in different Availability Zones. Route write operations to the primary endpoint and read-heavy reporting queries to the Read Replica endpoints.Cevap
- DDeploy Amazon RDS for PostgreSQL in a Multi-AZ configuration encrypted with the default AWS-managed KMS key (aws/rds). Grant the reporting team's AWS account access to query the standby instance directly by updating the KMS key policy.
Cevap
Deploy Amazon RDS for PostgreSQL in a Multi-AZ configuration for high availability and automatic failover, and deploy one or more RDS Read Replicas to serve the read-heavy reporting queries.
Deploying Amazon RDS for PostgreSQL in a Multi-AZ configuration ensures high availability and automatic failover by maintaining a synchronous standby instance in a different Availability Zone. Creating RDS Read Replicas allows read-heavy queries to be offloaded to read-only endpoints, improving overall performance and keeping the primary instance dedicated to write operations.
Adım Adım Çözüm
Anahtar Kavram
RDS Multi-AZ vs Read Replicas and cross-account access limitations