Databases Flashcards

1
Q

List the types of AWS databases

A

RDS & Aurora: Relational
DynamoDB: NoSQL
ElastiCache: In-memory; Redis & Memcached
Neptune: Graph
DocumentDB: for Documents; supports MongoDB

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

What can Aurora be used for?

A

MySQL
PostgreSQL

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

What is ElastiCache?

A

A fully managed (Saas) in-memory datastore
Supports 2 engines: Redis and Memcached
Data can be lost
Low latency
Enables scaling and replicas to meet demand

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

What is Neptune and what is it good for?

A

A fully managed graph database.
Good for highly connected datasets like social media networks.

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

What would you use to migrate an on-premises Oracle database to the cloud?

A

RDS

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

What would you use to migrate an on-premises Postgres database to the cloud?

A

RDS or Aurora

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

How would you alleviate database load for data that is accessed often?

A

ElastiCache

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

How would you process large sets of user profiles and social interactions?

A

Neptune

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

Name a NOSQL database fast enough to handle millions of db requests per second.

A

DynamoDB

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

How can you operate MongoDB workloads at scale?

A

DocumentDB (it mimics MongoDB)

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

How would you do database as IaaS?

A

Spin up your own EC2 instance and deploy a database onto it

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

Which database would be PaaS?

A

RDS

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

Which databases would offer a SaaS approach?

A

DynamoDB
Elasticache
Redshift

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

RDS

A
  • a PaaS relational database system
  • can deploy across multiple AZ’s
  • It launches into a VPC
  • uses 2 volume types: SSD, IOPS SSD
  • Platforms: MySQL, PostGres, Oracle, MariaDB, SQLServer, Amazon Aurora
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Amazon DMS?

A

Database Migration Service
Moves data into AWS
Only pay for the compute time of the migration

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

What are the features of DynamoDB?

A

Fully managed SaaS database service
NoSQL, not relational
Both key-value and document
auto-scaling
More than 10 trillion requests per day; 20 million per second

17
Q

What are the DynamoDB use cases?

A

Scale without excessive maintenance
If you want serverless applications
Low latency is key
Data Models without BLOB storage (that won’t work well)

18
Q

What are use cases for ElastiCache?

A

You have a database like DynamoDB and want to add a cache layer
Session storage for Web apps (Redis)

19
Q

What is Redshift?

A

Amazon’s data warehouse service
It does analytics
Petabyte scale
Can fully encrypt
Provides isolation with a VPC

20
Q

What is Redshift Spectrum?

A
  • Can query exabytes of data within S3
  • Fast, complex analysis on objects stored on the AWS cloud.
  • Can perform SQL queries on data stored in S3 buckets.
21
Q

What is MemoryDB?

A

A Redis-compatible in-memory database
Good to use as a primary database

22
Q

What is Timestream?

A

A serverless time series database service
Example: Sensor data: capturing data at specific times. Like you have a temperature gauge and want to find out the avg temp for last Wednesday

23
Q

What would you suggest for a company that has a MySQL db, wants to launch a new Web App with it, but needs direct access to the virtual server that MySQL is running on?

A

EC2 - have an EC2 instance and add a MySQL database to it

24
Q

What database would you use for a gaming system that requires low latency and up to 1 million players?

A

DynamoDB