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.
- A. P-layered, Q-pipe-and-filter, R-event-driven, S-microkernel
- B. P-pipe-and-filter, Q-layered, R-event-driven, S-microkernel
- C. P-microkernel, Q-layered, R-pipe-and-filter, S-event-driven
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- In MVVM, unlike MVC and MVP, how does the view usually get updated when data changes?
- A company organised as separate frontend, backend and database teams keeps producing a three-tier system even when microservices were…
- A public JSON API is used by many clients that ignore unknown fields. How many of these changes are breaking: (1) adding a new optional…
- In npm's semantic-version ranges, which versions does ^1.4.2 allow, and which does ^0.4.2 allow?
- Two developers run npm install on the same commit a month apart and get different dependency versions, though package.json is unchanged…
- Your app depends on libraries P and Q. P needs utils >=2.0 <3.0 and Q needs utils >=1.2 <2.0. In an ecosystem that allows only one version…