exam questions

Exam AWS Certified Machine Learning - Specialty All Questions

View all questions & answers for the AWS Certified Machine Learning - Specialty exam

Exam AWS Certified Machine Learning - Specialty topic 1 question 121 discussion

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?

  • A. Install AWS Systems Manager Agent on the underlying Amazon EC2 instance and use Systems Manager Automation to execute the package installation commands.
  • B. Create a Jupyter notebook file (.ipynb) with cells containing the package installation commands to execute and place the file under the /etc/init directory of each Amazon SageMaker notebook instance.
  • C. Use the conda package manager from within the Jupyter notebook console to apply the necessary conda packages to the default kernel of the notebook.
  • D. Create an Amazon SageMaker lifecycle configuration with package installation commands and assign the lifecycle configuration to the notebook instance.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
[Removed]
Highly Voted 2 years, 7 months ago
I would select D. See AWS documentation: https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-add-external.html
upvoted 20 times
...
u_b
Most Recent 5 months, 2 weeks ago
by excluding wrong options: A you might not have access to the EC2 instance => out B no automation => out C only the default kernel, which limits the DS => out => D
upvoted 2 times
...
Mickey321
8 months, 1 week ago
Selected Answer: D
option D
upvoted 1 times
...
ADVIT
10 months ago
D. https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-add-external.html
upvoted 1 times
...
CKS1210
10 months, 1 week ago
Selected Answer: D
Install custom environments and kernels on the notebook instance's Amazon EBS volume. This ensures that they persist when you stop and restart the notebook instance, and that any external libraries you install are not updated by SageMaker. To do that, use a lifecycle configuration that includes both a script that runs when you create the notebook instance (on-create) and a script that runs each time you restart the notebook instance (on-start).
upvoted 1 times
...
31Rishab
1 year, 7 months ago
Selected Answer: D
Even the link given suggest Option D
upvoted 3 times
...
ovokpus
1 year, 10 months ago
Selected Answer: D
Please ignore my previous comment, the answer is D
upvoted 2 times
...
ovokpus
1 year, 10 months ago
Selected Answer: B
Key word here is how can the developer "guarantee"?? He guarantees that by including the install commands as part of the notebook. So, against the grain, I stand with B
upvoted 1 times
ovokpus
1 year, 10 months ago
Scratch that. The Answer is D
upvoted 1 times
...
...
ayatkhrisat
1 year, 12 months ago
Selected Answer: D
D should be the answer
upvoted 3 times
...
vetaal
2 years, 3 months ago
Selected Answer: D
https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-add-external.html upvoted 1 times
upvoted 2 times
...
geekgirl007
2 years, 3 months ago
Selected Answer: D
D "automatically" is the key here and using lifecycle configuration https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-add-external.html
upvoted 2 times
...
rafaelo
2 years, 5 months ago
It is D, although is not even the best answer in my opinion. Although by default conda packages are installed in ephemeral storage, you can change that default behaviour. I did that in my last project and we created our own conda environment that persisted between shutdowns.
upvoted 1 times
...
abdohanfi
2 years, 6 months ago
based on the refernce given under the answer its D not B
upvoted 1 times
...
mona_mansour
2 years, 6 months ago
You can install packages using the following methods: 1-Lifecycle configuration scripts 2-Notebooks – The following commands are supported. %conda install %pip install 3-The Jupyter terminal – You can install packages using pip and conda directly.
upvoted 2 times
...
mona_mansour
2 years, 6 months ago
NOT B ...>/etc/init contains configuration files used by Upstart. ANS...>D
upvoted 1 times
...
astonm13
2 years, 6 months ago
Its for sure D
upvoted 1 times
...
ksrivastavaSumit
2 years, 6 months ago
D https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-add-external.html
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago