Database Flashcards
What is Aurora?
Amazon Aurora is a relational database management system (RDBMS) built for the cloud with full MySQL and PostgreSQL compatibility. Amazon Aurora provides built-in security, continuous backups, serverless compute, up to 15 read replicas, automated multi-Region replication, and integrations with other AWS services.
True/False. Amazon Aurora utilizes clusters where the architecture consists of a single primary instance along with 0 or more replicas.
True.
How are Aurora replicas helpful?
Aurora replicas can help with both availability and read operations at the same time.
What storage does Aurora use?
Aurora doesn’t use local storage, it uses cluster volumes for storage. This results in faster provisioning, as well as improved availability and performance.
Benefits of Aurora over RDS?
Aurora replicas can help with both availability and read operations at the same time. The storage system used in Aurora is more resilient than the one found in typical RDS instances.
True/False. Aurora does not have a free-tier option.
False. There is no free-tier option. Aurora tends to be a better value than RDS, though there are some exceptions.
How is Aurora billed?
It is billed based on what’s used. Compute resources are charged hourly based on how many seconds of computing power were used, and the minimum charge is 10 minutes. Storage costs are determined by how many GB were consumed that month as well as an I/O cost per request.
How do backups work in Aurora?
Backups in Aurora work in mostly the same way as RDS. Restores are used to create a new cluster.
What is the feature called ‘Backtrack’ used for in Aurora?
If enabled, a feature called ‘Backtrack’ can be used which allows in-place rewinds to a previous point in time. This means that if our data gets corrupted we can fix this issue without having to restore to a new cluster and reconfigure our DB endpoints.
What is the feature called ‘Fast Clones’ used for in Aurora?
‘Fast clones’ can be used to make a new database much faster than a traditional DB copy.
The way this feature works is that instead of copying all the data, the fast clone references the original DB and simply writes the differences between itself and the original DB, as well as the the differences between the current state of the original DB vs the state of the original DB at the moment it was cloned.
What is Amazon Aurora Serverless?
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.
How does Aurora Serverless scale?
Aurora Serverless is scalable via Aurora Capacity Units (ACUs). You can set a minimum and maximum number of ACUs for your cluster and Aurora will scale between them based on load.
True/False. An Aurora Serverless cluster can even go to 0 and be paused.
True.
What resilience does Aurora and Aurora Serverless offer?
Aurora Serverless offers the same resilience as Aurora Provisioned (6 copies across AZs).
How does Aurora Serverless billed?
Aurora Serverless operates on consumption billing on a per-second basis.
What scenario is Aurora Serverless good for?
Overall, Aurora Serverless is great for infrequently used applications, new applications (where we may not be able to predict their average and peak workloads), variable workloads, unpredictable workloads, development/test databases, and multi-tenant applications.
What is DynamoDB?
Amazon DynamoDB is a fully managed, serverless, key-value NoSQL database designed to run high-performance applications at any scale. DynamoDB offers built-in security, continuous backups, automated multi-Region replication, in-memory caching, and data import and export tools.
What are On-Demand Backups with DynamoDB?
With On-Demand backups, backups are performed manually and full backup copies of the table are retained until we manually remove them.
What is Point-In-Time-Recovery on a DynamoDB table?
If we enable Point-in-time Recovery (PITR) on a table, a continuous record of changes allows us to create a new DynamoDB table using the data from any point in the 35 day recovery window.
What consistency modes are available in read operations for DynamoDB?
Eventually Consistent or Strongly/Immediately Consistent.
Eventual consistency is easier to implement and scales better, but immediate consistency is required for some applications/operations.
What are Eventually Consistent Reads in DynamoDB?
Eventually consistent is the default read consistent model for all read operations. When issuing eventually consistent reads to a DynamoDB table or an index, the responses may not reflect the results of a recently completed write operation. If you repeat your read request after a short time, the response should return the more recent item.
What are Strongly Consistent Reads in DynamoDB?
Read operations such as GetItem, Query, and Scan provide an optional ConsistentRead parameter. If you set ConsistentRead to true, DynamoDB returns a response with the most up-to-date data, reflecting the updates from all prior write operations that were successful.
What is DynamoDB Accelerator (DAX)?
DynamoDB Accelerator (DAX) is an in-memory cache designed specifically for DynamoDB.
What are DynamoDB Global Tables?
Global tables provide you 99.999% availability, increased application resiliency, and improved business continuity. As global tables replicate your Amazon DynamoDB tables automatically across your choice of AWS Regions, you can achieve fast, local read and write performance.
Global tables provide multi-master cross-region replication.
Global tables resolve conflicts on a ‘Last writer wins’ basis.
Global tables can be useful for improving performance, providing global high availability, and/or for global disaster recovery/business continuity.