exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 51 discussion

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

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.

  • A. git checkout
    git reset -hard -pathspec data.txt
  • B. git checkout
    git clean -d data.txt --force
  • C. bfg --delete-files data.txt
    git push --force
  • D. git rm data.txt
    git push --force
  • E. git filter-repo --invert-paths --path data.txt
    git push origin --force --all
  • F. git revert -edit data.txt
    git push -force
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
songboss
1 week, 1 day ago
Selected Answer: C
c와 e 두개를 선택해야합니다
upvoted 1 times
...
Dankho
6 months ago
Selected Answer: C
Not two options, two commands, and each options has two commands. Because it's a simple delete and doesn't require "Complex history rewrites", I'm going with BFG
upvoted 3 times
BorisUK2000
3 weeks, 5 days ago
The question states "Each correct answer presents a complete solution", we need two answers.
upvoted 1 times
...
...
fuchsm999
7 months ago
Selected Answer: E
C and E should be selected, not only one option
upvoted 3 times
...
p2006
7 months, 2 weeks ago
Selected Answer: E
bfg, filter
upvoted 1 times
...
Emil_Topics
8 months, 2 weeks ago
Selected Answer: C
BFG & Filter
upvoted 2 times
...
Mattt
8 months, 3 weeks ago
Selected Answer: C
C & E are correct. We need 2 options
upvoted 2 times
...
DevopsRock
9 months, 3 weeks ago
Selected Answer: C
BFG Repo cleaner
upvoted 1 times
DevopsRock
9 months, 3 weeks ago
C and E, BFG repo cleaner and git filter-
upvoted 3 times
...
...
a58817
10 months ago
C & E: https://graphite.dev/guides/how-to-delete-sensitive-data-from-git
upvoted 4 times
...
marmila
10 months, 1 week ago
Selected Answer: C
I would say C for obvious reasons
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 ...