Interview Questions › All questions

All Interview Questions — Topic-wise

1176 questions in learning order. Inside each topic the must-know questions come first, then the rest from easy to hard. Click a question to open its course's Q&A page with the short bullet-point answer.

★ Must know720 questions — asked in almost every interviewEasy to answerMedium to answerHard to answer
Fundamentals.NETDatabaseCloud & DevOpsFrontendAutomationWeb3Interview Questions

0. Fundamentals

Coding Round (DSA)23 questions · 16 must-know

  1. Reverse a string without using built-in Reverse.★ Must knowEasy to answer
  2. Check whether a string is a palindrome.★ Must knowEasy to answer
  3. Print the Fibonacci series up to n terms.★ Must knowEasy to answer
  4. Find duplicate elements in an array.★ Must knowEasy to answer
  5. Count the occurrences of each character in a string.★ Must knowEasy to answer
  6. Find the second largest number in an array.★ Must knowEasy to answer
  7. Two Sum: return indexes of two numbers that add up to a target.★ Must knowMedium to answer
  8. Find the length of the longest substring without repeating characters.★ Must knowMedium to answer
  9. Find the maximum subarray sum (Kadane's algorithm).★ Must knowMedium to answer
  10. Check for balanced parentheses.★ Must knowMedium to answer
  11. Reverse a linked list.★ Must knowMedium to answer
  12. Detect a loop in a linked list.★ Must knowMedium to answer
  13. Implement binary search. What is its complexity?★ Must knowMedium to answer
  14. Design and implement an LRU cache with O(1) get and put.★ Must knowHard to answer
  15. You are given 10 million log lines and must find the top 10 most frequent IP addresses with limited memory. How?★ Must knowHard to answer
  16. The interviewer says your O(n²) solution works — "can you do better?" What's your approach?★ Must knowHard to answer
  17. Check whether two strings are anagrams.MediumEasy to answer
  18. Swap two numbers without a third variable.MediumEasy to answer
  19. What sorting algorithm does .NET use? Is it stable?MediumMedium to answer
  20. Find the height of a binary tree and print it level by level.MediumMedium to answer
  21. Find the top K frequent elements.MediumHard to answer
  22. Count the number of islands in a 2D grid.MediumHard to answer
  23. You get stuck halfway through a coding problem in an interview. What do you do?MediumHard to answer

Networking & Hosting: How the Web Works18 questions · 11 must-know

  1. What happens when you type a URL in the browser and press Enter?★ Must knowEasy to answer
  2. What is DNS and what are A, CNAME and MX records?★ Must knowEasy to answer
  3. What is the difference between HTTP and HTTPS?★ Must knowEasy to answer
  4. TCP vs UDP?★ Must knowEasy to answer
  5. What are the main HTTP methods and status codes?★ Must knowEasy to answer
  6. What is a load balancer? What algorithms does it use?★ Must knowMedium to answer
  7. What is a CDN and how does it improve performance?★ Must knowMedium to answer
  8. Forward proxy vs reverse proxy?★ Must knowMedium to answer
  9. How is an ASP.NET Core app hosted on IIS?★ Must knowMedium to answer
  10. Users report your site is down, but it works on your machine. How do you troubleshoot?★ Must knowHard to answer
  11. After moving the site to a new server, some users still reach the old server for hours. Why?★ Must knowHard to answer
  12. What is an IP address, a port and a socket? Public vs private IP?MediumEasy to answer
  13. What is the difference between HTTP/1.1, HTTP/2 and HTTP/3?MediumMedium to answer
  14. Cookies vs session vs local storage?MediumMedium to answer
  15. IaaS vs PaaS vs SaaS vs serverless?MediumMedium to answer
  16. How does TLS work and what does a certificate prove?MediumHard to answer
  17. An ASP.NET Core app on IIS shows "HTTP Error 500.30 — ASP.NET Core app failed to start". What do you check?MediumHard to answer
  18. Behind the load balancer, users are randomly logged out. Why?MediumHard to answer

Low-Level Design (LLD)16 questions · 9 must-know

  1. How do you approach an LLD question?★ Must knowEasy to answer
  2. Composition vs inheritance — which do you prefer in LLD and why?★ Must knowEasy to answer
  3. Explain association, aggregation and composition with examples.★ Must knowEasy to answer
  4. Design a parking lot — what are the key classes and patterns?★ Must knowMedium to answer
  5. When do you use the State pattern? Give an LLD example.★ Must knowMedium to answer
  6. How do you handle concurrency in an LLD (e.g. seat booking)?★ Must knowMedium to answer
  7. Design an ATM cash dispenser. Which pattern fits?★ Must knowMedium to answer
  8. Design an LRU cache with O(1) operations.★ Must knowHard to answer
  9. In a machine-coding round you have 90 minutes to build a working Splitwise. How do you plan your time?★ Must knowHard to answer
  10. What UML diagrams are useful in LLD interviews?MediumMedium to answer
  11. How would you make your design extensible for new requirements?MediumMedium to answer
  12. How would you design a notification module that supports email, SMS and push, and new channels later?MediumMedium to answer
  13. How do you map an LLD class model to database tables?MediumMedium to answer
  14. How do you design an elevator system?MediumHard to answer
  15. What makes a design "good" in an LLD interview?MediumHard to answer
  16. Your parking-lot design uses if (vehicle is Car) ... else if (vehicle is Bike) ... in five places. The interviewer adds "electric cars with charging spots". What do you change?MediumHard to answer

1. .NET

C#48 questions · 23 must-know

  1. What is the difference between a value type and a reference type?★ Must knowEasy to answer
  2. What is the difference between string and StringBuilder?★ Must knowEasy to answer
  3. Explain const vs readonly vs static readonly.★ Must knowEasy to answer
  4. What are boxing and unboxing? Why avoid them?★ Must knowEasy to answer
  5. What is the difference between == and .Equals()?★ Must knowEasy to answer
  6. What are ref, out and in parameters?★ Must knowEasy to answer
  7. Why should you use decimal instead of double for money?★ Must knowEasy to answer
  8. What is the difference between Parse, TryParse and Convert?★ Must knowEasy to answer
  9. What is the difference between Dictionary and Hashtable?★ Must knowEasy to answer
  10. What is the difference between a multidimensional and a jagged array?★ Must knowEasy to answer
  11. Explain IEnumerable, ICollection, IList and IQueryable.★ Must knowMedium to answer
  12. What are delegates and events? How do they differ?★ Must knowMedium to answer
  13. How does async/await work internally? Does it create a new thread?★ Must knowMedium to answer
  14. What is the difference between Task.WhenAll and awaiting tasks one by one?★ Must knowMedium to answer
  15. Why is async void dangerous?★ Must knowMedium to answer
  16. What is IDisposable and the using statement? Dispose vs Finalize?★ Must knowMedium to answer
  17. Explain garbage collection generations.★ Must knowMedium to answer
  18. How do you create a custom exception, and when should you?★ Must knowMedium to answer
  19. How do you make code thread-safe? Compare lock, Monitor, SemaphoreSlim, Interlocked and concurrent collections.★ Must knowHard to answer
  20. What causes a deadlock with async code and how do you avoid it?★ Must knowHard to answer
  21. A method builds a CSV of 200,000 rows using += on a string and takes minutes. What do you do?★ Must knowHard to answer
  22. Your API's memory keeps growing until the pod restarts. How would you investigate?★ Must knowHard to answer
  23. Two users update the same in-memory counter and some increments are lost. Why, and how do you fix it?★ Must knowHard to answer
  24. What is the difference between var, dynamic and object?MediumEasy to answer
  25. What is the difference between an array, ArrayList and List<T>?MediumEasy to answer
  26. When do you use for, foreach, while and do-while?MediumEasy to answer
  27. What is a namespace? Explain the two meanings of using.MediumEasy to answer
  28. What are anonymous types?MediumEasy to answer
  29. What is the difference between Stack and Queue?MediumEasy to answer
  30. What are extension methods? Any limitations?MediumMedium to answer
  31. What is the difference between struct and class?MediumMedium to answer
  32. What are records and when do you use them?MediumMedium to answer
  33. What are generics and what problem do they solve?MediumMedium to answer
  34. What is the difference between throw and throw ex?MediumMedium to answer
  35. What is the difference between Tuple and ValueTuple?MediumMedium to answer
  36. What is the difference between Func, Action and Predicate?MediumMedium to answer
  37. What is a multicast delegate?MediumMedium to answer
  38. How do you read a very large file efficiently in C#?MediumMedium to answer
  39. DateTime vs DateTimeOffset — which should you store?MediumMedium to answer
  40. What is a [Flags] enum?MediumMedium to answer
  41. What are Span<T> and Memory<T>?MediumHard to answer
  42. What is the difference between Task and ValueTask?MediumHard to answer
  43. A synchronous method calls GetDataAsync().Result and the app hangs under load. Explain and fix.MediumHard to answer
  44. You need to call 500 external URLs as fast as possible without getting rate-limited. How?MediumHard to answer
  45. You must count error lines in a 5 GB log file without running out of memory. How?MediumHard to answer
  46. After deploying to the cloud, order times shown to users are 5.5 hours off. What went wrong?MediumHard to answer
  47. What are covariance and contravariance?LowHard to answer
  48. What are source generators and why are they replacing reflection?LowHard to answer

.NET Internals: CLR, Memory & GC19 questions · 12 must-know

  1. What is the CLR and what does it do?★ Must knowEasy to answer
  2. What are CTS and CLS?★ Must knowEasy to answer
  3. What is IL (MSIL/CIL) and what does the JIT do?★ Must knowEasy to answer
  4. What is the difference between .NET Framework, .NET Core and .NET 5+?★ Must knowEasy to answer
  5. What is managed vs unmanaged code?★ Must knowEasy to answer
  6. What is an assembly? What does it contain?★ Must knowEasy to answer
  7. Explain how the garbage collector works. What are generations?★ Must knowMedium to answer
  8. Dispose vs Finalize — what's the difference? What is the Dispose pattern?★ Must knowMedium to answer
  9. Where are value types and reference types stored?★ Must knowMedium to answer
  10. Workstation vs Server GC?★ Must knowMedium to answer
  11. How do you find a memory leak in a production .NET application?★ Must knowHard to answer
  12. An ASP.NET Core API's memory grows steadily until the container is OOM-killed every few hours. What do you do?★ Must knowHard to answer
  13. What is the GAC and is it used in .NET Core?MediumMedium to answer
  14. AppDomain vs AssemblyLoadContext?MediumMedium to answer
  15. What is tiered compilation, ReadyToRun and Native AOT?MediumMedium to answer
  16. How does async/await work internally?MediumMedium to answer
  17. What is the Large Object Heap and why can it cause problems?MediumHard to answer
  18. How does virtual method dispatch work in the CLR?MediumHard to answer
  19. A console tool processes images and becomes slow with frequent gen-2 collections. Why?MediumHard to answer

OOP22 questions · 12 must-know

  1. What are the four pillars of OOP? Explain each with an example.★ Must knowEasy to answer
  2. What is the difference between a class and an object?★ Must knowEasy to answer
  3. What is the difference between method overloading and method overriding?★ Must knowEasy to answer
  4. What is the difference between an abstract class and an interface? When do you use which?★ Must knowEasy to answer
  5. Does C# support multiple inheritance?★ Must knowEasy to answer
  6. What are access modifiers? What are the defaults?★ Must knowEasy to answer
  7. What is the difference between method overriding and method hiding (new)?★ Must knowMedium to answer
  8. What is the difference between composition and inheritance? Why "favour composition"?★ Must knowMedium to answer
  9. Explain association, aggregation and composition with examples.★ Must knowMedium to answer
  10. Can you create an instance of an abstract class? Can an abstract class have a constructor?★ Must knowMedium to answer
  11. You have Bird with a Fly() method and now need Penguin. How do you model it?★ Must knowHard to answer
  12. A ReportGenerator class has methods for fetching data, formatting PDF and Excel, emailing and logging. It's 3,000 lines. How would you refactor it?★ Must knowHard to answer
  13. What is a constructor? Can it be private or static?MediumEasy to answer
  14. What is the sealed keyword?MediumEasy to answer
  15. What are virtual methods? Why aren't methods virtual by default in C#?MediumMedium to answer
  16. What is a static class? Static vs singleton?MediumMedium to answer
  17. Why must you override GetHashCode when you override Equals?MediumMedium to answer
  18. What is an interface default method (C# 8) and why was it added?MediumMedium to answer
  19. What are cohesion and coupling? How do you measure them in practice?MediumHard to answer
  20. Your team adds a new payment method every quarter, and each time someone edits a big switch statement in PaymentService. What design would you suggest?MediumHard to answer
  21. An interviewer asks you to design classes for a parking lot. What would you show?MediumHard to answer
  22. What are covariant return types (C# 9)?LowHard to answer

SOLID Principles15 questions · 8 must-know

  1. What are the SOLID principles? Explain each briefly.★ Must knowEasy to answer
  2. Give a real example of the Single Responsibility Principle.★ Must knowEasy to answer
  3. How do you implement the Open/Closed Principle in C#?★ Must knowEasy to answer
  4. Explain the Liskov Substitution Principle with the Rectangle–Square example.★ Must knowMedium to answer
  5. What is the difference between Dependency Inversion, Dependency Injection and Inversion of Control?★ Must knowMedium to answer
  6. What are the service lifetimes in ASP.NET Core DI and what is a captive dependency?★ Must knowMedium to answer
  7. Your NotificationService sends email via SMTP using new SmtpClient() inside the method. The business now wants SMS and WhatsApp too, and tests keep sending real emails. What do you change?★ Must knowHard to answer
  8. A code review shows if (shape is Circle) ... else if (shape is Square) ... in five places. What principle is violated and how do you fix it?★ Must knowHard to answer
  9. Give an Interface Segregation example from .NET itself.MediumMedium to answer
  10. Is it OK to violate SOLID sometimes?MediumMedium to answer
  11. Which design patterns support which SOLID principles?MediumMedium to answer
  12. How does Clean Architecture apply the Dependency Inversion Principle?MediumHard to answer
  13. A background service crashes with "Cannot consume scoped service from singleton". Explain and fix.MediumHard to answer
  14. How would you explain where you applied SOLID in your last project?MediumHard to answer
  15. What is the Stable Dependencies / Stable Abstractions principle?LowHard to answer

Design Patterns21 questions · 13 must-know

  1. What are design patterns? Name the three GoF categories.★ Must knowEasy to answer
  2. How do you implement a thread-safe Singleton in C#?★ Must knowEasy to answer
  3. What is the difference between Factory Method and Abstract Factory?★ Must knowEasy to answer
  4. What is the Strategy pattern? Where have you used it?★ Must knowEasy to answer
  5. What is the difference between Decorator and Adapter?★ Must knowMedium to answer
  6. Explain the Repository and Unit of Work patterns. Do you need them with EF Core?★ Must knowMedium to answer
  7. How is ASP.NET Core middleware an example of Chain of Responsibility?★ Must knowMedium to answer
  8. What is the Observer pattern and how does C# support it?★ Must knowMedium to answer
  9. Explain CQRS. When is it worth it?★ Must knowHard to answer
  10. What is the Outbox pattern and why is it needed?★ Must knowHard to answer
  11. How do Retry and Circuit Breaker work together?★ Must knowHard to answer
  12. The product details page calls the DB for every request and is slow. You can't change the repository class. Which pattern helps?★ Must knowHard to answer
  13. Your app must support three SMS vendors and switch between them by configuration or when one is down. Design it.★ Must knowHard to answer
  14. What is the Facade pattern? Give a real example.MediumMedium to answer
  15. What is the Builder pattern? Show .NET examples.MediumMedium to answer
  16. What is the Mediator pattern and what does MediatR do?MediumMedium to answer
  17. Template Method vs Strategy?MediumMedium to answer
  18. What is the Saga pattern?MediumHard to answer
  19. An expense approval needs Team Lead below ₹10,000, Manager up to ₹1,00,000, and Director above. Which pattern?MediumHard to answer
  20. When an order is placed you must save it, publish OrderPlaced to Service Bus, and never lose the message even if the broker is down. How?MediumHard to answer
  21. What is the Specification pattern?LowHard to answer

ADO.NET18 questions · 12 must-know

  1. What is ADO.NET? Name its main objects.★ Must knowEasy to answer
  2. What is the difference between connected and disconnected architecture?★ Must knowEasy to answer
  3. What is the difference between ExecuteReader, ExecuteScalar and ExecuteNonQuery?★ Must knowEasy to answer
  4. DataReader vs DataSet?★ Must knowEasy to answer
  5. How do you prevent SQL injection in ADO.NET?★ Must knowEasy to answer
  6. What is connection pooling? How do you troubleshoot pool exhaustion?★ Must knowMedium to answer
  7. How do you implement a transaction in ADO.NET?★ Must knowMedium to answer
  8. Why is AddWithValue considered bad practice?★ Must knowMedium to answer
  9. How do you call a stored procedure with output parameters?★ Must knowMedium to answer
  10. What is Dapper and how does it compare with EF Core and raw ADO.NET?★ Must knowMedium to answer
  11. Under load the API logs "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool." How do you fix it?★ Must knowHard to answer
  12. You must import a 2-million-row CSV into SQL Server nightly. How would you do it in .NET?★ Must knowHard to answer
  13. What is the using statement's role with SqlConnection?MediumEasy to answer
  14. What is SqlBulkCopy and when do you use it?MediumMedium to answer
  15. What is MARS?MediumMedium to answer
  16. How do you handle transient errors (e.g. Azure SQL failovers) in ADO.NET?MediumHard to answer
  17. How would you pass a list of 5,000 IDs to a SQL query efficiently?MediumHard to answer
  18. A query is fast in SSMS but slow from the application. Why?MediumHard to answer

LINQ21 questions · 13 must-know

  1. What is LINQ and what are its advantages?★ Must knowEasy to answer
  2. What is deferred execution? Which operators execute immediately?★ Must knowEasy to answer
  3. What is the difference between First, FirstOrDefault, Single and SingleOrDefault?★ Must knowEasy to answer
  4. What is the difference between Select and SelectMany?★ Must knowEasy to answer
  5. What is the difference between IEnumerable and IQueryable?★ Must knowEasy to answer
  6. How do you perform a left outer join in LINQ?★ Must knowMedium to answer
  7. Write a LINQ query to find the second highest salary.★ Must knowMedium to answer
  8. How do you group data and get counts or sums per group?★ Must knowMedium to answer
  9. What is the difference between Any() and Count() > 0?★ Must knowMedium to answer
  10. What are expression trees and why does EF Core need them?★ Must knowHard to answer
  11. What is the N+1 problem in LINQ/EF and how do you fix it?★ Must knowHard to answer
  12. A report screen calls db.Orders.ToList().Where(o => o.CustomerId == id) and is slow with 2 million orders. What's wrong?★ Must knowHard to answer
  13. Given a list of employees, write LINQ to return each department's highest-paid employee and the department's average salary.★ Must knowHard to answer
  14. Query syntax vs method syntax — which is better?MediumEasy to answer
  15. What is the difference between ToList(), ToArray(), ToDictionary() and ToLookup()?MediumMedium to answer
  16. What is the difference between Union and Concat? Distinct with custom objects?MediumMedium to answer
  17. What does let do in query syntax?MediumMedium to answer
  18. Why might a LINQ query throw "could not be translated"?MediumHard to answer
  19. When would you use PLINQ, and when not?MediumHard to answer
  20. Find duplicate emails in a customer list and keep only the first record of each.MediumHard to answer
  21. A method returns IEnumerable<Order> from a DB query, and two foreach loops over it hit the database twice. Why, and how do you fix it?MediumHard to answer

Entity Framework (EF6 & Core)23 questions · 14 must-know

  1. What is Entity Framework Core and what are its advantages?★ Must knowEasy to answer
  2. Code-first vs database-first?★ Must knowEasy to answer
  3. What is DbContext? Is it thread-safe? What lifetime should it have?★ Must knowEasy to answer
  4. What are migrations? What commands do you use?★ Must knowEasy to answer
  5. What is the difference between eager, lazy and explicit loading?★ Must knowEasy to answer
  6. What is change tracking? What is AsNoTracking?★ Must knowMedium to answer
  7. Explain entity states in EF Core.★ Must knowMedium to answer
  8. What is the N+1 problem and how do you avoid it in EF Core?★ Must knowMedium to answer
  9. How does EF Core handle concurrency?★ Must knowMedium to answer
  10. How do you configure relationships? Data annotations vs Fluent API?★ Must knowMedium to answer
  11. How do you improve EF Core query performance?★ Must knowHard to answer
  12. A page listing 50 orders takes 5 seconds and the log shows 51 SQL queries. Fix it.★ Must knowHard to answer
  13. Two users edit the same product price at the same time and the later save silently overwrites the earlier one. How do you prevent lost updates?★ Must knowHard to answer
  14. You need to delete 5 million log rows older than 90 days nightly without blocking the app. What do you do?★ Must knowHard to answer
  15. What is the difference between Find and FirstOrDefault?MediumEasy to answer
  16. What are global query filters? Give use cases.MediumMedium to answer
  17. How do you execute raw SQL or stored procedures in EF Core?MediumMedium to answer
  18. What are ExecuteUpdate and ExecuteDelete?MediumMedium to answer
  19. What is the difference between DbContext and ObjectContext?MediumMedium to answer
  20. What is the difference between Update() and attaching then setting properties?MediumHard to answer
  21. EF Core vs EF6 — key differences?MediumHard to answer
  22. Deploying a migration renamed a column and dropped production data. How do you prevent this?MediumHard to answer
  23. A BackgroundService throws "A second operation was started on this context instance before a previous operation completed." Why?MediumHard to answer

Modern .NET: Host, Config, DI17 questions · 10 must-know

  1. What is the difference between .NET Framework, .NET Core and .NET 5/6/8/10?★ Must knowEasy to answer
  2. What is the CLR and what does it do?★ Must knowEasy to answer
  3. What is JIT compilation? What are ReadyToRun and Native AOT?★ Must knowEasy to answer
  4. What are LTS and STS releases?★ Must knowEasy to answer
  5. Explain the order of configuration sources in ASP.NET Core.★ Must knowMedium to answer
  6. What is the difference between IOptions, IOptionsSnapshot and IOptionsMonitor?★ Must knowMedium to answer
  7. What is a BackgroundService / IHostedService?★ Must knowMedium to answer
  8. How does the .NET garbage collector work? Workstation vs Server GC?★ Must knowHard to answer
  9. Your ASP.NET Core API on .NET 8 must keep getting security patches after November 2026. What do you do and when?★ Must knowHard to answer
  10. An API's CPU is fine but requests queue up and latency spikes under load. Thread count keeps growing. What's happening?★ Must knowHard to answer
  11. What is an assembly? What is the GAC?MediumEasy to answer
  12. What is .NET Standard? Do I still need it?MediumEasy to answer
  13. What is Kestrel? Do you still need IIS?MediumMedium to answer
  14. Framework-dependent vs self-contained deployment?MediumMedium to answer
  15. What are the limitations of Native AOT?MediumHard to answer
  16. How would you migrate a large ASP.NET MVC 5 app on .NET Framework 4.8 to .NET 10?MediumHard to answer
  17. Configuration works locally but in Azure App Service the app uses the wrong connection string. How do you debug it?MediumHard to answer

ASP.NET Core MVC23 questions · 14 must-know

  1. What is MVC? Explain the role of each component.★ Must knowEasy to answer
  2. Explain the ASP.NET Core MVC request lifecycle.★ Must knowEasy to answer
  3. What is the difference between ViewData, ViewBag and TempData?★ Must knowEasy to answer
  4. What is the difference between conventional and attribute routing?★ Must knowEasy to answer
  5. What is model binding?★ Must knowEasy to answer
  6. How does validation work in ASP.NET Core MVC?★ Must knowEasy to answer
  7. Partial view vs view component — when do you use which?★ Must knowMedium to answer
  8. What are filters? List the types and their execution order.★ Must knowMedium to answer
  9. What is the difference between middleware and filters?★ Must knowMedium to answer
  10. What are tag helpers? How are they better than HTML helpers?★ Must knowMedium to answer
  11. How do you prevent CSRF attacks in ASP.NET Core MVC?★ Must knowMedium to answer
  12. How does authentication differ between an MVC app and a Web API?★ Must knowHard to answer
  13. Users double-click "Place Order" and two orders are created. How do you fix it?★ Must knowHard to answer
  14. A product page shows another customer's order when the URL ID is changed. What is the bug and the fix?★ Must knowHard to answer
  15. What are _Layout, _ViewStart and _ViewImports?MediumEasy to answer
  16. What is the difference between RedirectToAction, Redirect and LocalRedirect?MediumMedium to answer
  17. What is Post-Redirect-Get and why is it used?MediumMedium to answer
  18. What is an Area in MVC?MediumMedium to answer
  19. How do you handle errors globally in MVC?MediumMedium to answer
  20. How would you implement resource-based authorisation (e.g. only the owner can edit a document)?MediumHard to answer
  21. How do you unit-test an MVC controller?MediumHard to answer
  22. Your MVC home page takes 4 seconds. Profiling shows 120 SQL queries per request. What do you do?MediumHard to answer
  23. After deploying, users see old CSS/JS from browser cache. How do you prevent this?MediumHard to answer

ASP.NET Core Web API25 questions · 17 must-know

  1. What is REST? What are its constraints?★ Must knowEasy to answer
  2. What is the difference between PUT, POST and PATCH?★ Must knowEasy to answer
  3. What is the difference between 401 and 403?★ Must knowEasy to answer
  4. What does the [ApiController] attribute do?★ Must knowEasy to answer
  5. What is middleware? How do you write custom middleware?★ Must knowEasy to answer
  6. What is the difference between IActionResult and ActionResult<T>?★ Must knowEasy to answer
  7. Controllers vs Minimal APIs — which do you choose?★ Must knowMedium to answer
  8. How does JWT authentication work in ASP.NET Core?★ Must knowMedium to answer
  9. What is CORS and why do you get CORS errors?★ Must knowMedium to answer
  10. Why should you use IHttpClientFactory?★ Must knowMedium to answer
  11. How do you handle exceptions globally in a Web API?★ Must knowMedium to answer
  12. How do you version an API?★ Must knowMedium to answer
  13. How do you make a POST endpoint idempotent (e.g. payments)?★ Must knowHard to answer
  14. How would you secure a public Web API end to end?★ Must knowHard to answer
  15. Your API returns 200 OK with { "success": false, "error": "Not found" } for everything. How would you improve it?★ Must knowHard to answer
  16. An endpoint that lists orders is slow (3 s) for a customer with 50,000 orders. What do you do?★ Must knowHard to answer
  17. A downstream payment API is slow and occasionally down, and your API threads pile up. How do you protect your service?★ Must knowHard to answer
  18. What is Swagger/OpenAPI and how do you add it to an ASP.NET Core API?MediumEasy to answer
  19. What is content negotiation?MediumMedium to answer
  20. How do you implement pagination? Offset vs keyset?MediumMedium to answer
  21. What are the rate-limiting algorithms in ASP.NET Core?MediumMedium to answer
  22. gRPC vs REST — when do you use gRPC?MediumHard to answer
  23. How do you test a Web API?MediumHard to answer
  24. Mobile clients on an old app version break when you rename a JSON field. How do you avoid this in future?MediumHard to answer
  25. After scaling the API to 3 instances, users randomly get logged out and in-memory cache data differs. Why?MediumHard to answer

Custom Controls & Components16 questions · 6 must-know

  1. What is the difference between a user control and a custom control in ASP.NET?★ Must knowEasy to answer
  2. What is a custom HTML helper in MVC and how do you create one?★ Must knowEasy to answer
  3. What are tag helpers? How do they differ from HTML helpers?★ Must knowEasy to answer
  4. View component vs partial view?★ Must knowMedium to answer
  5. How do you create a reusable Blazor component? How does a child notify a parent?★ Must knowMedium to answer
  6. Twenty MVC pages repeat the same "price with discount badge" markup with slight differences. What do you build?★ Must knowHard to answer
  7. What is the difference between Control, WebControl and CompositeControl in Web Forms?MediumEasy to answer
  8. How do you keep a custom Web Forms control's property value across postbacks?MediumMedium to answer
  9. What is a Razor Class Library?MediumMedium to answer
  10. How do you make a Blazor component support two-way binding with @bind-Value?MediumMedium to answer
  11. What are display and editor templates in MVC?MediumMedium to answer
  12. How do you share UI components across several ASP.NET Core applications?MediumMedium to answer
  13. What are dependency properties in WPF and why do custom controls use them?MediumHard to answer
  14. How do you test UI components?MediumHard to answer
  15. A dynamically created custom control in Web Forms loses its value and its Click event doesn't fire. Why?MediumHard to answer
  16. A Blazor grid component with 5,000 rows makes the page slow. How do you improve it?MediumHard to answer

Clean Code & Unit Testing18 questions · 10 must-know

  1. What is clean code? What practices do you follow?★ Must knowEasy to answer
  2. What is unit testing? What makes a good unit test?★ Must knowEasy to answer
  3. What is the difference between [Fact] and [Theory] in xUnit?★ Must knowEasy to answer
  4. What is mocking? Mock vs stub vs fake?★ Must knowMedium to answer
  5. How do you unit-test code that uses DateTime.Now, HttpClient or a database?★ Must knowMedium to answer
  6. What is TDD? Have you used it?★ Must knowMedium to answer
  7. What is the test pyramid?★ Must knowMedium to answer
  8. What do you check in a code review?★ Must knowMedium to answer
  9. You join a team with a 10-year-old codebase, no tests and frequent production bugs. What's your plan?★ Must knowHard to answer
  10. A reviewer rejects your PR saying the method is too long and untestable. How do you respond and fix it?★ Must knowHard to answer
  11. What are xUnit, NUnit and MSTest? Differences?MediumEasy to answer
  12. What are code smells? Name five and their fixes.MediumMedium to answer
  13. Merge vs rebase? What is a squash merge?MediumMedium to answer
  14. Trunk-based development vs GitFlow?MediumMedium to answer
  15. What is mutation testing?MediumHard to answer
  16. How do you prevent SQL injection and IDOR in a .NET API?MediumHard to answer
  17. A test passes locally but fails randomly in CI. What could cause it?MediumHard to answer
  18. Production logs show Object reference not set to an instance of an object with no context. How do you make this debuggable next time?MediumHard to answer

Microservices & System Design20 questions · 14 must-know

  1. What are microservices? What are their advantages and disadvantages?★ Must knowEasy to answer
  2. Monolith vs microservices — which would you choose for a new project?★ Must knowEasy to answer
  3. How do microservices communicate?★ Must knowEasy to answer
  4. What is an API gateway and why use one?★ Must knowEasy to answer
  5. What is "database per service" and how do you query data across services?★ Must knowMedium to answer
  6. Explain the saga pattern. Choreography vs orchestration?★ Must knowMedium to answer
  7. What is the outbox pattern and what problem does it solve?★ Must knowMedium to answer
  8. How do you make a service resilient to failures of its dependencies?★ Must knowMedium to answer
  9. What is idempotency and why is it important in distributed systems?★ Must knowMedium to answer
  10. How do you handle data consistency without distributed transactions?★ Must knowHard to answer
  11. Explain CQRS. When is it worth it?★ Must knowHard to answer
  12. Design a URL shortener.★ Must knowHard to answer
  13. An order service calls payment, which calls a slow fraud check; under load the whole site times out. What do you change?★ Must knowHard to answer
  14. Customers are charged twice when the client retries a payment request. Fix it.★ Must knowHard to answer
  15. REST vs gRPC — when would you choose gRPC?MediumMedium to answer
  16. How do you implement distributed tracing in .NET?MediumMedium to answer
  17. How do you version APIs and events without breaking consumers?MediumHard to answer
  18. How do you scale a .NET service horizontally?MediumHard to answer
  19. You must split a large .NET monolith into services. How do you start?MediumHard to answer
  20. A message consumer keeps failing on one bad message and blocks the queue. What do you do?MediumHard to answer

2. Database, ETL & BI

SQL Server & T-SQL30 questions · 21 must-know

  1. What is the difference between DELETE, TRUNCATE and DROP?★ Must knowEasy to answer
  2. What are the different types of joins?★ Must knowEasy to answer
  3. What is the difference between WHERE and HAVING?★ Must knowEasy to answer
  4. What is a primary key vs a unique key vs a foreign key?★ Must knowEasy to answer
  5. What is normalisation? Explain 1NF, 2NF and 3NF.★ Must knowEasy to answer
  6. Clustered vs non-clustered index?★ Must knowEasy to answer
  7. Write a query to find the second (or Nth) highest salary.★ Must knowEasy to answer
  8. How do you find and delete duplicate rows?★ Must knowEasy to answer
  9. What are the ACID properties of a transaction?★ Must knowEasy to answer
  10. Explain ROW_NUMBER, RANK and DENSE_RANK.★ Must knowMedium to answer
  11. What is a CTE? When would you use a recursive CTE?★ Must knowMedium to answer
  12. Stored procedure vs function?★ Must knowMedium to answer
  13. What are the transaction isolation levels in SQL Server?★ Must knowMedium to answer
  14. What is a deadlock and how do you handle it?★ Must knowMedium to answer
  15. Temp table vs table variable vs CTE?★ Must knowMedium to answer
  16. What makes a query non-SARGable? Give examples.★ Must knowMedium to answer
  17. What is parameter sniffing and how do you fix it?★ Must knowHard to answer
  18. How do you approach tuning a slow query?★ Must knowHard to answer
  19. A report query that used to take 2 seconds now takes 2 minutes. Nothing in the code changed. What do you check?★ Must knowHard to answer
  20. Write a query to get each department's top 3 earners.★ Must knowHard to answer
  21. Users report the Orders screen freezes at month-end when the finance job runs. How do you investigate and fix?★ Must knowHard to answer
  22. What is the difference between UNION and UNION ALL?MediumEasy to answer
  23. What is the difference between CHAR, VARCHAR, NCHAR and NVARCHAR?MediumEasy to answer
  24. What is the difference between ISNULL and COALESCE?MediumMedium to answer
  25. What are the magic tables in triggers?MediumMedium to answer
  26. What does NOLOCK do and why is it dangerous?MediumHard to answer
  27. Explain the backup types and recovery models.MediumHard to answer
  28. How would you design tables for an e-commerce order system?MediumHard to answer
  29. You must load 50 million rows into a table that is queried 24/7. How do you avoid downtime?MediumHard to answer
  30. What is lock escalation?LowHard to answer

ETL & Data Warehouse19 questions · 11 must-know

  1. What is ETL? Explain each step.★ Must knowEasy to answer
  2. What is the difference between ETL and ELT?★ Must knowEasy to answer
  3. What is a data warehouse? How is it different from an OLTP database?★ Must knowEasy to answer
  4. What are fact and dimension tables?★ Must knowEasy to answer
  5. What is the difference between a star schema and a snowflake schema?★ Must knowEasy to answer
  6. Explain Slowly Changing Dimensions Types 1, 2 and 3.★ Must knowMedium to answer
  7. What is a surrogate key and why use it in a warehouse?★ Must knowMedium to answer
  8. How do you implement an incremental load?★ Must knowMedium to answer
  9. How do you handle errors and bad data in ETL?★ Must knowMedium to answer
  10. The nightly ETL that used to take 1 hour now takes 5 hours and misses the SLA. How do you troubleshoot?★ Must knowHard to answer
  11. Business reports show sales totals 3% higher than the ERP. How do you find the cause?★ Must knowHard to answer
  12. What is a staging area and why use it?MediumEasy to answer
  13. What is the grain of a fact table and why is it important?MediumMedium to answer
  14. What are additive, semi-additive and non-additive measures?MediumMedium to answer
  15. What is CDC (Change Data Capture)?MediumMedium to answer
  16. Inmon vs Kimball — which approach would you choose?MediumHard to answer
  17. What is a late-arriving dimension (early-arriving fact) and how do you handle it?MediumHard to answer
  18. Design an ETL for daily sales from 50 store databases into a central warehouse.MediumHard to answer
  19. How do you test an ETL pipeline?MediumHard to answer

SSIS21 questions · 13 must-know

  1. What is SSIS and what is it used for?★ Must knowEasy to answer
  2. What is the difference between Control Flow and Data Flow?★ Must knowEasy to answer
  3. What are the different types of containers?★ Must knowEasy to answer
  4. What is a precedence constraint?★ Must knowEasy to answer
  5. What is the difference between variables and parameters?★ Must knowEasy to answer
  6. What are synchronous and asynchronous transformations? Give examples of blocking transformations.★ Must knowMedium to answer
  7. Explain the Lookup transformation cache modes.★ Must knowMedium to answer
  8. How do you handle errors in SSIS?★ Must knowMedium to answer
  9. How do you implement an incremental load in SSIS?★ Must knowMedium to answer
  10. What is the difference between the project and package deployment models?★ Must knowMedium to answer
  11. How do you improve the performance of a slow SSIS package?★ Must knowHard to answer
  12. A package that loads 10 million rows nightly suddenly fails with a truncation error on one column. How do you handle it?★ Must knowHard to answer
  13. You need to process every CSV file that lands in a folder, archive successfully processed files and move bad files to an error folder. Design it.★ Must knowHard to answer
  14. What is a connection manager?MediumEasy to answer
  15. What are checkpoints in SSIS?MediumMedium to answer
  16. Merge vs Merge Join vs Union All?MediumMedium to answer
  17. How do you deploy and schedule SSIS packages?MediumMedium to answer
  18. What are the SSISDB logging levels?MediumHard to answer
  19. How do you run SSIS in the cloud?MediumHard to answer
  20. The same package must run against DEV, QA and PROD servers with different connection strings and file paths. How do you configure it?MediumHard to answer
  21. Your Lookup returns "No Match" for values that clearly exist in the reference table. Why?MediumHard to answer

SSRS18 questions · 10 must-know

  1. What is SSRS and what are its main components?★ Must knowEasy to answer
  2. What is the difference between a table, matrix and list?★ Must knowEasy to answer
  3. What is the difference between a shared and an embedded data source?★ Must knowEasy to answer
  4. What are report parameters? How do you create cascading parameters?★ Must knowEasy to answer
  5. What is the difference between drill-down and drill-through reports?★ Must knowMedium to answer
  6. How do you pass a multi-value parameter to a stored procedure?★ Must knowMedium to answer
  7. What are subscriptions? Standard vs data-driven?★ Must knowMedium to answer
  8. How do you improve SSRS report performance?★ Must knowMedium to answer
  9. A report takes 3 minutes to open. ExecutionLog3 shows TimeDataRetrieval 170 seconds. What do you do?★ Must knowHard to answer
  10. Managers want each region's sales report emailed to them every Monday, but only their region. How?★ Must knowHard to answer
  11. What rendering/export formats does SSRS support?MediumEasy to answer
  12. What is the difference between caching and snapshots?MediumMedium to answer
  13. How do you show "Page X of Y" and alternating row colours?MediumMedium to answer
  14. How do you implement row-level security in SSRS?MediumMedium to answer
  15. What is the Lookup function? How is it different from a subreport?MediumHard to answer
  16. What happened to SSRS after SQL Server 2022?MediumHard to answer
  17. A report looks fine in the browser but the PDF export has blank pages. Why?MediumHard to answer
  18. Subscriptions suddenly stopped sending emails. How do you troubleshoot?MediumHard to answer

3. Cloud & DevOps

Git & GitHub19 questions · 11 must-know

  1. What is Git and how is it different from SVN/TFVC?★ Must knowEasy to answer
  2. What is the difference between git fetch and git pull?★ Must knowEasy to answer
  3. What is the staging area?★ Must knowEasy to answer
  4. How do you resolve a merge conflict?★ Must knowEasy to answer
  5. Merge vs rebase — differences and when to use each?★ Must knowMedium to answer
  6. git reset vs git revert?★ Must knowMedium to answer
  7. Which branching strategy have you used? Explain it.★ Must knowMedium to answer
  8. What is a pull request and what do you check in a code review?★ Must knowMedium to answer
  9. You committed a password and pushed it to GitHub. What do you do?★ Must knowHard to answer
  10. You made three commits on main by mistake instead of a feature branch (not pushed). Fix it.★ Must knowHard to answer
  11. A bad commit is already deployed from main. How do you undo it without rewriting history?★ Must knowHard to answer
  12. What does .gitignore do? A file is still tracked after adding it to .gitignore — why?MediumEasy to answer
  13. What is git stash?MediumMedium to answer
  14. What is cherry-pick and when would you use it?MediumMedium to answer
  15. What is a detached HEAD?MediumHard to answer
  16. How does git bisect help find a bug?MediumHard to answer
  17. How does Git store data internally?MediumHard to answer
  18. Your feature branch is two weeks behind main and has many conflicts. How do you bring it up to date?MediumHard to answer
  19. git push is rejected with "non-fast-forward". What does it mean?MediumHard to answer

Docker18 questions · 11 must-know

  1. What is Docker and why use it?★ Must knowEasy to answer
  2. What is the difference between a container and a virtual machine?★ Must knowEasy to answer
  3. What is the difference between an image and a container?★ Must knowEasy to answer
  4. Explain the common Dockerfile instructions. CMD vs ENTRYPOINT? COPY vs ADD?★ Must knowEasy to answer
  5. What is a multi-stage build and why use it?★ Must knowEasy to answer
  6. What is Docker Compose and when would you use it?★ Must knowMedium to answer
  7. How do containers in Docker communicate with each other?★ Must knowMedium to answer
  8. How do you reduce Docker image size?★ Must knowMedium to answer
  9. How do you handle secrets with Docker?★ Must knowMedium to answer
  10. Your ASP.NET Core container starts but you get "connection refused" on http://localhost:8080. What do you check?★ Must knowHard to answer
  11. The image is 2.1 GB and deploys slowly. How do you shrink it?★ Must knowHard to answer
  12. What is the difference between a volume and a bind mount?MediumEasy to answer
  13. What is layer caching? How do you write a cache-friendly Dockerfile?MediumMedium to answer
  14. What do container exit codes 0, 1, 137 and 143 mean?MediumMedium to answer
  15. How does Docker isolate containers under the hood?MediumHard to answer
  16. Why did Kubernetes "remove Docker" and does it matter?MediumHard to answer
  17. A container keeps restarting with exit code 137. What's happening?MediumHard to answer
  18. Developers need SQL Server, Redis and RabbitMQ locally to run the API. How do you make onboarding one command?MediumHard to answer

Kubernetes21 questions · 14 must-know

  1. What is Kubernetes and what problems does it solve?★ Must knowEasy to answer
  2. Explain the Kubernetes architecture.★ Must knowEasy to answer
  3. What is a Pod? Why not run containers directly?★ Must knowEasy to answer
  4. What is the difference between a Deployment, a ReplicaSet and a StatefulSet?★ Must knowEasy to answer
  5. What are the Service types in Kubernetes?★ Must knowEasy to answer
  6. What is the difference between ConfigMap and Secret?★ Must knowMedium to answer
  7. Explain liveness, readiness and startup probes.★ Must knowMedium to answer
  8. What is the difference between resource requests and limits? What happens when exceeded?★ Must knowMedium to answer
  9. How does a rolling update work? How do you roll back?★ Must knowMedium to answer
  10. What is an Ingress? How is it different from a LoadBalancer Service?★ Must knowMedium to answer
  11. How do you secure a Kubernetes cluster?★ Must knowHard to answer
  12. A pod is stuck in CrashLoopBackOff. How do you troubleshoot?★ Must knowHard to answer
  13. After deploying a new version, users get errors for a few seconds on every release. How do you get true zero-downtime deployments?★ Must knowHard to answer
  14. Pods are Pending with "0/3 nodes are available: insufficient memory". What do you do?★ Must knowHard to answer
  15. What is a namespace?MediumEasy to answer
  16. What is Helm?MediumMedium to answer
  17. How does autoscaling work in Kubernetes?MediumMedium to answer
  18. What is a sidecar container? Give examples.MediumHard to answer
  19. What happens when you run kubectl apply -f deployment.yaml?MediumHard to answer
  20. The API in AKS must read secrets from Azure Key Vault without storing any credentials. How?MediumHard to answer
  21. Should you run SQL Server inside Kubernetes for production?MediumHard to answer

Microsoft Azure20 questions · 13 must-know

  1. What are IaaS, PaaS and SaaS? Give Azure examples.★ Must knowEasy to answer
  2. Explain the Azure resource hierarchy.★ Must knowEasy to answer
  3. What is a managed identity and why use it?★ Must knowEasy to answer
  4. What are deployment slots in App Service?★ Must knowEasy to answer
  5. Service Bus vs Event Grid vs Event Hubs — when do you use each?★ Must knowMedium to answer
  6. What are Azure Functions triggers and bindings? Which hosting plan would you choose?★ Must knowMedium to answer
  7. What are Durable Functions?★ Must knowMedium to answer
  8. How do you choose between Azure SQL Database and Cosmos DB?★ Must knowMedium to answer
  9. What are Cosmos DB consistency levels?★ Must knowMedium to answer
  10. How would you design a highly available, globally distributed web app on Azure?★ Must knowHard to answer
  11. Your App Service API slows down every day at 9 AM and CPU hits 100%. What do you do?★ Must knowHard to answer
  12. An order API must notify inventory, billing and email services reliably when an order is placed. Design it on Azure.★ Must knowHard to answer
  13. A developer's connection string with the SQL admin password was found in appsettings.json in the repo. How do you fix the design?★ Must knowHard to answer
  14. What are availability zones and region pairs?MediumEasy to answer
  15. What is the difference between blob access tiers?MediumMedium to answer
  16. How do you secure secrets for an app hosted in Azure?MediumMedium to answer
  17. What is Azure API Management used for?MediumMedium to answer
  18. How do you reduce Azure costs for an application?MediumHard to answer
  19. Users in Europe complain the India-hosted site is slow. What can you do?MediumHard to answer
  20. Blob uploads must trigger thumbnail generation automatically. Which services?MediumHard to answer

4. Frontend

JavaScript24 questions · 17 must-know

  1. What is the difference between == and ===?★ Must knowEasy to answer
  2. What is the difference between var, let and const?★ Must knowEasy to answer
  3. What is hoisting?★ Must knowEasy to answer
  4. What are the primitive data types in JavaScript?★ Must knowEasy to answer
  5. What is the difference between null and undefined?★ Must knowEasy to answer
  6. What are arrow functions and how are they different from regular functions?★ Must knowEasy to answer
  7. What is a closure? Give a practical example.★ Must knowMedium to answer
  8. Explain the event loop.★ Must knowMedium to answer
  9. What is a Promise? Explain Promise.all, allSettled, race and any.★ Must knowMedium to answer
  10. How does this work in JavaScript?★ Must knowMedium to answer
  11. What is the difference between call, apply and bind?★ Must knowMedium to answer
  12. What is prototypal inheritance?★ Must knowMedium to answer
  13. What is event delegation and why use it?★ Must knowMedium to answer
  14. Debounce vs throttle — implement one.★ Must knowMedium to answer
  15. What causes memory leaks in JavaScript and how do you find them?★ Must knowHard to answer
  16. A search box calls the API on every keystroke and floods the server. How do you fix it?★ Must knowHard to answer
  17. A page becomes unresponsive while processing a 50 MB JSON file in the browser. What do you do?★ Must knowHard to answer
  18. What is the difference between shallow copy and deep copy?MediumMedium to answer
  19. What is the difference between map, forEach, filter and reduce?MediumMedium to answer
  20. What are async and defer on script tags?MediumMedium to answer
  21. What is the output of this code and why? for (var i=0;i<3;i++){ setTimeout(()=>console.log(i),0) }MediumHard to answer
  22. What is the difference between interface and type in TypeScript?MediumHard to answer
  23. Users report the app gets slower the longer it's open. How do you investigate?MediumHard to answer
  24. You need to call 3 independent APIs and show the page when all are done, but still show partial data if one fails. How?MediumHard to answer

Angular24 questions · 17 must-know

  1. What is Angular and how is it different from AngularJS?★ Must knowEasy to answer
  2. What are components and what is a standalone component?★ Must knowEasy to answer
  3. Explain the types of data binding in Angular.★ Must knowEasy to answer
  4. What are directives? Types of directives?★ Must knowEasy to answer
  5. What are pipes? Pure vs impure?★ Must knowEasy to answer
  6. Explain the component lifecycle hooks.★ Must knowMedium to answer
  7. What is dependency injection in Angular? What does providedIn: 'root' mean?★ Must knowMedium to answer
  8. Observable vs Promise?★ Must knowMedium to answer
  9. switchMap vs mergeMap vs concatMap vs exhaustMap?★ Must knowMedium to answer
  10. What are signals and why were they introduced?★ Must knowMedium to answer
  11. Template-driven vs reactive forms — which do you use?★ Must knowMedium to answer
  12. How do you implement route guards and lazy loading?★ Must knowMedium to answer
  13. Explain change detection. What does OnPush do? What is zoneless?★ Must knowHard to answer
  14. How do you prevent memory leaks in Angular?★ Must knowHard to answer
  15. A list of 10,000 rows renders slowly and scrolling lags. How do you optimise?★ Must knowHard to answer
  16. Your search box sends a request on every keystroke and results sometimes appear out of order. Fix it.★ Must knowHard to answer
  17. After login, some API calls still go out without the token, and expired tokens cause random 401s. How do you design auth handling?★ Must knowHard to answer
  18. What is the Angular CLI? Name common commands.MediumEasy to answer
  19. How do components communicate?MediumMedium to answer
  20. What is an HTTP interceptor?MediumMedium to answer
  21. What is SSR and hydration in Angular?MediumHard to answer
  22. What is NgRx and when should you use it?MediumHard to answer
  23. You get "ExpressionChangedAfterItHasBeenCheckedError". What does it mean and how do you fix it?MediumHard to answer
  24. How would you upgrade an Angular 12 app to the latest version?MediumHard to answer

React22 questions · 15 must-know

  1. What is React and what are its main features?★ Must knowEasy to answer
  2. What is JSX?★ Must knowEasy to answer
  3. What is the virtual DOM and reconciliation?★ Must knowEasy to answer
  4. What is the difference between props and state?★ Must knowEasy to answer
  5. Why are keys important in lists?★ Must knowEasy to answer
  6. Explain useEffect and its dependency array. How do you clean up?★ Must knowMedium to answer
  7. What are the Rules of Hooks and why do they exist?★ Must knowMedium to answer
  8. useMemo vs useCallback vs React.memo?★ Must knowMedium to answer
  9. What is the Context API? When would you not use it?★ Must knowMedium to answer
  10. useState vs useReducer?★ Must knowMedium to answer
  11. What is lifting state up?★ Must knowMedium to answer
  12. How do you optimise the performance of a React application?★ Must knowHard to answer
  13. What are React Server Components and how do they differ from SSR?★ Must knowHard to answer
  14. A dashboard with many widgets re-renders entirely when the user types in a search box. How do you fix it?★ Must knowHard to answer
  15. Fetching data in useEffect sometimes shows results for the previous user ID after switching quickly. Why and how to fix?★ Must knowHard to answer
  16. Controlled vs uncontrolled components?MediumEasy to answer
  17. What are custom hooks? Give an example.MediumMedium to answer
  18. What are error boundaries?MediumMedium to answer
  19. What's new in React 18 and 19?MediumHard to answer
  20. What causes infinite re-render loops and how do you fix them?MediumHard to answer
  21. How would you structure a large React application?MediumHard to answer
  22. A modal rendered inside a card is cut off by overflow: hidden on the card. How do you fix it in React?MediumHard to answer

Vue.js21 questions · 14 must-know

  1. What is Vue.js and why is it called progressive?★ Must knowEasy to answer
  2. What are the most commonly used Vue directives?★ Must knowEasy to answer
  3. What is the difference between v-if and v-show?★ Must knowEasy to answer
  4. What are computed properties and how are they different from methods and watchers?★ Must knowEasy to answer
  5. What is the purpose of the key attribute in v-for?★ Must knowEasy to answer
  6. Explain ref vs reactive.★ Must knowMedium to answer
  7. How does reactivity work in Vue 3? How is it different from Vue 2?★ Must knowMedium to answer
  8. Options API vs Composition API — which and why?★ Must knowMedium to answer
  9. What are the lifecycle hooks in Vue 3?★ Must knowMedium to answer
  10. What are slots and scoped slots?★ Must knowMedium to answer
  11. What is Pinia and how does it compare to Vuex?★ Must knowMedium to answer
  12. What are composables and how do they differ from mixins?★ Must knowHard to answer
  13. A page with a list of 20,000 items is slow to render and scroll. How do you fix it?★ Must knowHard to answer
  14. You destructure props or a reactive store and the UI stops updating. Why?★ Must knowHard to answer
  15. How do you pass data between parent and child components?MediumEasy to answer
  16. What is provide/inject?MediumMedium to answer
  17. How do navigation guards work in Vue Router?MediumMedium to answer
  18. What is nextTick and when do you need it?MediumHard to answer
  19. How does Vue's compiler optimise rendering?MediumHard to answer
  20. Your company has a large Vue 2 app. Vue 2 reached EOL in December 2023. What's your plan?MediumHard to answer
  21. A watcher calling an API fires too often while the user types. How do you control it?MediumHard to answer

5. Automation & Industry 4.0

Test Automation19 questions · 13 must-know

  1. What is the test pyramid and why does it matter?★ Must knowEasy to answer
  2. What should and shouldn't be automated?★ Must knowEasy to answer
  3. Which Selenium locators do you use and in what order?★ Must knowEasy to answer
  4. Implicit vs explicit vs fluent wait?★ Must knowEasy to answer
  5. What is the Page Object Model?★ Must knowEasy to answer
  6. Selenium vs Playwright — which would you choose?★ Must knowMedium to answer
  7. How do you handle StaleElementReferenceException?★ Must knowMedium to answer
  8. How do you design an automation framework from scratch?★ Must knowMedium to answer
  9. How do you test REST APIs? What do you validate?★ Must knowMedium to answer
  10. How do you run UI tests in parallel safely?★ Must knowHard to answer
  11. How do you integrate automated tests into CI/CD?★ Must knowHard to answer
  12. Your regression suite of 800 UI tests takes 6 hours and 10% fail randomly. What do you do?★ Must knowHard to answer
  13. A test passes locally but fails in the CI pipeline. How do you investigate?★ Must knowHard to answer
  14. What is data-driven testing?MediumMedium to answer
  15. How do you handle iframes, multiple windows, alerts and dropdowns in Selenium?MediumMedium to answer
  16. What is BDD and when is it worth it?MediumMedium to answer
  17. What metrics do you track for test automation?MediumHard to answer
  18. The developers change the UI often and your locators break every sprint. How do you fix this?MediumHard to answer
  19. How would you test a login page? List the cases.MediumHard to answer

Industrial Automation (PLC/SCADA)18 questions · 13 must-know

  1. What is a PLC and how is it different from a microcontroller or PC?★ Must knowEasy to answer
  2. Explain the PLC scan cycle.★ Must knowEasy to answer
  3. What are the IEC 61131-3 programming languages?★ Must knowEasy to answer
  4. What is the difference between SCADA, HMI and DCS?★ Must knowEasy to answer
  5. Why is 4–20 mA used instead of 0–20 mA or 0–10 V?★ Must knowEasy to answer
  6. Explain the start/stop seal-in (latching) circuit.★ Must knowMedium to answer
  7. Explain TON, TOF and counters with an example.★ Must knowMedium to answer
  8. What is Modbus? Explain its data model and function codes.★ Must knowMedium to answer
  9. What is OPC UA and why is it important for Industry 4.0?★ Must knowMedium to answer
  10. How would you collect data from 50 PLCs of different brands into a .NET application?★ Must knowHard to answer
  11. How do you secure an OT network?★ Must knowHard to answer
  12. A motor sometimes doesn't start when the operator presses Start on the HMI. How do you troubleshoot?★ Must knowHard to answer
  13. The MES shows wrong temperature values from a Modbus device. What could be wrong?★ Must knowHard to answer
  14. What is the difference between NO and NC contacts, and why is a stop button wired NC?MediumEasy to answer
  15. What is PID control? What do P, I and D do?MediumMedium to answer
  16. What is the difference between FAT and SAT?MediumMedium to answer
  17. What is the difference between a standard PLC and a safety PLC?MediumHard to answer
  18. Management wants to let a cloud dashboard write setpoints directly to PLCs. What do you advise?MediumHard to answer

Industry 4.0 & IIoT19 questions · 12 must-know

  1. What is Industry 4.0?★ Must knowEasy to answer
  2. What is IIoT and how is it different from consumer IoT?★ Must knowEasy to answer
  3. What is OEE and how is it calculated?★ Must knowEasy to answer
  4. What is an MES and how does it differ from ERP?★ Must knowEasy to answer
  5. What is MQTT and why is it popular in IIoT?★ Must knowMedium to answer
  6. Explain MQTT QoS levels.★ Must knowMedium to answer
  7. What is the difference between OPC UA and MQTT? When do you use which?★ Must knowMedium to answer
  8. What is edge computing and why is it needed in factories?★ Must knowMedium to answer
  9. How does predictive maintenance work? What data do you need?★ Must knowHard to answer
  10. Design a real-time OEE dashboard for 20 production lines.★ Must knowHard to answer
  11. A plant has 30-year-old machines without network connectivity. How do you bring them into an Industry 4.0 project?★ Must knowHard to answer
  12. OEE dashboards show 110 % performance on some lines. What is wrong?★ Must knowHard to answer
  13. What is ISA-95?MediumEasy to answer
  14. What is the Unified Namespace?MediumMedium to answer
  15. What are MTBF and MTTR?MediumMedium to answer
  16. What is a digital twin? Give a practical example.MediumHard to answer
  17. How do you handle millions of telemetry rows per day in SQL Server?MediumHard to answer
  18. Telemetry arrives late and out of order after network outages. How do you keep reports correct?MediumHard to answer
  19. Management asks: "How do we start Industry 4.0 with a small budget?"MediumHard to answer

6. Web3 & Blockchain

Blockchain & Web319 questions · 12 must-know

  1. What is blockchain? Explain it simply.★ Must knowEasy to answer
  2. What is Web3 and how is it different from Web2?★ Must knowEasy to answer
  3. What is a hash and why is it important in blockchain?★ Must knowEasy to answer
  4. What is the difference between a public and a private blockchain?★ Must knowEasy to answer
  5. What is a smart contract?★ Must knowEasy to answer
  6. Proof of Work vs Proof of Stake?★ Must knowMedium to answer
  7. Explain gas and EIP-1559.★ Must knowMedium to answer
  8. What are ERC-20 and ERC-721?★ Must knowMedium to answer
  9. What are layer 2 solutions? Optimistic vs ZK rollups?★ Must knowMedium to answer
  10. How would you build a backend in .NET that confirms crypto payments?★ Must knowHard to answer
  11. A user says their tokens were stolen even though they never shared their seed phrase. What likely happened, and how could the dApp have protected them?★ Must knowHard to answer
  12. Your company wants to "put the supply chain on the blockchain". How do you evaluate it?★ Must knowHard to answer
  13. What is a wallet? What happens if you lose your seed phrase?MediumEasy to answer
  14. What is the difference between the UTXO model and the account model?MediumMedium to answer
  15. What is an oracle and why is it needed?MediumMedium to answer
  16. What is the blockchain trilemma?MediumMedium to answer
  17. What are MEV and front-running?MediumHard to answer
  18. When should you NOT use a blockchain?MediumHard to answer
  19. Transactions from your backend keep failing with "nonce too low" or get stuck pending. How do you fix it?MediumHard to answer

Solidity19 questions · 13 must-know

  1. What is Solidity and what is the EVM?★ Must knowEasy to answer
  2. Explain function visibility in Solidity.★ Must knowEasy to answer
  3. What is the difference between view and pure functions?★ Must knowEasy to answer
  4. What are storage, memory and calldata?★ Must knowEasy to answer
  5. What is msg.sender vs tx.origin?★ Must knowEasy to answer
  6. What is a reentrancy attack and how do you prevent it?★ Must knowMedium to answer
  7. require vs revert vs assert vs custom errors?★ Must knowMedium to answer
  8. How do you send Ether from a contract? transfer vs send vs call?★ Must knowMedium to answer
  9. What changed in Solidity 0.8?★ Must knowMedium to answer
  10. How do upgradeable contracts work? What are the risks?★ Must knowHard to answer
  11. How do you reduce gas costs in a contract?★ Must knowHard to answer
  12. You must build a token sale contract that accepts USDC and gives buyers your token. What would you check for security?★ Must knowHard to answer
  13. A deployed contract has a bug that can drain funds, and it's not upgradeable. What do you do?★ Must knowHard to answer
  14. What are events and why use them?MediumEasy to answer
  15. What is the difference between an interface, an abstract contract and a library?MediumMedium to answer
  16. What are modifiers? Give an example.MediumMedium to answer
  17. Why is on-chain randomness hard, and how do you get it?MediumHard to answer
  18. What is the difference between call, delegatecall and staticcall?MediumHard to answer
  19. Your NFT mint is expensive and fails for some buyers because of gas. How do you improve it?MediumHard to answer

7. Interview Questions & Career

.NET Full Stack Interview26 questions · 18 must-know

  1. Explain the architecture of your current project end to end.★ Must knowEasy to answer
  2. What happens when a user clicks "Save" in your Angular/React app until the data is in SQL Server?★ Must knowEasy to answer
  3. What is the difference between authentication and authorization? Which status codes do they return?★ Must knowEasy to answer
  4. What is CORS and why do you get a CORS error only in the browser?★ Must knowEasy to answer
  5. Why do you return DTOs instead of EF entities from an API?★ Must knowEasy to answer
  6. How do you implement paging, sorting and searching in a full stack app?★ Must knowMedium to answer
  7. Where do you store the JWT in an SPA, and how do you refresh it?★ Must knowMedium to answer
  8. How do you handle errors globally in both the API and the UI?★ Must knowMedium to answer
  9. Explain the N+1 problem and how you detect and fix it.★ Must knowMedium to answer
  10. How do you make an API call from Angular and show loading and error states?★ Must knowMedium to answer
  11. How do you secure an ASP.NET Core Web API?★ Must knowMedium to answer
  12. How would you structure a new .NET full stack solution from scratch?★ Must knowHard to answer
  13. Your list page takes 8 seconds to load. How do you find and fix the problem?★ Must knowHard to answer
  14. Monolith or microservices for a new product? Justify.★ Must knowHard to answer
  15. The UI shows "CORS error" after you deployed the API to Azure, but it worked locally. What do you check?★ Must knowHard to answer
  16. A user can see another customer's orders by changing the id in the URL. What is wrong and how do you fix it?★ Must knowHard to answer
  17. After a release the API is slow and SQL CPU is at 100%. What do you do?★ Must knowHard to answer
  18. You are asked to add a "bulk upload products from Excel" feature. Walk through your design.★ Must knowHard to answer
  19. How do you handle two users editing the same record at the same time?MediumMedium to answer
  20. How do you manage configuration and secrets across dev, QA and production?MediumMedium to answer
  21. What does your CI/CD pipeline do for a full stack app?MediumMedium to answer
  22. How do you keep the API and the frontend contract in sync?MediumHard to answer
  23. How do you run long work (reports, emails, imports) without blocking the user?MediumHard to answer
  24. Two services need the same customer data. One team proposes sharing one database table. What do you advise?MediumHard to answer
  25. Your Angular/React app works locally but shows a blank page after deployment. How do you debug it?MediumHard to answer
  26. An order must be saved, stock reduced and an email sent. How do you keep these consistent?MediumHard to answer

HR & Behavioural25 questions · 15 must-know

  1. Tell me about yourself.★ Must knowEasy to answer
  2. Why should we hire you?★ Must knowEasy to answer
  3. What are your strengths?★ Must knowEasy to answer
  4. What is your greatest weakness?★ Must knowEasy to answer
  5. Why do you want to work here?★ Must knowEasy to answer
  6. Why are you leaving your current company?★ Must knowEasy to answer
  7. Where do you see yourself in five years?★ Must knowEasy to answer
  8. Tell me about a time you had a conflict with a colleague.★ Must knowMedium to answer
  9. Tell me about a failure or mistake you made.★ Must knowMedium to answer
  10. Describe a situation where you worked under pressure or a tight deadline.★ Must knowMedium to answer
  11. Tell me about your biggest achievement.★ Must knowMedium to answer
  12. How do you handle criticism or negative feedback?★ Must knowMedium to answer
  13. How do you prioritise when you have multiple tasks?★ Must knowMedium to answer
  14. You are offered a role, but another company is also likely to make an offer next week. What do you do?★ Must knowHard to answer
  15. Your manager asks you to finish a task that you believe will cause a production problem. What do you do?★ Must knowHard to answer
  16. What do you know about our company?MediumEasy to answer
  17. Are you willing to relocate or work in shifts?MediumEasy to answer
  18. What is your notice period? Can you join earlier?MediumEasy to answer
  19. What motivates you?MediumMedium to answer
  20. Do you prefer working alone or in a team?MediumMedium to answer
  21. Have you ever disagreed with your manager? What happened?MediumMedium to answer
  22. How do you keep your skills up to date?MediumMedium to answer
  23. Tell me about a time you went beyond your job description.MediumHard to answer
  24. A teammate isn't contributing and you're doing their work. How do you handle it?MediumHard to answer
  25. What would you do in your first 30–60–90 days here?MediumHard to answer

Team Lead & Agile24 questions · 16 must-know

  1. What is the difference between a tech lead and an engineering manager?★ Must knowEasy to answer
  2. Explain Scrum roles, events and artifacts.★ Must knowEasy to answer
  3. What is the difference between Agile and Waterfall?★ Must knowEasy to answer
  4. How do you estimate a project or a large feature?★ Must knowMedium to answer
  5. How do you delegate work in your team?★ Must knowMedium to answer
  6. How do you mentor junior developers?★ Must knowMedium to answer
  7. How do you handle a team member who is underperforming?★ Must knowMedium to answer
  8. How do you resolve a conflict between two team members?★ Must knowMedium to answer
  9. How do you handle scope changes requested in the middle of a sprint?★ Must knowMedium to answer
  10. How do you report project status to stakeholders?★ Must knowMedium to answer
  11. How do you make architecture or technology decisions in a team?★ Must knowHard to answer
  12. How do you measure your team's performance?★ Must knowHard to answer
  13. Your project is two weeks from the deadline and you realise it will be late by one week. What do you do?★ Must knowHard to answer
  14. A critical production issue occurs on Friday evening. Walk me through how you handle it.★ Must knowHard to answer
  15. The client keeps adding requirements without changing the deadline. How do you manage it?★ Must knowHard to answer
  16. Your best developer resigns in the middle of a critical release. What do you do?★ Must knowHard to answer
  17. What are story points and velocity?MediumEasy to answer
  18. Scrum vs Kanban — when would you use each?MediumEasy to answer
  19. What do you do in a sprint retrospective that has become boring and repetitive?MediumMedium to answer
  20. How do you handle technical debt?MediumMedium to answer
  21. How would you build and scale a new team from 3 to 10 developers?MediumHard to answer
  22. Two senior developers disagree strongly on using microservices versus a modular monolith for a new product. How do you decide?MediumHard to answer
  23. A team member is consistently working late and seems burned out. What do you do?MediumHard to answer
  24. You are asked to lead a team working on a technology you don't know well. How do you approach it?MediumHard to answer

Company-wise Prep16 questions · 11 must-know

  1. (IT services) Explain your current project and your role in it.★ Must knowEasy to answer
  2. (IT services) Why do you want to join a services company like ours?★ Must knowEasy to answer
  3. (IT services) Are you comfortable working in different shifts, technologies or locations?★ Must knowEasy to answer
  4. (Freshers) What happens in online assessments like TCS NQT or similar tests, and how do you prepare?★ Must knowEasy to answer
  5. (Amazon) Tell me about a time you disagreed with your manager or team. (Have Backbone; Disagree and Commit)★ Must knowMedium to answer
  6. (Amazon) Tell me about a time you obsessed over a customer. (Customer Obsession)★ Must knowMedium to answer
  7. (Amazon) Tell me about a time you had to dive deep to solve a problem. (Dive Deep)★ Must knowMedium to answer
  8. (Microsoft/Google) How do you approach a coding interview problem?★ Must knowMedium to answer
  9. (Product companies) Design a URL shortener.★ Must knowMedium to answer
  10. You have interviews with a services company and a product company in the same week. How do you prepare differently?★ Must knowHard to answer
  11. You failed a round at a company you really wanted. What do you do next?★ Must knowHard to answer
  12. (Consulting) The client says your team's delivery quality is poor. How do you respond?MediumMedium to answer
  13. (Startups) You get a 4-hour take-home: build a small task-management API. What do you prioritise?MediumMedium to answer
  14. (Taiwan) Why do you want to work in Taiwan, and how do you handle the language?MediumMedium to answer
  15. (GCC) How would you work effectively with a team spread across India, Europe and the US?MediumHard to answer
  16. A recruiter from a big brand offers a role with a lower title and similar pay. Should you accept?MediumHard to answer