0
0
Gitdevops~20 mins

Monorepo vs multi-repo decision in Git - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Monorepo vs Multi-repo Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
When to choose a monorepo over multiple repos?

Which scenario best justifies using a monorepo instead of multiple repositories?

ASeveral unrelated projects maintained by different teams with no shared dependencies.
BMultiple independent microservices that rarely change together.
CA large project with many small, tightly coupled components that share code frequently.
DA collection of open-source libraries maintained by different organizations.
Attempts:
2 left
💡 Hint

Think about how often code is shared and how closely components are related.

🧠 Conceptual
intermediate
2:00remaining
Main challenge of multi-repo approach

What is the biggest challenge when using multiple repositories for related projects?

AManaging consistent versioning and coordinating changes across repos.
BHaving too many files in a single repository.
CSlower cloning times due to large repository size.
DDifficulty in isolating unrelated projects.
Attempts:
2 left
💡 Hint

Consider what happens when changes affect multiple repositories.

🔀 Workflow
advanced
2:30remaining
Git workflow complexity in monorepos

In a large monorepo, what is a common workflow challenge when multiple teams work on different components?

AConflicts in shared files and longer integration times due to many simultaneous changes.
BInability to create branches for individual features.
CNo way to run tests on specific components only.
DLack of support for pull requests.
Attempts:
2 left
💡 Hint

Think about what happens when many people edit the same repository at once.

Troubleshoot
advanced
2:30remaining
Troubleshooting dependency issues in multi-repos

You have multiple repositories with interdependent projects. After updating a shared library in one repo, dependent repos fail to build. What is the most likely cause?

AThe dependent repos have too many branches.
BDependent repos are not updated to use the new library version.
CGit hooks are disabled in dependent repos.
DThe shared library was deleted from the main repo.
Attempts:
2 left
💡 Hint

Consider how dependencies are managed across repositories.

Best Practice
expert
3:00remaining
Best practice for scaling monorepos

What is a recommended best practice to keep a large monorepo manageable as it grows?

AAvoid using any branching strategy to keep history simple.
BMerge all branches into main without reviews to speed up development.
CStore all binaries and build artifacts directly in the monorepo.
DUse tools to run tests and builds only on changed components to save time.
Attempts:
2 left
💡 Hint

Think about how to reduce unnecessary work when many components exist.