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?
Replicates the user environment to identify discrepancies; checks logs for errors or warnings related to the feature; validates external service responses; inspects data consistency in the production database; considers recent code changes that might have affected the feature.
You discover that the issue is due to a data discrepancy. How do you handle data migrations to ensure consistency?
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?
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?
Refactors to use 'Include' for eager loading related entities; considers using 'Batch' processing to reduce round trips; analyses LINQ queries for optimization; reviews for possible use of stored procedures; evaluates the possibility of caching frequently accessed data.
What are the implications of using caching in this context?
Describes the migration context and objectives; identifies specific technical hurdles encountered; explains the strategies implemented to address these hurdles; reflects on outcomes and any unforeseen issues; provides insight into team collaboration during the process.
What would you do to better prepare for the migration next time?
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.