DynamoDB Flashcards

1
Q

NoSQL databases are widely recognized for their ease of development, functionality, and performance at scale.
True or False

A

True

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

NoSQL databases break the traditional mindset of storing data at a single location. Instead, NoSQL distributes and stores data over a set of multiple
servers.
True or False

A

True

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

Why use NoSQL database ?

A
  1. Flexibility
  2. Scalability
  3. High-performance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Types of NoSQL databases ?

A
  1. Key-value
  2. Document
  3. Graph
  4. In-memory
  5. Search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are key-value databases ?

A

They are highly partitionable and allow horizontal scaling at scales that other types of databases cannot achieve.

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

What type of database is DynamoDB ?

A

Key-value

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

What are document databases ?

A

Data is represented often as an object or JSON-like document because it is an efficient and intuitive data model for developers.

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

What are graph databases ?

A

A graph database’s purpose is to make it easy to build and run applications that work with highly connected datasets.

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

What is an amazon services that fits the definition of document databases ?

A

Amazon DocumentDB (it’s MongoDB compatible)

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

Typical use cases for a graph database include social
networking, recommendation engines, fraud detection, and knowledge graphs.
True or False

A

True

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

What is amazon’s graph database service ?

A

Amazon Neptune is a fully-managed graph database service.

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

What are in-memory databases ?

A

Gaming and ad-tech applications have use cases such as leaderboards, session stores, and real-time analytics that require microsecond response times.

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

What is amazon’s in-memory database service?

A

Amazon ElastiCache offers Memcached and Redis, to provide low-latency, high-throughput.

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

What are search databases ?

A

Databases that output near real time visualizations and analytics of machine generated data

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

What is amazon’s Search database service ?

A

Amazon Elasticsearch Service (Amazon ES) is built for providing near-real-time visualizations and analytics of machine-generated data by indexing, aggregating, and searching semistructured logs and metrics.

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

What is Amazon DynamoDB ?

A

Amazon DynamoDB is a key-value and document database that delivers single-digit millisecond performance at any scale. It’s a fully managed, multi-region, multi-active, durable database with built-in security, backup and restore, and in-memory caching for internet-scale applications.

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

DynamoDB can handle more than ____ requests per day and can support peaks of more than ____ requests per second.

A

10 trillion,

20 million

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

Many of the world’s fastest growing businesses such as Lyft, Airbnb, and Redfin as well as enterprises such as Samsung, Toyota, and Capital One depend on the scale and performance of DynamoDB to support their mission-critical workloads. Snapchat’s largest storage write workload, moved to DynamoDB.

A

True

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

DynamoDB supports both ___ and ____ data models. This enables DynamoDB to have a flexible ___, so each row can have any number of columns at any point in time.

A

key-value
document
schema

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

DynamoDB features ?

A
  1. Supports both Key-value and Document data model
  2. Microsecond latency with DynamoDB Accelerator (DAX)
  3. Automated global replication with global tables
  4. Amazon Kinesis Data Streams for DynamoDB captures item-level changes in your DynamoDB tables as Kinesis data strem
21
Q

A composite primary key is composed of two attributes. The first attribute is the ___, and the second attribute is the ____.

A

partition key

sort key

22
Q

DynamoDB uses the ____ key value as input to an internal hash function. The output from the hash function determines the partition (physical storage internal to DynamoDB) in which the item will be
stored. All items with the same partition key value are stored together, in sorted order by ___ key value.

A

partition

sort

23
Q

A _____ index provides fast access and lets you query the data in the table using an alternate key, in addition to queries against the primary key.

A

secondary

24
Q

Two types of Reads in DynamoDB ?

A
  1. Eventually Consistent Reads

2. Strongly Consistent Reads

25
Q

What is Eventually Consistent Reads ?

A

When you read data from a DynamoDB table, the response might not reflect the results of a recently completed write operation. The response might include some stale data. If you repeat your read request after a short time, the response should return the latest data.

26
Q

What is Strongly Consistent Reads ?

A

When you request a strongly consistent read,
DynamoDB returns a response with the most up-to-date data, reflecting the
updates from all prior write operations that were successful in all nodes.

27
Q

Amazon DynamoDB has two read/write capacity modes for processing reads and writes on your tables.

A
  1. On-Demand Mode: is a good option if there is unknown workloads,
    unpredictable traffic.
  2. Provisioned Mode: You specify the number of reads and writes per second that you require for your application. You can use auto scaling to adjust your table’s provisioned capacity automatically in response to traffic changes.
28
Q

With one read capacity unit (RCU), you can read __ KB data per second.
With one write capacity unit (WCU), you can write __ KB data per
second.

A

4

1

29
Q

Transactions provide atomicity, consistency, isolation, and durability (ACID) in DynamoDB, helping you to maintain data ____ in your applications.

A

correctness

30
Q

Amazon DynamoDB transactions simplify the developer experience of making coordinated, ____ changes to multiple items both within and across tables.

A

all-or-nothing

31
Q

DynamoDB Backups

A
  1. On-demand backups: for long term retention and archival for regulatory compliance needs
  2. Point-in-time recovery: to any point in time during the last 35 days.
32
Q

DynamoDB Streams is an optional feature that captures data _____ in DynamoDB tables. Near-real time, and events are in order.

A

modification events

33
Q

Events in DynamoDB Streams:

A
  1. A new item is added: The stream captures an image of the entire item, including all of its attributes.
  2. An item is updated: The stream captures the “before” and “after” image of any attributes that were modified in the item.
  3. An item is deleted: The stream captures an image of the entire item before it was deleted.
34
Q

Stream records have a lifetime of ____ after that, they are automatically removed from the stream.

A

24 hours;

35
Q

Global tables replicate your DynamoDB tables automatically across your choice of AWS _____.

A

Regions

36
Q

Amazon DynamoDB ____ allows you to define a per-item timestamp to determine when an item is no longer needed.

A

Time to Live (TTL)

37
Q

Shortly after the specified timestamp, DynamoDB deletes the item from your table without consuming any write throughput.
Here are the use cases…?

A
  1. Remove user or sensor data after one year of inactivity in an application.
  2. Archive expired items to an Amazon S3 data lake via Amazon DynamoDB Streams and AWS Lambda.
  3. Retain sensitive data for a certain amount of time according to contractual or regulatory obligations.
38
Q

Amazon _____ allows you to collect default metrics from more than 70 AWS services.

A

CloudWatch

39
Q

Amazon CloudWatch allows you to collect custom metrics from your own applications to monitor operational performance, troubleshoot issues, and spot trends. You can use CloudWatch Agent or the PutMetricData API action to publish these metrics to CloudWatch.
True of False

A

True

40
Q

PutMetricData API

A

Publishes metric data points to Amazon CloudWatch.

41
Q

Every PutMetricData call for a custom metric is charged, so calling PutMetricData more often on a high-resolution metric can lead to higher charges.
True or False

A

True

42
Q

CloudWatch Agent is a library helps you:

A
  • Collect internal system-level metrics from Amazon EC2 instances or on-premises servers. For example, getting memory utilization.
  • Retrieve custom metrics from your applications or services using the StatsD and collected protocols. StatsD is supported on both Linux and Windows Server. collected is supported only on Linux servers.
43
Q

What are the three states of an Alarm ?

A
  1. Ok
  2. Alarm
  3. Insufficient_Data
44
Q

What could be the actions of an alarm?

A

The action can be sending a notification to an Amazon SNS topic, performing an Amazon EC2 action or an Auto Scaling action.

45
Q

A log ___ is a sequence of log events that share the same source.

A

stream

46
Q

A log ___ is a group of log streams that share the same retention, monitoring, and access control settings. You can define log groups and specify which streams to put into each group.

A

group

47
Q

For every log sent to CloudWatch Logs, five system fields are automatically generated:

A
  1. @message
  2. @timestamep
  3. @ingestionTime
  4. @logStream
  5. @log
48
Q

Amazon CloudWatch dashboards are customizable home pages in the CloudWatch console that you can use to monitor your resources in a single view, even those resources that are spread across different Regions.___ per dashboard per month.

A

$3.00

49
Q

Amazon CloudWatch Anomaly Detection applies machine-learning algorithms to continuously analyze data of a metric and identify anomalous behavior.
True or False

A

True