DynamoDB Flashcards
What is Amazon DynamoDB?
Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability.
DynamoDB also offers encryption at rest, why is this a benefit to AWS Customers?
Encryption at rest eliminates the operational burden and complexity of protecting sensitive data.
DynamoDB provides on-demand backup capability.
Which creates full backups of your tables for which two purposes?
DynamoDB allows you to create full backups of your tables for long-term retention and archival for regulatory compliance needs
How does DynamoDB provide built-in high availability and data durability?
All of your data is stored on solid-state disks (SSDs) and is automatically replicated across multiple Availability Zones in an AWS Region,
Describe global tables purpose in relation to DynamoDB?
You can use global tables to keep DynamoDB tables in sync across AWS Regions.
What are the three Core components of Amazon DynamoDB?
In DynamoDB, tables, items, and attributes are the core components that you work with.
How do tables, items, and attributes work together?
A table is a collection of items, and each item is a collection of attributes.
Describe how DynamoDB uses primary keys.
What features does the addition of secondary indexes provide you in DynamoDB
DynamoDB uses primary keys to uniquely identify each item in a table.
DynamoDB uses secondary indexes to provide more querying flexibility.
DynamoDB: What is a table?
A table is a collection of data.
For example, a table called People that you could use to store personal contact information about friends, family, or anyone else of interest.
DynamoDB: What is an item?
An item is a group of attributes that is uniquely identifiable among all of the other items.
In a People table, each item represents a person.
Items in DynamoDB are similar to ____ in other database systems.
Items in DynamoDB are similar to rows in other database systems.
DynamoDB: What are attributes?
Each item within a table is composed of one or more attributes.
For example, an item in a People table contains attributes like PersonID, LastName, FirstName, and so on.
Attributes in DynamoDB are similar in many ways to ______ or _________ in other database systems.
Attributes in DynamoDB are similar in many ways to fields or columns in other database systems.
What does it mean when someone says your table is schemaless?
Schemaless means that neither the attributes nor their data types must be defined beforehand. Each item can have its own distinct attributes.
What is an example of a nested attribute?
Some of the items have a nested attribute (Address). DynamoDB supports nested attributes up to 32 levels deep.
Take a look at the address in this example.
When you create a table, in addition to the table name, you must specify the
primary key of the table
What is the function of the primary key?
The primary key uniquely identifies each item in the table so that no two items can have the same key.
DynamoDB supports two different kinds of primary keys:
Simple Primary Key aka Partition Primary Key
and a Composite Primary Key
What are the components of a Simple Primary key?
A Simple primary key is made up of one attribute known as the partition key.
What happens if you try to add two items with the same partition key value in a table with a Simple Primary key setup?
No two items can have the same partition key value in a table with only a partition key. You will get an error.