Courseiva
Fundamentals of Generative AImediumMultiple SelectObjective-mapped

Generative AI Leader Fundamentals of Generative AI Practice Question

A company is building a conversational AI using the Gemini API on Vertex AI. They want to reduce the chance of generating toxic content while still allowing creative and engaging responses for their gaming community. Which TWO safety settings should they adjust in the safety_settings parameter?

⚠ Common exam trap

Google Cloud often tests the misconception that stricter blocking (e.g., BLOCK_LOW_AND_ABOVE) is always better for safety, but in creative contexts like gaming, BLOCK_ONLY_HIGH is the correct balance to avoid stifling legitimate content.

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 the 'harm_category' filter for 'DANGEROUS_CONTENT' with threshold BLOCK_ONLY_HIGH.

Setting the 'DANGEROUS_CONTENT' category to BLOCK_ONLY_HIGH allows the model to generate creative and engaging responses for a gaming community while still blocking the most severe dangerous content. This balances safety with creative freedom, as the gaming context may involve simulated conflict or action that is not genuinely harmful.

Answer analysis

Option-by-option breakdown

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

  • Set the threshold for 'SEXUALLY_EXPLICIT' category to BLOCK_NONE.

    Why it's wrong here

    No blocking allows potentially inappropriate content.

  • Set the threshold for 'SEXUALLY_EXPLICIT' category to BLOCK_LOW_AND_ABOVE.

    Why it's wrong here

    Blocks even low probability sexually explicit content, likely too restrictive.

  • Enable the 'harm_category' filter for 'DANGEROUS_CONTENT' with threshold BLOCK_ONLY_HIGH.

    Why this is correct

    Blocks only high probability dangerous content, maintaining safety without stifling creativity.

  • Set the threshold for 'HARASSMENT' category to BLOCK_LOW_AND_ABOVE.

    Why it's wrong here

    Blocks even low probability harassment, which may overly restrict creative content.

  • Set the threshold for 'HATE_SPEECH' category to BLOCK_ONLY_HIGH.

    Why this is correct

    Blocks only high probability hate speech, allowing some flexibility.

About these practice questions

This Generative AI Leader question is part of Courseiva's 683-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.