← Amazon Interview Insights

Amazon·Software Engineer·Technical Phone Screen·Intermediate

Intermediate
Jun 2026

Summary

Amazon SWE interview, got a database fundamentals question that felt like a warmup but still managed to fumble parts of it.

Questions Asked (1)

Q1

What is the difference between NoSQL and SQL databases?

Technical Trade-offsData ModelingSystem Design
Author's notes

Thought I had this cold but halfway through my answer I started second-guessing myself on consistency guarantees and just kind of trailed off.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by defining SQL and NoSQL databases at a high level, then compare them across key dimensions like data model, schema flexibility, scalability, and consistency. Emphasize that the choice depends on the use case, and relate your answer to real-world scenarios, especially those relevant to Amazon's scale and services.

Pro tip: Demonstrate maturity by acknowledging that most modern systems use a polyglot persistence approach, combining both SQL and NoSQL databases where each fits best, rather than treating them as mutually exclusive.

1. Define SQL and NoSQL

Briefly define SQL databases as relational, table-based systems with fixed schemas and ACID transactions, and NoSQL as non-relational, distributed systems with flexible schemas and BASE properties.

2. Compare key dimensions

Contrast them on data model (tables vs. documents/key-value/graph), schema flexibility, scalability (vertical vs. horizontal), and consistency (strong vs. eventual).

3. Discuss trade-offs

Explain the trade-offs: SQL offers strong consistency and complex queries but scales vertically; NoSQL offers high scalability and flexibility but may sacrifice consistency and complex joins.

4. Relate to use cases

Provide examples of when to use each: SQL for transactional systems like banking, NoSQL for real-time big data, content management, or highly available systems like Amazon DynamoDB.

5. Conclude with Amazon context

Mention how Amazon uses both: e.g., Amazon Aurora (SQL) for relational workloads and DynamoDB (NoSQL) for high-scale, low-latency applications, highlighting the importance of choosing the right tool.

Key Points to Mention

  • Data model: relational tables vs. document, key-value, column-family, graph
  • Schema: rigid vs. flexible/dynamic
  • Scalability: vertical scaling (SQL) vs. horizontal scaling (NoSQL)
  • Consistency: ACID vs. BASE, strong vs. eventual consistency
  • Query language: SQL vs. various APIs (e.g., MongoDB query language, DynamoDB API)
  • Use cases: OLTP vs. real-time big data, content management, IoT

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.