DynamoDB Flashcards
It is a low-latency NoSQL database.
Amazon DynamoDB
What data models is supported by DynamoDB?
Supports both document and key-value data models.
What document formats is supported by DynamoDB?
Supported document formats are JSON, HTML, XML
What are the DynamoDB 2 types of Primary Keys?
Partition Key and Composite Key (combination of Partition Key + Sort Key)
What are the DynamoDB features?
DynamoDB features consists of Tables, Items, and Attributes
What are the DynamoDB 2 Consistency models?
Strongly Consistent and Eventually Consistent
It allow users to access only the items where the partition key value matches their user ID.
Fine grained access control using IAM Condition parameter: dynamodb:LeadingKeys
How access is controlled in a DynamoDB?
Access is controlled using IAM policies
It enable fast queries on specific data columns?
DynamoDB Indexes
DynamoDB Indexes gives you a different view of your data based on?
Alternative partition/sort keys.
What DynamoDB Indexes has same partition key and different sort key to your table and must be created when you create your table
Local Secondary Index
What DynamoDB Indexes has different partition key and different sort key to your table and can be created any time.
Global Secondary Index
It’s operation finds items in a table using only the Primary
Key attribute and you provide the Primary Key name and a distinct value to search for.
Query
It’s operation examines every item in the table and, by default, returns all data attributes.
Scan
Its reverses the order of query results.
Set ScanIndexForward Parameter to False
Query results are always sorted in?
In ascending order by the sort key if there is one.
Use the _____________ parameter to refine the results.
ProjectionExpression
How to making scans more efficient?
Reduce the impact of a query or scan by setting a smaller page size, which uses fewer read operations and isolate scan operations to specific tables, and segregate them from your mission-critical traffic.
Try _________ rather than the default sequential scan.
Parallel Scans
A __________ is generally more efficient than a scan.
Query Operation
Design __________ in a way that you can use the Query, Get, or BatchGetItem APIs.
Tables
It is measured in Capacity Units
Provisioned Throughput
Write Capacity Units
1 x 1 KB write per second
Strongly Consistent Reads
1 x 4 KB read per second
Eventually Consistent Reads
2 x 4 KB reads per second