2–5 years · Mid — C# · ASP.NET Core · Entity Framework · SQL Server · LINQ · Azure
Checks for blocking calls in the async method; reviews the use of 'ConfigureAwait(false)'; analyses thread pool exhaustion and task scheduling; looks for synchronous code in async methods; considers using 'ValueTask' for performance improvements.
What specific code patterns could lead to thread pool exhaustion?
Identifies the service lifetime mismatch; changes the service registration from singleton to scoped; ensures that the service is not being accessed in a static context; checks for unintended shared state between requests; tests the application for thread safety after the change.
What are the implications of sharing state in a singleton service?
Examines the execution plan for bottlenecks; checks for missing indexes and suggests adding them; reviews database statistics for accuracy; considers query rewriting for efficiency; tests changes in a staging environment before deployment.
You find that the query is still slow after optimisation. How do you monitor its performance over time?
Checks deployment logs for specific error codes; verifies resource group and service configurations; inspects Azure App Service settings; reviews application settings for connection strings and secrets; determines if a rollback is necessary and how to communicate the issue.
The configuration error was caused by a missing environment variable. How do you prevent this from happening again?
Defines clear resource URIs and HTTP methods for CRUD operations; ensures idempotency for PUT and DELETE methods; implements proper status codes for responses; considers pagination for large datasets; validates input using model binding and data annotations.
How do you handle versioning of your API?
Details the specific feature and its context; outlines the key challenges faced during development; explains the solutions implemented to overcome these challenges; reflects on lessons learned; discusses the impact of the feature on users or the business.
What would you approach differently if given another chance?
Load six more — you will get questions you have not seen first.
Give me six more →Say your answer out loud before revealing. Reading the answer first feels like learning and is not.