nerdexam
Amazon

MLS-C01 · Question #131

A data scientist uses an Amazon SageMaker notebook instance to conduct data exploration and analysis. This requires certain Python packages that are not natively available on Amazon SageMaker to be…

The correct answer is D. Create an Amazon SageMaker lifecycle configuration with package installation commands and. Amazon SageMaker Lifecycle Configurations are shell scripts that run automatically when a notebook instance is created or started. By attaching a lifecycle configuration that includes pip install or conda install commands, the required Python packages are installed…

ML Implementation and Operations

Question

A data scientist uses an Amazon SageMaker notebook instance to conduct data exploration and analysis. This requires certain Python packages that are not natively available on Amazon SageMaker to be installed on the notebook instance. How can a machine learning specialist ensure that required packages are automatically available on the notebook instance for the data scientist to use?

Options

  • AInstall AWS Systems Manager Agent on the underlying Amazon EC2 instance and use Systems
  • BCreate a Jupyter notebook file (.ipynb) with cells containing the package installation commands to
  • CUse the conda package manager from within the Jupyter notebook console to apply the
  • DCreate an Amazon SageMaker lifecycle configuration with package installation commands and

How the community answered

(18 responses)
  • A
    17% (3)
  • B
    6% (1)
  • C
    6% (1)
  • D
    72% (13)

Explanation

Amazon SageMaker Lifecycle Configurations are shell scripts that run automatically when a notebook instance is created or started. By attaching a lifecycle configuration that includes pip install or conda install commands, the required Python packages are installed automatically every time the notebook instance starts - no manual intervention is needed. Option A (AWS Systems Manager Agent) would add operational overhead and is not the intended mechanism for this task. Option B (using a .ipynb file with install cells) requires the data scientist to manually run those cells each session, which is not automatic. Option C (conda from within the Jupyter console) is also a manual step. Only option D uses the SageMaker-native mechanism designed specifically for automated environment setup on notebook instances.

Topics

#SageMaker Notebooks#Lifecycle Configuration#Package Management#Environment Setup

Community Discussion

No community discussion yet for this question.

Full MLS-C01 Practice