next
Round
Technologies
Experiences
Contribute
Login
next
Round
Technologies
Experiences
Contribute
Login
Question Loading...
Modules
1. What is a NestJS module, and why is it needed?
Level: Expert | Frequency: High
2. What are the four properties inside @Module() decorator?
Level: Expert | Frequency: High
3. What is the difference between a shared module and a global module in NestJS?
Level: Expert | Frequency: High
4. What are dynamic modules in NestJS and when do you use them?
Level: Expert | Frequency: High
5. What is the difference between exports in a module and making a provider global with @Global()?
Level: Expert | Frequency: High
6. How would you lazy-load a module in NestJS to improve startup time?
Level: Expert | Frequency: High
7. What is the purpose of a module in NestJS and what does the @Module() decorator do?
Level: Expert | Frequency: High
8. What is the difference between imports and providers inside @Module()?
Level: Expert | Frequency: High
9. Are NestJS modules singletons? What does that mean practically?
Level: Expert | Frequency: High
10. What is the module encapsulation rule in NestJS and why does it matter?
Level: Expert | Frequency: High
11. What is a feature module in NestJS and why should you use them instead of putting everything in AppModule?
Level: Expert | Frequency: High
12. How do you structure a feature module that has sub-features in NestJS?
Level: Expert | Frequency: High
13. Can a feature module re-export an imported module in NestJS? When is this useful?
Level: Expert | Frequency: High
14. What is a shared module in NestJS?
Level: Expert | Frequency: High
15. What is the difference between a shared module and a global module in NestJS?
Level: Expert | Frequency: High
16. When should you export a module vs export individual providers from a module in NestJS?
Level: Expert | Frequency: High
17. What does the @Global() decorator do and how does it change module behaviour in NestJS?
Level: Expert | Frequency: High
18. What are the risks of overusing @Global() modules in NestJS?
Level: Expert | Frequency: High
19. How do you register a global module exactly once in NestJS and what happens if you register it twice?
Level: Expert | Frequency: High
20. What is a dynamic module in NestJS and how is it different from a static module?
Level: Expert | Frequency: High
21. What is the naming convention for dynamic module static methods in NestJS and what does each name signal?
Level: Expert | Frequency: High
22. How do you implement forRootAsync() in a dynamic module so that options can be loaded asynchronously from ConfigService?
Level: Expert | Frequency: High
23. What must the object returned by a dynamic module's static method always include in NestJS?
Level: Expert | Frequency: High
24. How can a dynamic module expose a forFeature() method that works alongside a forRoot() registration in NestJS?
Level: Expert | Frequency: High
25. How do you write a dynamic module that supports both sync (register) and async (registerAsync) configuration sharing the same internal providers?
Level: Expert | Frequency: High
All Topics
Basics
Modules
Decorators
Controllers
Dependency Injection
Providers
Architecture
Request Lifecycle
Middleware
Guards
Interceptors
Pipes
Filters
Exception Handling
API Design
GraphQL
Database and ORM
Microservices
Authentication and Authorization,
Interceptors