What should you focus on for a MongoDB and NoSQL interview?

Can you explain why you would choose a database?

Start with database choices. This topic appeared in 26 of 74 interviews, more than any other topic on this page. The SQL versus NoSQL comparison was the most asked question, appearing in 11 of 74 interviews.

Check whether you can answer these without just naming a database:

  • When would you choose PostgreSQL over MongoDB?
  • Which database would you choose for a booking system, and why?
  • What would guide your choice for a chat application storing messages and attachments?
  • How would you choose a database for banking or a growing application?

Can you explain what MongoDB is and when to use it?

The basics questions cover MongoDB's database type, main uses, and characteristics. Can you explain these in plain words?

  • How relational SQL databases differ from non-relational NoSQL databases.
  • What BSON and the _id field are.
  • What a flexible schema means.

Check both parts of your answer: can you describe what MongoDB is, then explain when you would choose it over a relational database? The question list includes both definitions and comparisons.

Can you explain how you would store and retrieve data?

Use the data modeling and query questions to check your choices about structure, consistency, and access. Can you answer each of these?

  • How would you keep related documents consistent?
  • How would you model business transactions differently from activity logs?
  • Can you explain projection, query operators, aggregation stages, and joins?
  • Which indexes would you choose for efficient access?

Can you turn an application request into database logic?

Coding tasks appeared in 2 of 74 interviews. They included Java and MongoDB pseudocode for optional product filters, repository logic, and translating a simple SQL query into Cypher.

Can you show how optional product name and price filters become a query? Can you describe the function, business logic, and repository that returns matching products? Also check whether you can explain Node.js connections, Mongoose, request validation, and error monitoring.

What should you review beyond MongoDB?

For DynamoDB and Azure Cosmos DB, check keys, secondary indexes, queries versus scans, and hot partitions. Can you explain the differences between the access methods?

Other questions cover graph database choices and Redis commands and data structures. Can you explain how Elasticsearch differs from PostgreSQL and MongoDB for search? For operations, can you describe how you would investigate a slow MongoDB query and explain sharding?

Who gets asked MongoDB and NoSQL

Backend developer30 interviews
Data engineer3 interviews
DevOps engineer2 interviews
Data scientist2 interviews

The 20 most asked MongoDB and NoSQL questions

Counted by interview, not by mention: a question asked twice in one conversation counts once.

  1. What is the difference between relational SQL databases and non-relational NoSQL databases?

    Asked in 11 of 74 interviews · last asked Oct 23 · Concept · Junior

    Show answer

    Relational databases store data in tables with defined schemas and use SQL to query it. NoSQL databases use models such as documents, key-value pairs, graphs, or wide columns, often with flexible schemas. Relational databases suit structured data and joins; NoSQL can suit particular data shapes and access patterns. The choice depends on the application's needs.

    • Relational databases link tables using keys and support joins.
    • NoSQL is a group of database types, not one data model.
    • NoSQL does not mean no schema or no transactions; support varies by database.
    • Both can scale, but scaling methods and trade-offs depend on the database.

    What the interviewer checks: The interviewer checks whether you understand data models and can compare trade-offs without treating SQL or NoSQL as always better.

    Other ways it was asked
    • “What is the difference between SQL and NoSQL databases?”
    • “What is the key difference between SQL and NoSQL databases?”
    • “What is the main difference between a SQL and NoSQL database?”
  2. What is MongoDB, what type of database is it, and what are its main use cases?

    Asked in 8 of 74 interviews · last asked Oct 21 · Concept · Junior

    Show answer

    MongoDB is a document database, a type of NoSQL database. It stores data as BSON documents, which are similar to JSON objects, with flexible fields and nested values. Common uses include product catalogs, user profiles, content management, and web applications. It is mainly an operational database, not a data lake or data warehouse.

    • Documents are grouped into collections rather than tables with rows.
    • A flexible schema supports changing data structures; validation rules can still enforce structure.
    • Indexes support efficient queries, replication provides redundancy, and sharding distributes data across servers.

    What the interviewer checks: The interviewer checks whether you can identify MongoDB’s database type, explain its document model, and name suitable uses.

    Other ways it was asked
    • “What is MongoDB?”
    • “What is MongoDB, and why do we use it?”
    • “Is MongoDB a data lake, a data warehouse, or a different kind of database?”
  3. How does MongoDB compare with relational databases, and when would you choose it?

    Asked in 8 of 74 interviews · last asked Oct 16 · Concept · Junior

    Show answer

    MongoDB stores data as flexible, JSON-like documents, while relational databases store data in tables with defined columns and relationships. Choose MongoDB when data fits nested documents and its structure changes often. Choose a relational database when many joins, strict relationships, and complex SQL reporting are central needs.

    • MongoDB uses BSON documents and supports schema validation; flexible structure does not mean no schema.
    • Embedding related data can reduce joins, but may duplicate data and complicate updates.
    • MongoDB supports joins through $lookup and supports multi-document transactions.
    • MongoDB supports horizontal scaling through sharding, but good shard key design matters.

    What the interviewer checks: The interviewer checks whether you can choose a database based on data structure, query patterns, and consistency needs.

    Other ways it was asked
    • “How do MongoDB and relational databases such as SQL Server differ, and how would you choose between them?”
    • “How does MongoDB differ from relational SQL databases, and when would you choose MongoDB?”
    • “What is the difference between MongoDB and a SQL database?”
  4. When would you choose PostgreSQL over MongoDB?

    Asked in 7 of 74 interviews · last asked Sep 29 · Concept · Mid-level

    Show answer

    I would choose PostgreSQL when the data has many relationships and needs joins, strict constraints, or complex SQL reports. It is a strong fit for transactions across related tables. I would choose MongoDB when data fits naturally into documents that are usually read and updated together. The choice depends on the data and query patterns.

    • PostgreSQL supports foreign keys and constraints to keep related data consistent.
    • MongoDB supports multi-document transactions too; transactions are not exclusive to PostgreSQL.
    • PostgreSQL supports JSON data too; flexible fields alone do not require MongoDB.
    • MongoDB fits nested documents well, but frequent joins may favor PostgreSQL.

    What the interviewer checks: The interviewer is checking whether you choose a database based on data relationships, consistency needs, and query patterns.

    Other ways it was asked
    • “How would you explain the difference between using MongoDB and PostgreSQL for a project, and when would you choose one over the other?”
    • “Why did you choose PostgreSQL over MongoDB?”
    • “Which do you prefer, MongoDB or PostgreSQL, and why?”
  5. When would you choose a NoSQL database over a relational database, and why?

    Asked in 3 of 74 interviews · last asked Sep 21 · Concept · Mid-level

    Show answer

    I would choose NoSQL when its data model and scaling options fit the application's needs better than a relational database. For example, a document database can suit records with changing fields that are usually read together. I would usually choose a relational database for complex relationships, joins, and strict data rules.

    • Choose based on data shape, query patterns, transaction needs, and expected load.
    • Some NoSQL systems make scaling across servers easier, but this depends on the database.
    • NoSQL databases differ in their consistency, transaction, and query support.
    • Flexible records still need validation; relational databases can also store JSON.

    What the interviewer checks: The interviewer checks whether you can match application needs to database trade-offs instead of choosing by trend.

    Other ways it was asked
    • “How have you used relational and nonrelational databases, and what use cases did they support?”
    • “What is the most common reason for picking a NoSQL database over a relational one?”
    • “What general rules do you follow when selecting a database for an application?”
  6. How does Elasticsearch differ from PostgreSQL, MongoDB, and other databases, particularly for search?

    Asked in 3 of 74 interviews · last asked Oct 2 · Concept · Senior

    Show answer

    Elasticsearch is built for search, while PostgreSQL, MongoDB, and SQL Server are general-purpose databases. It combines full-text indexing, relevance ranking, text analysis, and distributed search. These databases also support search, but features vary; MongoDB Search offers many similar tools. Elasticsearch often complements a primary database because indexed changes are not immediately searchable.

    • An inverted index finds documents by words without scanning every document.
    • Analyzers, fuzzy matching, relevance tuning, and aggregations support rich search experiences.
    • PostgreSQL and SQL Server offer full-text search; MongoDB Search uses dedicated search indexes.
    • A separate search system adds data synchronization, storage, and operational work.

    What the interviewer checks: The interviewer checks whether you understand search-specific strengths and the trade-offs of adding a separate search system.

    Other ways it was asked
    • “What advantages does Elasticsearch offer over PostgreSQL or MongoDB for search?”
    • “What is the difference between PostgreSQL and Elasticsearch?”
    • “What capabilities does Elasticsearch provide for full-text search that SQL Server or other databases may not provide as effectively?”
  7. What is the _id field in MongoDB?

    Asked in 2 of 74 interviews · last asked Sep 15 · Concept · Junior

    Show answer

    The `_id` field is the primary key that identifies a MongoDB document. In a standard collection, every document must have a unique `_id`, and it cannot be changed after insertion. If you do not provide it, MongoDB or the driver normally creates an ObjectId.

    • You can provide your own `_id`, such as a string or number.
    • Standard collections automatically have a unique index on `_id`.
    • In sharded collections, uniqueness across shards is not enforced unless `_id` is the shard key.

    What the interviewer checks: The interviewer is checking whether you understand document identity, automatic ID creation, and uniqueness.

    Other ways it was asked
    • “What is the purpose of the _id field in a MongoDB document?”
  8. What factors guide your choice of database for a new application or service?

    Asked in 2 of 74 interviews · last asked Jul 16 · Scenario · Mid-level

    Show answer

    I choose a database based on the data, query patterns, and reliability needs. I check relationships, transactions, consistency, expected load, and growth. I also consider cost, backups, and the team's skills. I compare SQL and NoSQL options against these needs, then test realistic workloads before deciding.

    • Match the data model to common queries, joins, and update patterns.
    • Define transaction, consistency, and availability needs; both SQL and NoSQL capabilities vary by database.
    • Check read and write load, response time targets, and scaling needs.
    • Include hosting cost, backup and recovery, security, and operational skills.

    What the interviewer checks: The interviewer checks whether you weigh application needs and trade-offs instead of choosing a familiar or popular database.

    Other ways it was asked
    • “What factors should guide the choice of a database for a service?”
    • “When building a new product, what type of database would you choose?”
  9. Which database would you choose for a chat application storing messages and attachments, and why?

    Asked in 2 of 74 interviews · last asked Apr 23 · Scenario · Mid-level

    Show answer

    I would choose MongoDB for messages and attachment metadata, and object storage for the attachment files. Its flexible documents fit different message types, and it supports indexing and sharding as traffic grows. PostgreSQL is also a strong choice when relationships and transactions are central; I would mainly use Redis for caching and presence.

    • Store file links and metadata in the database, not large attachment files.
    • Index messages by conversation and time for efficient history queries.
    • MongoDB supports transactions too; choose based on access patterns and consistency needs.
    • Redis can support real-time features, but durable message storage needs careful persistence settings.

    What the interviewer checks: The interviewer is checking whether you can justify a database choice and separate durable storage from caching and file storage.

    Other ways it was asked
    • “Which database would you choose for a chat service that stores messages, photos, and other attachments: Redis, MongoDB, or PostgreSQL?”
    • “If you were building a chat application, which type of database would you choose?”
  10. How would you design MongoDB data models to keep related documents consistent?

    Asked in 2 of 74 interviews · last asked Oct 16 · Scenario · Junior

    Show answer

    I would embed related data when it belongs together and must change together, because MongoDB updates one document atomically. For separate documents that must stay in sync, I would use a transaction. I would avoid unnecessary copies of data and define how any copies are updated. References alone do not enforce consistency.

    • Choose embedding or references based on access patterns, document size, and data growth.
    • Multi-document transactions require a replica set or sharded cluster and add overhead.
    • MongoDB does not enforce foreign keys; application logic must manage related references and deletions.
    • If delayed updates are acceptable, copied data can use eventual consistency with retries.

    What the interviewer checks: The interviewer is checking whether you can choose document boundaries and consistency guarantees based on application needs.

    Other ways it was asked
    • “If you chose MongoDB for flexibility, how would you ensure data consistency—for example, making sure two related documents stay in sync?”
    • “What would you consider when designing MongoDB data models to keep data consistent?”
  11. What are the differences between find, findOne, and aggregate in MongoDB?

    Asked in 2 of 74 interviews · last asked Apr 16 · Concept · Junior

    Show answer

    find returns a cursor over matching documents, while findOne returns one matching document or null. Both support filtering and selecting fields. aggregate runs a pipeline that can filter, reshape, group, or join data, and usually returns a cursor.

    • findOne does not guarantee which match you get unless you specify a sort.
    • find returns an empty cursor when nothing matches; findOne returns null.
    • aggregate supports stages such as $match, $project, $group, and $lookup.
    • Return types and how you read results can vary by driver.

    What the interviewer checks: The interviewer is checking whether you understand result types and when to use simple queries or an aggregation pipeline.

    Other ways it was asked
    • “What’s the difference between `find` and `findOne`?”
    • “Can you differentiate between the find, findOne, and aggregate methods in MongoDB?”
  12. What is projection in MongoDB?

    Asked in 2 of 74 interviews · last asked Jul 20 · Concept · Junior

    Show answer

    Projection in MongoDB controls which fields a query returns. You pass a projection document to select or hide fields. Use 1 to include a field and 0 to exclude it; this does not change the stored documents.

    • The _id field is returned by default unless you explicitly exclude it.
    • You cannot mix field inclusion and exclusion, except to exclude _id.
    • Returning fewer fields reduces the amount of data sent to the client.
    JavaScript
    // Return only name and email for active users, without _id.
    db.users.find(
      { active: true },
      { name: 1, email: 1, _id: 0 }
    );

    What the interviewer checks: The interviewer is checking whether you can select returned fields and explain the inclusion, exclusion, and _id rules.

    Other ways it was asked
    • “What is projection in MongoDB, and how do you implement it?”
  13. What are the different types of databases?

    Asked once · last asked Apr 4 · Concept · Junior

    Show answer

    Common database types are relational, document, key-value, wide-column, and graph databases. Relational databases store data in tables and usually use SQL. Document, key-value, wide-column, and graph databases are common NoSQL types. Other types include hierarchical, network, and object-oriented databases.

    • Relational databases include PostgreSQL and MySQL; MongoDB is a document database.
    • Key-value databases suit simple lookups; graph databases suit connected data.
    • Wide-column databases organize data into rows with flexible columns; Cassandra is an example.
    • Some databases support multiple data models, so these categories can overlap.

    What the interviewer checks: The interviewer checks whether you can name the main database types and distinguish their data models.

  14. What is the BSON format in MongoDB?

    Asked once · last asked Apr 8 · Concept · Junior

    Show answer

    BSON stands for Binary JSON. It is the binary format MongoDB uses to represent documents for storage and data transfer. It supports JSON-like objects and arrays, plus types such as dates, ObjectIds, and binary data. BSON is not compressed JSON and is not always smaller than JSON.

    • BSON stores documents as fields with names, types, and values.
    • It supports types that JSON does not, including dates, ObjectIds, and distinct numeric types.
    • Binary encoding does not guarantee a smaller document size.

    What the interviewer checks: The interviewer checks whether you understand MongoDB’s document format and how it differs from JSON.

  15. What are the advantages and disadvantages of using a data schema without a fixed structure?

    Asked once · last asked Jul 16 · Concept · Junior

    Show answer

    A flexible schema makes it easier to store varied data and add fields as needs change. It can reduce the need for schema migrations. But inconsistent fields and types can make queries, validation, and maintenance harder. You still need clear data rules, enforced by the application or database validation.

    • Records can have different fields, which helps when data needs change.
    • Flexibility can speed up development, but it does not remove the need for data design.
    • Missing fields and mixed types can complicate queries and reporting.
    • Validation helps keep important fields consistent.

    What the interviewer checks: The interviewer is checking whether you understand the trade-off between flexibility and data consistency.

  16. For a system like Instagram, would you choose a NoSQL or relational database? Give specific examples and explain why.

    Asked once · last asked May 11 · Design · Senior

    Show answer

    I would choose a relational database for core data and add NoSQL for specific needs. PostgreSQL suits users, follows, and likes because transactions and constraints protect data consistency. MongoDB could hold flexible post metadata, while Redis could cache feeds for fast reads. Photos and videos belong in object storage, not database records.

    • PostgreSQL can enforce valid user references and prevent duplicate likes with constraints.
    • MongoDB supports varied document structures, but related data may need duplication or extra queries.
    • Cached feeds can tolerate some delay; account and permission changes need stronger consistency.
    • Both relational and NoSQL databases can scale; choose based on access patterns and consistency needs.

    What the interviewer checks: The interviewer checks whether you match each storage choice to real data needs and explain the trade-offs.

    Other ways it was asked
    • “If you chose a NoSQL database for a system like Instagram, which one would you select, such as MongoDB, and why?”
  17. How can MongoDB be used in a doctor appointment booking system?

    Asked once · last asked Sep 10 · Design · Mid-level

    Show answer

    MongoDB can store patient profiles, doctor schedules, and appointment records as documents. Each appointment can link a patient and doctor by their IDs and include a time and status. Indexes help find available times quickly, while atomic updates help prevent two patients from booking the same slot.

    • Use references to connect patients, doctors, and appointments without copying full profiles.
    • Index fields used to search, such as doctor ID, appointment time, and status.
    • For fixed time slots, reserve a slot with an atomic update that checks it is still available.
    • Use a transaction when booking requires several document changes to succeed together.

    What the interviewer checks: The interviewer is checking whether you can design documents, support fast searches, and prevent double booking.

  18. What factors might justify migrating a microservice to MongoDB?

    Asked once · last asked Feb 23 · Scenario · Mid-level

    Show answer

    Moving a microservice to MongoDB makes sense when its data fits documents and its queries usually read or update one document at a time. Flexible fields and a clear need for horizontal scaling can also justify it. Check that these benefits outweigh weaker support for joins, transaction costs, and migration work.

    • Choose based on the service’s data and query patterns, not just because it is a microservice.
    • Embedding related data can reduce joins, but growing arrays and duplicated data need care.
    • MongoDB supports multi-document transactions, but they add overhead.
    • Test performance and include migration, indexing, backups, and team skills in the decision.

    What the interviewer checks: The interviewer checks whether you can match database strengths to service needs and explain the trade-offs.

  19. When would you use MongoDB rather than Redis, and what tasks suit each?

    Asked once · last asked Feb 23 · Scenario · Mid-level

    Show answer

    I would use MongoDB rather than Redis for long-term document storage with flexible queries and indexes. MongoDB suits product catalogs, user profiles, and application records. Redis suits fast access to in-memory data, such as caches, sessions, counters, and leaderboards. Redis supports persistence, but memory cost and durability settings matter.

    • MongoDB supports document queries, secondary indexes, and aggregation.
    • Redis provides data structures such as hashes, sets, and sorted sets.
    • Redis expiration features suit temporary data, such as cached results and sessions.
    • They often work together: MongoDB stores records, while Redis caches frequently used data.

    What the interviewer checks: The interviewer checks whether you match storage, query, speed, and durability needs to each database.

    Other ways it was asked
    • “How would you justify choosing MongoDB over Redis for an application?”
    • “What kinds of tasks are MongoDB and Redis each suited for?”
  20. Why might MongoDB alone be insufficient for a chat service that stores messages, photos, and other attachments?

    Asked once · last asked Feb 23 · Scenario · Mid-level

    Show answer

    MongoDB can store messages and attachment details, but large files often fit better in object storage. It can store files through GridFS, though that adds database load. A chat service also needs live delivery and connection handling, which MongoDB alone does not provide.

    • Store messages and file references in MongoDB; store large attachments in object storage.
    • MongoDB documents have a 16 MiB size limit; GridFS splits larger files into chunks.
    • WebSocket servers handle live connections; a messaging layer can distribute messages across servers.
    • A CDN can speed up photo and attachment downloads.

    What the interviewer checks: The interviewer checks whether you separate data storage, file delivery, and live messaging needs.

MongoDB and NoSQL basics interview questions

Start with database types, SQL versus NoSQL, MongoDB uses, BSON, the _id field, and flexible schemas. 6 questions.

    SQL vs NoSQL database selection interview questions

    Compare database choices for bookings, chat, banking, social networks, transactional systems, and growing applications. 17 questions.

    1. For a transactional system, how would you choose between a relational database such as SQL Server and MongoDB?

      Asked once · last asked Apr 2 · Design · Mid-level

    2. What are the differences between MongoDB and Amazon DynamoDB?

      Asked once · last asked Jun 3 · Concept · Junior

    3. How different are DB2, MongoDB, and Oracle?

      Asked once · last asked Sep 9 · Concept · Mid-level

    4. For a simple application that may not need relational data, how would you choose between MongoDB, PostgreSQL, and Oracle?

      Asked once · last asked Sep 9 · Scenario · Mid-level

    5. For an e-commerce application, what database would you choose, and what would you choose for a banking application?

      Asked once · last asked Sep 21 · Design · Senior

    6. What factors guide your choice of databases for a backend project?

      Asked once · last asked Oct 23 · Design · Mid-level

    7. What database would you choose for an application that needs to scale from 100 users to millions, and why?

      Asked once · last asked Sep 21 · Design · Mid-level

    MongoDB data modeling and consistency interview questions

    Explore schema design, denormalization, related document consistency, and the difference between business transactions and activity logs. 6 questions.

    1. How do you design a schema in MongoDB?

      Asked once · last asked Mar 9 · Concept · Mid-level

    2. What does transactional data mean in MongoDB, and how does it differ from user activity logs, for example when storing bookings or business transactions?

      Asked once · last asked Jun 18 · Concept · Mid-level

      Other ways it was asked
      • “What kinds of data might an application store in MongoDB, such as booking records, business data, or user activity logs?”
    3. How do you organize denormalized or NoSQL data models while keeping their structure consistent?

      Asked once · last asked Jul 27 · Concept · Mid-level

    4. How does normalization apply to NoSQL databases?

      Asked once · last asked Oct 23 · Concept · Mid-level

    5. How do you approach designing and working with NoSQL databases?

      Asked once · last asked Mar 9 · Concept · Mid-level

    MongoDB queries, aggregation, and indexing interview questions

    Check how you retrieve data with projection, query operators, aggregation, and joins, and choose indexes for efficient access. 8 questions.

    1. When building a secondary index for candidates by passport number, what should each index entry store?

      Asked once · last asked Mar 6 · Concept · Mid-level

    2. What is the $match operator in MongoDB aggregation?

      Asked once · last asked Apr 16 · Concept · Junior

    3. How does the $lookup operator work in MongoDB, and how is it similar to joins between SQL tables?

      Asked once · last asked Apr 16 · Concept · Mid-level

    4. How do you choose indexes on a MongoDB collection?

      Asked once · last asked Sep 4 · Scenario · Mid-level

    5. How do MongoDB indexes improve query performance?

      Asked once · last asked Oct 16 · Concept · Mid-level

    6. What are query operators in MongoDB?

      Asked once · last asked Jul 20 · Concept · Junior

    MongoDB application development and Mongoose interview questions

    Application questions cover Node.js connections, Mongoose, MEAN, Java repositories, optional filters, request validation, error monitoring, and implementation experience. 9 questions.

    1. How would you use Java and MongoDB to build a high-performance application that accepts optional filters, such as product name and price, and returns matching products? Describe the approach in pseudocode.

      Asked once · last asked Mar 20 · Write code · Senior

    2. How would you structure the function and business logic, including building the filters and implementing the repository that accesses MongoDB?

      Asked once · last asked Mar 20 · Write code · Mid-level

    3. How would you validate a product request before querying MongoDB, then handle and monitor a product-not-found result?

      Asked once · last asked Mar 20 · Scenario · Mid-level

    4. What are the disadvantages of using Mongoose?

      Asked once · last asked Apr 16 · Concept · Mid-level

    5. Can you tell me about a complex MongoDB implementation you’ve worked on?

      Asked once · last asked May 27 · Behavioral · Senior

    6. How do you connect to a MongoDB server from a Node.js application?

      Asked once · last asked Jul 20 · Tooling · Junior

      Other ways it was asked
      • “How do you connect a MongoDB server from a Node.js application?”
    7. What is the MEAN stack?

      Asked once · last asked Apr 3 · Concept · Junior

    8. Can you explain what Mongoose is and where it is used?

      Asked once · last asked Apr 16 · Concept · Junior

    9. What does Mongoose's model function do after you create a schema?

      Asked once · last asked Sep 15 · Concept · Junior

    DynamoDB and Azure Cosmos DB interview questions

    Review DynamoDB and Azure Cosmos DB keys, indexes, queries, scans, streams, exports, record counts, hot partitions, concurrency, and AWS database choices. 13 questions.

    1. What are the two main DynamoDB operations for retrieving items, and how do they differ?

      Asked once · last asked Mar 3 · Concept · Mid-level

    2. What are global secondary indexes (GSIs) and local secondary indexes (LSIs) in DynamoDB, and how do they differ?

      Asked once · last asked Mar 3 · Concept · Mid-level

    3. When multiple Lambdas may update the same entity, such as an order status, how do you prevent race conditions? Would you use DynamoDB conditional writes, transactions, SQS FIFO, Step Functions, or something else, and why?

      Asked once · last asked May 29 · Scenario · Senior

    4. How do you capture and process events from a DynamoDB Stream?

      Asked once · last asked Jun 23 · Scenario · Mid-level

    5. How do you design the primary key and global secondary indexes in DynamoDB?

      Asked once · last asked Jun 23 · Scenario · Senior

    6. How do you avoid table scans when querying DynamoDB?

      Asked once · last asked Jun 23 · Scenario · Mid-level

    7. How would you choose between DynamoDB, Aurora, RDS, or a combination for a transactional workload?

      Asked once · last asked Jul 27 · Scenario · Senior

    8. What causes hot partitions in DynamoDB?

      Asked once · last asked Aug 30 · Concept · Mid-level

    9. If your application runs in AWS with only 1 GB of memory but must read more than 100 GB from DynamoDB and write it to a file, what is your approach?

      Asked once · last asked Sep 2 · Scenario · Senior

    10. How does retrieving a record count differ between DynamoDB and MongoDB?

      Asked once · last asked Sep 9 · Concept · Mid-level

    11. What is the purpose of a partition key in Azure Cosmos DB?

      Asked once · last asked Sep 23 · Concept · Mid-level

    12. What criteria do you consider when designing a DynamoDB data model to avoid problems with future queries?

      Asked once · last asked Oct 23 · Scenario · Senior

    Show 1 more
    1. What are the primary keys in DynamoDB?

      Asked once · last asked Mar 3 · Concept · Junior

    Graph databases and Redis interview questions

    Graph and Redis questions cover Neo4j, Cypher, database choices, query costs, schema changes, geospatial storage, commands, and data structures. 9 questions.

    1. How can geospatial data be stored, and what kind of database would you use for graph data?

      Asked once · last asked Jun 11 · Concept · Mid-level

    2. How would you handle versioning and schema evolution for a large-scale graph database in Neo4j or AWS Neptune while ensuring data integrity and minimal downtime?

      Asked once · last asked Jul 16 · Design · Senior

    3. Can you write the Cypher equivalent of a simple SQL query like SELECT * FROM table WHERE name = 'example'?

      Asked once · last asked Aug 20 · Write code · Mid-level

      Other ways it was asked
      • “Can you write the Cypher equivalent of a simple SQL query like SELECT * FROM table WHERE name = 'Harish'?”
    4. When choosing between a graph database and a traditional database, what considerations would you keep in mind?

      Asked once · last asked Sep 10 · Design · Senior

    5. What is your view on query cost, and how would you manage it when choosing between a traditional SQL database and a knowledge graph?

      Asked once · last asked Sep 10 · Design · Senior

    6. What Redis commands or data structures would you use beyond basic GET/SET operations, and when would you choose them?

      Asked once · last asked Mar 19 · Tooling · Mid-level

      Other ways it was asked
      • “What Redis commands or data structures can you use to retrieve data besides GET and SET, and when would you choose them?”
    7. What is Neo4j, and what kind of language does it use?

      Asked once · last asked Aug 20 · Concept · Junior

    8. What tools are used at each stage of a knowledge graph project, beyond Neo4j?

      Asked once · last asked Oct 23 · Tooling · Mid-level

    9. How do users typically consume knowledge graph data: through BI tools such as Power BI or directly in Neo4j?

      Asked once · last asked Oct 23 · Scenario · Mid-level

    Search questions explore Elasticsearch, OpenSearch, Solr, query execution, BM25 relevance, MongoDB synchronization, Solarium, and Magento integration. 8 questions.

    1. How would you ensure reliable data synchronization between MongoDB and OpenSearch?

      Asked once · last asked Sep 7 · Design · Senior

      Other ways it was asked
      • “How would you minimize synchronization delays between MongoDB and OpenSearch?”
      • “How would you design reliable synchronization between MongoDB, OpenSearch, and APIs?”
    2. How does a search work in OpenSearch, from receiving a query to producing results?

      Asked once · last asked Apr 27 · Concept · Senior

    3. What data does Elasticsearch return to Magento, and what problem does Elasticsearch solve?

      Asked once · last asked Apr 27 · Concept · Mid-level

    4. If Elasticsearch returns only product IDs, how does Magento load the corresponding products and return them to the frontend?

      Asked once · last asked Apr 27 · Concept · Senior

    5. What is Solarium, and how does it work with Apache Solr?

      Asked once · last asked May 25 · Concept · Mid-level

    6. How does BM25 relate to Elasticsearch's relevance-scoring mechanism, and does it replace that mechanism?

      Asked once · last asked Oct 2 · Concept · Senior

    7. What is Elasticsearch?

      Asked once · last asked Jul 21 · Concept · Junior

    NoSQL scaling, performance, and troubleshooting interview questions

    Work through MongoDB sharding, slow queries, database troubleshooting, bulk loading, and highly available etcd cluster design. 5 questions.

    1. What database problems can arise when using MongoDB, and how would you investigate them?

      Asked once · last asked Jun 18 · Scenario · Mid-level

    2. How do you architect highly available etcd clusters across multiple on-premises server racks or server rooms?

      Asked once · last asked Aug 30 · Design · Senior

    3. How would you bulk-load large amounts of data into Oracle compared with MongoDB?

      Asked once · last asked Sep 9 · Tooling · Mid-level

    4. How would you troubleshoot and fix a MongoDB query that is taking five seconds to respond?

      Asked once · last asked Sep 13 · Scenario · Senior

    5. What is sharding in MongoDB, and when would you use it?

      Asked once · last asked Sep 21 · Concept · Senior

    How this list is made

    Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.

    Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.

    The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every MongoDB and NoSQL interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.

    74 interviews, 66 candidates, Feb 2026 to Oct 2026. Updated every month with new interviews.