D2: SageMaker Script Mode & Frameworks
AWS Certified Machine Learning Engineer – Associate exam practice questions · 10 flashcards
Question
What is script mode?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 SageMaker Script Mode & Frameworks practice questions and answers
- What is script mode?Bring your own training script to SageMaker's prebuilt framework containers (PyTorch, TensorFlow, scikit-learn, XGBoost, Hugging Face).
- Estimator in SageMaker Python SDK?Configures training job: entry_point, framework version, instance type/count, hyperparameters, role.
- Training data channels?Named inputs (train, validation) mapped to /opt/ml/input/data/<channel>.
- Where should the script save the model?/opt/ml/model (SM_MODEL_DIR), uploaded to S3 as model.tar.gz.
- Environment variables in script mode?SM_CHANNEL_TRAIN, SM_MODEL_DIR, SM_HPS, SM_NUM_GPUS etc.
- Bring your own container (BYOC)?Custom Docker image in ECR when frameworks don't fit.
- requirements.txt in script mode?Install extra libraries in source_dir.
- SageMaker ModelTrainer?Newer SDK v3 interface for configuring training jobs.
- Local mode?Run training/inference containers locally to debug before cloud runs.
- Scenario: existing PyTorch code needs managed training with minimal changes. Approach?Script mode with PyTorch estimator.