07 Databases Flashcards
Describe the purpose of Relational Database Service (RDS).
Relational Database Service (RDS) provisions and manages database servers, allowing each server to run one or many databases.
List the supported database engines for RDS.
The supported engines for RDS include MySQL, MariaDB, PostgreSQL, Oracle, and Microsoft SQL Server.
How is database storage managed in RDS?
Database storage in RDS is managed using EBS, with each instance having its own dedicated volume.
Explain the concept of Multi-AZ in RDS.
Multi-AZ in RDS provides high availability by using a primary instance in one Availability Zone (AZ) that synchronously replicates to a stand-by instance in another AZ.
What happens during a failover in a Multi-AZ instance?
During a failover in a Multi-AZ instance, access to the database is redirected to the current primary instance, but there will be downtime while DNS records update and reach TTL.
Define the structure of a Multi-AZ Cluster in RDS.
A Multi-AZ Cluster in RDS consists of one writer instance that synchronously replicates to two reader instances in other AZs, allowing the reader instances to be used for read operations.
How are writes considered replicated in a Multi-AZ Cluster?
Writes in a Multi-AZ Cluster are considered replicated when they have been replicated to at least one reader instance.
What are the three types of endpoints used in a Multi-AZ Cluster?
The three types of endpoints are: the cluster endpoint (points to the writer), the reader endpoint (points to any available reader), and individual instance endpoints (not recommended for direct use).
Describe the backup process in RDS.
Backups in RDS capture the state of the database server and are stored in S3, with automated backups made on a schedule and snapshots created ad-hoc.
What is the difference between automated backups and snapshots in RDS?
Automated backups are scheduled and retained for up to 35 days, while snapshots are ad-hoc and retained until deleted.
How does Multi-AZ impact the backup process?
If Multi-AZ is enabled, backups are made from the stand-by instance to reduce performance impact on the primary instance.
Explain the frequency of transaction log captures in RDS.
Transaction logs in RDS are captured every 5 minutes to allow restoration to a precise time frame.
What is cross-region replication in RDS?
Cross-region replication in RDS can be enabled for backups and snapshots, allowing data to be replicated across different geographic regions.
How are restores performed in RDS?
Restores in RDS are performed by creating a new RDS instance based on the backup or snapshot.
Describe the purpose of promoting a read replica in RDS.
Promoting a read replica allows for a near-zero Recovery Time Objective (RTO), making it particularly helpful for cross-region disaster recovery.
How does RDS Proxy improve database performance?
RDS Proxy establishes long-term connections with clients and maintains a pool of connections to the database, which improves performance and helps avoid exhausting connections.
Define the role of IAM authentication in RDS.
IAM authentication is performed by calling GenerateDbAuthToken
and mapping the IAM identity to a local RDS user for authorization.
Explain the significance of shared storage in Aurora.
Aurora uses shared storage instead of an EBS volume for each server, allowing data to be stored across three Availability Zones (AZs) for redundancy and enabling rapid provisioning of replicas.
What is the function of the cluster endpoint in an Aurora database?
The cluster endpoint is used for write and management operations within an Aurora database cluster.
How does Backtrack feature work in Aurora?
Backtrack allows in-place rewinds of the database without the need to restore to a brand new database.
Describe the cloning process in Aurora.
The Clone feature creates a new database that references another database and only stores changes, utilizing a copy-on-write mechanism.
What is the maximum number of read replicas that a write instance can have in RDS?
Each write instance can have a maximum of 5 read replicas.
How does RDS Custom differ from standard RDS?
RDS Custom allows for customization of the underlying operating system and database engine, enabling administrators to manually apply patches using SSH, SSM, or RDP.
Explain the concept of multi-master writes in Aurora.
Multi-master writes in Aurora allow multiple instances to write data simultaneously, requiring a quorum of replicas to agree upon receiving a write request.
What is the purpose of EBS volume encryption in RDS?
EBS volumes used by RDS can be encrypted using KMS to enhance data security, with some database engines natively supporting encryption.
Describe the replication method used by Read Replicas in RDS.
Read Replicas use asynchronous replication and can be created in other regions to enhance data availability.