You manage a custom chum prediction model in Model Registry. Your production application currently submits batch prediction jobs using this model by referencing a custom model alias named production. You have trained a new version of the model that has higher accuracy. You need to ensure that the application uses the new model version for the next batch prediction job without modifying the application code or configuration. What should you do?
Answer(s): C
Model aliases provide a stable reference that can be reassigned between model versions. Moving the production alias to the newly trained version allows the next batch prediction job to automatically use that version without changing the application's code or configuration.
You work as an ML engineer at a social media company, and you are developing a visual filter for users’ profile photos. This requires you to train an ML model to detect bounding boxes around human faces. You want to use this filter in your company’s iOS-based mobile phone application. You want to minimize code development and want the model to be optimized for inference on mobile phones. What should you do?
Answer(s): A
You work for a bank. You have created a custom model to predict whether a loan application should be flagged for human review. The input features are stored in a BigQuery table. The model is performing well, and you plan to deploy it to production. Due to compliance requirements the model must provide explanations for each prediction. You want to add this functionality to your model code with minimal effort and provide explanations that are as accurate as possible. What should you do?
You are the Director of Data Science at a large company, and your Data Science team has recently begun using the Kubeflow Pipelines SDK to orchestrate their training pipelines. Your team is struggling to integrate their custom Python code into the Kubeflow Pipelines SDK. How should you instruct them to proceed in order to quickly integrate their code with the Kubeflow Pipelines SDK?
You are developing a custom TensorFlow classification model based on tabular data. Your raw data is stored in BigQuery. contains hundreds of millions of rows, and includes both categorical and numerical features. You need to use a MaxMin scaler on some numerical features, and apply a one-hot encoding to some categorical features such as SKU names. Your model will be trained over multiple epochs. You want to minimize the effort and cost of your solution. What should you do?
You are building an application that extracts information from invoices and receipts. You want to implement this application with minimal custom code and training. What should you do?
Answer(s): B
The Cloud Document AI API is specifically designed for processing and extracting structured information from documents such as invoices and receipts. It provides pre-trained models that can recognize and extract relevant fields (e.g., invoice number, date, total amount) with minimal custom code or training. This solution requires minimal setup and is highly efficient for structured documents, making it the ideal choice for this use case.
You have fine-tuned a Gemini model to act as a customer service agent for a bank. You need to proactively identify potential security risks, specifically the model's vulnerability to adversarial jailbreak attacks. You want to perform this assessment systematically by generating adversarial prompts and scoring the model's responses using a fully managed service. What should you do?
The Gen AI evaluation service in Agent Platform provides a managed framework for systematically assessing generative AI models, including their safety and robustness against adversarial attacks. By configuring adversarial testing with generated jailbreak prompts, you can evaluate how effectively the fine-tuned Gemini model resists attempts to bypass its safety instructions. Measuring the model's refusal rate helps quantify its resistance to jailbreak attacks, identify security vulnerabilities, and guide improvements before production deployment.
https://developers.googleblog.com/agent-and-model-evaluations-in-gemini-enterprise-agent-platfor m-are-now-ga/https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/evaluation-overview?hl=en
You need to deploy a scikit-learn classification model to production. The model must be able to serve requests 24/7, and you expect millions of requests per second to the production application from 8 am to 7 pm. You need to minimize the cost of deployment. What should you do?
Share your comments for Google PROFESSIONAL MACHINE LEARNING ENGINEER exam with other users:
good ................