Google Cloud Professional Machine Learning Engineer · 16% practice allocation

Google Cloud Professional Machine Learning Engineer: Collaborating within and across teams to manage data and models Practice Questions

5 free sample questions from the Collaborating within and across teams to manage data and models domain, with answers and explanations. The full Professional Machine Learning Engineer bank has 301 questions across 6 domains. Questions are scenario-based and written from the official Google Cloud exam guide.

1.

Your team is implementing a TFX data validation component in a production pipeline to detect data drift between training and serving datasets. The team is debating how to handle schema mismatches. Which two of the following are valid approaches within TFX's responsible AI and data quality framework? (Select TWO.)

  • A. Disable schema validation in production to avoid false positives from minor data drift
  • B. Use the TFX SchemaGen component to generate a schema from training data, then use ExampleValidator to compare serving data against it and alert on anomalies✓ Correct
  • C. Use TFDV (TensorFlow Data Validation) to compute detailed statistics and anomalies, integrating alerts into your monitoring workflow✓ Correct
  • D. Manually inspect serving data each week and update the schema in a text file when drift is detected
  • E. Configure the ExampleValidator to silently drop any serving examples that violate the learned schema
Explanation

The SchemaGen + ExampleValidator option and the TFDV option are correct because they represent systematic, automated approaches to detecting and responding to data quality issues. SchemaGen + ExampleValidator create a reproducible baseline; TFDV provides detailed statistical analysis and is the standard TFX component for drift detection. Weekly manual inspection is wrong because manual inspection is not scalable and does not fit the TFX pipeline paradigm. Configuring ExampleValidator to silently drop examples is wrong because silently dropping data introduces hidden biases and violates responsible AI principles of transparency. Disabling schema validation is wrong because disabling validation removes safeguards against serving data degradation, a key risk in production systems.

2.

Your data science team has discovered that a classification model for loan approval shows significantly different false positive rates across demographic groups. Before fixing the model, the team wants to understand and document this fairness issue transparently for stakeholders. Which combination of tools and practices best supports this responsible AI goal? (Select THREE.)

  • A. Integrate SHAP or similar explainability library in your Agent Platform Experiments metadata to track which features differ in importance across demographic groups
  • B. Create a Colab Enterprise notebook documenting the fairness analysis, check it into Git, and share the link with stakeholders so they can reproduce the findings✓ Correct
  • C. Rebalance the training dataset by removing examples from overrepresented demographic groups
  • D. Use Explainable AI on Agent Platform (feature importance analysis) to identify which features are driving disparate predictions across demographic groups✓ Correct
  • E. Use Agent Platform Model Monitoring to set up alerts for fairness metrics by demographic group, enabling proactive detection of future drift✓ Correct
  • F. Document the fairness issue in a static PDF report and distribute it once without allowing feedback
Explanation

The Explainable AI, Colab Enterprise notebook, and Model Monitoring options are correct because they form a responsible AI framework: explainability reveals why disparities occur, collaborative documentation enables transparency and reproducibility, and monitoring ensures ongoing fairness. Rebalancing by removing examples is wrong because silently removing data introduces hidden bias and violates the principle of transparency required for responsible AI. The static PDF report is wrong because one-time static reporting does not engage stakeholders in an ongoing conversation about fairness. The SHAP option is wrong because while SHAP integration is valuable, it was not presented as one of the three best tools in the standard GCP responsible AI stack; the question tests knowledge of Gemini Enterprise Agent Platform (formerly Vertex AI)'s native explainability and monitoring services.

3.

A healthcare company is preprocessing patient records that contain names, dates of birth, and diagnosis codes before training a readmission-risk model. The legal team requires that PII be removed or masked before the data is used in any ML notebook. Which two practices should the ML engineer implement? (Select TWO)

  • A. Apply column-level BigQuery authorized views so that ML engineers can query a PII-free projection without accessing the underlying raw table.✓ Correct
  • B. Store raw patient records directly in a Workbench notebook's local disk and manually delete PII columns in the notebook before committing the notebook to Git.
  • C. Encrypt the raw dataset with a customer-managed encryption key (CMEK) and share the decryption key with all ML engineers in the project.
  • D. Use the Cloud Data Loss Prevention (DLP) API to inspect and de-identify fields containing names and dates of birth before writing the processed data to the training dataset.✓ Correct
  • E. Hash all free-text fields using SHA-256 inside the training script so that PII is obfuscated only during model training.
Explanation

Using the DLP API is correct because it provides automated, auditable detection and de-identification of PII fields such as names and dates of birth, ensuring removal happens before the data reaches any notebook. Authorized BigQuery views are correct because they let ML engineers query a pre-filtered, PII-free projection without ever touching the raw table, enforcing access control at the data layer. Storing raw records on a notebook's local disk and manually deleting columns is wrong because it creates an uncontrolled copy of raw PII, is not auditable, and risks accidental exposure through Git commits. CMEK encrypts data at rest but does not remove PII — it only restricts who can decrypt it, which still exposes PII to anyone with key access. Hashing free-text fields only inside the training script is wrong because PII is still present in the stored dataset and in any intermediate outputs; hashing also does not constitute de-identification for structured PII fields like names.

4.

A data science team is evaluating a large language model (LLM) for a customer support summarization task. Human evaluation is too slow to run at scale. The team decides to use an LLM-as-a-judge approach. A senior ML engineer raises concerns about this evaluation methodology. Which two concerns are most valid? (Select TWO)

  • A. The judge LLM may exhibit self-preference bias, rating outputs from models with similar architectures or training data more favorably.✓ Correct
  • B. LLM-as-a-judge is incompatible with Agent Platform (formerly Vertex AI) and must be run on a separate evaluation infrastructure.
  • C. LLM-as-a-judge cannot produce numerical scores and therefore cannot be compared across model versions in Agent Platform Experiments (formerly Vertex AI Experiments).
  • D. The judge LLM's ratings may be sensitive to the phrasing of the evaluation prompt, leading to inconsistent scores for identical outputs.✓ Correct
  • E. Using an LLM as a judge is always less reliable than BLEU or ROUGE scores for open-ended summarization tasks.
Explanation

Self-preference bias is a well-documented concern: judge LLMs tend to favor outputs stylistically similar to their own training distribution, which can skew comparisons when the judged model shares architectural lineage with the judge. Prompt sensitivity is also a valid concern: small changes in how the evaluation rubric is phrased can produce meaningfully different scores for the same output, undermining reproducibility. The claim that LLM-as-a-judge cannot produce numerical scores is wrong — judges are routinely prompted to output structured numeric ratings (e.g., 1–5) that can be logged to Agent Platform Experiments. Incompatibility with Agent Platform is false — Agent Platform natively supports LLM evaluation workflows including judge-based scoring. The claim that LLM-as-a-judge is always less reliable than BLEU/ROUGE is wrong — for open-ended summarization, reference-free LLM judgment often correlates better with human judgments than n-gram overlap metrics, which penalize valid paraphrases.

5.

A team is managing feature engineering logic that must produce identical results for both batch scoring and real-time inference. The features are currently defined as Python functions in a Jupyter notebook. What is the recommended approach to ensure consistency? (Select TWO.)

  • A. Implement the feature logic in Agent Platform Feature Store with a single canonical definition that serves both batch and real-time use cases✓ Correct
  • B. Use BigQuery SQL for batch features and Python for real-time features with manual synchronization
  • C. Write the feature logic once in the notebook and copy it into batch and real-time code paths separately
  • D. Implement feature logic in TensorFlow transform (tft) module that can be used in both training and serving pipelines✓ Correct
Explanation

Defining features once in Agent Platform Feature Store gives batch and real-time consumers the same feature values, and writing the transformations with TensorFlow Transform embeds the same logic in both the training and serving graphs. Maintaining SQL for batch and Python for real time, or copying notebook code into separate paths, invites the two implementations to drift apart.

Test yourself across every Professional Machine Learning Engineer domain

The free Professional Machine Learning Engineer practice test mixes about 20 questions weighted like the exam. The full 301-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Collaborating within and across teams to manage data and models study guide (Professional Machine Learning Engineer) →

Other Professional Machine Learning Engineer domains

← All Google Cloud Professional Machine Learning Engineer study resources