Machine Learning Engineer Practice Exam — Professional Machine Learning Engineer

1. The question bank is internet‑connected and updates automatically with no need for re‑acquisition.

2. Activate the question bank to gain access in both Chinese and English simultaneously.

3. Features include online practice, mock exams, and PDF downloads.

4. Study and practice via mini‑program or web browser on PC; valid for one year.

5. Simply enter the activation code to use. Click Buy Now on the right or contact customer service for purchase.

6. For inquiries, contact customer service via WeChat, WhatsApp or Line.

Exam information

Professional Machine Learning Engineer

- Exam Languages: English, Japanese, Korean, Spanish

- Exam Fee: $200

- Duration: 120 minutes

- Question Type: 50–60 multiple‑choice and multiple‑select questions

- Passing Score: Approximately 70%

- Certificate Validity: 2 years

- Official Registration Link: https://cloud.google.com/certification/machine-learning-engineer

- Focus: End‑to‑end development, training, deployment and monitoring of machine learning models on GCP

Sample questions

Machine Learning Engineer · Q1
Topic 1 Question #1 You are building an ML model to detect anomalies in real-time sensor data. You will use Pub/Sub to handle incoming requests. You want to store the results for analytics and visualization. How should you configure the pipeline?
  • A.
    1 = Dataflow, 2 = AI Platform, 3 = BigQuery
  • B.
    1 = DataProc, 2 = AutoML, 3 = Cloud Bigtable
  • C.
    1 = BigQuery, 2 = AutoML, 3 = Cloud Functions
  • D.
    1 = BigQuery, 2 = AI Platform, 3 = Cloud Storage

Answer: A

This question tests core Professional Machine Learning Engineer competencies including end-to-end ML pipeline design, GCP service selection for streaming workloads, and alignment of storage solutions with analytical requirements. The scenario specifies three critical pipeline requirements after Pub/Sub ingestion of real-time sensor data: first, low-latency preprocessing of streaming data to prepare inputs for anomaly detection; second, scalable, managed serving of the anomaly detection ML model for real-time inference; third, storage of prediction results optimized for ad-hoc analytics and visualization. The suggested answer A follows GCP's official recommended architecture for real-time ML inference pipelines, which is a heavily tested domain in the certification, and directly addresses all stated requirements. Option Analysis: A. Correct. Dataflow is GCP's serverless, fully managed stream and batch processing service, optimized for low-latency processing of streaming data from Pub/Sub, including windowing, cleaning, and transformation of sensor data to prepare it for inference. AI Platform (now part of Vertex AI, still referenced in legacy certification content) is a managed model serving service that supports low-latency, scalable real-time predictions for deployed ML models, making it the appropriate component for running the anomaly detection model. BigQuery is GCP's fully managed data warehouse, designed for fast ad-hoc analytical queries and native integration with visualization tools like Looker Studio, so it is ideal for storing prediction results for the required analytics and visualization use case. B. Incorrect. Dataproc is a managed Hadoop and Spark service designed primarily for large batch processing workloads, not low-latency real-time stream processing required for this pipeline. AutoML is a set of tools for training custom ML models without extensive coding, not a model serving layer for real-time inference in this pipeline step. Cloud Bigtable is a wide-column NoSQL store optimized for high-throughput, low-latency operational workloads, not ad-hoc analytics and visualization, so it fails to meet the storage requirement. C. Incorrect. BigQuery as the first pipeline component is invalid, as it is a data warehouse and not a stream processing engine, so it cannot perform the required low-latency preprocessing of real-time Pub/Sub data for immediate inference. AutoML is not appropriate for the model serving step, and Cloud Functions is an event-driven serverless compute service, not a storage layer for analytical workloads, so this option fails all core requirements. D. Incorrect. The first component BigQuery is unsuitable for initial stream processing of real-time sensor data, as noted earlier. Cloud Storage is an object storage service designed for unstructured data, archival, and bulk storage, not optimized for fast ad-hoc analytical queries and native visualization support required for the results storage step, so this option does not meet the stated requirements. Key Concepts: 1. Real-time ML Pipeline Design: The standard GCP architecture for real-time inference pipelines follows the pattern of Pub/Sub for event ingestion, Dataflow for stream preprocessing, a managed model serving layer (AI Platform/Vertex AI) for inference, and BigQuery for analytical storage of results. This is a core tested architecture for the Professional Machine Learning Engineer certification. 2. GCP Service Use Case Differentiation: Distinguishing between stream processing (Dataflow) for low-latency real-time workloads, batch processing (Dataproc) for offline large-scale workloads, and analytical storage (BigQuery) vs operational storage (Bigtable) vs object storage (Cloud Storage) is a critical competency for selecting appropriate services to meet pipeline requirements. 3. Storage Layer Alignment with Business Requirements: Storage solutions must be selected based on intended downstream use: BigQuery for ad-hoc analytics and business intelligence, Bigtable for low-latency operational access, and Cloud Storage for unstructured data and archival, to ensure the pipeline meets stated business needs. References: Building a real-time anomaly detection system, Dataflow Streaming Pipelines Documentation, https://cloud.google.com/dataflow/docs/concepts/streaming-pipelines
Machine Learning Engineer · Q2
Topic 1 Question #2 Your organization wants to make its internal shuttle service route more efficient. The shuttles currently stop at all pick-up points across the city every 30 minutes between 7 am and 10 am. The development team has already built an application on Google Kubernetes Engine that requires users to confirm their presence and shuttle station one day in advance. What approach should you take?
  • A.
    1. Build a tree-based regression model that predicts how many passengers will be picked up at each shuttle station. 2. Dispatch an appropriately sized shuttle and provide the map with the required stops based on the prediction.
  • B.
    1. Build a tree-based classification model that predicts whether the shuttle should pick up passengers at each shuttle station. 2. Dispatch an available shuttle and provide the map with the required stops based on the prediction.
  • C.
    1. Define the optimal route as the shortest route that passes by all shuttle stations with confirmed attendance at the given time under capacity constraints. 2. Dispatch an appropriately sized shuttle and indicate the required stops on the map.
  • D.
    1. Build a reinforcement learning model with tree-based classification models that predict the presence of passengers at shuttle stops as agents and a reward function around a distance-based metric. 2. Dispatch an appropriately sized shuttle and provide the map with the required stops based on the simulated outcome.

Answer: C

The scenario explicitly states that the development team has already built a GKE application that collects confirmed user presence and selected shuttle stations one day in advance. This means all required input data for route optimization, including which stops have passengers and the exact count of passengers per stop, is already available as deterministic ground truth, with no need for predictive modeling. The core goal of improving shuttle route efficiency is a classic constrained vehicle routing problem, which can be solved deterministically using optimization algorithms without ML. The suggested answer C aligns with professional ML engineering best practices by avoiding unnecessary ML complexity, eliminating the risk of prediction errors that could reduce efficiency or cause service issues, and directly using the available verified data to generate optimal routes under capacity constraints, paired with appropriately sized shuttles based on known passenger counts. This approach is low-risk, cost-effective, and directly addresses the stated business requirement. Option Analysis: A. Incorrect. A tree-based regression model to predict passenger counts is entirely redundant because the existing application already provides confirmed, ground truth passenger counts per station. Using predictive modeling here introduces avoidable prediction error, unnecessary computational overhead, and does not leverage the high-quality deterministic data already available. This violates core ML engineering best practices against over-engineering solutions when non-ML alternatives are sufficient. B. Incorrect. A classification model to predict if a stop is required is unnecessary, as the application already has explicit confirmation of which stations have attending passengers. Predicting a known value adds no operational value, introduces risk of misclassification that could lead to missed stops or unnecessary detours, and is a poor use of ML engineering resources. C. Correct. This approach directly leverages the existing confirmed attendance data to solve a constrained shortest path/vehicle routing problem, which is the optimal deterministic solution for the use case. It eliminates unnecessary ML complexity, avoids prediction-related risks, and directly addresses the efficiency goal by generating the shortest valid route that meets capacity constraints, with shuttle sizing aligned to known passenger volumes. This follows the certification's core principle of selecting the simplest, most reliable solution that meets business requirements. D. Incorrect. A reinforcement learning approach with embedded classification models is severely over-engineered for this use case. Reinforcement learning is designed for dynamic environments with partial or unknown state information, but this scenario provides full, advance knowledge of all required stops. The classification models are redundant for the same reason as options A and B, as passenger presence is already confirmed. This approach introduces unnecessary cost, complexity, and risk of suboptimal outcomes from simulation or prediction error. Key Concepts: 1. ML Solution Suitability Assessment: A core certification domain concept that requires ML engineers to evaluate whether a problem requires ML, or can be solved more effectively with deterministic non-ML solutions. This includes assessing the availability of ground truth data that eliminates the need for prediction. 2. Over-engineering Avoidance: A key best practice that prioritizes simple, low-risk, cost-effective solutions over unnecessarily complex ML implementations when they do not provide tangible additional value. This reduces operational overhead and minimizes the risk of errors from unneeded model components. 3. Constrained Optimization for Operations Use Cases: ML engineers are expected to recognize when operations research optimization techniques such as vehicle routing problem solvers are more appropriate than ML for problems with fully known input parameters and defined constraint sets. References: Google Cloud MLOps: Continuous delivery and automation pipelines in machine learning, https://cloud.google.com/architecture/mlops-continuous-delivery-and-automation-pipelines-in-machine-learning Optimizing vehicle routes using Cloud Optimization API, https://cloud.google.com/solutions/optimizing-vehicle-routes-using-cloud-optimization-api
Machine Learning Engineer · Q3
Topic 1 Question #3 You were asked to investigate failures of a production line component based on sensor readings. After receiving the dataset, you discover that less than 1% of the readings are positive examples representing failure incidents. You have tried to train several classification models, but none of them converge. How should you resolve the class imbalance problem?
  • A.
    Use the class distribution to generate 10% positive examples.
  • B.
    Use a convolutional neural network with max pooling and softmax activation.
  • C.
    Downsample the data with upweighting to create a sample with 10% positive examples.
  • D.
    Remove negative examples until the numbers of positive and negative examples are equal.

Answer: C

The core problem in this scenario is extreme class imbalance, with less than 1% of samples representing the positive failure class. This imbalance causes model convergence failure because the model can achieve near-perfect training accuracy by only predicting the majority negative class, leading to minimal loss gradient updates during training. The suggested answer C resolves this by combining two industry-standard best practices for imbalanced classification. First, downsampling the majority negative class creates a more balanced training distribution with 10% positive samples, giving the model sufficient signal from both classes to learn meaningful patterns and eliminating the trivial majority-only prediction path that blocked convergence. Second, upweighting the positive class compensates for the reduced number of negative samples during training, ensuring the model's loss function is calibrated to the original production class distribution so the trained model generalizes correctly to real-world data rather than overfitting to the artificially balanced training sample. This approach preserves all rare and valuable positive failure samples, avoids unnecessary information loss from excessive majority class removal, and directly addresses the root cause of the convergence failure. Option Analysis: A. This option is incorrect. Generating synthetic positive examples using only the original class distribution produces noisy, unrealistic samples that do not reliably represent real failure events, degrading model generalization. Synthetic data generation for minority classes requires rigorous validation (such as with SMOTE for appropriate use cases) to be effective, and this approach also fails to address the majority class bias that is causing convergence failure. B. This option is incorrect. Convolutional neural networks are designed for structured grid data such as images or sequential time series, and the scenario does not indicate the sensor data fits this input type. More critically, changing model architecture does not resolve the underlying class imbalance problem; even a CNN will default to predicting the majority class to minimize loss on extremely imbalanced data, so convergence failure will persist. C. This option is correct. Downsampling the majority class reduces the volume of negative samples to create a balanced enough training distribution for the model to learn patterns for both classes, eliminating the trivial majority prediction that blocked convergence. Upweighting the positive class adjusts the loss function to account for the altered training distribution, ensuring the model remains calibrated to the original production data distribution and generalizes correctly. This approach preserves all rare positive samples, minimizes information loss from the majority class, and aligns with production ML best practices for imbalanced rare event classification. D. This option is incorrect. Removing negative examples until class counts are equal is an extreme naive downsampling approach that discards 99% of the original negative data, leading to massive loss of information about normal component operation and high false positive rates in production. No upweighting is applied to calibrate the model to the original class distribution, so the trained model will be heavily biased towards the artificial 50/50 training distribution and perform poorly on real-world data. Key Concepts: 1. Class Imbalance Mitigation for Rare Event Detection: When the minority class represents less than 5% of samples, standard classification models fail to converge because they minimize loss by only predicting the majority class. Valid mitigation strategies include majority class downsampling with minority upweighting, weighted cross-entropy loss, and validated minority oversampling, while naive downsampling or unvalidated synthetic data generation are discouraged due to generalization risks. 2. Weighted Loss Calibration for Sampled Training Data: When the training dataset class distribution is altered from the production distribution via sampling, upweighting the underrepresented class in the loss function adjusts error penalties to align with real-world event prevalence, ensuring the model's decision boundary is calibrated for production performance rather than overfitting to the training sampling distribution. 3. Training Data Sampling Best Practices: For imbalanced datasets, all valuable minority class samples should be preserved during sampling, and majority class downsampling should be limited to avoid excessive information loss. A target minority class representation of 5-15% is typically optimal for balancing training convergence and generalization performance. References: Google Cloud ML on GCP Best Practices: Handle Class Imbalance, https://cloud.google.com/architecture/ml-on-gcp-best-practices#handle-class-imbalance AWS Machine Learning Developer Guide: Handling Imbalanced Data, https://docs.aws.amazon.com/machine-learning/latest/dg/handling-imbalanced-data.html
Machine Learning Engineer · Q4
Topic 1 Question #4 You want to rebuild your ML pipeline for structured data on Google Cloud. You are using PySpark to conduct data transformations at scale, but your pipelines are taking over 12 hours to run. To speed up development and pipeline run time, you want to use a serverless tool and SQL syntax. You have already moved your raw data into Cloud Storage. How should you build the pipeline on Google Cloud while meeting the speed and processing requirements?
  • A.
    Use Data Fusion's GUI to build the transformation pipelines, and then write the data into BigQuery.
  • B.
    Convert your PySpark into SparkSQL queries to transform the data, and then run your pipeline on Dataproc to write the data into BigQuery.
  • C.
    Ingest your data into Cloud SQL, convert your PySpark commands into SQL queries to transform the data, and then use federated queries from BigQuery for machine learning.
  • D.
    Ingest your data into BigQuery using BigQuery Load, convert your PySpark commands into BigQuery SQL queries to transform the data, and then write the transformations to a new table.

Answer: D

The scenario specifies four core requirements: a serverless processing tool, support for SQL syntax, reduced pipeline runtime compared to long-running PySpark jobs, and compatibility with raw data already stored in Cloud Storage for structured data ML pipeline use cases. The suggested answer D aligns fully with all requirements and GCP ML engineering best practices. BigQuery is a fully serverless, petabyte-scale analytical data warehouse optimized for structured data SQL workloads, eliminating the operational overhead of managing compute clusters that comes with Spark-based pipelines. Loading data directly from Cloud Storage via native BigQuery Load operations is a low-latency, managed process, and BigQuery's distributed query engine processes structured data transformations far faster than long-running PySpark pipelines for equivalent workloads. Converting PySpark logic to BigQuery SQL also streamlines development by leveraging familiar SQL syntax, and the resulting transformed BigQuery table is immediately accessible for downstream ML tasks such as BigQuery ML training or export to Vertex AI, reducing end-to-end pipeline latency. Option Analysis: A. Incorrect. Cloud Data Fusion is a low-code GUI ETL tool, which does not align with the requirement to use SQL syntax as its primary interface is GUI-first. It also introduces unnecessary overhead for straightforward structured data transformations compared to native BigQuery SQL, so it would not deliver the maximum runtime speed improvement required for the use case. B. Incorrect. Dataproc is a managed Spark service, but it is not fully serverless as it requires users to configure and manage cluster resources even with autoscaling, failing to meet the serverless tool requirement. While SparkSQL is SQL-compatible, Spark on Dataproc has higher operational overhead and slower performance for common structured data transformation workloads compared to native BigQuery processing, so it would not resolve the 12 hour pipeline runtime issue as effectively as the correct option. C. Incorrect. Cloud SQL is a managed relational database built for transactional OLTP workloads, not large-scale analytical transformation of the volume of data that requires 12 hours of PySpark processing. Transforming data in Cloud SQL would lead to poor performance, and using BigQuery federated queries adds unnecessary data movement latency compared to native BigQuery processing, making this option unsuitable for the use case. D. Correct. This option meets all stated requirements: BigQuery is fully serverless, so no cluster management is required. It supports native standard SQL syntax, allowing straightforward conversion of existing PySpark transformation logic. Loading data from Cloud Storage via BigQuery Load is a fast, managed operation, and BigQuery's optimized query engine cuts down pipeline runtime significantly compared to long-running PySpark jobs. The resulting transformed table is immediately available for ML workloads, aligning with GCP recommended best practices for structured data ML pipeline design. Key Concepts: 1. Serverless Structured Data Processing for ML Pipelines: This core certification concept covers selecting fully managed, no-ops processing services to reduce operational overhead and speed up pipeline runtime. For structured data workloads on GCP, BigQuery is the recommended serverless SQL processing layer for ML data preparation, as it auto-scales compute resources dynamically and eliminates cluster management tasks. 2. ELT Architecture for ML Data Preparation: This concept covers the preferred pattern for structured data processing on GCP, where raw data is first loaded directly into BigQuery (Extract, Load) before transformations are applied via SQL (Transform), rather than using ETL patterns that transform data before loading. This reduces data movement and leverages BigQuery's native processing performance for faster pipeline runs. 3. GCP Data Service Workload Alignment: This concept covers matching GCP data services to their intended use cases to optimize performance and cost. BigQuery is designed for large-scale analytical workloads, Cloud SQL for transactional workloads, Dataproc for custom Spark workloads, and Data Fusion for low-code heterogeneous ETL, so selecting the appropriate service for the workload is a critical ML engineering skill. References: BigQuery Documentation: Loading data from Cloud Storage, https://cloud.google.com/bigquery/docs/loading-data-cloud-storage Google Cloud Professional Machine Learning Engineer Certification Guide: Data Preparation and Processing, https://cloud.google.com/certification/guides/machine-learning-engineer#data-preparation-and-processing
Machine Learning Engineer · Q5
Topic 1 Question #5 You manage a team of data scientists who use a cloud-based backend system to submit training jobs. This system has become very difficult to administer, and you want to use a managed service instead. The data scientists you work with use many different frameworks, including Keras, PyTorch, theano, Scikit-learn, and custom libraries. What should you do?
  • A.
    Use the AI Platform custom containers feature to receive training jobs using any framework.
  • B.
    Configure Kubeflow to run on Google Kubernetes Engine and receive training jobs through TF Job.
  • C.
    Create a library of VM images on Compute Engine, and publish these images on a centralized repository.
  • D.
    Set up Slurm workload manager to receive jobs that can be scheduled to run on your cloud infrastructure.

Answer: A

This scenario has two core requirements: first, replace a high-administration overhead custom training backend with a fully managed service to reduce operational burden, and second, support a diverse set of ML frameworks including Keras, PyTorch, Theano, Scikit-learn, and custom internal libraries. The suggested answer aligns with Professional Machine Learning Engineer domain knowledge of managed ML service selection, as it addresses both requirements simultaneously. AI Platform custom containers is a fully managed training service that eliminates the need for teams to administer underlying compute clusters, job scheduling, or infrastructure patching, resolving the administrative pain point. The custom container functionality lets users package any required dependencies, frameworks, or custom code into a standard Docker container, ensuring full compatibility with all tools used by the data science team without requiring pre-built environment support from the service. Option Analysis: A. Correct. AI Platform custom containers is a fully managed ML training service that supports any framework or custom library by allowing users to package their entire training environment into a Docker container. This eliminates the need to administer underlying training infrastructure, directly resolving the administrative burden stated in the scenario, while supporting all the heterogeneous frameworks used by the data science team. B. Incorrect. Kubeflow running on GKE is not a fully managed service, as teams are still responsible for administering the GKE cluster, Kubeflow control plane, and custom job resources. Additionally, TFJob is a Kubeflow custom resource designed specifically for TensorFlow training jobs, and does not natively support all the listed frameworks without additional custom configuration, which increases administrative overhead rather than reducing it. C. Incorrect. Custom VM images on Compute Engine require teams to manually manage VM provisioning, autoscaling, job scheduling, and infrastructure lifecycle, which is not a managed service and increases rather than reduces administrative workload. This does not address the core problem of difficult system administration. D. Incorrect. Slurm is an open-source workload manager that requires manual setup, configuration, and ongoing administration of the underlying compute infrastructure. It is not a managed cloud service, so it does not resolve the administrative pain point outlined in the scenario. Key Concepts: 1. Managed ML Training Services: These are cloud services that abstract away underlying infrastructure administration tasks including cluster provisioning, job scheduling, patching, and autoscaling, reducing operational overhead for data science teams and allowing them to focus on model development rather than infrastructure management. 2. Custom Container Support for ML Training: Custom container functionality in managed ML services enables users to package arbitrary ML frameworks, dependencies, and custom code into portable Docker containers, eliminating constraints from pre-built service environments and ensuring compatibility with any ML stack used by a team. 3. ML Service Selection Criteria: Core criteria for selecting ML training services include level of service management, framework compatibility, operational overhead, and alignment with existing team workflows to meet stated business and technical requirements. References: AI Platform Training Custom Containers Documentation, https://cloud.google.com/ai-platform/training/docs/custom-containers-training Google Cloud Professional Machine Learning Engineer Exam Guide, https://cloud.google.com/certification/guides/machine-learning-engineer

FAQ

How many practice questions are available for Machine Learning Engineer?

This question bank includes 339 Machine Learning Engineer practice questions covering single and multiple choice, each with answers and explanations.

Are Machine Learning Engineer practice questions available in Chinese and English?

Yes, Machine Learning Engineer practice questions are provided in both Chinese and English.

Can I try Machine Learning Engineer practice questions for free?

Yes. Free sample questions are available on this page, and the full question bank is available after signing up on Zhangxuetu.