0
0
Gitdevops~20 mins

Distributed vs centralized version control in Git - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Version Control Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Key difference between distributed and centralized version control

Which statement best describes the main difference between distributed and centralized version control systems?

ADistributed systems store the full project history on each user's machine, while centralized systems keep history only on a central server.
BCentralized systems allow offline commits, but distributed systems require constant internet connection.
CDistributed systems do not support branching, whereas centralized systems do.
DCentralized systems automatically merge changes without conflicts, distributed systems require manual merging.
Attempts:
2 left
💡 Hint

Think about where the full project history is stored in each system.

💻 Command Output
intermediate
2:00remaining
Output of git clone in distributed version control

What is the result of running git clone https://github.com/example/repo.git in a distributed version control system?

AThe command fails because cloning requires a centralized server.
BA full copy of the repository, including all history, is downloaded to the local machine.
COnly the latest snapshot of files is downloaded without history.
DIt creates a local branch but does not download any files.
Attempts:
2 left
💡 Hint

Consider what cloning means in Git.

🔀 Workflow
advanced
2:00remaining
Workflow difference in committing changes

Which workflow correctly describes committing changes in a distributed version control system like Git compared to a centralized system?

ABoth systems require commits to be made directly on the central server only.
BIn centralized systems, commits are made locally and then pushed; in distributed systems, commits go directly to the server.
CIn distributed systems, commits are made locally first and then pushed to a remote; in centralized systems, commits go directly to the server.
DDistributed systems do not support commits; they only support merges.
Attempts:
2 left
💡 Hint

Think about where commits are stored initially in each system.

Troubleshoot
advanced
2:00remaining
Resolving conflicts in distributed vs centralized systems

When two developers edit the same file simultaneously, how does conflict resolution differ between distributed and centralized version control systems?

ADistributed systems require manual merging after pulling changes; centralized systems often lock files to prevent conflicts.
BCentralized systems automatically merge conflicting changes; distributed systems discard one developer's changes.
CDistributed systems prevent conflicts by disallowing simultaneous edits; centralized systems allow conflicts freely.
DBoth systems handle conflicts identically by automatically merging without user input.
Attempts:
2 left
💡 Hint

Consider how each system manages simultaneous edits and merging.

Best Practice
expert
3:00remaining
Choosing version control for a remote team with unreliable internet

A remote team has unreliable internet connections. Which version control system type is best suited for their workflow and why?

ACentralized version control, because it ensures all changes are immediately saved on the central server.
BDistributed version control, because it prevents any conflicts by disallowing simultaneous edits.
CCentralized version control, because it requires less disk space on local machines.
DDistributed version control, because it allows local commits and offline work without needing constant server access.
Attempts:
2 left
💡 Hint

Think about how offline work is supported.