Databases Flashcards

1
Q

Which databases support Read Replicas?

A

MySQL
MariaDB
PostgreSQL
Aurora

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

Which external databases are supported with RDS?

A

SQL Server
MySQL
Oracle
PostgreSQL

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

Can Read Replicas have Multi-AZ enabled?

A

No, but a source database with Multi-AZ enabled can have Read Replicas

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

If a database is restored from either an automated backup or a snapshot, what happens to its end point?

A

The restored database will be a new RDB instance with a new end point

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

What makes Redshift’s advanced compression so efficient?

A

Because Redshift data is stored in columns, it can be compressed more than traditional databases

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

What are database snapshots?

A

User-initiated backupd of a database which are stored in S3 and retained even if the database is deleted

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

What is DynamoDB Reserved Capacity?

A

Similar to Resered Instances in EC2, it offers discounted throughput capacity for DynamoDB data, when entering into a 1 or 3 year contract.

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

Explain Redshift Massive Parallel Processing

A

Redshift automatically distributes data and query load across all compute nodes. It is easy to add nodes to the warehouse, maintaining fast query performance

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

True or false: You can create a Read Replica from another Read Replica

A

True

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

What is Elasticache?

A

AWS’s in-memory caching service that provides low-latency cahed data for applications that need it, such as recommendation engines, gaming, or social media

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

If a database is under a lot of load, what database service would be a good choice to relieve this?

A

Elasticache

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

What is DMS?

A

Database Migration Service allows you to migrate production database to AWS. AWS manages type transformation, compression and parallel transfer

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

If managment is running a lot of OLAP queries on a database, what service is a good choice?

A

Redshift. Possibly also Read Replicas in RDS

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

True or False: A Redshift database can span multiple availability zones

A

False. Redshift is intended for back office analytics and high performance, so it is not built to span AZs

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

True or false: If an RDS is deleted, its database snapshots are retained

A

True

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

What is RDS?

A

AWS’s Relational Database Service, which allows you to set up, operate and scale relational databases

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

How is Redshift encrypted?

A

In-transit using SSL

At rest using AES-256

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

What is Multi-AZ?

A

It allows you to have an exact syncronous replica of a database in another availability zone. AWS automatically fails over to the replica database if needed

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

What is the data consistency model for DynamoDB?

A

Users can specify whether they want strongly consistent or eventually consistent.

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

What is Aurora?

A

A MySQL-compatible relational database engine, much faster than regular MySQL, much chepaer than commercial databases

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

Can existing unencrypted RDS databases become encrypted?

A

Not directly. To encrypt an existing RDS database, first create a snapshot, copy the snapshot and enable enxryption, then restore the encrypted database

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

True or false: Automated backup must be enabled on a database before Read Replcias can be created

23
Q

True or false: Multi-AZ is useful to improve performance of a database

A

False. Multi-AZ is for disaster recovery only, and does not improve performance

24
Q

True or false: If an RDS instance is deleted, the automated backups are retained

25
Explain the difference between use of Redshift vs EMR?
Redshift is intended primarily for business intelligence, while EMR is for Big Data processing.
26
Why would you want to configure DynamoDB with eventual consistency?
Eventual consistency maximized read throughput
27
How does Aurora achieve fault tolerance?
Automatic replication across three availability zones and automatic failover
28
what are the relative costs of reads and writes with DynamoDB?
Writes are much more expensive than reads in DynamoDB, which is why it is best used for read-heavy databases
29
What is the difference between DynamoDB and RDS in terms of scaling?
DynamoDB offers automatic scaling with no down time, while RDS requires use of Read Replicas or manual changes in instance size
30
What is EMR?
Elastic Map Reduce - It is a service for Big Data processing
31
True or false: Database snapshots are performed automatically
False. They are user initiated
32
What is a Read Replica?
An asyncronous, read-only copy of a database
33
What in-memory caching engines are supported by Elisticache?
Memcached | Redis
34
Explain the multi-node architecture in Redshift
There is a Leader Node, which manages client connections, received queries, and distributes them to Compute Nodes. Compute Nodes store data and perform queries and computations. This collection of nodes is often called a cluster
35
How many Read Replicas can you have for a single database?
5
36
Describe DynamoDB
A fast and flexible NoSQL database service for applications that need low latency at any scale.
37
What might be a cause why you are unable to connect to your RDS instance?
You must ensure that the security group allows traffic on port 3306. This can be from an IP, anywhere, or even from another security group
38
Aurora is compatible with what popular database type?
MySQL
39
How many Compute Nodes can a Redshift resource have?
128
40
What are the use cases for Elasticache?
It is intended for read-heavy workloads such as gaming, social media, or compute-heavy workloads such as recommendation engines
41
What are Automated Backups?
they allow you to recover your database to any point in time within the "retention period"
42
What is Redshift?
Redshift is a petabyte-scale data warehousing service in the cloud, centered around business intelligence
43
What is the default retention period for automated backups?
7 days
44
Can a Read Replica be promoted to be its own source database?
Yes. The replication with the original source will then be broken, however.
45
What is columnar data storage?
Data is stored sequentially in columns rather than as a series of rows. This greatly reduces amount of I/O for analytical processing. This is also referred to as Dense Storage
46
How does DynanoDB ensure high availability and durability?
DynamoDB stores three geographically distinct replicas of each table
47
What are Read Replicas primarily used for?
They can be used to distribute read performance for read-heavy databases
48
What is an Eventually Consistent Read as applied to DynamoDB?
All copies of data are usually consistent within one second
49
What are the two different types of database backups in AWS?
Automated backups | Database snapshots
50
What block size does Redshift use for its columnar storage?
1024Kb - 1Mb
51
What are the two node types in Redshift?
Dense Storage - uses std HDDs at lower cost | Dense Computer - Uses SSDs for fast processing
52
What are minimum and maximum storage limits for Aurora?
10Gb minimum, 64Tb maximum, scaled automatically in increments of 10Gb.
53
How many Read Replicas can Aurora support?
Up to 15
54
Can you change the RDS DB Instance class after it is created?
Yes