DynamoDB is a fully managed NoSQL database service provided by Amazon Web Services (AWS) that offers high performance and scalability. It is commonly used for applications requiring low-latency data access at any scale. This quiz will test your knowledge of DynamoDB concepts, key features, and common use cases.
Let’s begin with these multiple-choice questions (MCQs) to test your knowledge of DynamoDB.
1. What type of database is DynamoDB?
Answer:
Explanation:
DynamoDB is a NoSQL database that provides key-value and document data structures, offering scalability and low-latency performance.
2. Which company provides DynamoDB as a service?
Answer:
Explanation:
DynamoDB is a managed NoSQL database service provided by Amazon Web Services (AWS).
3. What is the primary key used for in DynamoDB?
Answer:
Explanation:
In DynamoDB, the primary key is used to uniquely identify each item in a table. It can be a partition key or a combination of partition and sort keys.
4. What are the two types of primary keys in DynamoDB?
Answer:
Explanation:
DynamoDB uses two types of primary keys: the partition key (simple primary key) and the composite primary key, which is a combination of the partition key and sort key.
5. How does DynamoDB achieve high availability?
Answer:
Explanation:
DynamoDB achieves high availability by replicating data across multiple availability zones in the same region, and optionally across multiple regions.
6. What type of consistency model does DynamoDB provide by default?
Answer:
Explanation:
DynamoDB provides eventually consistent reads by default. However, it also offers an option for strongly consistent reads if required.
7. What is the maximum size of an item in DynamoDB?
Answer:
Explanation:
The maximum size of an individual item in DynamoDB, including all attributes, is 400 KB.
8. What does provisioned throughput in DynamoDB refer to?
Answer:
Explanation:
Provisioned throughput in DynamoDB refers to the read and write capacity units that can be allocated to a table to handle specific amounts of traffic.
9. What is DynamoDB Auto Scaling used for?
Answer:
Explanation:
DynamoDB Auto Scaling automatically adjusts a table's provisioned read and write capacity based on the actual workload, ensuring performance while controlling costs.
10. What does a Global Secondary Index (GSI) in DynamoDB allow you to do?
Answer:
Explanation:
A Global Secondary Index (GSI) allows you to query data using an alternative partition and/or sort key different from the primary key of the base table.
11. What is a Local Secondary Index (LSI) in DynamoDB?
Answer:
Explanation:
A Local Secondary Index (LSI) in DynamoDB has the same partition key as the base table but allows you to query data with a different sort key.
12. What is DynamoDB Streams used for?
Answer:
Explanation:
DynamoDB Streams captures a time-ordered sequence of changes made to items in a table, enabling features like replication or triggering real-time events.
13. How does DynamoDB handle transactions?
Answer:
Explanation:
DynamoDB supports ACID transactions, allowing multiple items across different tables to be read or written atomically in a single transaction.
14. What is the default limit on the number of tables that can be created in DynamoDB?
Answer:
Explanation:
The default limit is 256 tables per region in DynamoDB, but this limit can be increased by submitting a request to AWS Support.
15. What is a "provisioned mode" table in DynamoDB?
Answer:
Explanation:
In provisioned mode, the user manually sets the read and write capacity units for the table. If the workload changes, these limits need to be adjusted accordingly.
16. What does "on-demand mode" mean in DynamoDB?
Answer:
Explanation:
In on-demand mode, DynamoDB automatically scales to handle varying workloads, charging based on the actual data read and written, rather than pre-configured capacity.
17. What is DynamoDB Accelerator (DAX)?
Answer:
Explanation:
DynamoDB Accelerator (DAX) is a caching service that improves the performance of read-heavy applications by caching the results of queries and scans in memory.
18. What is the default backup retention period for DynamoDB continuous backups?
Answer:
Explanation:
DynamoDB continuous backups, using point-in-time recovery, retain backups for up to 35 days, allowing you to recover from accidental data loss within this period.
19. What is "TTL" in DynamoDB?
Answer:
Explanation:
Time To Live (TTL) is a feature in DynamoDB that automatically deletes expired items from a table based on a timestamp attribute.
20. How does DynamoDB charge users for on-demand tables?
Answer:
Explanation:
In on-demand mode, DynamoDB charges based on the actual number of read and write requests made to the table, rather than a pre-configured capacity.
These questions cover the basic features, configurations, and use cases of DynamoDB. Understanding these concepts will help you effectively use DynamoDB in scalable, low-latency applications.
Comments
Post a Comment
Leave Comment