exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 1 discussion

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

HOTSPOT -
You manage the Git repository for a large enterprise application.
You need to minimize the data size of the repository.
How should you complete the commands? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: --aggressive -
Cleanup unnecessary files and optimize the local repository:
git gc --aggressive

Box 2: prune -
Prune all unreachable objects from the object database:
git prune
Reference:
https://gist.github.com/Zoramite/2039636

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
SteveChai
Highly Voted 2 years ago
answer correct. # Prune all unreachable objects from the object database git prune # Cleanup unnecessary files and optimize the local repository git gc —aggressive
upvoted 15 times
...
denisred
Highly Voted 2 years, 1 month ago
git gc --aggressive --prune=now
upvoted 8 times
...
syu31svc
Most Recent 8 months, 3 weeks ago
"minimize the data size of the repository" https://git-scm.com/docs/git-gc "--aggressive Usually git gc runs very quickly while providing good disk space utilization and performance. This option will cause git gc to more aggressively optimize the repository at the expense of taking much more time. --prune=<date> Prune loose objects older than date (default is 2 weeks ago, overridable by the config variable gc.pruneExpire). --prune=now prunes loose objects regardless of their age and increases the risk of corruption" Answer is correct
upvoted 4 times
...
Eltooth
11 months, 2 weeks ago
--aggressive prune
upvoted 1 times
...
UnknowMan
11 months, 3 weeks ago
Yes correct git prune git gc --aggressive
upvoted 1 times
...
rdemontis
1 year ago
correct
upvoted 1 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