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.
A.the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
B.the command that compares the current model to the last snapshot and generates a new migration class of the differences
C.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
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
A.Update-Database
B.idempotent script
C.Add-Migration
D.code-first migrations
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.code-first migrations — the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
B.code-first migrations — the command that applies pending migrations to bring the physical schema up to the current model
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
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
A.the command that applies pending migrations to bring the physical schema up to the current model
B.the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
C.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
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
A.Add-Migration
B.model snapshot
C.code-first migrations
D.Update-Database
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Add-Migration — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
B.Add-Migration — the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
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
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
A.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
B.the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
C.the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
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
A.model snapshot
B.idempotent script
C.Add-Migration
D.Update-Database
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.Update-Database — the command that compares the current model to the last snapshot and generates a new migration class of the differences
B.Update-Database — the command that applies pending migrations to bring the physical schema up to the current model
C.Update-Database — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
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
A.the command that compares the current model to the last snapshot and generates a new migration class of the differences
B.a generated SQL file that checks which migrations are already applied so it can be run safely against databases at any version
C.the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
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
A.code-first migrations
B.Add-Migration
C.model snapshot
D.Update-Database
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
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
B.model snapshot — the command that applies pending migrations to bring the physical schema up to the current model
C.model snapshot — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
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
A.the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
B.the command that applies pending migrations to bring the physical schema up to the current model
C.the command that compares the current model to the last snapshot and generates a new migration class of the differences
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
A.Add-Migration
B.model snapshot
C.idempotent script
D.Update-Database
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.idempotent script — the generated file recording the model state after the latest migration, used as the baseline for diffing the next one
B.idempotent script — the command that applies pending migrations to bring the physical schema up to the current model
C.idempotent script — the workflow where C# model changes drive incremental, versioned scripts that evolve the database schema
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.