Database Flashcards
RDS SUpports which DBs?
MySQL,
PostgreSQL,
MariaDB,
Oracle,
MS SQL Server,
Amazon Aurora.
RDS not showing updates straight away. Whats cause?
RDS Read Replcias use asycnh replication so will be “eventually consistent”.
Do RDS ReadReplicas require a change to SQL Connection String?
Read Replicas add new endpoints with their own DNS name. We need to change our application to reference them individually to balance the read load.
Multi AZ keeps same connecting string.
Whats an altnerative to enabling sticky sessions to allow users to keep state?
Storing Session Data in ElastiCache is a common pattern to ensuring different EC2 instances can retrieve your user’s state if needed.
How to create a DR RDS for regional outage so that and outage, the DR can quickly be made read/write
Create a READ replica in a different Region and enable multi AZ on read replica.
A read replica can be promoted to become the production DB incase of disaster.
How many read replicas can RDS have?
15
which RDS DB does NOT support IAM Database Authentication
oracle
Can you create encrypted Read Replicas from an unencrypted RDS DB instance.
NO
How many Aurora Read Replicas can you have in a single Aurora DB Cluster?
15
Which databases does Aurora support?
MYSQL and Postgress
What is the maximum number of Read Replicas you can add in an ElastiCache Redis Cluster with Cluster-Mode Disabled?
5
What Elastic Cache Caching Strategies are there?
Lazy Load -> Update Cache only when data is accessed.
WriteThrough -> All new data written to Cache
TTL / Evictions -> For small cache. LRU. Data auto expires after fixed time.
How would you improve performance of dynamoDb?
Amazon DynamoDB Accelerator (DAX) is a fully managed, highly available, in-memory cache for Amazon DynamoDB that delivers up to a 10 times performance improvement—from milliseconds to microseconds—even at millions of requests per second.
DynamoDB eventually consistent v strongly consistent
Eventual consistency is cheaper and faster 1 RCU = 2 reads but data may not be latest
Strongly consistent slower. More £. 1 RCU = 1 read. More accurate.
DynamoDB provisions. Size of 1rcu and 1 wcu ?
With DynamoDB, there are costs to reading and writing data. These costs are packaged into RCU (Read Capacity Units) and WCU (Write Capacity Units).
1 RCU = 4KB read
1 WCU = 1KB write
max row size for dynamo
400kb
What are the two read/write capacity modes for dynamo?
Provisioned (Default). Specify number of read/writes per second in advance.
OnDemand - auto scales. 2.5 times more £. Use for unpredicatable workloads.
How does dynamo let you exceed provisioned throughput temporarily ?
Throughput can be exceeded temporarily using Burst Capacity