nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #192

You work for a bank with strict data governance requirements. You recently implemented a custom model to detect fraudulent transactions. You want your training code to download internal data by using

The correct answer is B. Create a Cloud Run endpoint as a proxy to the data. Use Identity and Access Management (IAM). To securely access internal data from a custom model training job while mitigating data exfiltration, configure a Cloud Run endpoint as an authenticated proxy protected by IAM and potentially VPC Service Controls.

Submitted by femi9· Apr 18, 2026ML pipeline operationalization

Question

You work for a bank with strict data governance requirements. You recently implemented a custom model to detect fraudulent transactions. You want your training code to download internal data by using an API endpoint hosted in your project's network. You need the data to be accessed in the most secure way, while mitigating the risk of data exfiltration. What should you do?

Options

  • AEnable VPC Service Controls for peerings, and add Vertex AI to a service perimeter.
  • BCreate a Cloud Run endpoint as a proxy to the data. Use Identity and Access Management (IAM)
  • CConfigure VPC Peering with Vertex AI, and specify the network of the training job.
  • DDownload the data to a Cloud Storage bucket before calling the training job.

How the community answered

(68 responses)
  • A
    12% (8)
  • B
    56% (38)
  • C
    25% (17)
  • D
    7% (5)

Why each option

To securely access internal data from a custom model training job while mitigating data exfiltration, configure a Cloud Run endpoint as an authenticated proxy protected by IAM and potentially VPC Service Controls.

AEnable VPC Service Controls for peerings, and add Vertex AI to a service perimeter.

Enabling VPC Service Controls for peerings and adding Vertex AI to a service perimeter alone does not provide a direct secure access mechanism to an *internal API endpoint* without an intermediary or proxy that can be controlled.

BCreate a Cloud Run endpoint as a proxy to the data. Use Identity and Access Management (IAM)Correct

Using a Cloud Run endpoint as a proxy allows for granular access control via IAM, ensuring only authorized Vertex AI training jobs can access the data API. Integrating with VPC Service Controls further enhances security by creating a service perimeter, preventing data exfiltration by restricting data movement outside the perimeter.

CConfigure VPC Peering with Vertex AI, and specify the network of the training job.

Configuring VPC Peering allows network connectivity but does not inherently provide application-level authentication or data exfiltration prevention, which are crucial for the 'most secure way' and 'mitigating data exfiltration'.

DDownload the data to a Cloud Storage bucket before calling the training job.

Downloading data to a Cloud Storage bucket before calling the training job could introduce a new point of data exposure or exfiltration if not carefully managed and doesn't directly address accessing an *internal API endpoint* securely.

Concept tested: Secure data access with VPC Service Controls and proxies

Source: https://cloud.google.com/vpc-service-controls/docs/overview

Topics

#Data Security#Network Security#IAM#ML Pipeline Security

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice