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
Q

Eventually Consistent Reads

A

2 x 4 KB reads per second

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

When to use On-Demand Capacity?

A

Unpredictable application traffic.
Pay-per-use model.

26
Q

When to use Provisioned Capacity?

A

Read and write capacity requirements can be forecasted.
Application traffic is consistent or increases gradually.

27
Q

DAX is Not suitable for?

A

Write-intensive applications or applications that require strongly consistent reads.

28
Q

If the item you are querying is in the cache, DAX will ?

A

DAX will return it.

28
Q

You point your API calls at the _________ instead of your table.

A

DAX cluster

29
Q

Provides in-memory caching for DynamoDB tables.

A

DAX

30
Q

Improves response times for eventually consistent reads only.

A

DAX

31
Q

Data is written to the cache and the backend store at the same time.

A

DAX Write Operations

32
Q

In-memory cache sits between your application and database

A

Elasticache

33
Q

What are the 2 different caching strategies?

A

Lazy loading and Write Through

34
Q

It is the caching strategies that only caches the data when it is requested.

A

Lazy Loading

35
Q

It defines an expiry time for your data. Once expired, an item is marked for deletion

A

Time to live ( TTL )

36
Q

Great for removing irrelevant data or old data that reduce the cost of your DynamoDB Table.

A

Time to live ( TTL )

37
Q

It is the caching strategies that writes data into the cache whenever
there is a change to the database.

A

Write Through caching strategy

38
Q

Elasticache Node failures not fatal, just lots of cache misses

A

Lazy Loading caching strategy

39
Q

Cache miss penalty: Initial request, query database, writing to
cache

A

Lazy Loading caching strategy

40
Q

Avoid stale data by implementing a TTL

A

Lazy Loading caching strategy

41
Q

Data is never stale

A

Write Through caching strategy

42
Q

Write penalty: Each write involves a write to the cache

A

Write Through caching strategy

43
Q

Elasticache node failure means that data is missing until added
or updated in the database

A

Write Through caching strategy

44
Q

Wasted resources if most of the data is never used

A

Write Through caching strategy

45
Q

It is a time-ordered sequence of item-level modifications in your DynamoDB tables.

A

DynamoDB Streams

46
Q

DynamoDB Streams Data is stored for how long?

A

24 hours only

46
Q

DynamoDB Streams Can be used as an _____________ , so you can create applications that take actions based on events in your DynamoDB table.

A

event source for Lambda

47
Q

This error means the number of requests is too high.

A

ProvisionedThroughputExceeded

47
Q

It improves flow by retrying requests using progressively longer waits.

A

Exponential Backoff

48
Q

Exponential backoff is a feature of ______________ and applies to many services within AWS.

A

Every AWS SDK

49
Q

The CLI and API call command and that creates a new table.

A

create-table
CreateTable

50
Q

The CLI and API call command and that adds a new item into a table or replaces an old item with a new one.

A

put-item
PutItem

51
Q

The CLI and API call command and that returns a set of attributes for an item with the given primary key.

A

get-item
GetItem

52
Q

The CLI and API call command and that allows you to edit the attributes of an existing item (e.g., add or delete attributes).

A

update-item
UpdateItem

53
Q

The CLI and API call command and that modifies a table (e.g., modify the provisioned throughput settings of the table).

A

update-table
UpdateTable

54
Q

The CLI and API call command and that returns a list of tables in your account.

A

list-tables
ListTables

55
Q

The CLI and API call command and that returns information about the table (e.g., current status, creation date, primary key, and indexes).

A

describe-table
DescribeTable

56
Q

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.

A

scan
Scan

57
Q

The CLI and API call command and that queries the table based on a partition key value that you provide.

A

query
Query

58
Q

The CLI and API call command and that allows you to delete an item based on its primary key.

A

delete-item
DeleteItem

59
Q

The CLI and API call command and that deletes a table, including all of its items.

A

delete-table
DeleteTable