Explain Connection Resiliency and Execution Strategies in EF Core.

Updated Apr 28, 2026

Short answer

Connection resiliency handles transient database connection failures by automatically retrying failed commands.

Deep explanation

In cloud environments (like Azure SQL), connections can drop momentarily. EF Core provides an Execution Strategy (like EnableRetryOnFailure) that automatically retries transactions. When using custom execution strategies, explicit transactions require manual invocation of the execution strategy's Execute() method to ensure the entire transaction block is retried.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Entity Framework interview questions

View all →