CS FundamentalsHardProduct-company placement
A company debates a monorepo (all services in one repository) against one repository per service. Which statement is the strongest argument FOR the monorepo?
- A. It removes the need for code review, because all the code is visible to all
- B. It makes repository permissions finer-grained, separately for each service
- C. A library and all its callers can change together in one atomic commit
- D. Builds are always faster, because each service then has less code to compile
Correct answer: C. A library and all its callers can change together in one atomic commit
Atomic cross-project changes and one version of shared code are the main monorepo benefits. The costs are tooling for scale (selective builds, sparse checkout) and coarser access control, so faster builds and finer permissions are not its strengths.
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
- Match each test smell with its description. P. Assertion roulette Q. Mystery guest R. Eager test S. Sleepy test 1. Depends on an external…
- A state machine has 4 states and 3 possible events, with 5 valid transitions defined. A tester also wants negative tests for every (state…
- For integer x, what is the weakest precondition wp(if x > 0 then y := x else y := −x, y ≥ 2)?
- An IDE has a small core that loads, at start-up, independently developed extensions which register through defined extension points. Which…
- An order flow touches payment, inventory and shipping services. In design 1 each service reacts to events from the others; in design 2 one…
- A producer emits 10,000 events per second into a stream whose consumer can process 2,000 per second. Which reactive-streams mechanism lets…