All 41 questions

  1. What is domain-driven design, and when would you use it?

    Asked in 4 of 434 interviews · last asked Oct 27 · Concept · Senior

    Other ways it was asked
    • “What is domain-driven design (DDD)?”
    • “What is domain-driven design used for, what are its advantages and disadvantages, and where did it originate?”
    • “What is domain-driven design (DDD), and in what situations is it particularly useful?”
  2. What is the foundational principle of Clean Architecture?

    Asked in 3 of 434 interviews · last asked Nov 9 · Concept · Mid-level

    Other ways it was asked
    • “Why do we use Clean Architecture?”
    • “What is Clean Architecture?”
  3. How would you use MVC and hexagonal architecture, and how do they differ?

    Asked in 2 of 434 interviews · last asked Sep 16 · Concept · Mid-level

    Other ways it was asked
    • “Why would you choose hexagonal architecture over MVC?”
    • “How have you used MVC and hexagonal architecture, and how do they differ?”
    • “What are the differences between MVC and hexagonal architecture, and which do you prefer?”
  4. What is hexagonal architecture, and how does it structure an application?

    Asked in 2 of 434 interviews · last asked Sep 16 · Concept · Mid-level

    Other ways it was asked
    • “Can you give a small example of how hexagonal architecture separates an application’s components?”
  5. What role does a repository play in an application, and what does the repository pattern accomplish?

    Asked in 2 of 434 interviews · last asked Nov 11 · Concept · Mid-level

    Other ways it was asked
    • “What is a repository doing in this codebase, and what does the repository pattern accomplish?”
    • “How do you use the Repository pattern?”
  6. What are the responsibilities of a controller, service, repository, and action in Laravel, and when would you use each?

    Asked once · last asked Feb 10 · Concept · Mid-level

  7. How would you architect a new app using UI, domain, and data layers, and what responsibilities would belong in each layer?

    Asked once · last asked Feb 12 · Design · Mid-level

  8. What is Clean Architecture, and when would you use it in an Android application?

    Asked once · last asked Mar 20 · Concept · Mid-level

  9. When domain logic needs HTTP context, such as the current user, locale, or request ID, how do you model and pass that context without leaking framework request objects into the domain?

    Asked once · last asked Mar 26 · Design · Senior

  10. How would you evaluate whether a system's architecture and layering are well designed?

    Asked once · last asked Apr 17 · Design · Senior

  11. How would you assess whether a domain layer is properly separated and aligned with the business domains?

    Asked once · last asked Apr 17 · Design · Senior

  12. When would you use Clean Architecture or MVC architecture?

    Asked once · last asked May 26 · Concept · Mid-level

  13. What are the key concepts and rules of hexagonal architecture?

    Asked once · last asked Jun 24 · Concept · Mid-level

  14. What are aggregates in Domain-Driven Design, and when would you use them?

    Asked once · last asked Jun 25 · Concept · Senior

  15. What is the repository pattern in Laravel, and what are its benefits?

    Asked once · last asked Jul 16 · Concept · Mid-level

  16. How would you design a multi-brand application with a domain layer that supplies the data rendered by most of the app?

    Asked once · last asked Jul 16 · Design · Mid-level

  17. Why would you map a database entity to a DTO or another model?

    Asked once · last asked Jul 16 · Concept · Mid-level

  18. How can a repository use a search term to filter users by first name, last name, or email address?

    Asked once · last asked Jul 20 · Concept · Mid-level

  19. What are the trade-offs of validating a search term in the repository rather than in a service or handler?

    Asked once · last asked Jul 20 · Concept · Senior

    Other ways it was asked
    • “Why did you put the validation for the search term in the repository rather than in the service or handler?”
  20. When would you use domain-driven design or hexagonal architecture?

    Asked once · last asked Jul 27 · Concept · Senior

  21. What are domain-driven design, CQRS, and SOLID principles, and when would you use them?

    Asked once · last asked Aug 5 · Concept · Senior

  22. What is clean architecture, and how does an anti-corruption layer help isolate a system from external models?

    Asked once · last asked Aug 31 · Concept · Senior

  23. What’s the point of structuring a backend with controllers, services for business logic, and a repository layer for Prisma database calls?

    Asked once · last asked Sep 2 · Concept · Mid-level

  24. How do you handle sudden architecture and database requirement changes, such as switching from AWS RDS to MongoDB or avoiding an additional database, with minimal code impact?

    Asked once · last asked Sep 29 · Scenario · Senior

  25. What is the difference between an entity class and a DTO class?

    Asked once · last asked Sep 30 · Concept · Junior

  26. Explain the key components of Clean Architecture and how they connect to each other.

    Asked once · last asked Sep 30 · Concept · Senior

  27. How are the MVVM and Clean Architecture components connected when a view triggers an API request and receives the response?

    Asked once · last asked Sep 30 · Scenario · Senior

  28. How does a request move through Clean Architecture and return a response after a user submits a form?

    Asked once · last asked Sep 30 · Scenario · Senior

  29. How would you enforce separation between game logic and the UI through module boundaries, design patterns, tooling, or code reviews?

    Asked once · last asked Oct 9 · Behavioral · Senior

    Other ways it was asked
    • “How did you enforce separation between game logic and the UI through module boundaries, design patterns, tooling, or code reviews?”
  30. What is an anti-corruption layer between a legacy system and a new domain model?

    Asked once · last asked Oct 18 · Concept · Senior

  31. Why use DTOs instead of serializing database entities directly in an API?

    Asked once · last asked Oct 28 · Concept · Mid-level

  32. What is an anti-corruption layer in a modernization architecture?

    Asked once · last asked Nov 2 · Concept · Senior

  33. How does Clean Architecture structure a .NET Core application?

    Asked once · last asked Nov 18 · Concept · Mid-level

  34. What do you think the purpose of layered architecture is in software development, and why architect an application that way?

    Asked once · last asked Sep 2 · Concept · Mid-level

    Other ways it was asked
    • “What’s the purpose of layered architecture, and why architect an app that way?”
  35. When handling a request, would you call the repository directly or perform steps in the business logic before querying the database?

    Asked once · last asked Mar 20 · Scenario · Mid-level

  36. When would you use a Student DTO in an application?

    Asked once · last asked Mar 30 · Concept · Junior

  37. Should a controller or route handler make database calls directly, or should database access be separated?

    Asked once · last asked Jul 28 · Concept · Junior

  38. Why should business rules generally be placed outside a Spring Boot controller?

    Asked once · last asked Sep 29 · Concept · Mid-level

  39. What is a data transfer object (DTO), and how is it used in TypeScript?

    Asked once · last asked Oct 7 · Concept · Junior

  40. What is the service-repository pattern?

    Asked once · last asked Oct 7 · Concept · Mid-level

  41. What are the layers of Clean Architecture?

    Asked once · last asked Nov 9 · Concept · Junior

More OOP and Design Patterns interview questions

How this list is made

Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.

Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.

The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every OOP and Design Patterns interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.

434 interviews, 286 candidates, Sep 2025 to Nov 2026. Updated every month with new interviews.