Ngân hàng đề — AWS Certified Machine Learning Engineer Associate
Tìm thấy 635 câu.
Which solution will meet these requirements with the LEAST effort?
- A Use SageMaker built-in algorithms to train the proprietary datasets.
- B Use SageMaker script mode and premade images for ML frameworks.
- C Build a container on AWS that includes custom packages and a choice of ML frameworks.
- D Purchase similar production models through AWS Marketplace.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi này xoay quanh việc migrate các mô hình Machine Learning (ML) từ môi trường on-premises sang AWS một cách ít nỗ lực nhất (LEAST effort). Cụ thể:
- Công ty đang sử dụng custom Python scripts (script tùy chỉnh) và proprietary datasets (dữ liệu độc quyền, không chia sẻ).
- Framework ML là PyTorch.
- Quá trình xây dựng model đòi hỏi unique domain knowledge (kiến thức chuyên môn độc đáo của lĩnh vực), nghĩa là không thể dùng model có sẵn mà phải giữ nguyên logic tùy chỉnh.
- Mục tiêu: Chuyển sang AWS với giải pháp đơn giản, nhanh chóng, tận dụng tối đa các công cụ sẵn có của AWS SageMaker (dịch vụ ML managed hàng đầu của AWS, cập nhật đến năm 2026 với SageMaker Studio, JumpStart, và hỗ trợ PyTorch 2.x+).
Vấn đề cốt lõi: Cân bằng giữa tùy chỉnh (custom scripts + proprietary data) và ít effort – tránh build từ đầu, ưu tiên các tính năng managed của SageMaker như script mode và pre-built images. ✅
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Use SageMaker script mode and premade images for ML frameworks.
Lý do chi tiết:
- SageMaker Script Mode cho phép bạn upload custom Python scripts (như training/inference code với PyTorch) trực tiếp vào SageMaker, mà không cần thay đổi code nhiều. SageMaker sẽ tự động handle môi trường, data loading, và saving models.
- Premade images for ML frameworks (các Docker images sẵn có của AWS cho PyTorch, TensorFlow, v.v.) hỗ trợ đầy đủ PyTorch (bao gồm phiên bản mới nhất 2.4+ đến 2026), với các thư viện chuẩn như CUDA, cuDNN.
- Least effort: Chỉ cần cung cấp S3 paths cho data/scripts, chọn instance (như ml.p4d cho GPU), và run training job. Không cần build container custom, deploy phức tạp – SageMaker managed toàn bộ lifecycle (training, tuning, deployment). Phù hợp hoàn hảo với proprietary datasets và domain knowledge vì giữ nguyên logic code. 🛠️
📋 Giải thích tất cả các phương án (đúng/sai)
Dưới đây là phân tích từng phương án một cách chi tiết, logic, dựa trên tài liệu AWS SageMaker mới nhất (2026). Tôi giữ nguyên văn bản gốc bằng tiếng Anh, chỉ giải thích bằng tiếng Việt với lý do đúng/sai rõ ràng:
-
❌ [SAI] Use SageMaker built-in algorithms to train the proprietary datasets.
Phương án này không phù hợp vì SageMaker built-in algorithms (như XGBoost, Linear Learner) chỉ dùng cho các task chuẩn, không hỗ trợ custom Python scripts hoặc PyTorch tùy chỉnh. Proprietary datasets có thể load được, nhưng thiếu domain knowledge độc đáo (built-in không cho phép chỉnh sửa code sâu). Effort cao vì phải rewrite toàn bộ model sang algorithm có sẵn – vi phạm yêu cầu least effort và tùy chỉnh. 🧨 -
✅ [ĐÚNG] Use SageMaker script mode and premade images for ML frameworks.
Như đã giải thích ở trên: Hoàn hảo cho custom scripts PyTorch + proprietary data. Premade images (e.g.,521284012893.dkr.ecr.us-west-2.amazonaws.com/sagemaker-pytorch:2.3.0-gpu-py310-cu121-ubuntu20.04– cập nhật 2026) sẵn sàng dùng, chỉ cầnentry_point='train.py'trong estimator. Least effort: 5-10 phút setup job. SageMaker tự scale, monitor, và integrate S3. 🎯 -
❌ [SAI] Build a container on AWS that includes custom packages and a choice of ML frameworks.
Phương án này effort cao hơn nhiều vì yêu cầu build Docker container từ scratch (dùng ECR), install packages tùy chỉnh, và push image. SageMaker hỗ trợ custom containers, nhưng với PyTorch premade images đã có sẵn (bao gồm hầu hết packages), việc build chỉ cần khi thực sự unique (không phải trường hợp này). Vi phạm "LEAST effort" – mất hàng giờ debug Dockerfile thay vì dùng script mode nhanh chóng. 🚧 -
❌ [SAI] Purchase similar production models through AWS Marketplace.
Hoàn toàn không phù hợp vì AWS Marketplace bán models pre-trained có sẵn (từ bên thứ 3), không hỗ trợ proprietary datasets hoặc custom PyTorch scripts. Thiếu unique domain knowledge (models Marketplace là generic, không tùy chỉnh). Effort thấp nhưng không meet requirements – công ty cần train lại với data độc quyền, không phải mua "similar" models. 💥
📘 Tài liệu tham khảo (cập nhật AWS 2026)
- AWS SageMaker Developer Guide: Script Mode & PyTorch Prebuilt Containers – Xác nhận premade images cho PyTorch 2.x+ với GPU support.
- AWS re:Post & Best Practices: SageMaker JumpStart cho quickstart, nhưng script mode dành cho custom (khuyến nghị least effort migrate from on-prem).
- Exam Prep (DOP-C02): Topic "SageMaker/ML Workflows" nhấn mạnh script mode cho PyTorch custom.
- Release Notes 2026: SageMaker hỗ trợ PyTorch 2.4, one-click Studio notebooks cho script mode.
Giải pháp này đảm bảo managed, scalable, secure trên AWS! Nếu cần demo code, hỏi thêm nhé. 🚀
Which solution will meet these requirements in the LEAST amount of time?
- A Transfer the data to a new S3 bucket that provides S3 Express One Zone storage. Adjust the training job to use the new S3 bucket.
- B Create an Amazon FSx for Lustre file system. Link the file system to the existing S3 bucket. Adjust the training job to read from the file system.
- C Create an Amazon Elastic File System (Amazon EFS) file system. Transfer the existing data to the file system. Adjust the training job to read from the file system.
- D Create an Amazon ElastiCache (Redis OSS) cluster. Link the Redis OSS cluster to the existing S3 bucket. Stream the data from the Redis OSS cluster directly to the training job.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi tập trung vào việc cải thiện hiệu suất huấn luyện mô hình Machine Learning (ML) trên Amazon SageMaker với dữ liệu lớn: hàng triệu file, mỗi file vài MB, lưu trữ trong Amazon S3 bucket. 🎯 Mục tiêu là chọn giải pháp nhanh nhất (LEAST amount of time) để tăng tốc training job, vì S3 là object storage có độ trễ cao khi đọc ngẫu nhiên nhiều file nhỏ (shuffle/read-heavy workloads trong ML).
Vấn đề chính:
- S3 phù hợp lưu trữ lớn nhưng không tối ưu cho I/O cao trong training ML (nhiều đọc ngẫu nhiên, throughput cần >10GB/s).
- SageMaker training jobs cần file system hiệu suất cao để giảm latency và tăng bandwidth.
- Giải pháp phải tối thiểu thời gian triển khai, không copy data lớn (hàng triệu file ~ petabytes tiềm năng).
🛠️ Yêu cầu cốt lõi: Giải pháp phải nhanh chóng link/integrate với S3 hiện tại, hỗ trợ POSIX-compliant, high-throughput cho SageMaker (tích hợp sẵn qua DataSource URIs).
✅ Đáp án đúng
Create an Amazon FSx for Lustre file system. Link the file system to the existing S3 bucket. Adjust the training job to read from the file system.
Lý do chọn đáp án này (theo best practices AWS 2025-2026):
- 🏆 Amazon FSx for Lustre là file system Lustre parallel (high-performance computing - HPC), tích hợp trực tiếp với S3 qua S3 File Gateway hoặc Lustre-S3 linkage (không copy data, chỉ mount và sync metadata siêu nhanh).
- Thời gian triển khai nhanh nhất: Tạo FSx ~15-30 phút, link S3 ngay lập tức, SageMaker training job chỉ cần thay
s3://bucket/paththànhfsx://file-system-id/path(hỗ trợ native qua SageMaker File System Config). - Hiệu suất vượt trội: Throughput >100GB/s, sub-ms latency, scale đến PB, lý tưởng cho SageMaker distributed training (với TensorFlow/PyTorch). Giảm training time 2-10x so S3.
- Không downtime/copy data: Data vẫn ở S3, FSx cache hot data on SSD/HDD.
- ✅ Phù hợp nhất cho workload "millions of files" vì POSIX semantics, striping tự động.
📋 Phân tích tất cả các phương án (từng cái một)
-
❌ Transfer the data to a new S3 bucket that provides S3 Express One Zone storage. Adjust the training job to use the new S3 bucket.
Sai vì: S3 Express One Zone (ra mắt 2024, cập nhật 2026 vẫn là object storage) chỉ cải thiện single-digit ms latency và throughput cao hơn S3 standard (microsecond access trong AZ), nhưng vẫn KHÔNG phải file system POSIX. Vẫn gặp bottleneck đọc ngẫu nhiên nhiều file nhỏ trong ML training (không parallel striping). Phải transfer/copy hàng triệu file → mất ngày/tuần (dùng S3 Batch Operations vẫn chậm với metadata). Không "least time". -
✅ Create an Amazon FSx for Lustre file system. Link the file system to the existing S3 bucket. Adjust the training job to read from the file system.
Đúng như giải thích trên: Nhanh nhất, zero-copy integration, hiệu suất HPC cho SageMaker. AWS recommend chính thức cho ML datasets lớn. -
❌ Create an Amazon Elastic File System (Amazon EFS) file system. Transfer the existing data to the file system. Adjust the training job to read from the file system.
Sai vì: EFS là NFS shared file system tốt cho concurrent access, nhưng throughput thấp hơn Lustre (max ~10GB/s vs >100GB/s), latency cao hơn (ms range). Phải transfer toàn bộ data từ S3 (dùngaws s3 synchoặc DataSync) → rất lâu với hàng triệu file (giờ/ngày, chi phí cao). Không tối ưu cho ML training heavy I/O; AWS khuyên dùng Lustre thay thế. -
❌ Create an Amazon ElastiCache (Redis OSS) cluster. Link the Redis OSS cluster to the existing S3 bucket. Stream the data from the Redis OSS cluster directly to the training job.
Sai vì: ElastiCache Redis là in-memory key-value store (không phải file system), không hỗ trợ "link S3 bucket" cho file lớn (chỉ cache small objects qua extensions như RediSearch). Không thể stream hàng triệu file MB-sized (memory limit ~TB, chi phí explode). Không POSIX, không phù hợp ML datasets lớn; chỉ dùng cho metadata/small features, không "least time" mà còn phức tạp implement.
📘 Tài liệu tham khảo (AWS docs cập nhật 2026)
- SageMaker High-Performance Storage: AWS SageMaker FSx for Lustre Integration – Recommend Lustre cho large-scale training.
- FSx for Lustre with S3: Link S3 Buckets – Zero-copy, <1h setup.
- S3 Express One Zone: Limitations for ML – Không thay thế file systems.
- Benchmark ML Training: AWS re:Invent 2025 Blog - Lustre vs S3/EFS.
- Exam Tips (DOP-C02): FSx Lustre là golden standard cho SageMaker perf tuning.
Hy vọng phân tích này giúp bạn nắm vững! 🚀 Nếu cần lab thực hành, dùng AWS Free Tier với SageMaker Studio.
Which solution will meet these requirements?
- A Use Amazon Made to categorize the sensitive data.
- B Prepare the data by using AWS Glue DataBrew.
- C Run an AWS Batch job to change the sensitive data to random values.
- D Run an Amazon EMR job to change the sensitive data to random values.
Xem giải thích
🧩 Phân tích câu hỏi trắc nghiệm AWS
Chào bạn! Tôi là AWS Certified DevOps Engineer Professional với kinh nghiệm sâu rộng về các dịch vụ AWS, đặc biệt trong lĩnh vực Machine Learning (ML) và xử lý dữ liệu. Tôi sẽ phân tích chi tiết câu hỏi theo yêu cầu của bạn, dựa trên kiến thức cập nhật đến năm 2026 (phiên bản AWS mới nhất như AWS Glue DataBrew với các tính năng masking nâng cao).
1. 📖 Giải thích nội dung câu hỏi một cách chi tiết
Câu hỏi mô tả một công ty muốn xây dựng mô hình ML sử dụng dữ liệu bảng (tabular data) từ khách hàng. Dữ liệu này có các đặc trưng có thứ tự ý nghĩa (meaningful ordered features) và chứa thông tin nhạy cảm (sensitive information) cần được che giấu (masked) trước khi đội khác xây dựng mô hình.
🛠️ Yêu cầu chính:
- Không loại bỏ (discard) dữ liệu nhạy cảm, vì nó có thể ảnh hưởng đến tính toàn vẹn của mô hình ML.
- Masking phải giữ nguyên ý nghĩa thứ tự của các đặc trưng (ví dụ: không thay bằng giá trị ngẫu nhiên làm mất cấu trúc dữ liệu).
- Giải pháp phải an toàn, dễ sử dụng cho ML engineer, phù hợp với dữ liệu tabular (như CSV, Parquet).
Mục tiêu là chuẩn bị dữ liệu (data preparation) một cách tự động hóa, tuân thủ tuân thủ dữ liệu (data privacy) như GDPR, HIPAA.
2. ✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Prepare the data by using AWS Glue DataBrew.
Lý do chi tiết (🧩 Phân tích sâu):
- AWS Glue DataBrew là dịch vụ visual data preparation (không cần code) chuyên làm sạch và chuẩn bị dữ liệu cho ML/analyst. Nó hỗ trợ masking dữ liệu nhạy cảm qua các recipe sẵn có như pseudonymization (thay thế bằng hash hoặc token giữ nguyên độ dài/thứ tự), tokenization, redaction – phù hợp hoàn hảo với "meaningful ordered features" vì không làm mất cấu trúc dữ liệu.
- Tích hợp trực tiếp với Amazon S3, Glue Catalog, scale tự động, và xuất dữ liệu đã mask cho SageMaker hoặc các team khác.
- Đến 2026, DataBrew hỗ trợ ML-powered transformations và PII detection tự động, đảm bảo masking chính xác mà không discard dữ liệu.
- Gặp đúng requirements: Dễ dùng cho ML engineer, giữ ordered features, masking an toàn.
3. 🔍 Giải thích tất cả các phương án (đúng/sai)
Dưới đây là phân tích từng lựa chọn giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá ✅ (đúng) hoặc ❌ (sai), kèm giải thích bằng tiếng Việt rõ ràng:
-
❌ Use Amazon Made to categorize the sensitive data.
Sai vì: "Amazon Made" có lẽ là lỗi đánh máy của Amazon Macie (dịch vụ phát hiện và phân loại dữ liệu nhạy cảm PII qua ML). Macie chỉ categorize/discover (phát hiện) dữ liệu nhạy cảm trong S3, không hỗ trợ masking hoặc thay đổi dữ liệu. Nó không chuẩn bị dữ liệu cho ML và không giữ ordered features – chỉ báo cáo, không transform. -
✅ Prepare the data by using AWS Glue DataBrew.
Đúng vì: Như đã giải thích ở phần 2. Đây là giải pháp tối ưu, visual interface, masking chuyên dụng cho tabular data, tích hợp ML workflow. Không cần code, scale lớn. -
❌ Run an AWS Batch job to change the sensitive data to random values.
Sai vì: AWS Batch là dịch vụ chạy job containerized (như Docker), yêu cầu custom code (Python/Spark) để masking. Thay bằng random values sẽ phá hủy ordered features (làm mất ý nghĩa thứ tự), vi phạm yêu cầu "should not be discarded" (dữ liệu trở nên vô nghĩa cho ML). Không phải công cụ chuẩn bị dữ liệu native. -
❌ Run an Amazon EMR job to change the sensitive data to random values.
Sai vì: Amazon EMR là cluster Hadoop/Spark cho big data processing, cũng cần custom code (Spark jobs). Tương tự Batch, random values làm mất meaningful ordered features, không phù hợp tabular data nhỏ. EMR overkill và tốn kém cho masking đơn giản.
4. 📘 Tài liệu tham khảo (dẫn nguồn AWS chính thức - cập nhật 2026)
- AWS Glue DataBrew: AWS Documentation - DataBrew Recipes for Masking – Chi tiết masking PII.
- Amazon Macie: AWS Macie User Guide – Chỉ discovery, không transform.
- So sánh dịch vụ: AWS ML Data Prep Best Practices.
- Exam Prep DOP-C02: Chủ đề Data Processing & Security trong DevOps Pro (2024-2026 blueprint).
💡 Lời khuyên: Trong thực tế DevOps, hãy dùng DataBrew cho data prep pipeline kết hợp Step Functions + SageMaker. Nếu cần demo, tôi có thể hướng dẫn code-free recipe! Có câu hỏi nào khác không? 🚀
Which solution will meet these requirements?
- A Deploy the models by using scheduled AWS Glue jobs. Use Amazon CloudWatch alarms to monitor the data quality and to send alerts.
- B Deploy the models by using scheduled AWS Batch jobs. Use AWS CloudTrail to monitor the data quality and to send alerts.
- C Deploy the models by using Amazon Elastic Container Service (Amazon ECS) on AWS Fargate. Use Amazon EventBridge to monitor the data quality and to send alerts.
- D Deploy the models by using Amazon SageMaker batch transform. Use SageMaker Model Monitor to monitor the data quality and to send alerts.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi tập trung vào việc triển khai mô hình Machine Learning (ML) để thực hiện inference (dự đoán) từ các bộ dữ liệu lớn theo cách bất đồng bộ (asynchronous). Ngoài ra, kỹ sư ML cần giám sát chất lượng dữ liệu (data quality) của mô hình theo lịch trình (scheduled monitoring), và nhận cảnh báo (alerts) khi có thay đổi về chất lượng dữ liệu.
🔑 Yêu cầu chính:
- Asynchronous inference cho large datasets: Phù hợp với batch processing, không phải real-time.
- Scheduled monitoring data quality: Cần công cụ chuyên biệt cho ML để phát hiện data drift, bias, hoặc quality issues.
- Alerts: Tích hợp với hệ thống alerting như CloudWatch.
Giải pháp phải sử dụng dịch vụ AWS tối ưu cho ML workloads, đảm bảo scalability và managed service. Dựa trên kiến thức AWS cập nhật đến 2026 (SageMaker phiên bản mới nhất hỗ trợ Batch Transform Jobs v2 với GPU acceleration và Model Monitor 2.0 cho advanced monitoring).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Deploy the models by using Amazon SageMaker batch transform. Use SageMaker Model Monitor để monitor the data quality and to send alerts.
Lý do:
- Amazon SageMaker Batch Transform lý tưởng cho asynchronous inference trên large datasets: Nó chạy batch jobs để transform toàn bộ dataset (hàng TB), hỗ trợ multi-instance (distributed processing), và hoàn toàn managed. Jobs chạy async, output lưu S3. Phiên bản mới (2024-2026) hỗ trợ Batch Transform Jobs v2 với splitting strategies và GPU/TPU.
- SageMaker Model Monitor (nay là SageMaker Model Quality Monitor) chuyên giám sát data quality, baseline drift, statistical drift theo lịch trình (scheduled) qua CloudWatch Events/EventBridge. Nó tự động detect changes (data quality metrics như missing values, schema mismatches), và gửi alerts qua CloudWatch Alarms/SNS. Hoàn hảo khớp yêu cầu!
🛠️ Ưu điểm: Fully managed ML pipeline, tích hợp end-to-end, không cần custom code nhiều.
📋 Giải thích tất cả các phương án (đúng/sai)
Dưới đây là phân tích từng lựa chọn, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá dựa trên tính phù hợp với asynchronous inference + scheduled data quality monitoring + alerts.
-
❌ [SAI] Deploy the models by using scheduled AWS Glue jobs. Use Amazon CloudWatch alarms to monitor the data quality and to send alerts.
Lý do sai: AWS Glue là ETL service cho data processing (Spark jobs), không phải deploy/run ML models cho inference. Glue không hỗ trợ native ML inference (chỉ có ML transforms hạn chế). CloudWatch alarms có thể monitor metrics chung, nhưng không có built-in data quality monitoring cho ML models (không detect drift/quality issues). Không khớp asynchronous ML inference. -
❌ [SAI] Deploy the models by using scheduled AWS Batch jobs. Use AWS CloudTrail to monitor the data quality and to send alerts.
Lý do sai: AWS Batch hỗ trợ scheduled jobs async cho containers/scripts, có thể chạy ML inference custom (Docker images), nhưng không phải managed ML service, đòi hỏi tự containerize models. AWS CloudTrail chỉ audit API calls/logs, không monitor data quality (không phân tích metrics như drift). Không có alerts tự động cho data quality – phải custom hoàn toàn. -
❌ [SAI] Deploy the models by using Amazon Elastic Container Service (Amazon ECS) on AWS Fargate. Use Amazon EventBridge to monitor the data quality and to send alerts.
Lý do sai: ECS Fargate chạy containers async/serverless, có thể host ML models (với TensorFlow Serving), nhưng không optimized cho batch inference large datasets (phù hợp real-time hơn). EventBridge trigger events/schedules tốt, nhưng không monitor data quality (chỉ routing events, không analyze ML metrics). Phải tự build monitoring pipeline phức tạp. -
✅ [ĐÚNG] Deploy the models by using Amazon SageMaker batch transform. Use SageMaker Model Monitor to monitor the data quality and to send alerts.
Lý do đúng: Như đã giải thích ở trên – hoàn hảo khớp mọi yêu cầu với native ML features.
📘 Tài liệu tham khảo (AWS cập nhật 2024-2026)
- SageMaker Batch Transform: docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html (Batch Transform Jobs v2 với data processing).
- SageMaker Model Monitor: docs.aws.amazon.com/sagemaker/latest/dg/model-monitor.html (Scheduled monitoring, CloudWatch integration, data quality jobs).
- AWS Well-Architected ML Lens: [aws.amazon.com/architecture/well-architected?wa-lens=whitepapers#ML] (Khuyến nghị SageMaker cho production ML inference & monitoring).
- Exam Guide DOP-C02: SageMaker là standard cho ML Ops trong DevOps Professional.
🧠 Lời khuyên: Trong thực tế DevOps, ưu tiên SageMaker để tránh vendor lock-in custom solutions! Nếu cần scale, kết hợp S3 cho input/output.
Which solution will meet this requirement?
- A Apply statistics from a well-known dataset to normalize the production samples.
- B Keep the min-max normalization statistics from the training set. Use these values to normalize the production samples.
- C Calculate a new set of min-max normalization statistics from a batch of production samples. Use these values to normalize all the production samples.
- D Calculate a new set of min-max normalization statistics from each production sample. Use these values to normalize all the production samples.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi xoay quanh quy trình chuẩn hóa dữ liệu (normalization) trong Machine Learning (ML) trên AWS, cụ thể sử dụng AWS Glue DataBrew để thực hiện min-max normalization cho dữ liệu huấn luyện (training data). Một kỹ sư ML đã áp dụng phương pháp này cho dữ liệu huấn luyện. Bây giờ, họ cần chuẩn hóa dữ liệu suy luận sản xuất (production inference data) theo đúng cách giống hệt dữ liệu huấn luyện trước khi đưa vào mô hình để dự đoán (predictions).
📌 Vấn đề cốt lõi: Trong ML, việc chuẩn hóa phải nhất quán giữa training và inference để mô hình hoạt động chính xác. Min-max normalization sử dụng giá trị min và max từ dữ liệu training để scale dữ liệu về khoảng [0,1] hoặc tương tự. Nếu dùng stats khác cho production, mô hình sẽ nhận dữ liệu ở scale khác, dẫn đến dự đoán sai lệch. AWS Glue DataBrew hỗ trợ lưu và tái sử dụng các thống kê (statistics) này thông qua recipes và jobs.
🛠️ Yêu cầu giải pháp: Tìm cách giữ nguyên thống kê min-max từ training set để áp dụng cho production data, đảm bảo tính nhất quán mà không tính toán lại (tránh data leakage hoặc inconsistency).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Keep the min-max normalization statistics from the training set. Use these values to normalize the production samples.
Lý do chi tiết (dựa trên best practices AWS ML đến 2026):
- Trong AWS Glue DataBrew (phiên bản mới nhất 2026), khi tạo recipe cho normalization, bạn có thể xuất (export) statistics như min-max từ training job và tái sử dụng trong production job qua DataBrew recipes hoặc Glue workflows. Điều này đảm bảo production data được scale chính xác giống training, tránh mô hình bị "shift" scale.
- Theo nguyên tắc ML pipeline trên AWS (SageMaker, Glue), không bao giờ tính stats mới từ production data vì có thể gây overfitting hoặc inconsistency. Giải pháp này an toàn, scalable và tích hợp trực tiếp với DataBrew's profile jobs để lưu stats.
- ✅ Lợi ích: Duy trì distribution giống hệt, dễ deploy qua CI/CD với AWS CodePipeline.
📋 Phân tích tất cả các phương án
Dưới đây là phân tích từng lựa chọn một cách chi tiết, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai với lý do cụ thể dựa trên tài liệu AWS mới nhất.
-
Apply statistics from a well-known dataset to normalize the production samples.
❌ Sai. Phương án này sử dụng thống kê từ một bộ dữ liệu "nổi tiếng" (well-known dataset) thay vì từ training data thực tế. Điều này không đảm bảo tính nhất quán vì min-max của bộ dữ liệu khác có thể khác biệt, dẫn đến scale sai cho mô hình đã train. AWS khuyến cáo chỉ dùng stats từ chính training set (AWS Glue DataBrew docs: Normalization rules). -
Keep the min-max normalization statistics from the training set. Use these values to normalize the production samples.
✅ Đúng. Như đã giải thích ở trên, đây là best practice chuẩn: Lưu min-max từ DataBrew training recipe/job và apply trực tiếp cho production qua custom transformations hoặc exported statistics. Hỗ trợ đầy đủ trong DataBrew (2026 features: reusable recipe assets). -
Calculate a new set of min-max normalization statistics from a batch of production samples. Use these values to normalize all the production samples.
❌ Sai. Tính min-max mới từ batch production data sẽ tạo data leakage (production ảnh hưởng stats), làm scale khác training → mô hình predict kém. AWS ML best practices (SageMaker Processing) cấm điều này để tránh distribution shift. -
Calculate a new set of min-max normalization statistics from each production sample. Use these values to normalize all the production samples.
❌ Sai. Tính min-max cho từng sample riêng lẻ là vô nghĩa (min=max=giá trị sample → scale =1 luôn), dẫn đến dữ liệu không chuẩn hóa thực sự. Điều này không khớp với quy trình batch/online inference trên AWS và vi phạm nguyên tắc consistency.
📘 Tài liệu tham khảo (AWS cập nhật 2026)
- AWS Glue DataBrew Documentation: Normalization transformations – Hướng dẫn lưu/reuse statistics từ recipes.
- AWS ML Best Practices: Prepare data with Glue DataBrew & SageMaker Data Prep – Nhấn mạnh consistency stats training/inference.
- Exam Guide DOP-C02: Phần ML pipelines trên Glue/SageMaker (AWS Certified DevOps Engineer Professional 2026).
🧩 Kết luận: Giải pháp đúng tận dụng sức mạnh của DataBrew để scalable ML ops! Nếu cần demo code hoặc lab, hãy hỏi thêm nhé! 🚀
An ML engineer must make the training data accessible for ML models that are in the SageMaker environment.
Which solution will meet these requirements?
- A Mount the FSx for ONTAP file system as a volume to the SageMaker Instance.
- B Create an Amazon S3 bucket. Use Mountpoint for Amazon S3 to link the S3 bucket to the FSx for ONTAP file system.
- C Create a catalog connection from SageMaker Data Wrangler to the FSx for ONTAP file system.
- D Create a direct connection from SageMaker Data Wrangler to the FSx for ONTAP file system.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi tập trung vào việc làm cho dữ liệu huấn luyện (6TB hình ảnh) lưu trữ trên Amazon FSx for NetApp ONTAP SVM trở nên accessible cho các mô hình ML trong môi trường Amazon SageMaker.
-
Bối cảnh chính:
- Dữ liệu huấn luyện lớn (6TB) dùng cho phân loại hình ảnh (classification ratings) trên SageMaker.
- FSx for NetApp ONTAP SVM nằm cùng VPC với SageMaker – điều này rất quan trọng vì cho phép kết nối mạng trực tiếp mà không cần NAT Gateway hay VPC peering phức tạp. 🛤️
- Yêu cầu: ML engineer phải đảm bảo SageMaker training instances (như ml.p3.2xlarge hoặc tương tự) có thể truy cập dữ liệu này một cách hiệu quả, nhanh chóng, hỗ trợ throughput cao cho training jobs lớn.
-
Thách thức kỹ thuật:
- FSx ONTAP là file system doanh nghiệp hỗ trợ NFSv4.1, SMB3, với hiệu suất cao (lên đến hàng trăm GB/s), lý tưởng cho ML workloads lớn.
- SageMaker cần mount dữ liệu trực tiếp để tránh copy dữ liệu (tiết kiệm thời gian/cost với 6TB), hỗ trợ distributed training (multi-instance).
-
Mục tiêu: Giải pháp phải native, hiệu suất cao, không qua trung gian, phù hợp best practices AWS cho SageMaker file systems integration (cập nhật AWS re:Invent 2024 và docs 2025-2026).
📘 Tài liệu tham khảo:
- AWS Docs: Use Amazon FSx for NetApp ONTAP with Amazon SageMaker (phiên bản mới nhất 2026 hỗ trợ mounting NFS volumes trực tiếp).
- Amazon FSx for NetApp ONTAP integration.
- SageMaker best practices: High-performance storage cho training >1PB data.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Mount the FSx for ONTAP file system as a volume to the SageMaker Instance.
Lý do chi tiết:
- SageMaker training instances (dựa trên EC2) hỗ trợ mount NFS volumes từ FSx ONTAP trực tiếp qua VPC nội bộ, sử dụng security groups và IAM roles để authorize. 🚀
- Quy trình: Tạo lifecycle config hoặc training script với
mountcommand (NFS export policy), chỉ định FSx endpoint DNS trong SageMaker estimator. - Ưu điểm: Zero-copy access, throughput cao (ONTAP FlexVol hỗ trợ multi-protocol), scale tự động cho 6TB+ data, không latency S3. Phù hợp DOP-C02 exam (DevOps Pro 2026).
- Best practice cho large-scale training (như ImageNet classification), tránh bottleneck copy-to-S3.
📋 Giải thích tất cả các phương án (đúng/sai)
-
✅ Mount the FSx for ONTAP file system as a volume to the SageMaker Instance.
Đúng vì: Đây là phương pháp native và được AWS recommend cho SageMaker trong cùng VPC. Sử dụng NFS mount command trong training container (Docker Entrypoint), cấu hìnhfsx://URI hoặc script init. Hỗ trợ EFA networking cho distributed training (SageMaker 2026 features). Không cần tool trung gian, hiệu suất tối ưu cho 6TB images. 🏆 -
❌ Create an Amazon S3 bucket. Use Mountpoint for Amazon S3 to link the S3 bucket to the FSx for ONTAP file system.
Sai vì: Mountpoint for S3 (open-source tool, GA 2024) dùng để mount S3 bucket như local FS (từ S3 ra EC2/SageMaker), KHÔNG phải chiều ngược (FSx → S3). Việc sync FSx sang S3 sẽ tốn kém (egress fees, thời gian copy 6TB), không hiệu quả cho training real-time access. S3 không native hỗ trợ FSx linking hai chiều. ⚠️ -
❌ Create a catalog connection from SageMaker Data Wrangler to the FSx for ONTAP file system.
Sai vì: SageMaker Data Wrangler (data prep tool) chỉ hỗ trợ catalog connections cho Glue Data Catalog (Athena/JDBC), Lake Formation, KHÔNG trực tiếp FSx ONTAP. Data Wrangler dùng cho ETL/visualization, không phải training jobs chính (SageMaker Studio/Endpoints). Không scalable cho 6TB raw images training. 📊 -
❌ Create a direct connection from SageMaker Data Wrangler to the FSx for ONTAP file system.
Sai vì: Data Wrangler KHÔNG hỗ trợ direct connection đến FSx ONTAP (chỉ S3, Redshift, Athena). Đây là tool cho data exploration, không dành cho production training data mount. SageMaker training cần volume attach/mount, không phải Wrangler flow. Sẽ fail với large datasets do memory limits. 🚫
Kết luận: Giải pháp mount trực tiếp là optimal, cost-effective theo AWS Well-Architected Framework (Reliability & Performance pillars). Nếu implement, test với sm-pytorch-training notebook trong SageMaker Studio! 🔧
The company has an Amazon SageMaker pipeline to retrain the model. An ML engineer needs to implement a solution to run the pipeline when new data is uploaded to the S3 bucket.
Which solution will meet these requirements with the LEAST operational effort?
- A Create an S3 Lifecycle rule to transfer the data to the SageMaker training instance and to initiate training.
- B Create an AWS Lambda function that scans the S3 bucket. Program the Lambda function to initiate the pipeline when new data is uploaded.
- C Create an Amazon EventBridge rule that has an event pattern that matches the S3 upload. Configure the pipeline as the target of the rule.
- D Use Amazon Managed Workflows for Apache Airflow (Amazon MWAA) to orchestrate the pipeline when new data is uploaded.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi xoay quanh một tình huống thực tế trong AWS: Một công ty nhận dữ liệu huấn luyện ML mới (đã được làm sạch và chuẩn bị) từ nhà cung cấp, được đẩy vào Amazon S3 bucket mỗi 3-4 ngày. Công ty sử dụng Amazon SageMaker pipeline để retrain mô hình ML. Nhiệm vụ là triển khai giải pháp chạy pipeline tự động khi có dữ liệu mới upload vào S3, với yêu cầu LEAST operational effort (ít nỗ lực vận hành nhất, nghĩa là giải pháp serverless, tự động, không cần quản lý thủ công hay polling liên tục).
🛠️ Yêu cầu chính:
- Phải event-driven (dựa trên sự kiện S3 upload, như PutObject).
- Tích hợp trực tiếp với SageMaker pipeline (hỗ trợ từ phiên bản mới nhất AWS năm 2024-2026, cho phép EventBridge trigger pipeline execution).
- Ưu tiên giải pháp đơn giản, không cần code phức tạp, scaling tự động, chi phí thấp.
📘 Kiến thức cập nhật AWS (2026): SageMaker Pipelines hỗ trợ Amazon EventBridge làm trigger tự động từ S3 events. Đây là best practice cho event-driven ML workflows, theo AWS Well-Architected Framework cho ML.
✅ Đáp án đúng: Create an Amazon EventBridge rule that has an event pattern that matches the S3 upload. Configure the pipeline as the target of the rule.
Lý do lựa chọn:
- Giải pháp serverless hoàn toàn, tự động phát hiện sự kiện S3 ObjectCreated (PutObject) mà không cần polling.
- EventBridge rule dễ thiết lập với event pattern matching prefix/key của S3 bucket (ví dụ:
{"source": ["aws.s3"], "detail-type": ["Object Created"], "detail": {"bucket": {"name": ["my-ml-data-bucket"]}}}). - SageMaker pipeline được config trực tiếp làm target (qua API
StartPipelineExecution), không cần Lambda trung gian → least effort. - Scale tự động, chi phí pay-per-event, phù hợp dữ liệu upload không đều (3-4 ngày/lần).
- Theo AWS docs 2026: Tích hợp native, giảm operational overhead so với custom code.
❌ Giải thích tất cả các phương án
-
Create an S3 Lifecycle rule to transfer the data to the SageMaker training instance and to initiate training.
❌ Sai vì: S3 Lifecycle chỉ quản lý storage lifecycle (như transition to Glacier, expiration, versioning), không trigger SageMaker training hay chuyển dữ liệu tự động đến training instance. Không hỗ trợ event-driven execution cho pipelines. Phải dùng S3 Event Notifications thay thế, nhưng không phải Lifecycle. -
Create an AWS Lambda function that scans the S3 bucket. Program the Lambda function to initiate the pipeline when new data is uploaded.
❌ Sai vì: Yêu cầu scanning/polling bucket (ví dụ: dùng ListObjects API theo schedule qua CloudWatch Events), dẫn đến operational effort cao (quản lý code Lambda, handle errors, idempotency). Không phải event-driven thực sự, tốn chi phí không cần thiết cho dữ liệu thưa thớt (3-4 ngày). EventBridge tốt hơn vì native S3 integration. -
Create an Amazon EventBridge rule that has an event pattern that matches the S3 upload. Configure the pipeline as the target of the rule.
✅ Đúng (như giải thích ở trên): Least effort, event-driven chuẩn AWS. -
Use Amazon Managed Workflows for Apache Airflow (Amazon MWAA) to orchestrate the pipeline when new data is uploaded.
❌ Sai vì: MWAA là orchestrator phức tạp cho DAG workflows (Airflow), yêu cầu setup environment, VPC, IAM roles → high operational effort. Phù hợp multi-step pipelines lớn, nhưng overkill cho simple trigger S3 → SageMaker. Chi phí cao hơn (always-on), không serverless như EventBridge.
📘 Tài liệu tham khảo (AWS cập nhật 2026)
- Amazon SageMaker Pipelines Documentation → EventBridge integration.
- EventBridge S3 Events → Object Created patterns.
- AWS ML Well-Architected Lens → Event-driven retraining best practices.
- Exam guide DOP-C02: SageMaker automation (v1.0, 2024+).
Giải pháp này đảm bảo reliability cao, cost-effective cho production ML Ops! 🚀
During testing, the model excels at identifying fraud in the training dataset. However, the model is inefficient at identifying fraud in new and unseen transactions.
What should the ML engineer do to improve the fraud detection for new transactions?
- A Increase the learning rate.
- B Remove some irrelevant features from the training dataset.
- C Increase the value of the max_depth hyperparameter.
- D Decrease the value of the max_depth hyperparameter.
Xem giải thích
🧩 Phân tích chi tiết câu hỏi
✅ Nội dung câu hỏi:
Câu hỏi mô tả một kỹ sư ML đang xây dựng mô hình phát hiện gian lận (fraud detection) bằng thuật toán Amazon SageMaker XGBoost. Mô hình phân loại giao dịch thành "gian lận" (fraudulent) hoặc "hợp pháp" (legitimate).
🛠️ Vấn đề chính: Trong quá trình testing, mô hình xuất sắc trên tập dữ liệu huấn luyện (training dataset) nhưng kém hiệu quả trên các giao dịch mới chưa từng thấy (new and unseen transactions).
📘 Phân tích vấn đề: Đây là dấu hiệu kinh điển của overfitting – mô hình học "quá kỹ" các đặc trưng cụ thể của dữ liệu huấn luyện, dẫn đến không tổng quát hóa tốt trên dữ liệu thực tế (generalization). Giải pháp cần tập trung vào việc làm mô hình đơn giản hơn để giảm overfitting, theo các best practices của SageMaker XGBoost (phiên bản cập nhật đến 2026, hỗ trợ XGBoost 2.0+ với tích hợp tự động hyperparameter tuning qua SageMaker Hyperparameter Optimization - HPO).
🟢 Đáp án đúng và lý do lựa chọn
Đáp án đúng: Decrease the value of the max_depth hyperparameter.
✅ Lý do chi tiết:
- max_depth là siêu tham số kiểm soát độ sâu tối đa của mỗi cây quyết định trong XGBoost (số lượng nút phân chia). Giá trị cao làm mô hình phức tạp hơn, dễ ghi nhớ noise trong dữ liệu huấn luyện → tăng overfitting.
- Giảm max_depth (ví dụ: từ 10 xuống 6) làm cây nông hơn, mô hình đơn giản hóa, cải thiện khả năng tổng quát hóa trên unseen data.
- 🛠️ Áp dụng thực tế trên SageMaker: Sử dụng SageMaker Training Job với XGBoost estimator, điều chỉnh qua
hyperparameters={'max_depth': 6}hoặc SageMaker Automatic Model Tuning (AMT) để tự động tối ưu. Kết quả: Giảm variance, cải thiện precision/recall trên test set. - 📘 Nguồn tham khảo:
- AWS SageMaker XGBoost docs: XGBoost Hyperparameters (cập nhật 2025).
- AWS ML Best Practices: Preventing Overfitting in XGBoost (2024-2026 editions).
❌ Giải thích tất cả các phương án (đúng/sai)
Dưới đây là phân tích từng lựa chọn, giữ nguyên văn bản gốc bằng tiếng Anh:
-
Increase the learning rate.
❌ Sai: Tăng learning rate (eta) làm mô hình học nhanh hơn, nhưng dễ "nhảy vọt" qua minima, tăng overfitting vì không tinh chỉnh chi tiết noise. Không giải quyết vấn đề unseen data, thậm chí làm tệ hơn (theo XGBoost tuning guide). -
Remove some irrelevant features from the training dataset.
❌ Sai: Loại bỏ features không liên quan có thể giúp giảm noise ban đầu, nhưng không trực tiếp chữa overfitting nếu mô hình vẫn quá phức tạp (high variance). Vấn đề gốc là model complexity, không phải feature selection (cần kết hợp với regularization như subsample/colsample_bytree). -
Increase the value of the max_depth hyperparameter.
❌ Sai: Tăng max_depth làm cây sâu hơn, mô hình fit chặt dữ liệu train hơn → tăng overfitting nghiêm trọng, kém hơn trên unseen data. Đây là hành động ngược lại với giải pháp cần thiết. -
Decrease the value of the max_depth hyperparameter.
✅ Đúng: Như giải thích ở trên, giảm max_depth đơn giản hóa mô hình, giảm overfitting, cải thiện performance trên new transactions – phù hợp nhất với triệu chứng mô tả.
🛠️ Khuyến nghị bổ sung: Kết hợp với các kỹ thuật khác như tăng subsample (0.8), thêm L1/L2 regularization (alpha/lambda), hoặc dùng SageMaker Debugger để monitor overfitting real-time (cập nhật 2026). Test bằng cross-validation trên SageMaker Processing Jobs!
The new model version must maximize correct predictions of positive labels and negative labels. The ML engineer must use a metric to recalibrate the model to meet these requirements.
Which metric should the ML engineer use for the model recalibration?
- A Accuracy
- B Precision
- C Recall
- D Specificity
Xem giải thích
🧩 Phân tích chi tiết câu hỏi
Câu hỏi tập trung vào mô hình phân loại nhị phân (binary classification model) đang chạy trong môi trường production trên AWS (có thể liên quan đến Amazon SageMaker hoặc các dịch vụ ML khác). Một kỹ sư ML cần phát triển phiên bản mới của mô hình, với yêu cầu chính là tối ưu hóa (maximize) số lượng dự đoán đúng cho cả nhãn dương (positive labels) và nhãn âm (negative labels). Để đạt được điều này, kỹ sư phải chọn một metric phù hợp để recalibrate (hiệu chỉnh lại) mô hình.
📘 Giải thích rõ ràng nội dung:
- Binary classification: Mô hình chỉ dự đoán 2 lớp (positive/negative, ví dụ: spam/not spam).
- Maximize correct predictions: Tăng số lượng True Positive (TP - dự đoán đúng positive) và True Negative (TN - dự đoán đúng negative).
- Recalibrate: Sử dụng metric để điều chỉnh ngưỡng phân loại (threshold) hoặc huấn luyện lại mô hình nhằm cân bằng hiệu suất trên cả hai lớp.
- Trong AWS SageMaker (phiên bản mới nhất 2024-2026), việc recalibration thường dùng built-in metrics từ SageMaker Model Monitor hoặc Clarify để đánh giá confusion matrix, hỗ trợ tối ưu hóa cho production workloads.
🛠️ Đáp án đúng: Accuracy ✅
Lý do lựa chọn: Accuracy đo lường tỷ lệ dự đoán đúng tổng thể = (TP + TN) / Tổng số mẫu. Metric này trực tiếp maximize correct predictions cho cả positive và negative labels, phù hợp hoàn hảo với yêu cầu. Trong SageMaker, Accuracy là metric mặc định cho binary classification và được dùng để recalibrate qua hyperparameter tuning hoặc threshold optimization (theo AWS ML Best Practices 2024).
📊 Giải thích tất cả các phương án
-
Accuracy ✅
Đúng vì: Metric này tính toán chính xác tỷ lệ dự đoán đúng cho cả positive (TP) và negative (TN), khớp hoàn toàn với yêu cầu "maximize correct predictions of positive labels and negative labels". Trong SageMaker Processing Jobs hoặc Model Monitor (cập nhật 2026), Accuracy được ưu tiên cho balanced datasets và recalibration để tránh bias. Không bị ảnh hưởng bởi imbalance như các metric khác. -
Precision ❌
Sai vì: Precision chỉ tập trung vào tỷ lệ positive dự đoán đúng (TP / (TP + FP)), bỏ qua negative labels. Nó không maximize TN, nên không phù hợp recalibrate cho cả hai lớp. Trong SageMaker, dùng cho trường hợp false positive costly (như fraud detection), nhưng không đáp ứng yêu cầu cân bằng. -
Recall ❌
Sai vì: Recall (hay Sensitivity) chỉ đo tỷ lệ positive thực tế được detect (TP / (TP + FN)), bỏ qua hoàn toàn negative labels (TN). Không giúp maximize correct negative predictions. SageMaker dùng Recall cho high-recall scenarios (như medical diagnosis), nhưng vi phạm yêu cầu ở đây. -
Specificity ❌
Sai vì: Specificity đo tỷ lệ negative đúng (TN / (TN + FP)), chỉ tập trung vào negative labels mà bỏ qua positive. Không cân bằng cả hai lớp. Trong SageMaker Clarify (fairness metrics, cập nhật 2025), nó bổ trợ cho Recall nhưng không phải metric tổng quát để recalibrate toàn bộ.
📘 Tài liệu tham khảo
- AWS SageMaker Documentation: Model Metrics and Evaluation (cập nhật 2024-2026, phần Confusion Matrix & Accuracy).
- AWS ML Best Practices: Classification Metrics – Nhấn mạnh Accuracy cho balanced binary classification.
- Exam Guide DOP-C02 (DevOps Engineer Professional 2024): Phần ML Ops với SageMaker metrics.
Hy vọng phân tích này giúp bạn ôn thi hiệu quả! 🚀
Which solution will meet these requirements?
- A Use AWS CodePipeline and its integration with SageMaker Studio to manage the entire ML workflows. Use SageMaker ML Lineage Tracking for the running history of experiments and for auditing and compliance verifications.
- B Use AWS CodePipeline and its integration with SageMaker Experiments to manage the entire ML workflows. Use SageMaker Experiments for the running history of experiments and for auditing and compliance verifications.
- C Use SageMaker Pipelines and its integration with SageMaker Studio to manage the entire ML workflows. Use SageMaker ML Lineage Tracking for the running history of experiments and for auditing and compliance verifications.
- D Use SageMaker Pipelines and its integration with SageMaker Experiments to manage the entire ML workflows. Use SageMaker Experiments for the running history of experiments and for auditing and compliance verifications.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi tập trung vào việc triển khai giải pháp cho các data scientists trong công ty sử dụng Amazon SageMaker để xây dựng mô hình ML. Các yêu cầu cụ thể bao gồm:
- Fine-grained control (kiểm soát chi tiết) cho các ML workflows mà họ orchestrate (điều phối).
- Khả năng visualize (hiển thị trực quan) các SageMaker jobs và workflows dưới dạng directed acyclic graph (DAG) – một biểu đồ có hướng không chu trình, giúp dễ dàng theo dõi luồng công việc.
- Giữ running history (lịch sử liên tục) của các model discovery experiments (thử nghiệm khám phá mô hình).
- Thiết lập model governance (quản trị mô hình) để hỗ trợ auditing (kiểm toán) và compliance verifications (xác minh tuân thủ).
📘 Bối cảnh AWS mới nhất (cập nhật đến 2026): SageMaker cung cấp các công cụ native như Pipelines, Experiments, và ML Lineage Tracking để đáp ứng MLOps end-to-end, với tích hợp chặt chẽ trong SageMaker Studio cho visualization DAG và governance.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Use SageMaker Pipelines and its integration with SageMaker Studio to manage the entire ML workflows. Use SageMaker ML Lineage Tracking for the running history of experiments and for auditing and compliance verifications.
Lý do:
🛠️ SageMaker Pipelines là dịch vụ native của SageMaker, cho phép định nghĩa toàn bộ ML workflows (processing, training, tuning, deployment) dưới dạng DAG với fine-grained control (các bước như steps, parameters, conditions). Tích hợp trực tiếp với SageMaker Studio để visualize DAG thời gian thực.
🧩 SageMaker ML Lineage Tracking (nay là SageMaker Lineage) cung cấp lineage graph chi tiết cho artifacts (data, models, experiments), lưu trữ running history lâu dài và hỗ trợ governance qua querying metadata cho auditing/compliance. Đây là sự kết hợp hoàn hảo, không cần tool bên ngoài.
📋 Giải thích tất cả các phương án (đúng/sai)
Dưới đây là phân tích từng lựa chọn, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá dựa trên tính phù hợp với yêu cầu (DAG viz, fine-grained control, history, governance):
-
Use AWS CodePipeline and its integration with SageMaker Studio to manage the entire ML workflows. Use SageMaker ML Lineage Tracking for the running history of experiments and for auditing and compliance verifications.
❌ Sai: AWS CodePipeline là CI/CD general-purpose, không hỗ trợ native DAG visualization cho ML workflows trong SageMaker Studio (chỉ là pipeline linear). Không cung cấp fine-grained control chuyên sâu cho ML steps như SageMaker Pipelines. Phần lineage tracking đúng nhưng tổng thể không đáp ứng orchestrate ML workflows chi tiết. -
Use AWS CodePipeline and its integration with SageMaker Experiments to manage the entire ML workflows. Use SageMaker Experiments for the running history of experiments and for auditing and compliance verifications.
❌ Sai: Tương tự trên, CodePipeline thiếu DAG viz và control ML-specific. SageMaker Experiments chỉ tracking trials/metrics/parameters (không phải full lineage graph cho governance/auditing sâu). Không visualize workflows như DAG. -
Use SageMaker Pipelines and its integration with SageMaker Studio to manage the entire ML workflows. Use SageMaker ML Lineage Tracking for the running history of experiments and for auditing and compliance verifications.
✅ Đúng: Hoàn hảo khớp yêu cầu. Pipelines + Studio cung cấp DAG viz và control chi tiết; ML Lineage Tracking đảm bảo history và governance (traceability từ data đến model). -
Use SageMaker Pipelines and its integration with SageMaker Experiments to manage the entire ML workflows. Use SageMaker Experiments for the running history of experiments and for auditing and compliance verifications.
❌ Sai: Pipelines + Studio đúng cho workflows/DAG, nhưng SageMaker Experiments chỉ quản lý experiments (tracking params/metrics), không thay thế ML Lineage Tracking cho full model lineage, auditing sâu (lineage bao gồm artifacts graph-based, Experiments không có querying lineage chi tiết cho compliance).
📚 Tài liệu tham khảo (AWS cập nhật 2026)
- SageMaker Pipelines: AWS Docs - SageMaker Pipelines – Hỗ trợ DAG in Studio.
- SageMaker Studio Visualization: Studio User Guide.
- ML Lineage Tracking: SageMaker Lineage – Graph-based governance.
- So sánh Experiments vs. Lineage: MLOps Best Practices.
(Kiểm tra AWS re:Post hoặc Well-Architected ML Lens cho case tương tự.)