1.Explain the difference between monolithic and microservices architecture
Answer
A monolith is one deployable unit sharing code and database: simpler to build, test and deploy early, but it can become tightly coupled and must scale as a whole. Microservices split capabilities into independently deployable services with their own data stores: they scale and evolve separately but add operational cost around networking, observability and distributed transactions. Start monolithic and extract services at clear bounded contexts when team or scale pain appears.