10 Free GCP Professional Machine Learning Engineer Practice Questions

GCP Study Hub
November 13, 2026

Below are 10 realistic Professional Machine Learning Engineer exam questions, each followed by a walk-through of every option. Try to commit to an answer before you read the explanation, since comparing your reasoning with ours is where the practice pays off. This set leans toward generative AI: when to fine-tune a model instead of prompting or grounding it, how to filter what goes into and comes out of a model, and how to evaluate, cache and serve large language models. One question covers training hardware and numeric precision.

If you want more practice like this, take a look at our Professional Machine Learning Engineer course.

Question 1 of 10

A software company has created a proprietary programming language used internally to automate business processes. To help developers work more efficiently, the company deployed a large language model that generates code in this language from natural language prompts. The model was grounded using Retrieval-Augmented Generation (RAG) and retrieves relevant sections from the language's official manual. Despite this implementation, generated code still contains syntax errors, invalid function calls, and references to language features that do not exist. The engineering team wants to improve the accuracy of generated code while continuing to use the existing documentation as a knowledge source. Which approach should they take?

Choose only ONE best answer.

A) Perform supervised fine-tuning using prompt and code completion examples written in the proprietary language

B) Increase the model temperature during inference to encourage more diverse code generation

C) Increase the size of retrieved documentation chunks included in each prompt context

D) Provide larger portions of the language manual as context with every generation request

This question is about the gap between having the right information and knowing how to use it. Retrieval is already working: the model receives relevant sections of the official manual with each request. Yet it still writes invalid syntax and calls functions that do not exist. The team also wants to keep the manual as a knowledge source, so the fix has to work alongside retrieval rather than replace it.

Option A adds supervised fine-tuning with prompt and code completion examples written in the proprietary language. Training on these examples lets the model learn the syntax, function names and conventions of the language directly. That matters because a private, internal language is unlikely to be well represented in the model's original training data. The tuned model can still be grounded in the manual through the existing RAG setup, so this option keeps the documentation as a knowledge source.

Option B raises the temperature during inference. Temperature controls how random token selection is, so a higher value produces more varied output. Variety is the opposite of what the team needs. A model that is already unsure how the language works will produce more inconsistent code, and more invented syntax, when it samples more freely.

Option C increases the size of the retrieved documentation chunks. Bigger chunks put more of the manual into each prompt, but they also bring in more text that has nothing to do with the request. The model already receives relevant sections, and seeing longer passages does not teach it how to apply the language rules correctly.

Option D sends larger portions of the manual with every request. This is option C at a larger scale. Prompts get longer and more expensive to process, and the relevant passages can get buried among the rest. The underlying problem is unchanged: a reference manual describes the language, but the model still has not seen worked examples of how the language is actually written.

The best answer is Option A. Options C and D are the most tempting because they lean harder on the documentation the team wants to keep. But the stem shows that giving the model documentation has not fixed the errors, and adding more of the same kind of input is unlikely to change that. Fine-tuning supplies what retrieval cannot: examples that help the model internalize how the language is used. RAG continues to supply the manual, so the two together address both sides of the problem.

For more on how tuning adapts a model to a specific domain, see our article on supervised fine-tuning for LLMs.

Question 2 of 10

A multinational financial services corporation wants to deploy an interactive voice response system for its customer support line in Brazil. You need to build a telephony agentic solution using the Gemini Live API that can conduct fluid, human-like voice conversations with customers to authenticate their identities and log their account inquiries. To meet strict project deadlines and budget constraints, you must minimize both development time and latency while ensuring native-sounding Portuguese responses. What should you do?

Choose only ONE best answer.

A) Fine-tune the Gemini Flash model on a Portuguese customer service dataset and deploy this custom model behind the Gemini Live API

B) Use the Gemini Live API and configure the language_code field to pt-BR while including a system instruction to respond in Portuguese

C) Utilize the Gemini Pro model to dynamically detect the customer speech and automatically route the audio to a localized translation layer

D) Implement the Gemini Live API with the speech-to-text functionality coupled with text-to-speech streaming via a secondary Chirp model pipeline

The stem stacks several requirements: fluid, human-like voice conversations, native-sounding Portuguese for callers in Brazil, low latency, and minimal development time under tight budget constraints. The team has already chosen the Gemini Live API, so the question is how to get natural Brazilian Portuguese out of it with the least extra engineering and the fewest moving parts.

Option A fine-tunes Gemini Flash on a Portuguese customer service dataset. Fine-tuning means collecting and preparing training data, running tuning jobs and evaluating the result, all of which cost time and money the project does not have. It is also unnecessary. The foundation model already has native-level multilingual capability, so tuning would add work without closing a real gap.

Option B uses the Gemini Live API, sets the language_code field to pt-BR and adds a system instruction to respond in Portuguese. The Live API is built for bidirectional, low-latency voice interaction and has multilingual support built in. Setting the language code tells it which locale to use, and the system instruction reinforces that behavior in every reply. This is configuration, not new engineering. There are no extra models to train and no separate components to chain together, so it fits the time, budget and latency requirements.

Option C uses Gemini Pro to detect the caller's speech and route the audio to a localized translation layer. The language is already known, since this is a support line for customers in Brazil, so dynamic detection solves a problem the scenario does not have. The extra routing and translation steps add latency to every turn of the conversation and add components the team has to build and maintain.

Option D pairs the Live API with speech-to-text and a secondary Chirp model pipeline for text-to-speech streaming. Chaining separate speech recognition and synthesis stages is a valid way to build a voice system in general, but here it requires custom integration code between the pieces, and each hand-off adds delay. The Live API already handles audio input and output natively, so rebuilding that path from separate parts works against both the latency goal and the development time goal.

The best answer is Option B. Option D is the closest alternative because a pipeline of separate speech services is a recognizable architecture and would produce Portuguese audio. But the stem asks you to minimize both development time and latency, and Option B gets native-sounding Portuguese from the API the team already chose, using a language setting and a system instruction instead of extra models or pipeline stages.

Question 3 of 10

Your organization wants to deploy a customer service chat routing model using a large language model available in Model Garden. During testing, you discover that while the model understands technical requests, it frequently uses overly technical jargon that does not match your support team's empathetic communication guidelines. How can you modify the workflow to ensure the generated responses consistently match your team's tone?

Choose only ONE best answer.

A) Replace the foundational model with a different size variant in Model Garden

B) Fine-tune the model using a dataset of approved support interactions

C) Increase the top-p sampling parameter value during model inference

D) Adjust the maximum output token length constraint in the API configuration

The model already understands technical requests, so its capability is not the issue. The problem is style: the responses use jargon that does not match the support team's empathetic communication guidelines. The word "consistently" matters here. The fix needs to change how the model writes by default, across every response, rather than nudging individual outputs.

Option A swaps the model for a different size variant in Model Garden. Size variants within a model family mainly differ in reasoning capability, latency and cost. None of them has learned your team's guidelines, so a larger or smaller variant has no particular reason to adopt your tone. A change of size could also affect the technical understanding the team is already happy with.

Option B fine-tunes the model on a dataset of approved support interactions. These examples show the model the exact tone, vocabulary and level of empathy the team expects. Supervised fine-tuning adjusts the model's weights toward that style while the model keeps its general language understanding, so the change carries into every response. Agent Platform provides supervised fine-tuning for aligning model behavior with specific business requirements like this one.

Option C increases the top-p sampling value. Top-p limits sampling to the smallest set of likely tokens whose combined probability reaches the chosen value, so raising it lets less likely tokens into the mix. That makes output more varied and less predictable. It changes randomness, not style, and a more random model is harder to keep on a consistent tone.

Option D adjusts the maximum output token length. This only controls how long a response can be. A shorter or longer reply still uses the same jargon, so the vocabulary, empathy and professional style of the text stay the same.

The best answer is Option B. Option A might look attractive because it changes the model itself, but a different size has never seen your guidelines either. Options C and D change sampling and length, which are unrelated to tone. Fine-tuning is the only option that gives the model your own examples of the desired communication style, and learning from those examples is what makes the tone consistent.

Question 4 of 10

A large enterprise launches a public-facing customer service application powered by a large language model. During post-launch monitoring, the security team discovers that certain users are submitting adversarial inputs designed to bypass the safety filters, which causes the application to generate violent and inappropriate responses. You need to implement a solution that prevents the model from generating this unsafe content. What is the most effective way to mitigate this security risk?

Choose only ONE best answer.

A) Configure Model Armor to apply safety filters to user inputs and model responses

B) Perform supervised fine-tuning on the model using a curated dataset of safe interactions

C) Update the system prompt template to include strict guidelines against generating violent content

D) Implement a separate classifier model to check the output before it reaches the customer

This question describes an active attack. Users are deliberately crafting inputs to get around the application's safety behavior, and the model is producing violent and inappropriate responses as a result. The requirement is to stop that unsafe content in a public-facing application. A strong answer has to hold up against inputs that are designed to defeat whatever rules the model has been given.

Option A configures Model Armor to apply safety filters to user inputs and model responses. Model Armor is a Google Cloud service built to screen the traffic of generative AI applications. You define content filtering policies, and it checks incoming prompts and outgoing responses against them, blocking harmful material. Its filters also include detection of prompt injection and jailbreak attempts, which is the kind of behavior described here. Because it sits outside the model, it adds a protective layer without retraining the model or changing the application logic, and it gives the team one central place to manage safety policy.

Option B performs supervised fine-tuning on a curated dataset of safe interactions. This takes data preparation, compute and engineering time, and the result is still a model that can be pushed by phrasings it has not seen. Tuning may make unsafe output less likely, but it does not guarantee protection against creative adversarial inputs, which is exactly what these users are producing.

Option C adds strict guidelines to the system prompt. This is quick to try, but the system prompt is just more text in the same context the attacker is manipulating. Adversarial prompts are written to make the model ignore its instructions, through clever formatting or persuasive phrasing, so stricter wording relies on the same layer that is already being bypassed.

Option D builds a separate classifier model to check output before it reaches the customer. This could catch some unsafe responses, but the team now has to train, host, monitor and update a second model, which adds complexity and operational overhead. It also only looks at output, so adversarial inputs are never screened on the way in.

The best answer is Option A. Option D is the closest alternative because it also adds a check outside the main model. Model Armor provides that kind of independent check as a managed service and applies it to both inputs and responses, with no classifier for the team to maintain. Options B and C both try to fix the problem inside the model, which is the part the attackers are already getting past.

Question 5 of 10

You trained a large language model to summarize long customer service transcripts and need to compare its summary quality against an older model before production deployment. Which evaluation method should you use?

Choose only ONE best answer.

A) BLEU score calculation on an evaluation dataset

B) AutoSxS tool execution within Agent Platform

C) Live A/B testing using production user traffic

D) ROUGE metric evaluation across a validation pipeline

Two details decide this one. The task is summarization, where many different wordings can be equally good, and the comparison has to happen before production deployment. The method needs to judge which of two models writes better summaries without putting an unproven model in front of customers.

Option A calculates BLEU scores on an evaluation dataset. BLEU measures how many word sequences in the generated text also appear in a reference text, and it was designed for machine translation. A summary can be accurate and well written while using different words from the reference, and BLEU would still score it low. That makes it a weak measure of summary quality.

Option B runs AutoSxS within Agent Platform. AutoSxS performs an automated side-by-side comparison: both models respond to the same inputs, and a judge model, called an autorater, decides which response is better. Because the judge reads the summaries instead of counting matching words, it can recognize a good summary that is phrased differently, and it can weigh nuance, tone and semantic correctness. It runs offline on an evaluation dataset, so it fits a pre-deployment comparison, and it is much faster than arranging human raters. The results show how often each model's response was preferred.

Option C runs a live A/B test on production user traffic. A/B testing is useful once a model has passed offline evaluation, but the stem asks for a comparison before production deployment. Sending real traffic to an unverified model risks exposing customers to poor summaries before quality has been established.

Option D evaluates ROUGE across a validation pipeline. ROUGE is the classic metric for summarization, which makes it the most tempting distractor here. But like BLEU, it scores word overlap between the generated summary and a reference, so it rewards summaries that reuse the reference's wording and penalizes good ones that do not. Running it inside a validation pipeline automates the calculation but does not change what it measures.

The best answer is Option B. Option D is the closest alternative because ROUGE is the traditional choice for summarization and can run before deployment. The difference is what gets measured. ROUGE measures overlap with a reference text, while AutoSxS has a judge model compare the two models' summaries directly and pick the better one, which is a much closer match to summary quality than word matching.

For a closer look at judge-based comparison versus overlap metrics, see our article on AutoSxS and reference-based metrics.

Question 6 of 10

A technical customer support team wants to build a conversational assistant that answers user troubleshooting questions using the company's extensive hardware manuals. These manuals are updated regularly and stored as unstructured files like PDF documents. The engineering group needs to deploy a reliable solution within a few days while minimizing continuous maintenance and pipeline development. What should you do?

Choose only ONE best answer.

A) Train a custom Gemini model using the hardware manuals as training data

B) Create a search application using Agent Search on Agent Platform

C) Extract text from the manuals and store it in a Vector Search index

D) Deploy a Retrieval-Augmented Generation application on Cloud Run

The constraints carry this question. The source material is unstructured PDF manuals that change regularly. The team needs a reliable assistant within a few days, and it wants to keep continuous maintenance and pipeline development to a minimum. Whatever the team picks has to handle document ingestion, retrieval and answer generation without much custom building, and it has to keep up with manual updates.

Option A trains a custom Gemini model on the manuals. Training a model, or even fine-tuning one, is time-consuming and expensive, which rules it out for a deadline of a few days. It also handles change poorly. What a model learns during training is fixed once training ends, so every manual update would mean another round of training to keep answers current.

Option B creates a search application using Agent Search on Agent Platform. Agent Search is a fully managed service that provides semantic search and generative answers over your own content. You point it at the unstructured files, and it takes care of parsing, chunking, generating embeddings and orchestrating the language model, then grounds its answers directly in the manuals. Because answers come from the indexed documents rather than from model weights, updated manuals do not require retraining anything. This fits the short timeline and keeps infrastructure maintenance low.

Option C extracts text from the manuals and stores it in a Vector Search index. Vector Search handles similarity search well, but it is only one piece of the system. The team would have to write extraction code, decide on a chunking strategy, generate embeddings with a separate model and then build an application layer that takes questions, queries the index and calls a language model. That is the pipeline development the stem wants to avoid, and it has to be rerun as the manuals change.

Option D deploys a Retrieval-Augmented Generation application on Cloud Run. RAG is the right general pattern for answering questions from documents, and Cloud Run removes server management. But the team still has to write, test, containerize and maintain the orchestration that links the language model to the document store, along with the ingestion process behind it.

The best answer is Option B. Option D is the closest alternative because it uses the same retrieval and grounding approach. The difference is who builds and runs it. With Agent Search, the managed service handles ingestion, retrieval and generation, which is what lets a team ship within days without taking on a custom pipeline to maintain.

For more on the different ways to build retrieval-augmented generation on Google Cloud, see our article on RAG options on Agent Platform.

Question 7 of 10

You are deploying a multi-turn chat application using Gemini on Agent Platform that requires users to query a large set of product manual PDFs. To ensure predictable cost savings and full control over how long the document tokens remain stored, how should you configure the caching mechanism?

Choose only ONE best answer.

A) Configure implicit context caching and adjust the automated refresh interval

B) Enable implicit context caching within the standard model parameters

C) Implement explicit context caching and define a custom time to live

D) Set up explicit context caching without designating an expiration timestamp

The stem asks for two specific things: predictable cost savings, and full control over how long the document tokens remain stored. Each option combines two choices, implicit or explicit context caching, and whether a lifetime is set for the cache. The right configuration has to satisfy both requirements.

Option A configures implicit context caching and adjusts an automated refresh interval. Implicit caching is handled automatically by the service. When requests share repeated content, the service may reuse it and apply a discount, but you do not decide what is cached or how long it stays. Because cache management is automatic, there is no retention setting here that gives the team the control the stem asks for, and savings depend on whether a cache hit happens.

Option B enables implicit context caching within the standard model parameters. This has the same limitation as option A. Implicit caching relies on automatic cache management rather than administrator-defined retention, so the team cannot decide how long the manual content is kept, and the savings are not guaranteed for any given request.

Option C implements explicit context caching with a custom time to live (TTL). With explicit caching, you create a cache that holds the product manual content and reference it from your requests. Requests that use the cache are billed at a reduced rate for the cached tokens, which makes the savings predictable. Setting a custom TTL determines exactly when the cached content expires, which gives full control over retention. Explicit caches are also billed for storage while they exist, so choosing the TTL is part of managing cost as well. This suits a multi-turn chat that keeps referring to the same large PDFs, because the content is not reprocessed from scratch on every turn.

Option D sets up explicit context caching without an expiration timestamp. This is closer, because it uses explicit caching and gets the predictable pricing. But if you do not set a TTL or expiration time, the cache falls back to a default lifetime rather than one the team chose. The retention period is not being intentionally managed, which misses the "full control" requirement.

The best answer is Option C. Option D is the closest alternative because it shares the explicit cache and its predictable pricing. Only Option C adds the custom TTL, which is what turns retention into something the team controls. Options A and B fall short on both requirements because implicit caching is managed by the service, not by you.

For more on how caching works with Gemini models, see our article on Gemini context caching.

Question 8 of 10

Your engineering team at an e-commerce platform needs to fine-tune a massive text-to-image foundation model on Google Cloud to generate high-resolution fashion imagery. You must complete this training job as quickly as possible to meet an upcoming product launch deadline. Which hardware and precision configuration should you choose?

Choose only ONE best answer.

A) Configure one a2-highgpu-1g accelerator instance with an NVIDIA A100 GPU and 40 GB of RAM using float32 precision

B) Configure one a2-highgpu-1g accelerator instance with an NVIDIA A100 GPU and 40 GB of RAM using bfloat16 quantization

C) Configure eight n1-standard-16 accelerator instances with an NVIDIA Tesla T4 GPU and 16 GB of RAM using float32 precision

D) Configure eight n1-standard-16 accelerator instances with an NVIDIA Tesla T4 GPU and 16 GB of RAM using float16 quantization

The deciding requirement is speed: the fine-tuning job has to finish as quickly as possible. The options vary two things, the hardware (one A100 instance or eight T4 instances) and the numeric format (float32, bfloat16 or float16). The goal is the combination with the highest training throughput.

Option A uses one a2-highgpu-1g instance with an NVIDIA A100 GPU and float32 precision. The A100 is a strong choice for large deep learning models, with high-bandwidth memory and Tensor Cores built to accelerate this kind of work. The 40 GB in the option is the A100's GPU memory, which the option loosely calls RAM. Using standard 32-bit precision throughout, though, takes twice the memory per value that a 16-bit format needs and underuses the Tensor Core acceleration. It is the right hardware running in a slower mode.

Option B uses the same A100 instance with bfloat16. Storing values in 16 bits reduces memory use and memory bandwidth pressure and lets the A100's Tensor Cores work at higher throughput. bfloat16 keeps the same dynamic range as float32, so it avoids the numerical underflow and overflow problems that narrower formats can hit during backpropagation, without requiring loss scaling. The option calls this quantization, though in training it is more precisely called reduced-precision or mixed-precision training. Either way, the result is faster training on the same hardware.

Option C uses eight n1-standard-16 instances, each with an NVIDIA Tesla T4 GPU, in float32. The T4 is an older GPU, mainly aimed at inference, with 16 GB of GPU memory per card compared with the A100's 40 GB. Spreading training across eight separate machines means the instances have to keep synchronizing over the network, and that communication overhead slows distributed training. Combined with full 32-bit precision, this configuration has the most working against it.

Option D uses the same eight T4 instances with float16. Moving to float16 halves the memory per value compared with float32, and the T4's Tensor Cores do support float16 mixed-precision training, so this is a real improvement over option C. The T4 does not support bfloat16, though, and float16 has a much narrower range, so training typically needs loss scaling to keep small gradients from underflowing. For a massive model, lower precision also does nothing about the network overhead between eight machines or the limited memory on each card, so this setup still falls short of a single modern high-end accelerator.

The best answer is Option B. Option D is the closest alternative because it also uses 16-bit values and adds more GPUs. But eight smaller, older GPUs connected over a network carry communication overhead and memory limits that a single A100 avoids, and bfloat16 lets the A100 train at reduced precision without the loss-scaling work that float16 often needs.

For more on matching accelerators to training workloads, see our article on choosing between CPUs, GPUs and TPUs.

Question 9 of 10

A financial services firm wants to build a specialized customer support chatbot that automatically detects a client's emotional sentiment and responds using the precise tone, regulatory vocabulary, and phrasing of a senior wealth advisor. The development team has collected a massive dataset of compliant advisor communications and intends to host the resulting model on a dedicated virtual machine. They need to select the most appropriate strategy to achieve this highly tailored behavior. Which approach should the team select?

Choose only ONE best answer.

A) Deploy the latest Llama model from Model Garden and use prompt engineering techniques

B) Train a ResNet-based model from TensorFlow Hub

C) Fine-tune the latest Llama model from Model Garden on Agent Platform Pipelines

D) Use the Gemini Flash foundational model to build the text generator

Three details shape this question. The chatbot needs highly tailored behavior: the precise tone, regulatory vocabulary and phrasing of a senior wealth advisor. The team already has a massive dataset of compliant advisor communications. And the resulting model will be hosted on a dedicated virtual machine, which means the team needs model weights it can deploy on its own infrastructure.

Option A deploys the latest Llama model from Model Garden and relies on prompt engineering. Llama is an open-weight model, so hosting it on a virtual machine is possible. But prompt engineering makes little use of the massive dataset. Only a limited number of examples fit into a prompt before context limits get in the way, and prompts alone struggle to reproduce a complex style consistently across many different conversations.

Option B trains a ResNet-based model from TensorFlow Hub. ResNet is a family of convolutional networks designed for image tasks such as image classification. It does not generate text, so it cannot produce chatbot responses at all.

Option C fine-tunes the latest Llama model from Model Garden on Agent Platform Pipelines. Fine-tuning uses the advisor dataset to adjust the model's weights, so the model learns the tone, vocabulary and phrasing from real examples instead of being reminded of them in each prompt. Because Llama is open-weight, the team can take the tuned weights and host the model on its own virtual machine. Running the training on Agent Platform Pipelines lets the team automate, scale and manage the end-to-end workflow before exporting the weights.

Option D uses the Gemini Flash foundational model to build the text generator. Gemini Flash is highly capable, but it is a fully managed model accessed through an API. The team cannot export its underlying weights to host on a dedicated virtual machine, which conflicts with the deployment plan in the stem.

The best answer is Option C. Option A is the closest alternative because it uses the same open-weight model and supports the same hosting plan. The difference is how the behavior is achieved. Prompting asks the model to imitate a style from a handful of examples, while fine-tuning trains it on the full dataset of compliant communications, which is what consistent, highly tailored behavior calls for.

Question 10 of 10

Your company is deploying a chat application using a generative model on the Agent Platform. You need to ensure that any personally identifiable information contained within the model responses is automatically detected and redacted before it is displayed to the user. What is the most effective way to accomplish this requirement?

Choose only ONE best answer.

A) Configure a Model Armor template with Sensitive Data Protection settings to analyze and redact the sensitive information

B) Adjust the Agent Platform model safety settings to block most content across all default categories

C) Deploy an intermediate Cloud Run function to parse the model outputs against a list of regular expressions

D) Implement IAM policy conditions on the service account to filter out sensitive strings from the API responses

The requirement is narrow: personally identifiable information in the model's responses has to be automatically detected and redacted before it is displayed. Both verbs matter. A good answer has to inspect the response text, recognize personal data in it and change that text, while the rest of the response still reaches the user.

Option A configures a Model Armor template with Sensitive Data Protection settings. Model Armor screens the prompts and responses of generative AI applications, and its templates can include Sensitive Data Protection (formerly Cloud DLP) settings. Those settings use Sensitive Data Protection's inspection engine to identify more than one hundred types of sensitive information and apply transformations such as masking or redaction. That covers both detection and redaction in one managed configuration, applied to model responses before they reach the user.

Option B adjusts the Agent Platform model safety settings to block most content across all default categories. Safety settings filter harmful categories such as hate speech, harassment, sexually explicit content and dangerous content. Tightening them blocks more of that material, but personal data is not one of the categories these settings control, so raising the thresholds does not target PII. Blocking is also not the same as redacting: when a filter triggers, it suppresses the whole response instead of removing only the sensitive parts.

Option C deploys an intermediate Cloud Run function (formerly Cloud Functions) that checks model outputs against a list of regular expressions. This can catch simple, fixed-format patterns, but the team has to write and maintain every pattern, and regular expressions struggle with complex or varied data such as names and addresses. It adds a custom component to build and operate, and detection is only as good as the pattern list.

Option D implements IAM policy conditions on the service account. IAM controls who can call an API and under which conditions. It does not inspect or modify the content of a response, so it cannot find or remove sensitive strings in the text.

The best answer is Option A. Option C is the closest alternative because it also sits between the model and the user and changes the output. But Option A uses a purpose-built inspection engine that recognizes many kinds of sensitive data and applies redaction through configuration, instead of a hand-maintained list of patterns that misses anything it was not written to catch.

For more on how Sensitive Data Protection fits into machine learning workflows, see our article on Sensitive Data Protection.


The real Professional Machine Learning Engineer exam uses scenario-based questions like these. Each one describes a team, a goal and a few constraints, and the best answer is the option that meets every stated requirement, not the one that sounds most powerful. In this set, phrases like "minimize both development time and latency", "before production deployment" and "full control" decided several of the questions, so reading each stem closely is useful practice for the Professional Machine Learning Engineer exam.

There are many more questions like these, each with a full explanation, in our Professional Machine Learning Engineer course.

Get tips and updates from GCP Study Hub

arrow