CS FundamentalsHardProduct-company system-design interview
In CQRS, what is separated, and what is a typical consequence?
- A. Commands (writes) and queries (reads) use different models, often different stores; the read side may be eventually consistent with the write side
- B. Code and tests are kept in separate repositories
- C. Front-end and back-end teams are separated
- D. Configuration is separated from code
Correct answer: A. Commands (writes) and queries (reads) use different models, often different stores; the read side may be eventually consistent with the write side
Separate write and read models let each be optimised (e.g. denormalised read views), but read views updated asynchronously can lag briefly behind writes.
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
- A method has cyclomatic complexity 25. Which conclusion is most reasonable?
- A team writes acceptance criteria as 'Given a cart worth ₹900, When the user applies coupon SAVE10, Then the total is ₹810', and automates…
- A codebase reports 100% line coverage, but the mutation score is only 20%. What is the most likely explanation?
- In TDD, a developer has one failing test, assertEqual(add(2, 3), 5), and makes it pass with return 5. What is the next step according to…
- A legacy COBOL system with no documentation is analysed to recover its design (step 1), restructured and migrated to Java with the same…
- In software configuration management, the approved requirements specification is frozen and further changes need formal approval by a…