Lyra
Learn
AI Learning Platform
π Midnight
π Comfort
π₯ Ember
π Paper
β Contrast
Exams
Sign in to track progress
β Back to the lesson
Module 5 Β· Quiz
Saving, Transactions, and Concurrency
1. What happens when SaveChanges is called in Entity Framework?
It directly updates the database without tracking changes.
It accumulates changes and executes them in a single transaction.
It permanently deletes all marked entities without confirmation.
It automatically rolls back all changes made in the context.
2. What is the purpose of optimistic concurrency in Entity Framework?
To improve the performance of SaveChanges calls.
To prevent overwriting changes made by another user.
To allow multiple users to edit the same record simultaneously without issues.
To ensure all transactions are committed automatically.
3. When should explicit transactions be used in Entity Framework?
When you want to save changes after every entity modification.
When an operation spans multiple SaveChanges calls or mixes with raw SQL.
When you want to validate data before saving any changes.
When handling database initialization.
4. Which action should be performed for transient faults in Entity Framework?
Notify the user immediately of the failure.
Automatically retry the operation using EnableRetryOnFailure().
Ignore the fault and continue processing.
Open a new transaction for every fault.
Submit answers
Continue: Performance and Troubleshooting β
Review this lesson
Retake quiz