CS FundamentalsHardProduct-company design interview

Match each system with its architectural style. P: a compiler with lexer → parser → optimiser → code generator. Q: a typical 3-tier web app. R: an IDE whose core loads language support as plug-ins. S: an e-commerce site where order placement publishes events that inventory, email and analytics react to independently.

  1. A. P-layered, Q-pipe-and-filter, R-event-driven, S-microkernel
  2. B. P-pipe-and-filter, Q-layered, R-event-driven, S-microkernel
  3. C. P-microkernel, Q-layered, R-pipe-and-filter, S-event-driven
  4. D. P-pipe-and-filter, Q-layered, R-microkernel (plug-in), S-event-driven

Correct answer: D. P-pipe-and-filter, Q-layered, R-microkernel (plug-in), S-event-driven

Stages transforming a stream are pipe-and-filter; presentation/business/data tiers are layered; a minimal core with plug-ins is microkernel; publishers and independent subscribers are event-driven.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic