CS FundamentalsHardProduct-company placement
In a layered application, which pairing of the Repository and Unit of Work patterns is correct?
- A. Repository opens a transaction per method call; Unit of Work caches query results
- B. Repository is a collection-like API for aggregates; Unit of Work commits tracked changes atomically
- C. Repository maps HTTP routes onto services; Unit of Work schedules the background jobs
- D. Repository holds the business rules; Unit of Work holds the SQL text for each entity
Correct answer: B. Repository is a collection-like API for aggregates; Unit of Work commits tracked changes atomically
A repository hides persistence behind add/get/find methods on domain objects; a unit of work records new, changed and deleted objects during a business operation and writes them atomically at commit.
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
- How many of these statements about event sourcing are correct? 1. The append-only log of domain events is the source of truth, and current…
- Match each anti-pattern with its description. P. Golden hammer Q. Lava flow R. God object S. Cargo cult 1. One class knows and does far…
- A release burndown has stayed almost flat for three sprints, yet the team's velocity has been a steady 30 points per sprint. Which chart…
- A work item spent 4 days waiting for development, 2 days in development, 5 days waiting for review, 0.5 day in review, 3 days waiting for…
- How many of these statements about Git submodules are correct? 1. A plain git clone of the superproject leaves submodule directories empty…
- On main you run git merge -s ours feature in one repository and git merge -X ours feature in a copy. Which statement is correct?