In: Computer Science
2.
a. Choose all of the following that apply to DynamoDB:
(a) DynamoDB is part of RDS
(b) Is stored in 3 different locations
(c) Does not support joins, foreign keys and complex queries
(d) Supports Local and Global secondary indexes
(e) Users can manage DynamoDB in the backend (add CPU, memory, etc)
(f) Utilizes partition key to spread data across partitions for scalability
b. Which of the following standard is used by MongoDB to store documents internally?
(a) BSON
(b) JSON
(c) Extended JSON
(d) SQL
Ans-a) b,c,d,e,f
DynamoDB stores three copies of each item and when you write data to DynamoDB it only acknowledges a write after two copies out of three were updated. The third copy is updated later. When you read data from DynamoDB, you have two options.
DynamoDB is not designed as a relational database and does not support join operations
DynamoDB supports two types of secondary indexes: Global secondary index — An index with a partition key and a sort key that can be different from those on the base table. ... Local secondary index — An index that has the same partition key as the base table, but a different sort key.
Whenever necessary to scale up or down to this throughput, DynamoDB would add or remove enough computing resources seamlessly, all behind the scene.
When we create an item, the value of the partition key (or hash key) of that item is passed to the internal hash function of DynamoDB. This hash function determines in which partition the item will be stored. When you ask for that item in DynamoDB, the item needs to be searched only from the partition determined by the item's partition key.
Ans-b) a
MongoDB stores data in BSON format both internally, and over the network.