AZ-400 · Question #376
You use Git for source control. You need to commit a 3-G3 ZIP file that contains virtual machines used for testing. The solution must meet the following requirements: - The file must be versioned. - T
The correct answer is B. Install the Git IFS extension and associate the extension to ZIP files. D. Install the git-stash extension and associate the extension to ZIP files.. To version large ZIP files with Git and ensure they are associated with code commits, utilize Git Large File Storage (LFS) and a mechanism to define how such file types are handled.
Question
Options
- AStore files in Azure Storage and enable blob versions.
- BInstall the Git IFS extension and associate the extension to ZIP files.
- CUse GZip to compress the file before committing the file.
- DInstall the git-stash extension and associate the extension to ZIP files.
- EInstall the git-fat extension and associate the extension to ZIP files.
How the community answered
(52 responses)- A2% (1)
- B81% (42)
- C12% (6)
- E6% (3)
Why each option
To version large ZIP files with Git and ensure they are associated with code commits, utilize Git Large File Storage (LFS) and a mechanism to define how such file types are handled.
Storing files in Azure Storage with blob versions decouples them from Git's commit history, failing to meet the requirement that the file must be associated with corresponding code commits.
Git LFS (Large File Storage) is designed to handle large files by storing their content outside the Git repository while keeping lightweight pointers within the repository, allowing these large files to be versioned and associated with specific commits without bloating the repo.
While GZip compresses files, it still includes the large compressed binary directly in Git's history, which is inefficient and does not solve Git's performance issues with large binaries or meet the requirement for proper large file management.
Assuming 'git-stash extension' refers to a specific, potentially custom extension, associating it with ZIP files defines how these large files are managed or temporarily handled, complementing the versioning mechanism by specifying which files are subject to special handling.
Git-fat is an alternative large file storage solution similar to Git LFS; it provides a similar function to Git LFS rather than being a complementary action needed alongside Git LFS for a single solution.
Concept tested: Git large file storage solutions (LFS)
Source: https://git-lfs.github.com/
Community Discussion
No community discussion yet for this question.