Q1
A company uses a relational database but struggles to handle rapidly changing data structures. Why is this happening and what type of database should they switch to?
Q2
A system requires flexible data where items can have different attributes in the same table. Why would a relational database fail here?
Q3
A database needs to handle massive scale with low latency globally. Why is DynamoDB more suitable than a relational database?
A1
Because relational databases require a fixed schema, making changes difficult. They should switch to a NoSQL database.
A2
Because relational databases enforce fixed schemas, meaning all rows must follow the same structure.
A3
Because DynamoDB supports horizontal scaling, low latency, and flexible schema, making it ideal for large-scale applications.
Q4
A relational database scales vertically but still cannot handle increasing traffic. Why is this a limitation?
Q5
A NoSQL database scales horizontally. What does this mean and why is it beneficial?
Q6
Why are NoSQL databases better suited for semi-structured or unstructured data?
A4
Vertical scaling has limits (hardware constraints), making it unsuitable for very large workloads.
A5
It means adding more machines instead of upgrading one — improving scalability and performance.
A6
Because they do not require fixed schemas and can store flexible data formats like JSON.
Q7
A developer needs to query data across multiple tables with relationships. Which database type should be used and why?
Q8
Why are joins difficult or inefficient in NoSQL databases?
Q9
A system requires strong relationships between datasets. Why is NoSQL not ideal here?
A7
Relational database — because it supports joins and structured relationships.
A8
Because NoSQL databases are not designed for relational queries and often store data in separate structures.
A9
Because NoSQL prioritises scalability and flexibility over structured relationships.
Q10
What is DynamoDB and what type of database is it?
Q11
Why is DynamoDB considered serverless?
Q12
What is the main performance advantage of DynamoDB?
A10
A fully managed NoSQL database service.
A11
Because AWS manages infrastructure, scaling, and maintenance automatically.
A12
Low-latency, single-digit millisecond response times.
Q13
What are the core components of DynamoDB?
Q14
What is an item in DynamoDB?
Q15
What is an attribute in DynamoDB?
A13
Tables, items, attributes
A14
A collection of attributes representing a record
A15
A key-value pair representing data
Q16
Why must every DynamoDB item have a primary key?
Q17
What happens if two items have the same primary key?
Q18
What are the two types of primary keys in DynamoDB?
A16
To uniquely identify each item
A17
It is not allowed — primary keys must be unique
A18
Q19
What is a partition key and how does it affect data distribution?
Q20
What is a sort key and when is it useful?
Q21
Why is choosing a good partition key critical in DynamoDB?
A19
It determines how data is distributed across storage — affects performance
A20
Used to sort and organise data within a partition
A21
Poor partition keys cause uneven data distribution and performance issues
Q22
A DynamoDB table experiences uneven performance across partitions. What is the likely cause?
Q23
Why is DynamoDB better suited for applications with unpredictable workloads?
Q24
What is provisioned throughput in DynamoDB?
A22
Poor partition key design
A23
Because it supports automatic scaling and flexible throughput
A24
The amount of read/write capacity allocated
Q25
What happens if you exceed provisioned throughput in DynamoDB?
Q26
How does auto scaling help DynamoDB performance?
Q27
Why is manual throughput configuration risky?
A25
Requests may be throttled
A26
It adjusts capacity automatically based on demand
A27
Because incorrect settings lead to throttling or wasted cost
Q28
What is Time To Live (TTL) in DynamoDB?
Q29
Why is TTL useful for cost optimisation?
Q30
What happens when TTL expires on an item?
A28
A setting to automatically delete items after a set time
A29
It removes unused data, reducing storage cost
A30
The item is automatically deleted
Q31
Why does DynamoDB not require schema migrations like relational databases?
Q32
What advantage does this give developers?
Q33
Why is schema flexibility important in modern applications?
A31
Because items can have different attributes
A32
Faster development and easier updates
A33
Because data structures change frequently