Modeling interview questions

21 real Modeling questions from the EF Core bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is entity?

Junior
  1. A.a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
  2. B.a plain CLR class whose instances map to rows of a table in the model
  3. C.the default rules that infer keys, table names, and column types from class and property names without explicit configuration
  4. D.attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.entity — a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
  2. B.entity — a plain CLR class whose instances map to rows of a table in the model
  3. C.entity — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
  4. D.entity — attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
Reveal the answer + AI explanation — free account

4. What is conventions?

Mid
  1. A.the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
  2. B.the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
  3. C.the default rules that infer keys, table names, and column types from class and property names without explicit configuration
  4. D.a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
Reveal the answer + AI explanation — free account

5. Which term means: "the default rules that infer keys, table names, and column types from class and property names without explicit configuration"?

Mid
  1. A.entity
  2. B.data annotations
  3. C.conventions
  4. D.owned entity type
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.conventions — the default rules that infer keys, table names, and column types from class and property names without explicit configuration
  2. B.conventions — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
  3. C.conventions — a plain CLR class whose instances map to rows of a table in the model
  4. D.conventions — a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
Reveal the answer + AI explanation — free account

7. What is data annotations?

Junior
  1. A.attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
  2. B.the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
  3. C.a plain CLR class whose instances map to rows of a table in the model
  4. D.the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
Reveal the answer + AI explanation — free account

8. Which term means: "attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline"?

Junior
  1. A.data annotations
  2. B.OnModelCreating
  3. C.conventions
  4. D.owned entity type
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.data annotations — a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
  2. B.data annotations — a plain CLR class whose instances map to rows of a table in the model
  3. C.data annotations — attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
  4. D.data annotations — a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
Reveal the answer + AI explanation — free account

10. What is Fluent API?

Mid
  1. A.the default rules that infer keys, table names, and column types from class and property names without explicit configuration
  2. B.a plain CLR class whose instances map to rows of a table in the model
  3. C.the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
  4. D.the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
Reveal the answer + AI explanation — free account

11. Which term means: "the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence"?

Mid
  1. A.Fluent API
  2. B.conventions
  3. C.OnModelCreating
  4. D.owned entity type
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Fluent API — the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
  2. B.Fluent API — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
  3. C.Fluent API — a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
  4. D.Fluent API — attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
Reveal the answer + AI explanation — free account

13. What is OnModelCreating?

Mid
  1. A.the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
  2. B.a plain CLR class whose instances map to rows of a table in the model
  3. C.attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
  4. D.the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.OnModelCreating — the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
  2. B.OnModelCreating — the default rules that infer keys, table names, and column types from class and property names without explicit configuration
  3. C.OnModelCreating — a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
  4. D.OnModelCreating — a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
Reveal the answer + AI explanation — free account

16. What is shadow property?

Senior
  1. A.the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
  2. B.attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
  3. C.a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
  4. D.a plain CLR class whose instances map to rows of a table in the model
Reveal the answer + AI explanation — free account

17. Which term means: "a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class"?

Senior
  1. A.conventions
  2. B.owned entity type
  3. C.Fluent API
  4. D.shadow property
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.shadow property — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
  2. B.shadow property — a field that exists in the model and is stored in the database but has no corresponding CLR property on the entity class
  3. C.shadow property — a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
  4. D.shadow property — attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
Reveal the answer + AI explanation — free account

19. What is owned entity type?

Senior
  1. A.a plain CLR class whose instances map to rows of a table in the model
  2. B.a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
  3. C.attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
  4. D.the default rules that infer keys, table names, and column types from class and property names without explicit configuration
Reveal the answer + AI explanation — free account

20. Which term means: "a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table"?

Senior
  1. A.data annotations
  2. B.owned entity type
  3. C.Fluent API
  4. D.entity
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.owned entity type — attributes placed directly on classes and properties, such as Key or Required, that declare mapping rules inline
  2. B.owned entity type — the chained method-based configuration written in OnModelCreating that overrides conventions and annotations with the highest precedence
  3. C.owned entity type — the overridable method receiving a ModelBuilder where the shape of the model is configured programmatically
  4. D.owned entity type — a type that has no identity of its own and is always persisted as part of its owner, typically mapped into the same table
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Modeling free