AZ-400 · Question #473
AZ-400 Question #473: Real Exam Question with Answer & Explanation
The correct answer is A: bfg. BFG Repo-Cleaner (A) is the correct tool because it is specifically designed to remove unwanted large files or sensitive data from Git repository history. Unlike git filter-branch, BFG is faster and simpler, permanently scrubbing the file from all commits in the repository's hist
Question
You manage source code control and versioning by using GitHub. A large file is committed to a repository accidentally. You need to reduce the size of the repository. The solution must remove the file from the repository. What should you use?
Options
- Abfg
- Blfs
- Cgvfs
- Dinit
Explanation
BFG Repo-Cleaner (A) is the correct tool because it is specifically designed to remove unwanted large files or sensitive data from Git repository history. Unlike git filter-branch, BFG is faster and simpler, permanently scrubbing the file from all commits in the repository's history, thereby reducing the overall repository size.
Why the distractors are wrong:
- LFS (B) - Git Large File Storage is used to manage large files going forward by storing them outside the repository, but it does not remove an already-committed file from history.
- GVFS (C) - Git Virtual File System (now called VFS for Git) is a Microsoft tool designed to help scale Git for very large repositories (like Windows OS source code), not to remove files from history.
- init (D) -
git initsimply initializes a new Git repository and has no capability to remove files or clean history.
Memory tip: Think of BFG as the "Big File Garbage" collector - when you need to eliminate an accidentally committed large file from your repo's past, BFG is your cleanup crew. Its name even comes from the "Big Friendly Giant," suggesting it handles big problems with ease.
Topics
Community Discussion
No community discussion yet for this question.