
Answer-first summary for fast verification
Answer: Copy the contents of the file named .gitignore to the file named .amlignore.
According to the Microsoft documentation referenced in the community discussion, when both .amlignore and .gitignore files exist in the training scripts directory, Azure Machine Learning uses the .amlignore file and ignores the .gitignore file. Since the .gitignore file is currently being ignored, the solution is to copy its contents to the .amlignore file so that the exclusion rules are applied. Option A is correct because it ensures the exclusion patterns from .gitignore are transferred to the file that Azure ML actually uses (.amlignore). Options B and C are incorrect because moving .gitignore to subdirectories won't make it effective for snapshot exclusions. Option D is incorrect because adding .amlignore contents to .gitignore doesn't address the core issue that .gitignore is ignored when .amlignore exists.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are running Azure Machine Learning training experiments. The training scripts directory contains 100 files, including a file named .amlignore. The directory also contains subdirectories named ./outputs and ./logs.
You need to exclude 20 specific files from the snapshot that is sent to the compute targets. You created a file named .gitignore in the root of the directory and added the names of the 20 files to it, but the files are still being copied to the compute targets.
What should you do to exclude the 20 files?
A
Copy the contents of the file named .gitignore to the file named .amlignore.
B
Move the file named .gitignore to the ./outputs directory.
C
Move the file named .gitignore to the ./logs directory.
D
Add the contents of the file named .amlignore to the file named .gitignore.
No comments yet.