exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 13 discussion

Actual exam question from Microsoft's AZ-400
Question #: 13
Topic #: 5
[All AZ-400 Questions]

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.

  • A. the git filter-branch command
  • B. BFG Repo-Cleaner
  • C. the git rebase command
  • D. GitHub Desktop
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
knvenkat123
Highly Voted 2 years, 2 months ago
Selected Answer: AB
BFG Repo cleaner is an alternative to git filter-branch. It can be used to remove sensitive data or large files that were committed wrongly like binaries compiled from the source. It is written in Scala. Project website: BFG Repo Cleaner
upvoted 9 times
...
zellck
Highly Voted 1 year, 4 months ago
Selected Answer: AB
AB is the answer. https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository#using-the-bfg The BFG Repo-Cleaner is a tool that's built and maintained by the open source community. It provides a faster, simpler alternative to git filter-repo for removing unwanted data.
upvoted 6 times
zellck
1 year, 4 months ago
https://git-scm.com/docs/git-filter-branch#_description Lets you rewrite Git revision history by rewriting the branches mentioned in the <rev-list options>, applying custom filters on each revision. Those filters can modify each tree (e.g. removing a file or running a perl rewrite on all files) or information about each commit. Otherwise, all information (including original commit times or merge information) will be preserved.
upvoted 3 times
...
...
vsvaid
Most Recent 10 months, 1 week ago
Selected Answer: AB
Agree with given answer
upvoted 2 times
...
surensaluka
1 year, 8 months ago
Selected Answer: AB
This question came today (2023-02-14). Answers came as pair of 2 commands.
upvoted 6 times
...
Power123
1 year, 9 months ago
BFG Repo cleaner is an alternative to git filter-brancIt is h. It can be used to remove sensitive data or large files that were committed wrongly like binaries compiled from the source. Project website: BFG Repo Cleaner
upvoted 2 times
...
alexax578
2 years, 1 month ago
Selected Answer: AB
It is git-filter-repo now (+ BFG Repo-Cleaner) "To entirely remove unwanted files from a repository's history you can use either the git filter-repo tool or the BFG Repo-Cleaner open source tool." https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
upvoted 4 times
...
syu31svc
2 years, 2 months ago
Selected Answer: AB
Given link supports A and B as the answers
upvoted 2 times
...
az_architect
2 years, 2 months ago
Thanks Jay158. The provided link explain very well that git filter-branch and BFG are the correct options.
upvoted 2 times
...
Govcomm
2 years, 3 months ago
git filter-branch BFG
upvoted 2 times
...
Eltooth
2 years, 5 months ago
Selected Answer: AB
A and B are correct answers.
upvoted 3 times
...
jay158
2 years, 6 months ago
Answer is correct https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago