nerdexam
Microsoft

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…

Explore data and run experiments

Question

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 ./outputs and ./logs. There are 20 files in the training scripts directory that must be excluded from the snapshot to the compute targets. You create a file named .gitignore in the root of the directory. You add the names of the 20 files to the .gitignore file. These 20 files continue to be copied to the compute targets. You need to exclude the 20 files. What should you do?

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)
  • A
    76% (39)
  • B
    12% (6)
  • C
    8% (4)
  • D
    4% (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

#Azure Machine Learning#Experiment snapshots#File exclusion#.amlignore

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice