DP-100 · Question #494
You run Azure Machine Learning training experiments. The training scripts directory contains 100 files that includes a file named .amlignore. The directory also contains subdirectories named…
The correct answer is A. Copy the contents of the file named .gitignore to the file named .amlignore. Azure Machine Learning uses the .amlignore file to determine which files to exclude from the snapshot sent to compute targets - not .gitignore. When both .amlignore and .gitignore exist in the same directory, Azure ML only reads .amlignore. Since .amlignore already exists but…
Question
Options
- ACopy the contents of the file named .gitignore to the file named .amlignore.
- BMove the file named .gitignore to the ./outputs directory.
- CMove the file named .gitignore to the ./logs directory.
- DAdd the contents of the file named .amlignore to the file named .gitignore.
How the community answered
(51 responses)- A76% (39)
- B12% (6)
- C8% (4)
- D4% (2)
Explanation
Azure Machine Learning uses the .amlignore file to determine which files to exclude from the snapshot sent to compute targets - not .gitignore. When both .amlignore and .gitignore exist in the same directory, Azure ML only reads .amlignore. Since .amlignore already exists but doesn't contain the 20 files, those files are still being copied. The fix is to copy the exclusion rules from .gitignore into .amlignore. Moving .gitignore to ./outputs or ./logs (choices B and C) has no effect on snapshot behavior. Adding .amlignore content to .gitignore (choice D) is backwards - AML reads .amlignore, not .gitignore.
Topics
Community Discussion
No community discussion yet for this question.