A company is designing a new global relational Online Transaction Processing (OLTP) application. The application will be deployed in a primary AWS Region (us-east-1) and a secondary AWS Region (us-west-2). The database must support a local write latency of less than 20 ms in the primary region, and a read latency of less than 5 ms in both regions. The disaster recovery strategy must achieve a Recovery Time Objective (RTO) of less than 1 minute and a Recovery Point Objective (RPO) of less than 2 seconds. Additionally, all database storage must be encrypted at rest using encryption keys that support automatic rotation and can be shared with a central auditing AWS account.
Which database and storage strategy meets these requirements with the lowest operational overhead?
- ADeploy Amazon RDS for PostgreSQL in us-east-1 in a Multi-AZ deployment. Create a cross-region read replica in us-west-2. Configure the standby instance of the us-east-1 Multi-AZ deployment to serve local read traffic to meet the read latency target. Encrypt the database instances using the default AWS managed key (aws/rds), and update its key policy to grant access to the central auditing AWS account.
- BDeploy Amazon Aurora PostgreSQL in us-east-1. Set up an AWS Database Migration Service (DMS) task with Change Data Capture (CDC) to replicate data to a separate Aurora cluster in us-west-2. Encrypt the database clusters in both regions using the default AWS managed key (aws/rds), and update the key policy to grant cross-account decryption permissions to the central auditing account.
- Deploy an Amazon Aurora PostgreSQL Global Database with the primary cluster in us-east-1 and a secondary cluster in us-west-2. Enable Aurora Auto Scaling for readers in both clusters. Encrypt the database clusters using an AWS KMS customer managed key, and configure its key policy to delegate access to the central auditing account.Answer
- DDeploy Amazon RDS for PostgreSQL in us-east-1 in a Multi-AZ deployment. Replicate DB snapshots hourly to us-west-2. In the event of a primary region disaster, use AWS CloudFormation to restore the database in us-west-2 from the latest replicated snapshot. Encrypt the database using an AWS KMS customer managed key, and delegate access to the central auditing account via its key policy.