Database Flashcards
What are the DB Instance Types?
M (Multipurpose)
R (RAM / Memory)
T (Tiny / Burstable)
What are the Aurora features for automatic reliability?
Storage Auto Repair (detects failing discs)
“Survivable” cache warming (separate process to warm cache)
Crash Recovery (almost instant recovery
What are the three security levels for Aurora?
IAM
Security Groups
Database Authentification
What are the three storage types?
Magnetic, General Purpose & Prov. IOPS
When does RDS automatically fail over?
Loss of AZ
Loss of network connectivity to primary instance
Compute unit failure on primary instance
Storage failure on primary instance
How to enable Multi-AZ on RDS?
It can be created new or as a modification
What to consider for read replicas?
- Automated backup must be enabled
- Cannot be used behind an ELB
- Can be promoted to primary, will break the replication
- Up to 5 RRs (mysql/postgres)
- Up to 15 RRs for Aurora
- Multi Region for mysql, postgres & aurora
- Database snapshots cannot be made from RRs
How is the failover process for RDS structured?
Automatically, needs 60-120s (more for large DBs)
It changes the DNS endpoint
What is RDS Snapshot Copy?
Possibility to copy snapshots to any public Region
How are automatic snapshots generated?
Daily in the backup window. I/O can be reduced in that time.
It cannot overlap with the weekly maintenance window.
How to scale up in a Multi-AZ environment?
First the Standby will be upgraded, then there’s a minimal downtime when the primary is scaled
What is Sharding?
Horizontal partitions
Seperate instances that contain a subset of the whole dataset
What can be be monitored in RDS?
CPU/RAM/Disk space consumptions
Network traffic
Database connections
IOPS metrics
Dynamo DB: What is an item?
Group of attributes that can be uniquely identified from all other items
Dynamo DB: How are RCU calculated?
One read capacity: 1 strongly consistent read or 2 eventually consistent read of 4KB
Dynamo DB: How are WCU calculated?
1KB in size = 1 WCU
Dynamo DB: What is Reserved Capacity?
Reserving RCU/WCU for a fee, which reduces the cost of the IOPS
DynamoDB: How do indicies affect WCU?
Every WCU scales with the amount of indices.
1 primary: 1KB
1 primary + index: 2KB
DynamoDB: What happens when the prov. throughput is exceeded?
It fails with a 400 code.
AWS SDK have an automatic retry.
What is the benefit of a VPC endpoint?
- no need for internet of NAT
- no need for additional firewalls
- no additional costs
Redshift: What is the purpose of the leader node?
It receives the queries, parses them and develops execution plan
What is the maximum number of data copies that Amazon Aurora can lose without affecting writes?
Amazon Aurora at maximum can withstand the loss of two copies of data without affecting writes
What CloudWatch metric is used to determine needs for storage type changes?
ReadIOPS/WriteIOPS is a metric used to determine a need for storage type changes.