Chapter 4 Hello, Databases Flashcards
ACID concepts in transactions
Atomic, consistent, Isolated, durable 1. Atomic: all or nothing 2. Consistent: adheres to defined rules and restrictions 3. Isolation: each transaction is independent 4. Durability: all changes in DB are permanent in transaction
RDS Maintenance Window
Time window at which AWS will apply updates, patches
RDS Storage types:
- General Purpose SSD (cost effective, wide applicability, burstable performance)
- Proviosioned IOPS (consistent and intensive I/O)
- Magnetic Storage: backward compatibility focused
Pros and cons of read replication
Pro: improves read performance Con: read are not strongly consistent
Describe point in time RDS recovery
RDS automatically takes a daily backup of the DB. Then it records transaction logs as changes are made to the DB. RDS will recover the DB by applying the recorded logs against the daily snapshot.
One way to improve latency when taking a snapshot
Enable multi-AZ. The snapshot will be made off a standby node instead of the primary
What does RDS use for encryption at rest?
AWS KMS (AES 256), encryption must be configured when an RDS instance is created.
What does RDS use for encryption in transit?
SSL certificates
What can you use to authenticate to a DB without using user credentials? What DBs support this feature?
IAM DB Authentication, supported in MySQL and Postgres
What is a cluster volume?
Within Aurora, a virtual database storage volume that spans multiple Availability Zones, and each Availability Zone has a copy of the DB cluster data
What is Aurora Serverless?
on demand, auto scaling configuration for Aurora
What keys are found within a DynamoDB item?
- Partition Key 2. Sort Key
How do partition and sort keys work?
When items have the same partition key, they are collocated in the same partition. The sort key acts to sort these collocated items within the partition. Together, they are known as a composite key. Example partition key: Artist Example sort key: SongTitle
What primary keys does DynamoDB support?
- Primary Key 2. Primary Key and Sort Key (composite key)
Does DynamoDB support secondary keys? What is the benefit?
Yes, the benefit is that it creates efficient access with attributes other than the primary key.
Local vs Global secondary index in DynamoDB
Local: same partition key, different sort key. You can only make one at the time you create the table. Cannot add, remove, modify later. Global: Distinct partition and sort key. You can add, remove, modify later.