Core Concepts Flashcards

1
Q

Core Components

A
  1. Tables, Items, and Attributes.
  2. Primary Key.
  3. Secondary Indexes.
  4. DynamoDB Streams
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Tables

A

A table is a collection of data.

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

Items

A

An item is a group of attributes that is uniquely identifiable among all of the other items.

Items in DynamoDB are similar in many ways to rows, records, or tuples in other database systems.

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

Attributes

A

An attribute is a fundamental data element, something that does not need to be broken down any further.

Attributes in DynamoDB are similar in many ways to fields or columns in other database systems.

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

Primary Key

A

The primary key uniquely identifies each item in the table.

DynamoDB supports two different kinds of primary keys:

  1. Partition key.
  2. Partition key and sort key – Referred to as a composite primary key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Partition key.

A

A simple primary key, composed of one attribute known as the partition key.

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

Partition key and sort key

A

Referred to as a composite primary key, this type of key is composed of two attributes. The first attribute is the partition key, and the second attribute is the sort key.

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

Secondary Indexes

A

A secondary index lets you query the data in the table using an alternate key, in addition to queries against the primary key.

DynamoDB supports two kinds of indexes:

  1. Global secondary index.
  2. Local secondary index.

Each table in DynamoDB has a quota of 20 global secondary indexes (default quota) and 5 local secondary indexes per table.

When you create an index, you specify which attributes will be copied, or projected, from the base table to the index.

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

Global secondary index

A

An index with a partition key and sort key that can be different from those on the table.

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

Local secondary index

A

An index that has the same partition key as the table, but a different sort key.

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

DynamoDB Streams

A

is an optional feature that captures data modification events in DynamoDB tables. The data about these events appear in the stream in near-real time, and in the order that the events occurred.

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