DynamoDB MCQ Questions And Answers
DynamoDB MCQs : This section focuses on "Basics" of DynamoDB. These Multiple Choice Questions (MCQ) should be practiced to improve the DynamoDB skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Amazon DynamoDB is a fully managed proprietary?
A. Centralised database
B. Commercial database
C. NoSQL database
D. Relational database
View Answer
Ans : C
Explanation: Amazon DynamoDB is a fully managed proprietary NoSQL database service that supports key-value and document data structures and is offered by Amazon.com as part of the Amazon Web Services portfolio.
2. Amazon DynamoDB Initial release date?
A. 2011
B. 2012
C. 2013
D. 2014
View Answer
Ans : B
Explanation: Initial release date: 18 January 2012
3. How many types of primary keys does DynamoDB supports?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : A
Explanation: DynamoDB supports two types of primary keys: Partition key and sort key.
4. How many types of secondary indexes does DynamoDB supports?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : A
Explanation: DynamoDB supports two types of secondary indexes: Global secondary index and Local secondary index.
5. Which index that has the same partition key as the base table, but a different sort key?
A. Global secondary index
B. Local secondary index
C. Both A and B
D. None of the above
View Answer
Ans : B
Explanation: Local secondary index : An index that has the same partition key as the base table, but a different sort key.
6. A read capacity unit is a single consistent read per second for items no larger than ?
A. 1KB
B. 2KB
C. 4KB
D. 8KB
View Answer
Ans : C
Explanation: A read capacity unit is a single consistent read per second for items no larger than 4KB. A write capacity unit is a single write per second for items no bigger than 1KB.
7. How many attributes does DynamoDB allows?
A. 5
B. 10
C. 15
D. 20
View Answer
Ans : D
Explanation: DynamoDB allows 20 attributes.
8. Names must conform to a minimum of 3 characters in length, and a maximum of ?
A. 31
B. 63
C. 127
D. 255
View Answer
Ans : D
Explanation: Names must conform to a minimum of 3 characters in length, and a maximum of 255.
9. Expression strings have a _____ limit.
A. 1KB
B. 2KB
C. 4KB
D. 8KB
View Answer
Ans : C
Explanation: Expression strings have a 4KB limit. Attribute expressions have a 255-byte limit. Substitution variables of an expression have a 2MB limit.
10. Which key also known as the Composite Primary Key?
A. Partition Key
B. Sort Key
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: Partition Key and Sort Key : This key, known as the Composite Primary Key, consists of two attributes.
11. Which types represent a single value, and include number, string, binary, Boolean, and null?
A. Scalar
B. Document
C. Set
D. None of the above
View Answer
Ans : A
Explanation: Scalar : These types represent a single value, and include number, string, binary, Boolean, and null.
12. Maximum length of String data type is?
A. 200KB
B. 400KB
C. 600KB
D. 800KB
View Answer
Ans : B
Explanation: String : They are Unicode using UTF-8, with a minimum length of >0 and maximum of 400KB.
13. In Action Data Types, which represents key table and index schema?
A. Capacity
B. AttributeDefinition
C. PutRequest
D. TableDescription
View Answer
Ans : B
Explanation: AttributeDefinition : It represents key table and index schema
14. In Action Data Types, which represents PutItem requests?
A. PutRequest
B. TableDescription
C. LocalSecondaryIndex
D. ProvisionedThroughput
View Answer
Ans : A
Explanation: PutRequest : It represents PutItem requests
15. DynamoDB offers ________ low-level actions for data reading.
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : D
Explanation: DynamoDB offers four low-level actions for data reading : GetItem, BatchGetItem, Scan and Query.
16. DynamoDB uses partitions for data storage.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: DynamoDB uses partitions for data storage.
17. DynamoDB uses eventually consistent and strongly consistent reads to support dynamic application needs.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: DynamoDB uses eventually consistent and strongly consistent reads to support dynamic application needs.
18. Which of the following are benefits of using Amazon DynamoDB?
A. It is scalable
B. It provides the users high throughput at very low latency.
C. It is durable and highly available
D. All of the above
View Answer
Ans : D
Explanation: All of the above are benefits of using Amazon DynamoDB
19. DynamoDB does not supports Null values.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : B
Explanation: DynamoDB also supports Null values.
20. Does DynamoDB support in-place atomic updates?
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: Amazon DynamoDB supports quick in-place atomic updates, where the numeric attribute’s increment and decrement can be done in arrow using just one API call or similarly, you can add or remove sets, lists, or maps.
Discussion