ladderlore
  • S3 や IAM などのサービス名を入力してください。

サービス · データベース

Amazon Relational Database Service (Amazon RDS)

A managed relational database. You pick the engine, and AWS handles setup, patching, backups and failover.

このレッスンはまだ翻訳されていないため、英語で表示しています。

AZ 1AZ 2
ユーザー
EC2
RDS
Standby copy
  1. 1Users reach your application, which runs on Amazon Elastic Compute Cloud (Amazon EC2).
  2. 2The application reads and writes data in the primary RDS database.
  3. 3RDS copies every change to the standby in a second Availability Zone as it happens.
  4. 4If the primary fails, RDS switches to the standby automatically. The database address stays the same, so the application reconnects to it.
A Multi-AZ deployment: a standby in a second Availability Zone takes over if the primary fails.

流れ

  1. 1Users reach your application, which runs on Amazon Elastic Compute Cloud (Amazon EC2).
  2. 2The application reads and writes data in the primary RDS database.
  3. 3RDS copies every change to the standby in a second Availability Zone as it happens.
  4. 4If the primary fails, RDS switches to the standby automatically. The database address stays the same, so the application reconnects to it.
  • Main goal

    Multi-AZ deployment
    High availability: keep running if an Availability Zone fails
    Read replicas
    Performance: more capacity for reads
  • How data is copied

    Multi-AZ deployment
    Synchronously, to a standby in another Availability Zone
    Read replicas
    Asynchronously, in the same Region or another Region
  • Serves reads

    Multi-AZ deployment
    Not with a single standby. It waits to take over.
    Read replicas
    Yes, read-only queries
  • If the primary fails

    Multi-AZ deployment
    Automatic failover to the standby
    Read replicas
    You can promote a replica to a standalone database
Multi-AZ and read replicas solve different problems.

1 / 2

  • Main goal

    Multi-AZ deployment
    High availability: keep running if an Availability Zone fails
    Read replicas
    Performance: more capacity for reads
  • How data is copied

    Multi-AZ deployment
    Synchronously, to a standby in another Availability Zone
    Read replicas
    Asynchronously, in the same Region or another Region

2 / 2

  • Serves reads

    Multi-AZ deployment
    Not with a single standby. It waits to take over.
    Read replicas
    Yes, read-only queries
  • If the primary fails

    Multi-AZ deployment
    Automatic failover to the standby
    Read replicas
    You can promote a replica to a standalone database
Multi-AZ and read replicas solve different problems.

概要

Amazon Relational Database Service (Amazon RDS) is a managed service for relational databases. You choose an engine you already know: MySQL, PostgreSQL, MariaDB, Oracle, Microsoft SQL Server or IBM Db2. Amazon Aurora is also part of the RDS family. AWS manages the hardware and handles backups, software patching, failure detection and recovery.

You choose the size of the database instance and can change it later. For high availability, a Multi-AZ deployment keeps a standby copy in another Availability Zone and fails over to it automatically. For heavy read traffic, read replicas take read-only queries away from the primary database.

覚えること

  • Relational: tables, SQL and joins, with engines you already know.
  • Automated backups let you restore to any point in time within the retention period.
  • Multi-AZ = high availability. Read replicas = more read capacity.
  • It runs in your VPC, and security groups control who can connect.
  • You still own your data, database users and query tuning.

試験では

  • “A managed relational database that handles backups, patching and failover” points to Amazon RDS.
  • “Keep the database available if an Availability Zone fails” is Multi-AZ. “Scale a read-heavy workload” is read replicas.
  • Aurora works with MySQL and PostgreSQL. If a question names Oracle, SQL Server or Db2, the managed answer is RDS.