🔥 40% Off Crucial Exams Memberships — This Week Only

3 days, 10 hours remaining!

Microsoft DevOps Engineer Expert AZ-400 Practice Question

An Azure DevOps team has a 4 GB Azure Repos Git repository that contains two years of high-resolution *.png and *.jpg files committed as regular blobs. To shrink clone and fetch sizes, the team decides to move these graphics to Git Large File Storage (LFS). They have installed the Git LFS client locally and added the patterns *.png and *.jpg to the project's .gitattributes file. What additional step must they perform so that all previous commits are rewritten to replace the full-size images with LFS pointer files before they push the updated history to the remote repository?

  • Execute git lfs track --convert-history to retroactively track the image files.

  • Perform git gc --aggressive on the local repository to prune large objects and recreate them as LFS pointers.

  • Run git lfs migrate import --include=".png,.jpg" --everything and then force-push the rewritten history.

  • Commit and push the updated .gitattributes file; the server automatically converts existing blobs to LFS objects on the next push.

Microsoft DevOps Engineer Expert AZ-400
Design and implement a source control strategy
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot