DynamoDB Flashcards

1
Q

It is a low-latency NoSQL database.

A

Amazon DynamoDB

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

What data models is supported by DynamoDB?

A

Supports both document and key-value data models.

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

What document formats is supported by DynamoDB?

A

Supported document formats are JSON, HTML, XML

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

What are the DynamoDB 2 types of Primary Keys?

A

Partition Key and Composite Key (combination of Partition Key + Sort Key)

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

What are the DynamoDB features?

A

DynamoDB features consists of Tables, Items, and Attributes

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

What are the DynamoDB 2 Consistency models?

A

Strongly Consistent and Eventually Consistent

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

It allow users to access only the items where the partition key value matches their user ID.

A

Fine grained access control using IAM Condition parameter: dynamodb:LeadingKeys

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

How access is controlled in a DynamoDB?

A

Access is controlled using IAM policies

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

It enable fast queries on specific data columns?

A

DynamoDB Indexes

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

DynamoDB Indexes gives you a different view of your data based on?

A

Alternative partition/sort keys.

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

What DynamoDB Indexes has same partition key and different sort key to your table and must be created when you create your table

A

Local Secondary Index

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

What DynamoDB Indexes has different partition key and different sort key to your table and can be created any time.

A

Global Secondary Index

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

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.

A

Query

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

It’s operation examines every item in the table and, by default, returns all data attributes.

A

Scan

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

Its reverses the order of query results.

A

Set ScanIndexForward Parameter to False

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

Query results are always sorted in?

A

In ascending order by the sort key if there is one.

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

Use the _____________ parameter to refine the results.

A

ProjectionExpression

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

How to making scans more efficient?

A

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.

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

Try _________ rather than the default sequential scan.

A

Parallel Scans

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

A __________ is generally more efficient than a scan.

A

Query Operation

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

Design __________ in a way that you can use the Query, Get, or BatchGetItem APIs.

A

Tables

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

It is measured in Capacity Units

A

Provisioned Throughput

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

Write Capacity Units

A

1 x 1 KB write per second

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

Strongly Consistent Reads

A

1 x 4 KB read per second

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Eventually Consistent Reads
2 x 4 KB reads per second
25
When to use On-Demand Capacity?
Unpredictable application traffic. Pay-per-use model.
26
When to use Provisioned Capacity?
Read and write capacity requirements can be forecasted. Application traffic is consistent or increases gradually.
27
DAX is Not suitable for?
Write-intensive applications or applications that require strongly consistent reads.
28
If the item you are querying is in the cache, DAX will ?
DAX will return it.
28
You point your API calls at the _________ instead of your table.
DAX cluster
29
Provides in-memory caching for DynamoDB tables.
DAX
30
Improves response times for eventually consistent reads only.
DAX
31
Data is written to the cache and the backend store at the same time.
DAX Write Operations
32
In-memory cache sits between your application and database
Elasticache
33
What are the 2 different caching strategies?
Lazy loading and Write Through
34
It is the caching strategies that only caches the data when it is requested.
Lazy Loading
35
It defines an expiry time for your data. Once expired, an item is marked for deletion
Time to live ( TTL )
36
Great for removing irrelevant data or old data that reduce the cost of your DynamoDB Table.
Time to live ( TTL )
37
It is the caching strategies that writes data into the cache whenever there is a change to the database.
Write Through caching strategy
38
Elasticache Node failures not fatal, just lots of cache misses
Lazy Loading caching strategy
39
Cache miss penalty: Initial request, query database, writing to cache
Lazy Loading caching strategy
40
Avoid stale data by implementing a TTL
Lazy Loading caching strategy
41
Data is never stale
Write Through caching strategy
42
Write penalty: Each write involves a write to the cache
Write Through caching strategy
43
Elasticache node failure means that data is missing until added or updated in the database
Write Through caching strategy
44
Wasted resources if most of the data is never used
Write Through caching strategy
45
It is a time-ordered sequence of item-level modifications in your DynamoDB tables.
DynamoDB Streams
46
DynamoDB Streams Data is stored for how long?
24 hours only
46
DynamoDB Streams Can be used as an _____________ , so you can create applications that take actions based on events in your DynamoDB table.
event source for Lambda
47
This error means the number of requests is too high.
ProvisionedThroughputExceeded
47
It improves flow by retrying requests using progressively longer waits.
Exponential Backoff
48
Exponential backoff is a feature of ______________ and applies to many services within AWS.
Every AWS SDK
49
The CLI and API call command and that creates a new table.
create-table CreateTable
50
The CLI and API call command and that adds a new item into a table or replaces an old item with a new one.
put-item PutItem
51
The CLI and API call command and that returns a set of attributes for an item with the given primary key.
get-item GetItem
52
The CLI and API call command and that allows you to edit the attributes of an existing item (e.g., add or delete attributes).
update-item UpdateItem
53
The CLI and API call command and that modifies a table (e.g., modify the provisioned throughput settings of the table).
update-table UpdateTable
54
The CLI and API call command and that returns a list of tables in your account.
list-tables ListTables
55
The CLI and API call command and that returns information about the table (e.g., current status, creation date, primary key, and indexes).
describe-table DescribeTable
56
The CLI and API call command and that reads every item in a table and returns all items and attributes. Use a filter expression to return fewer items.
scan Scan
57
The CLI and API call command and that queries the table based on a partition key value that you provide.
query Query
58
The CLI and API call command and that allows you to delete an item based on its primary key.
delete-item DeleteItem
59
The CLI and API call command and that deletes a table, including all of its items.
delete-table DeleteTable