AWS Certified Machine Learning Engineer – Associate (MLA-C01) — Question 126

An ML engineer wants an Amazon SageMaker notebook to automatically stop running after 1 hour of idle time.

How can the ML engineer accomplish this goal?

Answer options

Correct answer: A

Explanation

The correct answer is A because creating a lifecycle configuration and placing the auto-stop-idle script in the Start Notebook section allows the notebook to check for idle time immediately upon starting. Options B, C, and D are incorrect as they either place the script in the wrong section or monitor metrics that don't directly relate to idle status.