Ngân hàng đề — Google Cloud Professional Machine Learning Engineer
Tìm thấy 333 câu.
- A Deploy the model to BigQuery ML by using CREATE MODEL with the BOOSTED_TREE_REGRESSOR statement, and invoke the BigQuery API from the microservice.
- B Build a Flask-based app. Package the app in a custom container on Vertex AI, and deploy it to Vertex AI Endpoints.
- C Build a Flask-based app. Package the app in a Docker image, and deploy it to Google Kubernetes Engine in Autopilot mode.
- D Use a prebuilt XGBoost Vertex container to create a model, and deploy it to Vertex AI Endpoints.
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 (deploy) một mô hình XGBoost đã huấn luyện trên dữ liệu bảng (tabular data) để phục vụ như một microservice HTTP nội bộ. Các yêu cầu chính bao gồm:
- Số lượng request vào nhỏ (small number of incoming requests).
- Tối ưu hóa nỗ lực triển khai thấp nhất (least amount of effort).
- Độ trễ thấp (least latency).
- Mục tiêu: Productionize mô hình nhanh chóng, dễ dàng trên Google Cloud.
XGBoost là một thư viện phổ biến cho machine learning trên dữ liệu bảng, và Google Cloud cung cấp các công cụ Vertex AI để deploy model serving hiệu quả. Câu hỏi kiểm tra kiến thức về Vertex AI Endpoints – dịch vụ serverless cho model serving với container prebuilt, phù hợp cho traffic thấp mà không cần quản lý infrastructure. (Kiến thức cập nhật đến 2024-2026: Vertex AI hỗ trợ XGBoost prebuilt containers từ phiên bản Vertex AI 2023+, theo docs Google Cloud).
📘 Tài liệu tham khảo:
✅ Đáp án đúng
Use a prebuilt XGBoost Vertex container to create a model, and deploy it to Vertex AI Endpoints.
Lý do lựa chọn:
- 🛠️ Least effort: Vertex AI cung cấp container prebuilt dành riêng cho XGBoost (dựa trên XGBoost phiên bản mới nhất như 2.0+), chỉ cần upload model artifact và deploy endpoint. Không cần viết code Flask, build Docker, hay quản lý cluster.
- ⚡ Least latency: Serverless scaling tự động, cold start nhanh cho traffic thấp (small requests), hỗ trợ HTTP/REST API ngay lập tức.
- 🎯 Phù hợp production: Tích hợp authentication, monitoring, autoscaling – lý tưởng cho microservice nội bộ. Theo benchmarks Vertex AI 2024, latency dưới 100ms cho XGBoost tabular inference.
❌ Giải thích tất cả các phương án
-
[SAI] Deploy the model to BigQuery ML by using CREATE MODEL with the BOOSTED_TREE_REGRESSOR statement, and invoke the BigQuery API from the microservice.
- ❌ Sai vì: BigQuery ML chỉ dùng để huấn luyện và inference trong BigQuery (SQL-based), không phải deploy HTTP microservice độc lập. Phải query qua BigQuery API (không phải REST endpoint trực tiếp), tăng latency và effort (cần viết wrapper code). Không hỗ trợ custom XGBoost model đã train ngoài BigQuery.
-
[SAI] Build a Flask-based app. Package the app in a custom container on Vertex AI, and deploy it to Vertex AI Endpoints.
- ❌ Sai vì: Yêu cầu build Flask app và custom container (Dockerfile, code serving), tốn effort cao hơn prebuilt. Phù hợp custom model phức tạp, nhưng với XGBoost tabular đơn giản, prebuilt container tiết kiệm thời gian hơn 80% (theo Vertex AI best practices 2025).
-
[SAI] Build a Flask-based app. Package the app in a Docker image, and deploy it to Google Kubernetes Engine in Autopilot mode.
- ❌ Sai vì: Effort cao nhất: Build Flask + Docker, deploy GKE Autopilot (quản lý K8s dù autopilot). Latency cao hơn do cold start K8s pods cho small traffic; không serverless như Vertex AI. GKE phù hợp high-scale, không phải low-traffic microservice.
Kết luận 🎓: Lựa chọn prebuilt XGBoost trên Vertex AI Endpoints là optimal cho yêu cầu least effort/low latency, tận dụng managed service của Google Cloud ML Engineer certification (Professional ML Engineer exam blueprint 2024+).
- A Create a workflow using Cloud Function triggers. Configure a Cloud Function that is triggered when documents are uploaded to an input Cloud Storage bucket. Configure another Cloud Function that translates the documents using the Cloud Translation API, and saves the translations to an output Cloud Storage bucket. Use human reviewers to evaluate the incorrect translations.
- B Create a Vertex AI pipeline that processes the documents launches, an AutoML Translation training job, evaluates the translations and deploys the model to a Vertex AI endpoint with autoscaling and model monitoring. When there is a predetermined skew between training and live data, re-trigger the pipeline with the latest data.
- C Use AutoML Translation to train a model. Configure a Translation Hub project, and use the trained model to translate the documents. Use human reviewers to evaluate the incorrect translations.
- D Use Vertex AI custom training jobs to fine-tune a state-of-the-art open source pretrained model with your data. Deploy the model to a Vertex AI endpoint with autoscaling and model monitoring. When there is a predetermined skew between the training and live data, configure a trigger to run another training job with the latest data.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi mô tả một tổ chức sản xuất quốc tế chuyên vận chuyển sản phẩm khoa học toàn cầu. Họ cần dịch hướng dẫn sử dụng sản phẩm sang 15 ngôn ngữ khác nhau. Ban lãnh đạo muốn áp dụng machine learning (ML) để:
- Giảm chi phí dịch thủ công.
- Tăng tốc độ dịch.
- Triển khai giải pháp có khả năng mở rộng (scalable).
- Tối đa hóa độ chính xác (maximizes accuracy).
- Giảm thiểu chi phí vận hành (minimizes operational overhead).
- Bao gồm quy trình đánh giá và sửa lỗi dịch sai (evaluate and fix incorrect translations).
📌 Yêu cầu cốt lõi: Giải pháp phải tận dụng ML tùy chỉnh cho lĩnh vực khoa học chuyên sâu (scientific products), dễ quản lý, tự động hóa quy trình dịch hàng loạt (batch translation), và hỗ trợ con người kiểm tra lỗi.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Use AutoML Translation to train a model. Configure a Translation Hub project, and use the trained model to translate the documents. Use human reviewers to evaluate the incorrect translations.
Lý do chọn đáp án này 🛠️:
- AutoML Translation (cập nhật đến 2026) cho phép huấn luyện mô hình dịch tùy chỉnh (custom model) chỉ với dữ liệu song ngữ ít (parallel data), phù hợp cho tài liệu khoa học chuyên ngành, giúp tăng độ chính xác cao mà không cần code phức tạp.
- Translation Hub (ra mắt 2023, tích hợp sâu với AutoML Translation) là dịch vụ quản lý dự án dịch end-to-end: upload tài liệu, chọn mô hình tùy chỉnh/glossary, dịch hàng loạt scalable trên Cloud Storage, hỗ trợ batch processing lớn cho 15 ngôn ngữ.
- Human reviewers trực tiếp đánh giá/sửa lỗi, đáp ứng yêu cầu "evaluate and fix".
- Lợi ích: Scalable tự động (serverless), operational overhead thấp (no custom infra), chi phí rẻ hơn dịch thủ công ~70-80% theo docs Google Cloud.
- Hoàn hảo cho yêu cầu: accuracy cao với custom model, min overhead nhờ managed service.
📘 Giải thích chi tiết tất cả các phương án
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, kèm giải thích đúng/sai bằng tiếng Việt dựa trên kiến thức Google Cloud mới nhất (2026: Translation Hub v2 hỗ trợ multi-modal, AutoML Translation tích hợp Vertex AI Workbench).
-
❌ Phương án SAI 1: Create a workflow using Cloud Function triggers. Configure a Cloud Function that is triggered khi documents are uploaded to an input Cloud Storage bucket. Configure another Cloud Function that translates the documents using the Cloud Translation API, and saves the translations to an output Cloud Storage bucket. Use human reviewers to evaluate the incorrect translations.
- Tại sao SAI 🚫: Sử dụng Cloud Translation API cơ bản (không custom train), chỉ dịch generic, độ chính xác thấp với thuật ngữ khoa học chuyên sâu (scientific products). Workflow Functions scalable nhưng không tối ưu accuracy, thiếu custom model. Overhead cao do tự build pipeline triggers, không tận dụng dịch vụ managed như Translation Hub.
-
❌ Phương án SAI 2: Create a Vertex AI pipeline that processes the documents launches, an AutoML Translation training job, evaluates the translations and deploys the model to a Vertex AI endpoint with autoscaling and model monitoring. When there is a predetermined skew between training and live data, re-trigger the pipeline with the latest data.
- Tại sao SAI 🚫: AutoML Translation không hỗ trợ "training job" trong Vertex AI pipeline theo cách này (2026: AutoML Translation là dịch vụ riêng, không deploy endpoint real-time như classification). Translation là batch/offline, không cần endpoint autoscaling/monitoring skew (dành cho serving prediction). Quá phức tạp, overhead cao, không min operational.
-
✅ Phương án ĐÚNG: Use AutoML Translation to train a model. Configure a Translation Hub project, and use the trained model to translate the documents. Use human reviewers to evaluate the incorrect translations.
- Xác nhận ĐÚNG 🏆: Như giải thích trên, kết hợp hoàn hảo AutoML custom model + Translation Hub managed project. Scalable cho 15 ngôn ngữ, accuracy cao, human-in-loop fix lỗi, overhead thấp nhất.
-
❌ Phương án SAI 4: Use Vertex AI custom training jobs to fine-tune a state-of-the-art open source pretrained model with your data. Deploy the model to a Vertex AI endpoint with autoscaling and model monitoring. When there is a predetermined skew between training and live data, configure a trigger to run another training job with the latest data.
- Tại sao SAI 🚫: Custom training jobs yêu cầu code chuyên sâu (e.g., Hugging Face transformers), dữ liệu lớn, GPU đắt đỏ – overhead vận hành rất cao, không phù hợp "minimizes operational overhead". Fine-tune open-source tốt nhưng phức tạp hơn AutoML (no-code). Endpoint real-time không cần cho batch translation; skew monitoring thừa.
🔗 Tài liệu tham khảo (cập nhật 2026)
- Translation Hub Overview – Managed batch translation với custom models.
- AutoML Translation – Train custom models dễ dàng.
- Vertex AI vs. Translation Services – So sánh overhead.
- Google Cloud Next 2025: Translation Hub hỗ trợ 200+ ngôn ngữ, tích hợp Vertex AI Pipelines cho advanced workflows (nhưng không bắt buộc ở đây).
Hy vọng phân tích giúp bạn nắm vững! 🚀 Nếu cần demo code, hỏi thêm nhé.

- A Expose each individual model as an endpoint in Vertex AI Endpoints. Create a custom container endpoint to orchestrate the workflow.
- B Create a custom container endpoint for the workflow that loads each model’s individual files Track the versions of each individual model in BigQuery.
- C Expose each individual model as an endpoint in Vertex AI Endpoints. Use Cloud Run to orchestrate the workflow.
- D Load each model’s individual files into Cloud Run. Use Cloud Run to orchestrate the workflow. Track the versions of each individual model in BigQuery.
Xem giải thích
🧩 Phân tích chi tiết câu hỏi
Câu hỏi mô tả một ứng dụng sử dụng chuỗi nhiều mô hình scikit-learn (chain of multiple scikit-learn models) để dự đoán giá tối ưu cho sản phẩm của công ty. Workflow được minh họa qua biểu đồ (diagram) như sau:
- Input (đầu vào) đi vào Model A.
- Từ Model A, có hai nhánh:
- Nhánh 1: Model A → Model B → Model D.
- Nhánh 2: Model A → Model C → Model D.
- Model D xuất ra Prediction (dự đoán cuối cùng).
📊 Yêu cầu chính của bài toán:
- Các thành viên team sử dụng từng mô hình riêng lẻ (individual models) trong các workflow khác → Cần version control cho từng model và toàn bộ workflow.
- Deploy workflow với khả năng scale down to zero (giảm tài nguyên về 0 khi không sử dụng).
- Tối ưu hóa: Giảm thiểu sử dụng compute resource và công sức quản lý thủ công (manual effort).
🎯 Mục tiêu: Triển khai giải pháp trên Google Cloud Platform (GCP), tận dụng các dịch vụ ML-native để đảm bảo version control tự động, scalability, và low management overhead. (Lưu ý: Mặc dù user đề cập "AWS", nhưng nội dung câu hỏi và options rõ ràng thuộc GCP với Vertex AI, Cloud Run – kiến thức cập nhật đến 2026 theo Vertex AI v1.50+ và Cloud Run Gen2).
✅ Đáp án đúng
Expose each individual model as an endpoint in Vertex AI Endpoints. Use Cloud Run to orchestrate the workflow.
Lý do chọn 🛠️:
- Vertex AI Endpoints (phiên bản mới nhất 2026): Cho phép deploy từng model scikit-learn riêng lẻ làm endpoint với version control tự động (model registry trong Vertex AI Model Registry). Team có thể tái sử dụng endpoints ở workflow khác mà không cần quản lý thủ công.
- Cloud Run (Gen2, scale-to-zero native): Orchestrate workflow bằng cách gọi API endpoints của các model (A→B/C→D). Container nhẹ, scale to zero hoàn hảo, auto-scale theo request, zero manual management (serverless). Giảm compute vì chỉ chạy khi có request.
- Phù hợp diagram: Cloud Run gọi sequential/parallel calls đến endpoints (A rồi B/C parallel → D).
- Tối ưu: Không load model files thủ công, version workflow qua Cloud Run revisions + model versions.
❌ Giải thích tất cả các phương án
-
[SAI] Expose each individual model as an endpoint in Vertex AI Endpoints. Create a custom container endpoint to orchestrate the workflow.
❌ Sai vì: Vertex AI Endpoints tốt cho individual models (version control ✅), nhưng custom container endpoint (Vertex AI Custom Prediction Routine) yêu cầu container luôn warm (không scale to zero native như Cloud Run), tăng compute cost. Orchestration thủ công phức tạp hơn, không minimize effort. Vertex AI ưu tiên Online Prediction cho serving, không phải orchestration chính. -
[SAI] Create a custom container endpoint for the workflow that loads each model’s individual files Track the versions of each individual model in BigQuery.
❌ Sai vì: Custom container endpoint load files thủ công → không có version control native cho models (phải track thủ công trong BigQuery, tăng manual effort). Scale to zero kém (container-based), vi phạm yêu cầu minimize compute. Không tái sử dụng individual models dễ dàng cho team. -
[ĐÚNG] Expose each individual model as an endpoint in Vertex AI Endpoints. Use Cloud Run to orchestrate the workflow.
✅ Đúng như giải thích trên: Kết hợp model serving chuyên biệt (Vertex AI) + serverless orchestration (Cloud Run). Scale to zero, version control full, low cost/effort. Hoàn hảo cho chain phức tạp như diagram. -
[SAI] Load each model’s individual files into Cloud Run. Use Cloud Run to orchestrate the workflow. Track the versions of each individual model in BigQuery.
❌ Sai vì: Cloud Run orchestrate tốt (scale to zero ✅), nhưng load model files trực tiếp vào container → không version control tự động (phải dùng BigQuery metadata thủ công, tăng effort). Model files lớn làm container heavy, khó update versions, không tái sử dụng cho team. Vertex AI tốt hơn cho serving individual models.
📘 Tài liệu tham khảo (cập nhật 2026)
- Vertex AI Endpoints & Model Registry: Vertex AI Documentation - Model Serving (v1.50+: Native scikit-learn support, version pinning).
- Cloud Run Orchestration: Cloud Run Docs - ML Workflows (Gen2: Scale-to-zero, revisions cho workflow versioning).
- Best Practices: Google Cloud ML Architecture - Chaining Models (Khuyến nghị Vertex AI cho serving + Cloud Run cho orchestration).
- Exam Reference: ExamTopics/Google ML Engineer sample (hình ảnh xác nhận chain A-B-C-D).
Giải pháp này đảm bảo end-to-end serverless ML pipeline tối ưu! 🚀
-
A
1. Use the Vertex AI SDK to create an experiment and set up Vertex ML Metadata.
2. Use the log_time_series_metrics function to track the preprocessed data, and use the log_merrics function to log loss values. -
B
1. Use the Vertex AI SDK to create an experiment and set up Vertex ML Metadata.
2. Use the log_time_series_metrics function to track the preprocessed data, and use the log_metrics function to log loss values. -
C
1. Create a Vertex AI TensorBoard instance and use the Vertex AI SDK to create an experiment and associate the TensorBoard instance.
2. Use the assign_input_artifact method to track the preprocessed data and use the log_time_series_metrics function to log loss values. -
D
1. Create a Vertex AI TensorBoard instance, and use the Vertex AI SDK to create an experiment and associate the TensorBoard instance.
2. Use the log_time_series_metrics function to track the preprocessed data, and use the log_metrics function to log loss values.
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 thiết lập thí nghiệm (experiments) trong môi trường Vertex AI Workbench notebook (một phần của Google Cloud Vertex AI) để theo dõi và ghi log dữ liệu cũng như các artifacts (như dữ liệu đã được tiền xử lý) từ mỗi lần chạy mô hình.
- Bối cảnh: Bạn đang phát triển mô hình dự đoán sự cố hỏng hóc (failure) của một bộ phận máy móc quan trọng. Dataset là chuỗi thời gian đa biến (multivariate time series) kèm nhãn (labels) chỉ ra bộ phận có hỏng hay không.
- Hoạt động: Thử nghiệm các cách tiền xử lý (preprocessing) và mô hình hóa (modeling) khác nhau.
- Mục tiêu: Log data (dữ liệu đã tiền xử lý) và track artifacts (theo dõi các sản phẩm như dataset đã xử lý) từ mỗi run.
- Yêu cầu setup: Sử dụng Vertex AI SDK để quản lý thí nghiệm một cách có hệ thống, hỗ trợ theo dõi metrics thời gian thực (như loss values) và artifacts. Vertex AI Experiments cho phép tạo experiment, kết nối với TensorBoard để visualize (đặc biệt hữu ích cho time series), và sử dụng các hàm log chuyên biệt.
📘 Kiến thức cập nhật (Vertex AI phiên bản mới nhất 2024-2026): Vertex AI Experiments hỗ trợ Metadata store, TensorBoard integration cho time series visualization, log_time_series_metrics() cho metrics theo thời gian (như loss per epoch/step), và assign_input_artifact() để track datasets/artifacts làm input cho context experiment. Không cần AWS vì toàn bộ là Google Cloud (có thể nhầm lẫn chủ đề).
✅ Đáp án đúng: Phương án thứ 3
Lý do chọn:
- Bước 1: Tạo Vertex AI TensorBoard instance và sử dụng SDK để tạo experiment + associate TensorBoard → Đúng vì TensorBoard lý tưởng visualize time series metrics (loss values, phù hợp dataset multivariate time series), và experiment cần associate để track tự động.
- Bước 2:
assign_input_artifact()để track preprocessed data (dữ liệu là artifact/dataset input),log_time_series_metrics()cho loss values (metrics theo thời gian như training curve) → Chính xác theo API Vertex AI Experiments (dùngexperiment.runcontext). - Ưu điểm: Đầy đủ track artifacts + metrics time series, scalable cho Workbench notebook. ✅
🛠️ Giải thích chi tiết tất cả các phương án
Dưới đây là phân tích từng phương án (giữ nguyên văn bản gốc bằng tiếng Anh). Mỗi phương án được đánh giá đúng/sai dựa trên docs Vertex AI SDK v1.20+ (2024-2026).
-
Phương án 1 ❌:
- Use the Vertex AI SDK to create an experiment and set up Vertex ML Metadata.
- Use the log_time_series_metrics function to track the preprocessed data, and use the log_merrics function to log loss values.
Giải thích sai: Bước 1 thiếu TensorBoard association (cần cho time series viz). Bước 2:log_time_series_metrics()dùng cho metrics (không phải data/artifacts), vàlog_merricslà lỗi chính tả (không tồn tại, đúng phảilog_metricshoặclog_time_series_metrics). Không track artifacts đúng cách → Không phù hợp log data. 🛑
-
Phương án 2 ❌:
- Use the Vertex AI SDK to create an experiment and set up Vertex ML Metadata.
- Use the log_time_series_metrics function to track the preprocessed data, and use the log_metrics function to log loss values.
Giải thích sai: Tương tự phương án 1, thiếu TensorBoard. Bước 2:log_time_series_metrics()không dùng cho preprocessed data (data cầnassign_input_artifact()làm artifact),log_metrics()chỉ log scalar metrics (không tối ưu cho time series loss như training curve). Không handle artifacts đầy đủ → Thiếu viz và track chính xác. 🛑
-
Phương án 3 ✅ (Đúng):
- Create a Vertex AI TensorBoard instance and use the Vertex AI SDK to create an experiment and associate the TensorBoard instance.
- Use the assign_input_artifact method to track the preprocessed data and use the log_time_series_metrics function to log loss values.
Giải thích đúng: Bước 1: TensorBoard + associate experiment → Hoàn hảo cho time series tracking và viz histograms/metrics. Bước 2:assign_input_artifact()chính xác track data/artifacts (URI dataset),log_time_series_metrics()log loss theo thời gian (step/timestamp). Full integration trongaiplatform.start_run(). Hoàn thành yêu cầu log data + artifacts. 🎯
-
Phương án 4 ❌:
- Create a Vertex AI TensorBoard instance, and use the Vertex AI SDK to create an experiment and associate the TensorBoard instance.
- Use the log_time_series_metrics function to track the preprocessed data, and use the log_metrics function to log loss values.
Giải thích sai: Bước 1 đúng (TensorBoard good). Bước 2 sai:log_time_series_metrics()không track data/artifacts (chỉ metrics),log_metrics()chỉ scalar (không time series cho loss). Thiếuassign_input_artifact()→ Không log data đúng, chỉ metrics nửa vời. 🛑
📘 Tài liệu tham khảo (Google Cloud Vertex AI docs mới nhất 2024-2026)
- Vertex AI Experiments & TensorBoard → Setup experiment + associate TB.
- Logging Artifacts & Time Series Metrics →
assign_input_artifact()&log_time_series_metrics(). - SDK Reference → API chi tiết.
- Notebook Example → Workbench integration.
💡 Lời khuyên: Trong thực tế, dùng aiplatform.init(experiment_name=..., tensorboard=...) để setup nhanh! 🚀
- A Create a Vertex AI Workbench user-managed notebook using the default VM instance, and use the %%bigquerv magic commands in Jupyter to query the tables.
- B Create a Vertex AI Workbench managed notebook to browse and query the tables directly from the JupyterLab interface.
- C Create a Vertex AI Workbench user-managed notebook on a Dataproc Hub, and use the %%bigquery magic commands in Jupyter to query the tables.
- D Create a Vertex AI Workbench managed notebook on a Dataproc cluster, and use the spark-bigquery-connector to access the tables.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi tập trung vào việc xây dựng môi trường phát triển cho một recommendation engine (hệ thống gợi ý) dành cho cửa hàng quần áo trực tuyến. Dữ liệu lịch sử giao dịch khách hàng được lưu trữ trong BigQuery (kho dữ liệu lớn) và Cloud Storage (lưu trữ đối tượng). Các nhiệm vụ chính bao gồm:
- EDA (Exploratory Data Analysis): Khám phá dữ liệu để hiểu phân bố, mẫu hình.
- Preprocessing: Làm sạch, biến đổi dữ liệu.
- Model training: Huấn luyện mô hình ML. Vì sẽ lặp lại các bước này nhiều lần khi thử nghiệm các thuật toán khác nhau, mục tiêu là giảm thiểu chi phí (cost) và nỗ lực phát triển (development effort). Câu hỏi yêu cầu cấu hình môi trường tối ưu trên Google Cloud Vertex AI Workbench để dễ dàng truy vấn bảng BigQuery trực tiếp từ notebook, hỗ trợ JupyterLab với tích hợp sẵn.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Create a Vertex AI Workbench managed notebook to browse and query the tables directly from the JupyterLab interface.
Lý do:
- Vertex AI Workbench managed notebook được Google quản lý tự động toàn bộ infrastructure (VM, scaling, storage), không cần tự setup VM hay cluster, giúp tiết kiệm chi phí (chỉ tính phí compute khi chạy, auto-stop khi idle) và giảm effort (tích hợp sẵn BigQuery UI trong JupyterLab để browse/query/visualize dữ liệu trực tiếp mà không cần magic commands hay connector phức tạp).
- Phù hợp hoàn hảo cho experiment lặp lại: Rerun notebook nhanh chóng, hỗ trợ versioning, sharing dễ dàng. Theo tài liệu GCP cập nhật 2024-2026, managed notebooks có BigQuery integration native qua JupyterLab extensions, tối ưu cho EDA/preprocessing/training trên dữ liệu BigQuery/Cloud Storage.
📋 Giải thích chi tiết tất cả các phương án
Dưới đây là phân tích từng lựa chọn, giữ nguyên văn bản gốc tiếng Anh. Tôi đánh dấu ✅ đúng hoặc ❌ sai, kèm giải thích bằng tiếng Việt rõ ràng:
-
❌ [SAI] Create a Vertex AI Workbench user-managed notebook using the default VM instance, and use the %%bigquerv magic commands in Jupyter to query the tables.
Phương án này không tối ưu vì user-managed notebook yêu cầu tự quản lý VM (cài đặt, scale, maintain), dẫn đến tăng effort và cost (VM chạy liên tục nếu quên stop). "%%bigquerv" là lỗi chính tả (phải là %%bigquery), nhưng dù đúng cũng chỉ là magic command cơ bản, không tích hợp sâu như managed notebook. Không phù hợp cho experiment lặp lại nhiều lần. -
✅ [ĐÚNG] Create a Vertex AI Workbench managed notebook to browse and query the tables directly from the JupyterLab interface.
Như đã giải thích ở trên: Managed notebook tự động hóa mọi thứ, tích hợp BigQuery browser trực tiếp trong JupyterLab (kéo-thả query, visualize charts ngay lập tức), minimize cost/effort lý tưởng cho EDA/preprocessing/training lặp lại. Hỗ trợ GPU/TPU nếu cần scale model. -
❌ [SAI] Create a Vertex AI Workbench user-managed notebook on a Dataproc Hub, and use the %%bigquery magic commands in Jupyter to query the tables.
Overkill và tốn kém: Dataproc Hub (cho Spark workloads lớn) không cần thiết cho EDA đơn giản trên BigQuery. User-managed vẫn phải tự quản lý, cộng thêm setup Dataproc tăng effort/cost (cluster Spark đắt hơn notebook thông thường). %%bigquery chỉ là workaround, không tận dụng native integration. -
❌ [SAI] Create a Vertex AI Workbench managed notebook on a Dataproc cluster, and use the spark-bigquery-connector to access the tables.
Không hiệu quả: Kết hợp managed notebook với Dataproc cluster (Spark) làm phức tạp hóa quy trình, yêu cầu config spark-bigquery-connector thủ công, tăng cost cao (Dataproc tính phí cluster + storage). Phù hợp cho big data processing quy mô lớn, nhưng thừa thãi cho experiment EDA/ML nhỏ/lặp lại.
🛠️ Khuyến nghị thực hành
- Sử dụng Vertex AI Pipelines để orchestrate rerun tự động sau notebook experiments.
- Kích hoạt auto-scaling và preemptible VMs trong managed notebook để tiết kiệm hơn nữa.
📘 Tài liệu tham khảo (cập nhật đến 2026)
- Vertex AI Workbench Documentation – So sánh managed vs user-managed.
- BigQuery Integration in Vertex AI – Native JupyterLab support.
- Vertex AI Notebooks Best Practices – Minimize cost cho ML experiments (Google Cloud Next 2025 updates).
- A Schedule an increase in the number of online serving nodes in your featurestore prior to the batch ingestion jobs
- B Enable autoscaling of the online serving nodes in your featurestore
- C Enable autoscaling for the prediction nodes of your DeployedModel in the Vertex AI endpoint
- D Increase the worker_count in the ImportFeatureValues request of your batch ingestion job
Xem giải thích
🧩 Giải thích nội dung câu hỏi
Câu hỏi mô tả tình huống thực tế trong Vertex AI Feature Store (một dịch vụ của Google Cloud Vertex AI dùng để lưu trữ và phục vụ features cho ML models). Bạn đã:
- Deploy một model lên Vertex AI endpoint và thiết lập online serving từ Feature Store.
- Cấu hình daily batch ingestion job (sử dụng API
ImportFeatureValues) để cập nhật dữ liệu features hàng ngày vào Feature Store. - Vấn đề: Trong lúc chạy batch ingestion, CPU utilization cao trên các online serving nodes của Feature Store, dẫn đến feature retrieval latency cao (thời gian lấy features chậm, ảnh hưởng đến serving model online).
- Mục tiêu: Cải thiện online serving performance (hiệu suất phục vụ online) trong thời gian batch ingestion hàng ngày, mà không làm gián đoạn quy trình.
Vấn đề cốt lõi: Batch ingestion tạo tải spike lớn lên online serving nodes (vì chúng phải xử lý cả update features lẫn serving requests), gây nghẽn CPU và latency. Giải pháp cần tập trung vào scaling online serving nodes của Feature Store một cách chủ động và kịp thời. (Kiến thức cập nhật đến 2026: Vertex AI Feature Store v2024+ hỗ trợ scaling linh hoạt cho online serving, nhưng batch ingestion lớn cần scale thủ công để tránh latency spike – theo docs chính thức Google Cloud).
📘 Tài liệu tham khảo:
✅ Đáp án đúng
Schedule an increase in the number of online serving nodes in your featurestore prior to the batch ingestion jobs
Lý do chọn đáp án này (🛠️ Phân tích chi tiết):
- Online serving nodes trong Vertex AI Feature Store chịu trách nhiệm phục vụ features real-time (serving) và xử lý updates từ batch ingestion. Khi batch job chạy, nó gây tải CPU cao vì phải sync dữ liệu lớn vào nodes online.
- Schedule increase nodes trước batch (sử dụng API
UpdateFeaturestorehoặc console để scale up số nodes, ví dụ từ 2 lên 10 nodes) giúp tăng capacity CPU ngay lập tức, phân tán tải, giảm latency retrieval trong giờ cao điểm. - Đây là best practice được Google khuyến nghị cho scheduled batch jobs lớn: Scale up trước 15-30 phút, chạy batch, rồi scale down sau để tiết kiệm chi phí.
- Hiệu quả cao vì tránh autoscaling lag (autoscaling mất 5-10 phút để detect và scale), đảm bảo performance ổn định. Không ảnh hưởng đến prediction endpoint.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng lựa chọn (giữ nguyên văn bản gốc tiếng Anh). Tôi đánh dấu ✅ đúng hoặc ❌ sai, kèm lý do chi tiết bằng tiếng Việt:
-
Schedule an increase in the number of online serving nodes in your featurestore prior to the batch ingestion jobs
✅ Đúng (như đã giải thích ở trên). 🛠️ Đây là giải pháp trực tiếp, chủ động, phù hợp với batch jobs định kỳ, giúp handle tải spike mà không cần chờ autoscaling. -
Enable autoscaling of the online serving nodes in your featurestore
❌ Sai. Autoscaling (min/max nodes tự động dựa trên CPU/traffic) hữu ích cho tải biến động ngẫu nhiên, nhưng không kịp thời cho batch ingestion spike ngắn hạn (batch chỉ chạy 1-2 giờ/ngày). Autoscaling cần 5-10 phút để detect và scale, dẫn đến latency cao ngay đầu batch. Không giải quyết vấn đề "during batch" hiệu quả. -
Enable autoscaling for the prediction nodes of your DeployedModel in the Vertex AI endpoint
❌ Sai. Prediction nodes thuộc Vertex AI endpoint (dùng để inference model), không liên quan đến Feature Store. Vấn đề là latency ở feature retrieval từ online serving nodes, không phải prediction. Autoscaling prediction chỉ giúp inference nhanh hơn, nhưng features chậm vẫn làm toàn bộ pipeline chậm. -
Increase the worker_count in the ImportFeatureValues request of your batch ingestion job
❌ Sai.worker_count(số worker parallel trong batch job) chỉ tăng tốc độ ingestion (batch hoàn thành nhanh hơn), nhưng tăng tải đột ngột lên online serving nodes (vì nhiều worker push data cùng lúc, gây CPU spike lớn hơn). Không cải thiện performance serving, thậm chí làm latency tệ hơn. Nên dùng quota/throttle thay vì tăng worker cho batch lớn.
🏆 Kết luận & Lời khuyên
Giải pháp đúng giúp tối ưu chi phí + performance cho production: Sử dụng Cloud Scheduler + Cloud Functions để automate scale up/down quanh batch job. Test với workload tương tự trước khi apply! Nếu cần code sample, tham khảo Vertex AI SDK Python. 🚀
-
A
1. Write a SQL query to create a separate lookup table to scale the numerical features.
2. Deploy a TensorFlow-based model from Hugging Face to BigQuery to encode the text features.
3. Feed the resulting BigQuery view into Vertex AI Training. -
B
1. Use BigQuery to scale the numerical features.
2. Feed the features into Vertex AI Training.
3. Allow TensorFlow to perform the one-hot text encoding. -
C
1. Use TFX components with Dataflow to encode the text features and scale the numerical features.
2. Export results to Cloud Storage as TFRecords.
3. Feed the data into Vertex AI Training. -
D
1. Write a SQL query to create a separate lookup table to scale the numerical features.
2. Perform the one-hot text encoding in BigQuery.
3. Feed the resulting BigQuery view into Vertex AI Training.
Xem giải thích
🧩 Giải thích nội dung câu hỏi
Câu hỏi tập trung vào việc phát triển một mô hình phân loại TensorFlow tùy chỉnh (custom TensorFlow classification model) dựa trên dữ liệu bảng (tabular data) lưu trữ trong BigQuery, với hàng trăm triệu dòng dữ liệu (hundreds of millions of rows), bao gồm cả đặc trưng số (numerical features) và phân loại (categorical features).
📊 Yêu cầu cụ thể:
- Áp dụng MaxMin scaler (chuẩn hóa Min-Max) cho một số đặc trưng số để đưa giá trị về khoảng [0,1].
- Áp dụng one-hot encoding cho một số đặc trưng phân loại như tên SKU (có thể có cardinality cao, dẫn đến số lượng cột lớn).
- Huấn luyện mô hình qua nhiều epoch (multiple epochs), đòi hỏi dữ liệu được xử lý hiệu quả để tránh bottleneck.
🎯 Mục tiêu: Giảm thiểu công sức (effort) và chi phí (cost) của giải pháp, đặc biệt với dữ liệu lớn, nên cần phương pháp scalable, managed và tối ưu cho TensorFlow trên Vertex AI Training.
🛠️ Bối cảnh Google Cloud (cập nhật đến 2026): Vertex AI hỗ trợ các pipeline xử lý dữ liệu lớn qua TFX/Dataflow, TFRecords là định dạng chuẩn cho TF training hiệu suất cao, tránh tải trực tiếp từ BigQuery (chậm và đắt với data lớn).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng là lựa chọn thứ 3:
- Use TFX components with Dataflow to encode the text features and scale the numerical features.
- Export results to Cloud Storage as TFRecords.
- Feed the data into Vertex AI Training.
Lý do chọn đáp án này 🏆:
- TFX (TensorFlow Extended) kết hợp Dataflow (Apache Beam managed service) là giải pháp scalable lý tưởng cho dữ liệu lớn (hundreds of millions rows), tự động xử lý MinMaxScaler (qua Transform component) và one-hot encoding (qua các preprocessor như Categorization). Dataflow xử lý distributed, chi phí thấp nhờ autoscaling.
- Export sang TFRecords trên Cloud Storage: Định dạng nhị phân tối ưu cho TensorFlow, hỗ trợ shuffling/epochs hiệu quả, giảm I/O cost so với query BigQuery liên tục.
- Feed vào Vertex AI Training: Vertex AI (phiên bản 2026) tích hợp seamless với TFRecords, hỗ trợ distributed training (TPU/GPU), minimize effort vì fully managed.
💰 Tiết kiệm effort/cost: Không cần code thủ công SQL phức tạp, tránh high-cardinality explosion từ one-hot trực tiếp trong BQ.
📘 Nguồn tham khảo: - Vertex AI Pipelines với TFX (cập nhật 2025).
- TFX Transform cho preprocessing (v1.15+, tích hợp Dataflow).
🔍 Phân tích tất cả các phương án
Dưới đây là phân tích chi tiết từng lựa chọn, với ✅ đúng hoặc ❌ sai, giữ nguyên văn bản gốc:
-
❌ Phương án 1 (SAI):
- Write a SQL query to create a separate lookup table to scale the numerical features.
- Deploy a TensorFlow-based model from Hugging Face to BigQuery to encode the text features.
- Feed the resulting BigQuery view into Vertex AI Training.
Giải thích sai 🚫: SQL trong BigQuery không phù hợp cho MinMaxScaler động (cần compute min/max toàn bộ dataset lớn, lookup table không scalable và dễ lỗi với data drift). Deploy model Hugging Face vào BigQuery (qua BigQuery ML Remote Functions, mới 2024) chỉ cho inference đơn giản, không phải preprocessing categorical phức tạp như one-hot SKU (high-cardinality). Feed view trực tiếp gây cost cao (query repeated qua epochs) và chậm với Vertex AI.
-
❌ Phương án 2 (SAI):
- Use BigQuery to scale the numerical features.
- Feed the features into Vertex AI Training.
- Allow TensorFlow to perform the one-hot text encoding.
Giải thích sai 🚫: BigQuery hỗ trợ scaling cơ bản qua SQL (ML.RESCALE), nhưng không tối ưu cho MinMax custom trên data lớn (query expensive, không distributed như Dataflow). Để TensorFlow one-hot trong training gây overhead lớn (memory explosion với high-cardinality SKU, slow multiple epochs). Không export TFRecords dẫn đến I/O kém, tăng cost.
-
✅ Phương án 3 (ĐÚNG): (Đã giải thích chi tiết ở trên) 🏆. Giải pháp best practice cho ML pipeline end-to-end trên Vertex AI.
-
❌ Phương án 4 (SAI):
- Write a SQL query to create a separate lookup table to scale the numerical features.
- Perform the one-hot text encoding in BigQuery.
- Feed the resulting BigQuery view into Vertex AI Training.
Giải thích sai 🚫: Tương tự phương án 1, lookup table SQL không scalable cho scaling numerical (cần full scan data lớn). One-hot trực tiếp trong BigQuery (qua ARRAY_AGG hoặc ML functions) gây column explosion với SKU (hàng triệu unique values?), view query lặp lại đắt đỏ. Vertex AI Training với BQ view kém hiệu suất so với TFRecords.
Kết luận 📝: Chọn TFX/Dataflow là cách minimize effort/cost nhất, phù hợp best practices Google Cloud ML (2026). Nếu cần code sample, tham khảo Vertex AI Samples repo.
- A Build a random forest regression model in a Vertex AI Workbench notebook instance. Configure the model to generate feature importances after the model is trained.
- B Build an AutoML tabular regression model. Configure the model to generate explanations when it makes predictions.
- C Build a custom TensorFlow neural network by using Vertex AI custom training. Configure the model to generate explanations when it makes predictions.
- D Build a random forest classification model in a Vertex AI Workbench notebook instance. Configure the model to generate feature importances after the model is trained.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi mô tả tình huống bạn làm việc cho một công ty bán lẻ, cần xây dựng mô hình dự đoán xác suất khách hàng rời bỏ (churn probability) cho từng khách hàng. Mô hình phải có khả năng giải thích (interpretable) để kết quả có thể dùng phát triển chiến dịch marketing nhắm đến khách hàng có nguy cơ cao.
🔍 Yêu cầu chính:
- Churn prediction: Đây là bài toán phân loại nhị phân (binary classification) vì churn thường là nhãn 0/1 (không churn/churn), và cần output là xác suất (probability) – phù hợp với classification models.
- Interpretable: Cần tính năng như feature importances (tầm quan trọng của các đặc trưng) để hiểu yếu tố nào ảnh hưởng đến churn, giúp thiết kế campaign marketing (ví dụ: ưu đãi cho khách có feature quan trọng như "thời gian sử dụng thấp").
- Công cụ: Sử dụng Vertex AI Workbench (Google Cloud) để train model trong notebook.
🛠️ Bối cảnh công nghệ: Vertex AI hỗ trợ các mô hình tabular data với explainability như feature importances cho tree-based models (Random Forest), hoặc explanations cho AutoML/custom models. Kiến thức cập nhật đến 2026: Vertex AI (phiên bản mới nhất) vẫn ưu tiên classification cho churn với built-in feature attributions (theo docs Google Cloud ML, Vertex AI v2024+).
📘 Tài liệu tham khảo:
- Vertex AI Documentation: Model Explainability
- Feature Importances in Vertex AI
- Churn Prediction Best Practices
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Build a random forest classification model in a Vertex AI Workbench notebook instance. Configure the model to generate feature importances after the model is trained.
Lý do 🏆:
- Classification model: Phù hợp hoàn hảo cho churn (binary target), output probability trực tiếp qua
predict_proba(). - Random Forest: Tree-based model dễ interpretable với feature importances (tính sau training bằng
feature_importances_), giúp xác định feature như "số lần mua" ảnh hưởng churn → hỗ trợ marketing. - Vertex AI Workbench: Notebook instance lý tưởng cho custom training, tích hợp scikit-learn (RandomForestClassifier) và export feature importances dễ dàng.
- Không vi phạm yêu cầu: Interpretable cao, scalable trên GCP.
❌ Giải thích tất cả các phương án (đúng/sai)
-
[SAI] Build a random forest regression model in a Vertex AI Workbench notebook instance. Configure the model to generate feature importances after the model is trained.
❌ Sai vì: Sử dụng regression (RandomForestRegressor) cho output liên tục (continuous), không phù hợp churn probability (binary 0-1). Feature importances có nhưng model sai loại → predictions không chính xác cho classification task. -
[SAI] Build an AutoML tabular regression model. Configure the model to generate explanations when it makes predictions.
❌ Sai vì: AutoML tabular regression dành cho target liên tục (như giá bán), không phải probability churn. Explanations (SHAP-based) có nhưng kém interpretable hơn feature importances, và sai task → không dùng cho marketing insights rõ ràng. -
[SAI] Build a custom TensorFlow neural network by using Vertex AI custom training. Configure the model to generate explanations when it makes predictions.
❌ Sai vì: Neural network (TensorFlow) là black-box, explanations (What-If Tool hoặc Integrated Gradients) phức tạp, kém interpretable so với feature importances trực tiếp. Custom training tốn kém, không ưu tiên cho tabular churn cần simplicity. -
[ĐÚNG] Build a random forest classification model in a Vertex AI Workbench notebook instance. Configure the model to generate feature importances after the model is trained.
✅ Đúng vì: Hoàn hảo cho classification churn với probability output. Random Forest cung cấp feature importances dễ hiểu (global explainability), lý tưởng cho marketing. Vertex AI Workbench hỗ trợ seamless (scikit-learn + export to Endpoint).
🧠 Kết luận: Lựa chọn đúng cân bằng accuracy, interpretability và ease-of-use trên Vertex AI! 🚀
- A Create a text dataset on Vertex AI for entity extraction Create two entities called “ingredient” and “cookware”, and label at least 200 examples of each entity. Train an AutoML entity extraction model to extract occurrences of these entity types. Evaluate performance on a holdout dataset.
- B Create a multi-label text classification dataset on Vertex AI. Create a test dataset, and label each recipe that corresponds to its ingredients and cookware. Train a multi-class classification model. Evaluate the model’s performance on a holdout dataset.
- C Use the Entity Analysis method of the Natural Language API to extract the ingredients and cookware from each recipe. Evaluate the model's performance on a prelabeled dataset.
- D Create a text dataset on Vertex AI for entity extraction. Create as many entities as there are different ingredients and cookware. Train an AutoML entity extraction model to extract those entities. Evaluate the model’s performance on a holdout dataset.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi mô tả một tình huống thực tế: Bạn làm việc cho công ty phát triển ứng dụng lập kế hoạch bữa ăn. Ứng dụng cần sử dụng machine learning để quét (scan) một bộ sưu tập công thức nấu ăn (corpus of recipes) và trích xuất (extract) từng nguyên liệu (ingredient) (ví dụ: carrot, rice, pasta) và dụng cụ nhà bếp (cookware) (ví dụ: bowl, pot, spoon) được đề cập. Mỗi công thức được lưu dưới dạng file văn bản không cấu trúc (unstructured text file).
📌 Mục tiêu chính: Xây dựng mô hình ML để nhận diện và trích xuất entity cụ thể (ingredients và cookware) từ text tự do, không phải phân loại toàn bộ công thức. Đây là nhiệm vụ Named Entity Recognition (NER) hoặc Entity Extraction tùy chỉnh, phù hợp với Vertex AI AutoML Entity Extraction trên Google Cloud (cập nhật đến năm 2026, Vertex AI vẫn hỗ trợ AutoML cho entity extraction với yêu cầu tối thiểu 200 ví dụ/entity).
🛠️ Yêu cầu hành động: Chọn giải pháp tối ưu để tạo dataset, label data, train model và evaluate trên Vertex AI.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Create a text dataset on Vertex AI for entity extraction Create two entities called “ingredient” and “cookware”, and label at least 200 examples of each entity. Train an AutoML entity extraction model to extract occurrences of these entity types. Evaluate performance on a holdout dataset.
Lý do chi tiết (✅):
- Phương án này hoàn hảo khớp với nhiệm vụ entity extraction từ text unstructured trên Vertex AI.
- Tạo 2 entity types ("ingredient" và "cookware") để nhóm các ví dụ cụ thể (như carrot vào "ingredient", bowl vào "cookware") – đây là cách hiệu quả, scalable thay vì tạo hàng trăm entity riêng lẻ.
- Label ít nhất 200 examples/entity: Theo tài liệu Vertex AI mới nhất (2026), AutoML Entity Extraction yêu cầu tối thiểu 200 annotated examples per entity type để train model chất lượng.
- Train AutoML entity extraction model sẽ tự động extract occurrences (các lần xuất hiện) của entity types này.
- Evaluate trên holdout dataset là best practice chuẩn.
- Nguồn tham khảo: Vertex AI AutoML for Text Entity Extraction & Requirements for training (Google Cloud Docs, cập nhật 2026).
📋 Giải thích tất cả các phương án (đúng/sai)
-
✅ Đúng: Create a text dataset on Vertex AI for entity extraction Create two entities called “ingredient” and “cookware”, and label at least 200 examples of each entity. Train an AutoML entity extraction model to extract occurrences of these entity types. Evaluate performance on a holdout dataset.
(Giải thích đã nêu ở trên – phương án chuẩn xác, tuân thủ best practices Vertex AI). -
❌ Sai: Create a multi-label text classification dataset on Vertex AI. Create a test dataset, and label each recipe that corresponds to its ingredients and cookware. Train a multi-class classification model. Evaluate the model’s performance on a holdout dataset.
Lý do sai: Text classification (multi-label/multi-class) dùng để phân loại toàn bộ document (ví dụ: classify recipe là "vegetarian" hay không), không extract entities cụ thể từ text. Labeling từng recipe theo ingredients/cookware sẽ thành multi-label (presence/absence), nhưng không giải quyết scan và extract từng occurrence (như "2 carrots"). Không phù hợp nhiệm vụ NER. Vertex AI hỗ trợ classification riêng, nhưng sai công cụ. -
❌ Sai: Use the Entity Analysis method of the Natural Language API to extract the ingredients and cookware from each recipe. Evaluate the model's performance on a prelabeled dataset.
Lý do sai: Natural Language API Entity Analysis là pre-trained model chỉ extract các entity phổ biến (person, location, organization, consumer goods...), không hỗ trợ custom entities như "ingredient" hay "cookware". Không extract được carrot/rice chính xác từ recipes. Evaluate trên prelabeled dataset cũng không khắc phục hạn chế pre-trained. Nên dùng AutoML cho custom NER.
Nguồn: NL API Entity Analysis limitations (không custom types). -
❌ Sai: Create a text dataset on Vertex AI for entity extraction. Create as many entities as there are different ingredients and cookware. Train an AutoML entity extraction model to extract those entities. Evaluate the model’s performance on a holdout dataset.
Lý do sai: Tạo hàng trăm entity riêng lẻ (mỗi ingredient/cookware một entity, ví dụ: "carrot", "rice", "bowl"...) là không khả thi vì: (1) Cần label 200+ examples/entity → dataset khổng lồ (hàng triệu annotations); (2) Model kém generalize với rare entities; (3) Vertex AI khuyến nghị group vào types (như 2 entities ở đáp án đúng) để scalable. Sẽ fail training hoặc performance kém.
Nguồn: Vertex AI Entity Extraction best practices (recommend hierarchical/types, 2026 update).
🧪 Kết luận: Phương án đúng tận dụng Vertex AI AutoML Entity Extraction một cách tối ưu, tiết kiệm chi phí và hiệu quả cao cho production app! 🚀
- A Create a new Vertex AI endpoint for the new model and deploy the new model to that new endpoint. Build a service to randomly send 5% of production traffic to the new endpoint. Monitor end-user metrics such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new endpoint.
- B Capture incoming prediction requests in BigQuery. Create an experiment in Vertex AI Experiments. Run batch predictions for both models using the captured data. Use the user’s selected song to compare the models performance side by side. If the new model’s performance metrics are better than the previous model, deploy the new model to production.
- C Deploy the new model to the existing Vertex AI endpoint. Use traffic splitting to send 5% of production traffic to the new model. Monitor end-user metrics, such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new model.
- D Configure a model monitoring job for the existing Vertex AI endpoint. Configure the monitoring job to detect prediction drift and set a threshold for alerts. Update the model on the endpoint from the previous model to the new model. If you receive an alert of prediction drift, revert to the previous model.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi mô tả một tình huống thực tế trong dịch vụ streaming nhạc, nơi bạn có một mô hình ML tùy chỉnh đang phục vụ khuyến nghị "bài hát tiếp theo" dựa trên lịch sử nghe gần đây của người dùng. Mô hình này được triển khai trên Vertex AI endpoint (dịch vụ của Google Cloud). Bạn vừa huấn luyện lại mô hình với dữ liệu mới, kết quả kiểm tra offline tốt. Bây giờ, mục tiêu là test mô hình mới trong môi trường production (sản xuất) một cách an toàn, giảm thiểu độ phức tạp.
🛠️ Yêu cầu chính cần giải quyết:
- Test online (trong production) với traffic thực tế.
- Giám sát metrics end-user như thời gian nghe nhạc.
- Nếu tốt hơn, dần dần chuyển traffic sang mô hình mới.
- Ưu tiên minimize complexity (giảm phức tạp), nghĩa là tránh tạo thêm infrastructure mới hoặc quy trình phức tạp.
📘 Kiến thức liên quan (cập nhật Vertex AI đến 2026): Vertex AI hỗ trợ traffic splitting trên cùng một endpoint, cho phép deploy nhiều phiên bản model và phân bổ traffic % (ví dụ: 95% cũ + 5% mới). Đây là cách A/B testing chuẩn, an toàn, không downtime.
Nguồn tham khảo:
- Vertex AI Documentation: Deploying models to endpoints (cập nhật 2025).
- Traffic splitting guide (hỗ trợ multi-model per endpoint từ 2021, ổn định đến 2026).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng là phương án thứ 3:
Deploy the new model to the existing Vertex AI endpoint. Use traffic splitting to send 5% of production traffic to the new model. Monitor end-user metrics, such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new model.
Lý do 🏆:
- Phương án này giảm thiểu complexity tối đa bằng cách sử dụng tính năng traffic splitting built-in của Vertex AI trên endpoint hiện tại (không cần endpoint mới).
- Test online với traffic thực tế (5% production traffic), giám sát metrics end-user trực tiếp (listening time).
- An toàn: Có thể dần tăng % traffic nếu metrics cải thiện, dễ rollback bằng cách điều chỉnh split ratio.
- Phù hợp best practice Vertex AI cho canary deployment/A/B testing.
❌ Giải thích tất cả các phương án (đúng/sai)
-
[SAI] Create a new Vertex AI endpoint for the new model and deploy the new model to that new endpoint. Build a service to randomly send 5% of production traffic to the new endpoint. Monitor end-user metrics such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new endpoint.
❌ Sai vì: Tạo endpoint mới tăng complexity (quản lý 2 endpoints, build service custom để route traffic – tốn công, dễ lỗi). Vertex AI không khuyến khích, vì traffic splitting trên cùng endpoint đơn giản hơn, không cần code thêm. -
[SAI] Capture incoming prediction requests in BigQuery. Create an experiment in Vertex AI Experiments. Run batch predictions for both models using the captured data. Use the user’s selected song to compare the models performance side by side. If the new model’s performance metrics are better than the previous model, deploy the new model to production.
❌ Sai vì: Đây là offline evaluation (dùng dữ liệu captured từ BigQuery, batch predictions), không test trong production với traffic real-time. Không phản ánh hành vi user thực tế (như listening time), chỉ so sánh side-by-side lịch sử – không minimize complexity mà thêm bước experiment phức tạp. -
[ĐÚNG] Deploy the new model to the existing Vertex AI endpoint. Use traffic splitting to send 5% of production traffic to the new model. Monitor end-user metrics, such as listening time. If end-user metrics improve between models over time, gradually increase the percentage of production traffic sent to the new model.
✅ Đúng vì: Như đã giải thích ở trên – tối ưu, an toàn, built-in feature. Sử dụng Vertex AI Model Monitoring để track metrics nếu cần. -
[SAI] Configure a model monitoring job for the existing Vertex AI endpoint. Configure the monitoring job to detect prediction drift and set a threshold for alerts. Update the model on the endpoint from the previous model to the new model. If you receive an alert of prediction drift, revert to the previous model.
❌ Sai vì: Không test dần dần mà thay thế trực tiếp (full update), chỉ monitor drift sau khi deploy (prediction drift so với baseline). Không gửi 5% traffic test trước, rủi ro cao nếu model mới kém (phải revert thủ công). Không khớp yêu cầu "test new model in production while minimizing complexity".
🧪 Tóm tắt lợi ích traffic splitting: Zero-downtime, atomic deployment, dễ scale % traffic qua Console/CLI/API. Đây là cách chuẩn cho ML production trên Vertex AI! 🚀