သဘောတရား · CLF-C02 အပေါ် ဆက်လေ့လာရန်
Database high availability
Multi-AZ instance, Multi-AZ cluster, Aurora, global databases and cross-Region replicas: what each gives you.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
Cloud Practitioner မှ သင်သိပြီးသားများ
- RDS is a managed relational database. Multi-AZ keeps a standby in another AZ and fails over automatically.
- Read replicas add read capacity. They are for scaling, not for high availability.
- Automated backups allow point-in-time restore.
RDS Multi-AZ instance
- Standbys
- 1, in another AZ
- Readable?
- No
- Covers
- AZ failure
RDS Multi-AZ cluster
- Standbys
- 2, in other AZs
- Readable?
- Yes
- Covers
- AZ failure
Aurora cluster
- Standbys
- Up to 15 replicas
- Readable?
- Yes
- Covers
- AZ failure
Aurora Global Database
- Standbys
- Replicas in other Regions
- Readable?
- Yes
- Covers
- Region failure
RDS cross-Region replica
- Standbys
- A replica in another Region
- Readable?
- Yes
- Covers
- Region failure, some data loss
| Option | Standbys | Readable? | Covers |
|---|---|---|---|
| RDS Multi-AZ instance | 1, in another AZ | No | AZ failure |
| RDS Multi-AZ cluster | 2, in other AZs | Yes | AZ failure |
| Aurora cluster | Up to 15 replicas | Yes | AZ failure |
| Aurora Global Database | Replicas in other Regions | Yes | Region failure |
| RDS cross-Region replica | A replica in another Region | Yes | Region failure, some data loss |
1 / 2
RDS Multi-AZ instance
- Standbys
- 1, in another AZ
- Readable?
- No
- Covers
- AZ failure
RDS Multi-AZ cluster
- Standbys
- 2, in other AZs
- Readable?
- Yes
- Covers
- AZ failure
Aurora cluster
- Standbys
- Up to 15 replicas
- Readable?
- Yes
- Covers
- AZ failure
| Option | Standbys | Readable? | Covers |
|---|---|---|---|
| RDS Multi-AZ instance | 1, in another AZ | No | AZ failure |
| RDS Multi-AZ cluster | 2, in other AZs | Yes | AZ failure |
| Aurora cluster | Up to 15 replicas | Yes | AZ failure |
2 / 2
Aurora Global Database
- Standbys
- Replicas in other Regions
- Readable?
- Yes
- Covers
- Region failure
RDS cross-Region replica
- Standbys
- A replica in another Region
- Readable?
- Yes
- Covers
- Region failure, some data loss
| Option | Standbys | Readable? | Covers |
|---|---|---|---|
| Aurora Global Database | Replicas in other Regions | Yes | Region failure |
| RDS cross-Region replica | A replica in another Region | Yes | Region failure, some data loss |
ဘာလဲ
An RDS Multi-AZ DB instance has one primary and one standby in another AZ, kept in sync with synchronous replication. The standby cannot serve reads. On failure, RDS switches the DB endpoint DNS name to the standby, so the application reconnects to the same name. An RDS Multi-AZ DB cluster has one writer and two readable standbys in three AZs, with semisynchronous replication. The readers serve queries and are the failover targets.
ဘာလဲ
Aurora stores data in a cluster volume that spans three AZs, independent of how many instances you run. Up to 15 Aurora replicas read from the same storage, serve reads and act as failover targets. You give each a failover priority. When the writer fails, Aurora promotes a replica, and no data has to be copied because the storage is shared.
ဘာလဲ
For Region failure, Aurora Global Database replicates storage to secondary Regions, usually under one second behind, and you can promote a secondary after an outage. DynamoDB global tables accept writes in every Region. An RDS cross-Region read replica can be promoted to a stand-alone database, but its replication is asynchronous, so recent writes may be lost. Multi-AZ protects against an AZ failure, not a Region failure.
မှတ်ထားရန်
- Multi-AZ instance: synchronous standby, not readable, DNS switch on failover.
- Multi-AZ cluster: two readable standbys in three AZs.
- Aurora: shared storage across 3 AZs. Replicas serve reads and are failover targets.
- Aurora Global Database: secondary Regions, usually under one second behind.
မှတ်ထားရန်
- DynamoDB global tables: multi-Region, multi-writer.
- Read replicas are asynchronous. Promoting one can lose recent writes.
စာမေးပွဲမှာ
- “A standby in another AZ with automatic failover, not used for reads” points to RDS Multi-AZ DB instance.
- “High availability and more read capacity, still on RDS” points to a Multi-AZ DB cluster or Aurora replicas.
- “Recover from a Region outage with an RPO of about a second” points to Aurora Global Database.
ဒါတွေနဲ့ မရောပါနဲ့
- Read replicasCopies of a database that serve reads. They add read capacity, not high availability.
Amazon AuroraA cloud-built MySQL- and PostgreSQL-compatible database with shared storage, fast failover and up to 15 replicas.
Amazon DynamoDBServerless key-value and document database. Design the key well and choose the capacity mode.
ဒီ task များတွင်လည်း ပါသည်
ဒီ task ထဲမှာ · 2.2
- Regions and AZs as the HA building block
- Multi-Region designs
Route 53
- Disaster recovery strategies
Elastic Disaster Recovery
- Failover and distributed design patterns
- AWS Well-Architected Framework
- Immutable infrastructure and deployments
CloudFormation
- Database high availability
- Storage durability and replication
CloudWatch
Health Dashboard
X-Ray
- Service Quotas
- Making legacy apps reliable without code changes
- Migrating workloads to AWS
- Choosing purpose-built services
- Managed AI services recap
Backup
Load Balancing
RDS Proxy
- Throttling strategies