nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #189

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 performin

The correct answer is D. Update the custom serving container to include sampled Shapley-based explanations in the. For a custom model deployed in a custom container, to provide accurate, compliance-required explanations with minimal effort, integrate sampled Shapley-based explanations directly into the serving container.

Submitted by femi9· Apr 18, 2026ML pipeline operationalization

Question

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?

Options

  • ACreate an AutoML tabular model by using the BigQuery data with integrated Vertex Explainable
  • BCreate a BigQuery ML deep neural network model and use the ML.EXPLAIN_PREDICT method
  • CUpload the custom model to Vertex AI Model Registry and configure feature-based attribution by
  • DUpdate the custom serving container to include sampled Shapley-based explanations in the

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    7% (2)
  • C
    15% (4)
  • D
    74% (20)

Why each option

For a custom model deployed in a custom container, to provide accurate, compliance-required explanations with minimal effort, integrate sampled Shapley-based explanations directly into the serving container.

ACreate an AutoML tabular model by using the BigQuery data with integrated Vertex Explainable

Creating an AutoML tabular model involves rebuilding the model from scratch, contradicting the requirement to add functionality to an *existing custom model* with minimal effort.

BCreate a BigQuery ML deep neural network model and use the ML.EXPLAIN_PREDICT method

Creating a BigQuery ML deep neural network model also means rebuilding the model, which is not applicable when the goal is to enhance an existing custom model.

CUpload the custom model to Vertex AI Model Registry and configure feature-based attribution by

While Vertex AI Model Registry supports configuring feature-based attribution, for a custom model deployed in a *custom serving container*, directly embedding a highly accurate method like sampled Shapley into the container offers finer control and potentially more straightforward integration with existing custom logic for compliance needs.

DUpdate the custom serving container to include sampled Shapley-based explanations in theCorrect

Updating the custom serving container to include sampled Shapley-based explanations provides maximum control over the explanation generation process, which is crucial for compliance and ensuring high accuracy for a custom model. This method directly embeds the explanation logic, leveraging the existing custom container setup with comparatively minimal effort compared to rebuilding the entire model or deployment.

Concept tested: Vertex AI Explainable AI, custom model deployment, Shapley values

Source: https://cloud.google.com/vertex-ai/docs/predictions/custom-containers-explainable-ai

Topics

#Explainable AI (XAI)#Custom Model Deployment#Vertex AI#Feature Attribution

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice