nerdexam
Microsoft

AZ-400 · Question #304

You use GitHub for source control. A file that contains sensitive data is committed accidentally to the Git repository of a project. You need to delete the file and its history form the repository. Wh

The correct answer is A. the git filter-branch command B. BFG Repo-Cleaner. To entirely remove unwanted files from a repository's history you can use either the git filter- branch command or the BFG Repo-Cleaner open source tool. https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data- secure/removing-sensitive-data-from-

Submitted by eva_at· Mar 6, 2026Design and implement source control

Question

You use GitHub for source control. A file that contains sensitive data is committed accidentally to the Git repository of a project. You need to delete the file and its history form the repository. Which two tools can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • Athe git filter-branch command
  • BBFG Repo-Cleaner
  • Cthe git rebase command
  • DGitHub Desktop

How the community answered

(37 responses)
  • A
    81% (30)
  • C
    5% (2)
  • D
    14% (5)

Explanation

To entirely remove unwanted files from a repository's history you can use either the git filter- branch command or the BFG Repo-Cleaner open source tool. https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data- secure/removing-sensitive-data-from-a-repository

Topics

#git filter-branch#BFG Repo-Cleaner#git history rewrite#sensitive data removal

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice