PlacementPrep IndiaPowered by AcePrep
Core CSBeginner • Intermediate • Advanced

Database Management Systems (DBMS) Mock Interview

DBMS appears in almost every software engineering interview in India. Candidates often recite 1NF/2NF/3NF definitions but struggle when asked to justify indexing trade-offs, isolation anomalies, or why a project chose MongoDB over PostgreSQL.

Frequently Asked By:OracleSAP LabsAmazonGoldman SachsJP MorganRazorpayZomato

3-Level DBMS Placement Syllabus

Beginner Tier
  • Keys (Primary, Foreign, Candidate)
  • SQL Joins & Group By / Having
  • Normalization (1NF, 2NF, 3NF, BCNF)
  • Basic CRUD & Constraints
Intermediate Tier
  • ACID Properties & WAL
  • B-Tree / B+ Tree Indexing & Composite Indexes
  • SQL vs NoSQL Data Modeling
  • Query Execution Plans (EXPLAIN)
Advanced Tier
  • Transaction Isolation Levels & MVCC
  • Phantom Reads, Dirty Reads & Lost Updates
  • Sharding, Replication & CAP Theorem
  • Denormalization for Read-Heavy Workloads
INTERACTIVE BROWSER DEMO • ZERO INSTALL

Try a Spoken or Typed Mock Interview Right Now

DBMSBeginnerQ1 / 3

“What are ACID properties in a relational database, and can you give a real example (like a UPI payment) showing why each letter matters?”

Focus log (info only): 0 blurs • 0 pastes

High-Frequency Spoken DBMS Questions & Rubric Criteria

Study how interviewers probe beyond definitions with adaptive follow-ups and what AcePrep's 0–10 scoring rubric checks in your spoken explanation.

QUESTION 01Beginner

What are ACID properties in a relational database, and can you give a real example (like a UPI payment) showing why each letter matters?

Adaptive Follow-Up Probe

How does a database actually recover Durability and Atomicity if the server loses power mid-transaction?

What the Rubric Checks

  • • Defines Atomicity, Consistency, Isolation, Durability with concrete UPI transfer example
  • • Mentions Write-Ahead Logging (WAL) for crash recovery
  • • Avoids confusing Consistency in ACID with CAP consistency

High-Scoring Answer Blueprint

Using a ₹500 UPI transfer: Atomicity ensures debit and credit both succeed or both roll back; Consistency maintains account balance invariants; Isolation prevents concurrent transfers from reading partial balances; Durability ensures committed transfers survive a crash via Write-Ahead Logging (WAL).

QUESTION 02Intermediate

How does a B+ Tree index speed up SQL queries, and why shouldn't you put an index on every column in a table?

Adaptive Follow-Up Probe

Suppose you create a composite index on (domain, difficulty, created_at). Will a query filtering only by difficulty use that index?

What the Rubric Checks

  • • Explains O(log n) lookup and sequential leaf-node scans
  • • Identifies write amplification, extra storage, and index maintenance overhead
  • • Correctly explains the leftmost-prefix rule for composite indexes

High-Scoring Answer Blueprint

B+ trees keep keys sorted with high fan-out for shallow O(log n) disk lookups and linked leaf nodes for fast range scans. Over-indexing slows INSERT/UPDATE/DELETE operations and consumes RAM/disk. Composite indexes follow the leftmost-prefix rule, so filtering only by the middle column cannot leverage the index effectively.

QUESTION 03Intermediate

Why might an interview platform like AcePrep choose MongoDB over PostgreSQL, and what trade-offs does that introduce?

Adaptive Follow-Up Probe

How do you mitigate weaker relational integrity in MongoDB when storing nested interview transcripts and rubric scores?

What the Rubric Checks

  • • Connects nested document model (questions, answers, scores, events) to MongoDB
  • • Acknowledges weaker relational joins and multi-document transaction overhead
  • • Proposes strict Mongoose schema validation and application-level invariants

High-Scoring Answer Blueprint

Interview records are naturally hierarchical documents containing questions, transcripts, sub-scores, and focus events, making MongoDB's document model fast to read/write as a unit. The trade-off is weaker relational integrity and complex cross-collection joins, mitigated via strict Mongoose schema validation.

DBMS Interview FAQs

Are SQL vs NoSQL questions common when I list MongoDB on my resume?

Extremely common! If your B.Tech capstone uses MERN (MongoDB, Express, React, Node), interviewers almost always ask why you picked MongoDB over PostgreSQL and how you handle schema validation.

Continue Practicing Related Tracks