DynamoDB Interview Questions
- Bhavesh Joshi
- 01st Mar, 2023
- 921 Followers
DynamoDB Interview Questions
What is DynamoDB?
The use of SQL databases started plummeting with the advent of DynamoDB. DynamoDB is pretty much being used as a replacement for SQL databases. This replacement was made due to the key advantage which is, that DynamoDB is extremely fast and highly scalable.
With the increase in the use of this NoSQL database service, the industry demands candidates with DynamoDB knowledge. It is high time for the aspirants who seek a bright future in the back-end field to be well aware of this database. And, if you already are acknowledged with DynamoDB and your interview is heading near, then this list of a few DynamoDB Interview Questions will help you crack the interview.
Quick Questions About DynamoDB
|DynamoDB is a||NoSQL Database|
|DynamoDB is developed by||Amazon|
|DynamoDB is written in||Java|
|DynamoDB is initially released on||Jan. 2012|
|DynamoDB supports os||Cross-platform|
|DynamoDB top features||Highly scalable, Low latency, Advanced security|
Key Responsibilities of DynamoDB Developer
As a DynamoDB Developer, some of the key responsibilities you may be expected to have include:
- Designing and developing DynamoDB tables, choosing appropriate partition keys, sort keys, and secondary indexes.
- Optimize query performance by choosing appropriate partition keys, secondary indexes, and query patterns.
- Implement data security measures to protect sensitive data stored in DynamoDB
- Integrate DynamoDB with other AWS services, such as Lambda, API Gateway, and S3, to build efficient and scalable serverless applications.
- Troubleshoot issues related to DynamoDB, such as high latency or throughput, and implement solutions to resolve them.
- Monitor and maintain DynamoDB tables, including monitoring performance, optimizing data storage, and performing backups and restores.
- Stay up-to-date with the latest AWS and DynamoDB features, & updates.
DynamoDB Interview Questions for Beginners
1) Explain what is DynamoDB?
It also enables the users to offload the operating and scaling distributed databases to AWS.
So that the users don’t have to worry about setup and configuration, hardware provisions, replication, throughput capacity planning, cluster scaling or software patching.
2) List some benefits of using Amazon DynamoDB?
- It is a managed service where there is no need to hire the experts or worry about installation, setup, cluster etc.,
- It is scalable.
- It provides the users high throughput at very low latency.
- It is durable and highly available.
- It is flexible and allows dynamic tables creation that includes multi-valued attributes.
- It is cost-effective.
3) What are the non-relational Databases?
These databases are categorized into four groups, and they are:
- Key-value stores
- Graph stores
- Column stores
- Document stores
4) Is DynamoDB free for use?
Get started with free tier limits of DynamoDB on which many applications operate.
In need of resources, the pricing per month varies depending on which type of resources you require.
5) Explain what is DynamoDB Mapper Class?
6) List the Data Types supported by DynamoDB?
DynamoDB supports collection data types such as:
- Number Set
- String Set
- Binary Set
- Heterogeneous List
- Heterogeneous Map
DynamoDB also supports Null values.
7) Does DynamoDB support in-place atomic updates?
8) What kind of query functionality does DynamoDB support?
- It supports GET/PUT operation using the user-defined primary key.
- It provides flexible querying by letting query a non-primary key attribute using local secondary indexes and Global secondary indexes.
- It allows quick reads and writes data for an item associated with single attribute partition primary key.
- It allows you to use the Query API to retrieve all the items for a single composite partition-sort key across a range of sort keys.
9) Does Amazon DynamoDB support conditional operations?
You can define a ConditionExpression that can be constructed from the following:
- Boolean functions: ATTRIBUTE_EXIST, CONTAINS, and BEGINS_WITH
- Comparison operators: =, <>, <, >, <=, >=, BETWEEN, and IN
- Logical operators: NOT, AND, and OR.
You can also construct a free-form conditional expression that combines multiple conditional clauses which also includes nested clauses.
10) List some difference between Amazon DynamoDB and Amazon SimpleDB?
- Amazon DynamoDB : It is a fast and scalable NoSQL Database Service that is designed for internet scale applications, to maintain predictably high performance and to be highly cost-effective for workloads of any scale, on the top of all it is highly recommended.
- Amazon SimpleDB : It has scaling limitations and is a good fit for smaller workloads that requires query flexibility.It automatically indexes all item attributes and supports query flexibility at the cost of performance and scale.
11) List the APIs provided by Amazon DynamoDB?
12) What Amazon DynamoDB BatchWriteItem API does?
With maximum total request size of 16 MB, it supports batches of up to 25 items to insert or delete.
13) Please explain key-value store?
14) What is DynamoDB Auto Scaling?
15) Please explain what are global secondary indexes?
It is considered to be “global” in the sense that queries on the index can span all the items in a table across, all the partitions.
16) List types of secondary indexes supported by Amazons DynamoDB?
- Global Secondary index – It is an index with a partition or a partition sort key that is different from those on the table. The global secondary index is considered to be global because queries on the index can span all the items in a table, across all the partitions.
- Local secondary index – An index that has the same partition key as that of the table but different sort key. It is considered to be “local” because every partition of the index is scoped to a table partition that has the same partition key.
17) How many numbers of global secondary indexes do you create per table?
18) What are API calls supported by a global secondary index?
19) How to delete a Global Secondary Index in Amazon DynamoDB?
Select the table from which you want to delete the Global Secondary index on the console, select the “indexes” tab under “Table items” and then click on the “Delete” button which is next to the delete index.
A Global Secondary Index can also be deleted using the Update Table API call.
20) What are local secondary indexes?
A local secondary index is considered to be “local” because every partition of a local secondary index is scaled to a table partition which contains the same partition key.
21) What are Projections?
They are in addition to the index key attributes and primary key attributes which are automatically projected.
Whenever you define a local secondary index, it is required to specify the attributes that are projected into the index.
Each index consists of a minimum of 3 attributes, and they are:
- Table partition key value
- Attribute to serve as the index sort key
- Table sort key value
22) How to create local secondary indexes?
So, later when you create a local secondary index, try specifying the following two parameters.
- Indexed Sort Key : The attribute on which indexing and querying are performed.
- Projected Attributes : It is the list of attributes from the table that can directly be copied into the local secondary index. Without projected attributes, the local secondary index contains only primary keys and secondary keys.
23) Can I add local secondary indexes to an existing table?
So, at this time it is probably not possible to add local secondary indexes in the existing table.
24) How many local secondary indexes can be created on one table?
25) Can I delete local secondary indexes?
Currently, Amazon DynamoDB is incapable of removing the local secondary indexes from the table once they are created, but it is possible to delete the entire table.
Leave A Comment :
Valid name is required.
Valid name is required.
Valid email id is required.