Professional Machine Learning Engineer · Difficulty

Medium PMLE practice questions

Applied — put a concept to work in a realistic situation. 123 medium questions available — no sign-up, always free.

Question 1 of 25

A retail chain wants to classify products on store shelves using cameras that operate in stores with unreliable internet connectivity. The data science team has limited ML coding experience but has thousands of labeled product images. They need a solution that trains a custom image classifier and can run inference directly on in-store edge devices without a constant network connection. Which approach best meets these requirements?

Reviewed for accuracy · Report an issue
Question 2 of 25

A fintech company wants to build a binary classification model in Vertex AI AutoML Tabular to detect fraudulent transactions. Only 0.8% of the labeled transactions are fraudulent. The team's priority is to catch as many actual fraud cases as possible while keeping false positives at a manageable level, and they have limited ML expertise. Which approach should they configure to best meet this goal?

Reviewed for accuracy · Report an issue
Question 3 of 25

A logistics company wants to predict package delivery times using a structured dataset in Vertex AI. The data science team has limited coding experience and needs a solution that requires minimal ML expertise. Business stakeholders also require the model to report which features most influence each individual prediction, and the model must be queried in real time from a customer-facing web application. Which approach best meets all requirements?

Reviewed for accuracy · Report an issue
Question 4 of 25

A marketing analytics team with limited ML expertise wants to build a churn prediction model from a customer table already in BigQuery. They choose Vertex AI AutoML Tabular through the console. During job configuration, they must set a training budget expressed in node hours. They ask you how this setting affects the outcome and how to choose a reasonable value for their first experiment. What is the most accurate guidance?

Reviewed for accuracy · Report an issue
Question 5 of 25

A sports media company wants to automatically tag short game clips with the specific athletic actions they contain (e.g., 'shot on goal', 'free kick', 'tackle') along with the time segments where each action occurs. The data science team has only a few weeks, limited ML expertise, and a labeled dataset of a few thousand video clips. They want the lowest-code approach on Google Cloud that produces temporal action segments. Which solution best fits these requirements?

Reviewed for accuracy · Report an issue
Question 6 of 25

A retail analytics team needs to score 400 million customer records once per week using a trained TensorFlow model deployed on Vertex AI. The records live in a large BigQuery table. Latency is not a concern, but the team wants the job to complete as quickly and cheaply as possible while avoiding the operational overhead of managing infrastructure. Which approach best meets these requirements?

Reviewed for accuracy · Report an issue
Question 7 of 25

A retail analytics team needs to score their entire customer base (about 40 million records) once every night to generate propensity scores for a next-day marketing campaign. The scores are consumed by a downstream BigQuery table the following morning, so end-to-end latency of a few hours is acceptable. The team currently keeps a Vertex AI online endpoint with multiple GPU replicas running 24/7 to handle this workload, but finance has flagged the cost as excessive. What is the most appropriate change to reduce cost while meeting requirements?

Reviewed for accuracy · Report an issue
Question 8 of 25

Your team maintains a fraud-scoring model deployed on a Vertex AI online endpoint. A new business requirement asks you to re-score the entire historical transaction table (2 billion rows) once, to backfill risk labels for an analytics dashboard. There is no latency requirement for this one-time job, but you want to minimize cost and total wall-clock time. The online endpoint currently autoscales between 3 and 10 GPU replicas. What is the most appropriate approach?

Reviewed for accuracy · Report an issue
Question 9 of 25

A data science team prototypes models in a Vertex AI Workbench notebook using a 50 GB sample pulled into a Pandas DataFrame. The full training dataset lives in BigQuery and is roughly 8 TB, requiring complex windowed aggregations and joins across several tables. The team wants a preprocessing approach that scales to the full dataset for production training runs, minimizes custom infrastructure management, and produces feature tables that both training and future batch jobs can reuse. Which approach should they adopt?

Reviewed for accuracy · Report an issue
Question 10 of 25

A data science team prototypes models in Vertex AI Workbench notebooks. Their preprocessing code uses pandas to read and transform a 400 GB BigQuery table, but the notebook kernel repeatedly crashes with out-of-memory errors. The team wants to keep writing familiar pandas-style code in the notebook while pushing the heavy computation down to BigQuery so the data never has to fit in the notebook's memory. What should they do?

Reviewed for accuracy · Report an issue
Question 11 of 25

A data science team at a logistics company needs to explore three years of shipment event logs stored as newline-delimited JSON files in a Cloud Storage bucket (roughly 40 TB, organized in Hive-style date directories like /year=2023/month=05/). Analysts want to run ad hoc exploratory SQL in BigQuery to profile the data before committing to any modeling approach, but leadership is worried about query costs and does not want to duplicate the raw data into BigQuery-managed storage yet. Which approach best supports low-cost, iterative exploration?

Reviewed for accuracy · Report an issue
Question 12 of 25

A retail analytics team stores all their customer transaction data in BigQuery. They want to build a churn prediction model directly in BigQuery ML using a boosted tree classifier, and they want BigQuery ML to automatically search for the best combination of learning rate and max tree depth rather than manually experimenting. They also need the final model to be usable for online predictions from a Vertex AI endpoint later. Which approach best meets these requirements with the least custom code?

Reviewed for accuracy · Report an issue
Question 13 of 25

A retail analytics team stores three years of daily sales transactions in BigQuery. They need to produce a 30-day demand forecast for each of 5,000 products, including confidence intervals, while keeping the data in place and minimizing custom code or infrastructure management. Which approach best meets these requirements?

Reviewed for accuracy · Report an issue
Question 14 of 25

A retail analytics team has a BigQuery table with millions of rows of customer transaction data, including recency, frequency, and monetary value features. The marketing department wants to group customers into an unspecified number of natural segments for targeted campaigns, but there are no pre-existing labels indicating which segment each customer belongs to. The team wants a fully SQL-based, low-code approach without exporting data. Which BigQuery ML approach should they use?

Reviewed for accuracy · Report an issue
Question 15 of 25

A retail analytics team has trained a logistic regression model in BigQuery ML to predict which customers will churn. Business stakeholders want to understand, for each individual prediction, which features pushed the customer toward or away from churning so they can design targeted retention offers. The team wants to stay entirely within BigQuery using SQL and avoid exporting the model. Which approach should they use?

Reviewed for accuracy · Report an issue
Question 16 of 25

A retail analytics team stores millions of transaction records in BigQuery. A data scientist has already trained and deployed a custom fraud-scoring model to a Vertex AI online endpoint. The business analysts, who only know SQL, need to run predictions against this deployed model directly from their BigQuery queries without exporting data or writing Python. Which approach best meets this requirement with the least operational overhead?

Reviewed for accuracy · Report an issue
Question 17 of 25

A retail analytics team stores millions of customer feedback comments in a BigQuery table. Analysts who know SQL but have no ML or Python experience want to classify each comment into one of five predefined product-category themes and generate a one-sentence summary, running the process entirely within their existing BigQuery workflows. They want the fastest path to production without training a custom model or standing up separate inference infrastructure. What should they do?

Reviewed for accuracy · Report an issue
Question 18 of 25

A retail analytics team stores millions of product reviews in a BigQuery table. Analysts who are comfortable with SQL but not with Python want to generate concise one-sentence summaries of each review directly inside their existing BigQuery workflow, without building a custom pipeline or managing serving infrastructure. Which approach best meets these requirements with the least operational overhead?

Reviewed for accuracy · Report an issue
Question 19 of 25

A data analytics team wants to run entity sentiment analysis on millions of product reviews stored in a BigQuery table. They prefer to stay entirely within SQL and avoid writing any Python or exporting data. They plan to use the Cloud Natural Language API via BigQuery ML. When creating the remote model with CREATE MODEL ... REMOTE WITH CONNECTION, what is the essential configuration step required so that BigQuery can successfully invoke the Cloud Natural Language API?

Reviewed for accuracy · Report an issue
Question 20 of 25

A data analytics team stores millions of customer review texts in a BigQuery table. They want to build a semantic search feature that finds reviews similar to a given query, and they prefer to stay entirely within SQL workflows without exporting data or writing Python pipelines. They need to generate text embeddings at scale directly in BigQuery. What is the most appropriate low-code approach?

Reviewed for accuracy · Report an issue
Question 21 of 25

A retail analytics team stores 4 million product photos in Cloud Storage, with their metadata (GCS URIs, SKU, category) already loaded into a BigQuery object table. Analysts who are fluent in SQL but have no ML training pipeline experience need to generate descriptive labels for each image to enrich the product catalog. They want the lowest-effort approach that keeps everything within their existing BigQuery workflow and does not require them to build or manage any serving infrastructure. What should they do?

Reviewed for accuracy · Report an issue
Question 22 of 25

A retail analytics team has an existing TensorFlow SavedModel that predicts product return likelihood. The model was trained outside Google Cloud by a data science partner. The team wants their SQL-focused analysts to run batch predictions on customer transaction data that already lives in BigQuery, without exporting the data or standing up a separate serving infrastructure. What is the most appropriate low-code approach?

Reviewed for accuracy · Report an issue
Question 23 of 25

Your team trains a large PyTorch image model on Vertex AI custom training. Each run takes about 30 hours on a single node with multiple GPUs. To reduce cost, you switched to Spot (preemptible) VMs, but you notice that when a VM is reclaimed, the job restarts from scratch and wastes many GPU-hours. You must keep costs low while ensuring interrupted runs can resume efficiently. What should you do?

Reviewed for accuracy · Report an issue
Question 24 of 25

Your team has prototyped a gradient-boosted decision tree model (XGBoost) on a small tabular dataset for predicting equipment maintenance needs. You now need to scale training to a 200 GB dataset and later serve batch predictions nightly. A junior engineer suggests provisioning a cluster of GPU-accelerated VMs for both training and inference to maximize speed. What is the most cost-effective and appropriate hardware recommendation for this workload?

Reviewed for accuracy · Report an issue
Question 25 of 25

Your team deployed a credit-approval model on Vertex AI. Regulators require ongoing evidence that the model does not produce discriminatory outcomes across protected groups such as gender and ethnicity. The model shows strong overall accuracy, but leadership is concerned about fairness in production. Which approach best addresses this responsible-AI risk during ongoing monitoring?

Reviewed for accuracy · Report an issue