nerdexam
Microsoft

AZ-400 · Question #528

You manage source control by using GitHub. You have a file named Data.txt that contains sensitive data. A user pushes Data.txt to a repository. You need to purge the file from the repository. Which tw

The correct answer is C. bfg --delete-files data.txt E. git filter-repo --invert-paths --path data.txt. https://graphite.dev/guides/how-to-delete-sensitive-data-from-git

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

Question

You manage source control by using GitHub. You have a file named Data.txt that contains sensitive data. A user pushes Data.txt to a repository. You need to purge the file from the repository. Which two commands can you use? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.

Options

  • Agit checkout
  • Bgit checkout
  • Cbfg --delete-files data.txt
  • Dgit rm data.txt
  • Egit filter-repo --invert-paths --path data.txt
  • Fgit revert -edit data.txt

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    73% (24)
  • D
    12% (4)
  • F
    9% (3)

Explanation

https://graphite.dev/guides/how-to-delete-sensitive-data-from-git

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice