DynamoDB Flashcards

(37 cards)

1
Q

What is the primary key in DynamoDB?

A

Represents the table’s key or keys; if no sort key, the primary and partition keys are the same; if there is a sort key, it is a composite primary key of partition and sort keys.

A composite primary key allows for more complex data organization and access patterns.

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

What is the purpose of the partition key in DynamoDB?

A

To find each item in the database and determine its physical storage location.

Data is distributed across physical storage nodes based on the partition key.

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

What is a sort key in DynamoDB?

A

An optional key that allows related attributes to be stored in a sorted order, enabling multiple items to be queried as a collection.

This simplifies access patterns for related data.

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

What are the two types of secondary indexes in DynamoDB?

A
  • Local secondary index
  • Global secondary index

These indexes improve data access efficiency.

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

How many local secondary indexes are allowed per table in DynamoDB?

A

Five.

Local secondary indexes must be created when the table is created.

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

What distinguishes a global secondary index from a local secondary index?

A

A global secondary index can use a partition key and sort key different from those on the table.

This allows modeling complex data access patterns.

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

How many global secondary indexes are allowed per table in DynamoDB?

A

Up to 20.

Global indexes can be created and edited at any time.

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

What service does DynamoDB use for managing credentials and access?

A

AWS Identity and Access Management (IAM).

IAM allows control of access at the table and item levels.

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

What type of encryption does DynamoDB provide for data?

A

End-to-end enterprise-grade encryption for data in transit and at rest.

All tables have encryption at rest enabled by default.

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

What is the purpose of AWS Key Management System (AWS KMS) in DynamoDB?

A

Stores encryption keys used to encrypt data for enhanced security.

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

How does a mobile application use DynamoDB in its backend process?

A

Posts new status updates which can trigger an AWS Lambda function to process data and push notifications.

This illustrates a typical use case for transactional workloads.

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

What example is given for using IoT sensors with DynamoDB?

A

Tracking forklifts in a warehouse, where sensor data is sent to Amazon SQS and processed by Lambda before storage in DynamoDB.

This data can then be analyzed using Amazon EMR and queried with Amazon Athena.

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

How does Lyft utilize DynamoDB?

A

To support over 100 microservices, including a ride-tracking system that stores GPS coordinates for all rides.

This demonstrates the scalability of DynamoDB.

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

What was Expedia’s use case for DynamoDB?

A

To analyze behavior of over 600 million visitors and 75 million flight bookings monthly, using it for fast, on-demand access to reference data sets for analytics.

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

Mobile application backend architecture

Social mobile applications are more popular than ever. This architecture provides one solution for allowing a mobile application to automatically notify a user’s friends when the user’s status changes

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

IoT sensor data capture architecture

Capturing data from thousands of Internet of Things (IoT) sensors can be a challenge. This architecture represents one solution to this challenge

17
Q

What is Amazon DynamoDB?

A

DynamoDB is a NoSQL (or non-relational) database.

18
Q

Why were relational databases designed?

A

Relational databases were conceived to provide answers about data when storage infrastructure was extremely expensive.

19
Q

How do relational databases answer data questions?

A

They use computing power to gather pieces of information and build necessary relationships for the answer.

20
Q

What is SQL?

A

SQL (Structured Query Language) allows people to construct very complex questions in an orderly manner.

21
Q

How has storage technology changed over time?

A

Data volumes have exploded and storage technologies have evolved, making storage much cheaper compared to CPU.

22
Q

What is the advantage of non-relational databases?

A

Non-relational databases build out answers across the entire data set for timely retrieval, demanding storage space but not heavily relying on CPU.

23
Q

How do applications retrieve results from DynamoDB?

A

Applications generally retrieve results directly via a simple API, rather than using SQL.

24
Q

What is the management model of DynamoDB?

A

DynamoDB is a fully managed service with built-in availability, durability, and scalability.

25
How is DynamoDB managed?
DynamoDB is managed via the AWS Management Console, command line tools, or application code via the SDK.
26
What types of workloads is DynamoDB designed for?
DynamoDB is designed for online transactional processing (OLTP) workloads.
27
What kind of data is ideal for DynamoDB?
DynamoDB is ideal for live operations, interactive applications, and 'hot' or active data.
28
What is the latency performance of DynamoDB?
DynamoDB delivers very consistent low latency.
29
What should you use for complex analytical questions?
For complex analytical questions, pair DynamoDB with another service suited for OLAP loads.
30
What is Amazon RDS?
Amazon RDS enables the use of relational database engines in the AWS Cloud, queried using SQL.
31
What is the relationship between DynamoDB and Amazon RDS?
DynamoDB is the serverless NoSQL equivalent for OLTP-type loads, while RDS can support limited OLAP functionality.
32
What is Amazon Redshift used for?
Amazon Redshift is used for complex analytical needs, allowing SQL queries on data.
33
What is Amazon Neptune?
Amazon Neptune is a NoSQL service for graph use cases that require efficient traversal of multi-layer relationships.
34
What is Amazon ElastiCache?
Amazon ElastiCache is an in-memory NoSQL data store.
35
What is the function of Amazon S3?
Amazon S3 can be used as a serverless database to store and retrieve associated data.
36
What does Athena do?
Athena allows you to make serverless SQL queries against structured data in your S3 bucket.
37
DynamoDB compared to other databases