Aurora Flashcards

1
Q

Aurora is compatible with which databases?

A

It’s compatible Postgres and MySQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many read and write replicas are there by default in Aurora?

A

There are total 6 replicas in 3 AZs for Aurora:
1. 4 copies out of 6 are for write
2. 3 copes out of 6 are for read

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is self healing?

A

Aurora has self healing with peer-to-peer replication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In how many volumes the data is stored?

A

Aurora relies on multiple volumes for data storage, with replication, self-healing, and auto-expanding features in the backend. This setup involves three Availability Zones (AZ) and a shared logical volume, ensuring data redundancy by creating six copies in different AZ for each set of data. The data is distributed across different volumes in a striped fashion, enhancing performance and minimizing the risk of data loss. The management of these volumes occurs in the background, providing a robust and reliable storage solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many master nodes are there in Aurora?

A

There is one master in Aurora. If anything to master, the failover will occur in less than 30 seconds.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How many read replicas are there?

A

There are 15 read replicas are there. Any of these replicas can become master if master fails. These replicas support cross region replication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the writer endpoint and reader endpoint in Aurora DB?

A

The writer endpoint is a DNS name that is used for writing the data to the master DB instance. In case of failure, the writer endpoint may point to the read replica and promote it as a master DB instance. The application pointing to the master DB instance would not require any change.

Reader endpoint is also a DNS name used by the applications to read the data from the read replicas. The Aurora database automatically performs the auto-scaling, and new replicas are set up to ensure the desired performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Autoscaling in Aurora?

A
  1. Aurora storage automatically grows from 10GB to 128TB based on data input.
  2. Up to 15 read replicas supported with sub-10 ms replica lag.
    Failover in Aurora is instantaneous.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is it possible to backtrack data in Aurora?

A

Yes the database can be restored at any point of time without using backup put a stop. Aurora uses a different method to do that.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Aurora replicas autoscaling?

A

If there are multiple read requests AWS creates more replicas depending upon the higher CPU usage of the existing read replicas.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are Aurora’s custom endpoints?

A

The custom endpoints provide load balancing and high availability for each group of DB instances within your cluster. If one of the DB instances within a group becomes unavailable, Aurora directs subsequent custom endpoint connections to one of the other DB instances associated with the same endpoint.

The custom endpoints can be created to run analytical queries or any other specific purpose. These read replicas can be larger instances compared to other existing replicas.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Aurora serverless?

A

Amazon Aurora Serverless is an on-demand, autoscaling configuration for Amazon Aurora. It automatically starts up, shuts down, and scales capacity up or down based on your application’s needs. You can run your database on AWS without managing database capacity.

Manually managing database capacity can take up valuable time and can lead to inefficient use of database resources. With Aurora Serverless, you create a database, specify the desired database capacity range, and connect your applications. You pay on a per-second basis for the database capacity that you use when the database is active, and migrate between standard and serverless configurations with a few steps in the Amazon Relational Database Service (Amazon RDS) console.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Aurora multi-master?

A

Most kinds of Aurora clusters are single-master clusters. For example, provisioned, Aurora Serverless, parallel query, and Global Database clusters are all single-master clusters. In a single-master cluster, a single DB instance performs all write operations and any other DB instances are read-only. If the writer DB instance becomes unavailable, a failover mechanism promotes one of the read-only instances to be the new writer.

In a multi-master cluster, all DB instances can perform write operations. The notions of a single read/write primary instance and multiple read-only Aurora Replicas don’t apply. There isn’t any failover when a writer DB instance becomes unavailable, because another writer DB instance is immediately available to take over the work of the failed instance. We refer to this type of availability as continuous availability, to distinguish it from the high availability (with brief downtime during failover) offered by a single-master cluster

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is global Aurora?

A

Amazon Aurora Global Database is designed for globally distributed applications, allowing a single Amazon Aurora database to span multiple AWS Regions. It replicates your data with no impact on database performance, enables fast local reads with low latency in each Region, and provides disaster recovery from Region-wide outages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Aurora Machine Learning?

A

Amazon Aurora machine learning enables you to add ML-based predictions to applications via the familiar SQL programming language, so you don’t need to learn separate tools or have a prior machine learning experience. It provides simple, optimized, and secure integration between Aurora and AWS ML services without having to build custom integrations or move data around.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which database takes less than one second for cross-region replication?

A

Global Aurora database. Cross-region replication within one second is a hint in the exam for the global Aurora database

16
Q

how many backup options are there in RDS?

A

Automated backup and manual backup.

In automated backup full backup is taken every day and transaction logs are backed up every five minutes. It gives the ability to restore the backup any point in time. The automated backup can be retained from 1 to 35 days.

The manual database snapshots are triggered by the users. The backups are retained as long as the user wants them.

A trick that can come up in the exam: if you have a requirement of having an RDS database at a specific time frame, you can reduce the cost by taking its backup and then deleting it. When you again need to have the database, you can restore it and start using it. This way, you can reduce the cost of having an RDS database. but you will still have to pay for the storage

17
Q

How the backup in Aurora is different than the backup in RDS?

A

Automated backup in Aurora cannot be disabled as it can be disabled in RDS by setting the retention period to zero.
Similar to RDS the backup in Aurora is retained from 1-35 days.

18
Q

What is Aurora Database Cloning?

A

By using Aurora cloning, you can create a new cluster that uses the same Aurora cluster volume and has the same data as the original. The process is designed to be fast and cost-effective. The new cluster with its associated data volume is known as a clone. Creating a clone is faster and more space-efficient than physically copying the data using other techniques, such as restoring a snapshot.

It is useful for creating a staging database from production database without it.

19
Q

Can RDS or Aurora databases can be encrypted?

A

Yes, they can be encrypted by using AWS KMS.

20
Q

Can read replicas be encrypted if master is not encrypted?

A

No, if the master is not encrypted, read replicas cannot be encrypted

21
Q

What are the security options for RDS and Aurora?

A
  1. The database can be encrypted (at rest) by using AWS KMS, and it must be defined at the time of launching the database.
  2. RDS and Aurora uses TLS by default for inflight encryption.
  3. IAM roles to connect to the databases without using a username or password
  4. You can control network access to your RDS and Aurora database by using security groups
  5. You cannot assess the instance by SSH unless it’s RDS custom
22
Q

What is Amazon RDS proxy?

A

Amazon RDS Proxy is a fully managed, highly available database proxy for Amazon Relational Database Service (RDS) that makes applications more scalable, more resilient to database failures, and more secure.

Many applications, including those built on modern serverless architectures, can have many open connections to the database server and may open and close database connections at a high rate, exhausting database memory and compute resources (opening and closing connections consume CPU and RAM). Amazon RDS Proxy allows applications to pool and share connections established with the database, improving database efficiency and application scalability. It’s serverless, autoscaling, and highly available (multi-az) With RDS Proxy, failover times for Aurora and RDS databases are reduced by up to 66%, and database credentials, authentication, and access can be managed through integration with AWS Secrets Manager and AWS Identity and Access Management (IAM).
https://aws.amazon.com/rds/proxy/

It supports MySQL, Postgres and MariaDB. No code change is required for most of the applications.

It needs to be accessed by VPC, it’s never publically accessible.

23
Q

What databases are supported by RDS proxy?

A

It supports mySQL, PostgresSQL, MariaDB and Aurora (mySQL, PostgresSQL)