Migrations interview questions

15 Migrations questions from the EF Core bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is code-first migrations?

Junior
  1. A.the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
  2. B.the command that compares the current model to the last snapshot and generates a new migration class of the differences
  3. C.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
  4. D.the generated file recording the model state after the latest migration, used as the baseline for diffing the next one

Answer + AI explanation with Pro

2. Which term means: "the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema"?

Junior
  1. A.Update-Database
  2. B.idempotent script
  3. C.Add-Migration
  4. D.code-first migrations

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.code-first migrations — the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
  2. B.code-first migrations — the command that applies pending migrations to bring the physical schema up to the current model
  3. C.code-first migrations — a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
  4. D.code-first migrations — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema

Answer + AI explanation with Pro

4. What is Add-Migration?

Junior
  1. A.the command that applies pending migrations to bring the physical schema up to the current model
  2. B.the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
  3. C.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
  4. D.the command that compares the current model to the last snapshot and generates a new migration class of the differences

Answer + AI explanation with Pro

5. Which term means: "the command that compares the current model to the last snapshot and generates a new migration class of the differences"?

Junior
  1. A.Add-Migration
  2. B.model snapshot
  3. C.code-first migrations
  4. D.Update-Database

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Add-Migration — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
  2. B.Add-Migration — the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
  3. C.Add-Migration — a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
  4. D.Add-Migration — the command that compares the current model to the last snapshot and generates a new migration class of the differences

Answer + AI explanation with Pro

7. What is Update-Database?

Junior
  1. A.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
  2. B.the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
  3. C.the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
  4. D.the command that applies pending migrations to bring the physical schema up to the current model

Answer + AI explanation with Pro

8. Which term means: "the command that applies pending migrations to bring the physical schema up to the current model"?

Junior
  1. A.model snapshot
  2. B.idempotent script
  3. C.Add-Migration
  4. D.Update-Database

Answer + AI explanation with Pro

9. Which statement is correct?

Junior
  1. A.Update-Database — the command that compares the current model to the last snapshot and generates a new migration class of the differences
  2. B.Update-Database — the command that applies pending migrations to bring the physical schema up to the current model
  3. C.Update-Database — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
  4. D.Update-Database — the generated file recording the model state after the latest migration, used as the baseline for diffing the next one

Answer + AI explanation with Pro

10. What is model snapshot?

Mid
  1. A.the command that compares the current model to the last snapshot and generates a new migration class of the differences
  2. B.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
  3. C.the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
  4. D.the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema

Answer + AI explanation with Pro

11. Which term means: "the generated file recording the model state after the latest migration, used as the baseline for diffing the next one"?

Mid
  1. A.code-first migrations
  2. B.Add-Migration
  3. C.model snapshot
  4. D.Update-Database

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.model snapshot — a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
  2. B.model snapshot — the command that applies pending migrations to bring the physical schema up to the current model
  3. C.model snapshot — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
  4. D.model snapshot — the generated file recording the model state after the latest migration, used as the baseline for diffing the next one

Answer + AI explanation with Pro

13. What is idempotent script?

Senior
  1. A.the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
  2. B.the command that applies pending migrations to bring the physical schema up to the current model
  3. C.the command that compares the current model to the last snapshot and generates a new migration class of the differences
  4. D.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version

Answer + AI explanation with Pro

14. Which term means: "a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version"?

Senior
  1. A.Add-Migration
  2. B.model snapshot
  3. C.idempotent script
  4. D.Update-Database

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.idempotent script — the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
  2. B.idempotent script — the command that applies pending migrations to bring the physical schema up to the current model
  3. C.idempotent script — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
  4. D.idempotent script — a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Migrations question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers