exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 28 discussion

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

HOTSPOT
-

You use Git for source control.

You need to optimize the performance of a repository. The solution must meet the following requirements:

• Permanently remove all items referenced only in the reflog.
• Remove history that is NOT in any current branch.

How should you complete the command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
surensaluka
Highly Voted 1 year, 10 months ago
This question came today (2023-02-14)
upvoted 17 times
djhyfdgjk
10 months, 2 weeks ago
Is this the only question from here which came in your exam ??
upvoted 1 times
...
...
zellck
Highly Voted 1 year, 6 months ago
1. reflog 2. gc, now https://git-scm.com/docs/git-reflog https://git-scm.com/docs/git-gc#Documentation/git-gc.txt-gcpruneExpire The value "now" may be used to disable this grace period and always prune unreachable objects immediately
upvoted 14 times
zellck
1 year, 6 months ago
Gotten this in Jun 2023 exam.
upvoted 8 times
...
...
Irving93
Most Recent 1 year, 6 months ago
https://stackoverflow.com/a/29203553/15442631 git reflog expire --expire=now --all && git gc --prune=now --aggressive
upvoted 2 times
...
imanonion
1 year, 10 months ago
Answer given is correct and the explanation can be found here: https://stackoverflow.com/a/29203553/15442631
upvoted 2 times
...
memoor
1 year, 11 months ago
Given Answer Correct $ git reflog expire --expire=now --all && git gc --prune=now --aggressive
upvoted 3 times
...
mrg998
1 year, 11 months ago
correct
upvoted 2 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 ...