Question 499 of 500
Business Strategies for Generative AI SolutionshardMultiple ChoiceObjective-mapped

Quick Answer

The correct approach is to enable Vertex AI model monitoring with Cloud Logging and configure a log sink with a custom exclusion filter to redact sensitive patterns before storage. This solution works because the exclusion filter operates in real time at the log ingestion layer, stripping patterns like API keys and passwords from prompts and responses without introducing the latency of a custom proxy or post-processing pipeline. On the Google Cloud Generative AI Leader exam, this scenario tests your ability to balance audit compliance with performance requirements—a common trap is choosing a proxy-based solution that adds round-trip delay. The key insight is that Vertex AI model monitoring natively captures the prompt-response pairs, and the log sink’s exclusion filter handles redaction inline, satisfying both the security team’s logging needs and the operations team’s latency concerns. Memory tip: think “sink and filter, not proxy and stutter”—the sink filters as it flows, keeping logs clean and speed high.

Generative AI Leader Practice Question: Business Strategies for Generative AI Solutions

This Generative AI Leader practice question tests your understanding of business strategies for generative ai solutions. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A large enterprise is deploying a generative AI-powered code assistant for their developers. The solution uses Vertex AI with a fine-tuned Codey model. The security team requires that all prompts and responses be logged for audit purposes, but the logs must not contain sensitive information such as API keys or passwords. The operations team is concerned about high latency during peak usage. You need to design a solution that meets security requirements without compromising performance. Which approach should you take?

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Enable Vertex AI model monitoring with Cloud Logging, and configure a log sink with a custom exclusion filter to redact sensitive patterns before storing

Option B is correct because it uses Vertex AI model monitoring with Cloud Logging to capture prompts and responses, then applies a custom exclusion filter with a log sink to redact sensitive patterns (e.g., API keys, passwords) in real time before logs are stored. This meets the security requirement for audit logging without sensitive data while avoiding the latency overhead of post-processing or a custom proxy, thus satisfying the operations team's performance concern.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Cloud Audit Logs to capture all API calls to Vertex AI, but do not log the actual prompts and responses

    Why it's wrong here

    Audit Logs do not capture model input/output, failing the audit requirement.

  • Enable Vertex AI model monitoring with Cloud Logging, and configure a log sink with a custom exclusion filter to redact sensitive patterns before storing

    Why this is correct

    This ensures all interactions are logged but sensitive data is removed, meeting security without major performance impact.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Log all prompts and responses to Cloud Storage and use a Cloud DLP job to scan and redact sensitive data periodically

    Why it's wrong here

    Periodic redaction means sensitive data remains in logs temporarily, violating security requirements.

  • Implement a custom proxy that logs all requests after stripping sensitive data, then forward to the model

    Why it's wrong here

    A proxy adds latency and complexity; not ideal for performance.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that post-processing redaction (e.g., Cloud DLP) or custom proxies are acceptable for real-time logging, when in fact native streaming redaction via log sinks is required to meet both security and performance constraints.

Trap categories for this question

  • Command / output trap

    Audit Logs do not capture model input/output, failing the audit requirement.

Detailed technical explanation

How to think about this question

Vertex AI model monitoring with Cloud Logging uses a log sink that can apply exclusion filters based on regular expressions to redact sensitive data (e.g., patterns matching API keys like 'AIza...' or passwords) before logs are written to the destination (e.g., BigQuery or Cloud Storage). This is a streaming, real-time redaction approach that avoids the latency of batch jobs (Cloud DLP) or extra network hops (proxy). In practice, the exclusion filter can use the `logName` and `textPayload` fields with regex patterns to mask sensitive strings, ensuring compliance with audit requirements while maintaining sub-second latency for code assistant responses.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related Generative AI Leader practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free Generative AI Leader practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this Generative AI Leader question test?

Business Strategies for Generative AI Solutions — This question tests Business Strategies for Generative AI Solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Enable Vertex AI model monitoring with Cloud Logging, and configure a log sink with a custom exclusion filter to redact sensitive patterns before storing — Option B is correct because it uses Vertex AI model monitoring with Cloud Logging to capture prompts and responses, then applies a custom exclusion filter with a log sink to redact sensitive patterns (e.g., API keys, passwords) in real time before logs are stored. This meets the security requirement for audit logging without sensitive data while avoiding the latency overhead of post-processing or a custom proxy, thus satisfying the operations team's performance concern.

What should I do if I get this Generative AI Leader question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More Generative AI Leader practice questions

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This Generative AI Leader practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Generative AI Leader exam.