Courseiva
Fundamentals of Generative AImediumMultiple ChoiceObjective-mapped

What to Do When PaLM API Returns a Health Category Response

Exhibit

Refer to the exhibit.

```
{
  "predictions": [
    {
      "content": "The patient's diagnosis is likely influenza, but further tests are needed.",
      "safetyAttributes": {
        "scores": [0.01],
        "blocked": false,
        "categories": ["health"]
      }
    }
  ],
  "deployedModelId": "123",
  "model": "projects/my-project/locations/us-central1/models/456"
}
```

A developer receives the above JSON response from a Vertex AI PaLM API call for a medical advice application. What should the developer be most concerned about?

Quick Answer

The correct answer is that the developer should be most concerned about compliance with regulations, because the PaLM API response includes a ‘health’ category label, which triggers stringent legal requirements like HIPAA or GDPR for any medical advice generative AI application. This is the primary concern because the category field in the safety attributes is designed to flag sensitive domains where output validation, data handling, and model transparency must meet regulatory standards—failure here can lead to severe penalties, outweighing other technical issues like latency or accuracy. On the Google Cloud Generative AI Leader exam, this scenario tests your understanding of how Vertex AI’s safety categories map to real-world compliance obligations, a common trap being to focus on model performance rather than legal risk. Remember the mnemonic: “Health category means HIPAA—check compliance before code.”

⚠ Common exam trap

Google Cloud often tests the misconception that low safety scores or incorrect content are the primary risks, when in fact regulatory compliance for sensitive categories like 'health' is the most critical and non-obvious concern that developers must address first.

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

The output falls under the 'health' category, which may require compliance with regulations

The JSON response includes a 'category' field with the value 'health', which triggers stringent regulatory compliance requirements such as HIPAA in the US or GDPR in Europe. For a medical advice application, the developer must ensure data handling, model transparency, and output validation meet these legal standards, as failure could result in severe penalties. The PaLM API's safety attributes and category labels are designed to flag such sensitive domains, making compliance the primary concern over other technical issues.

Answer analysis

Option-by-option breakdown

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

  • The safety score is very low (0.01)

    Why it's wrong here

    Low score indicates low harmful content.

  • The deployed model ID is not recognized

    Why it's wrong here

    ID appears valid.

  • The output falls under the 'health' category, which may require compliance with regulations

    Why this is correct

    Health-related outputs need careful review.

  • The prediction content is incorrect

    Why it's wrong here

    Content may be correct but still risky.

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

Same concept, more angles

1 more way this is tested on Generative AI Leader

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company is deploying a generative AI model for medical advice. What is the most important consideration?

easy
  • A.Model latency
  • B.Safety and fairness
  • C.Model size
  • D.Cost of inference

Why B: In medical advice applications, a generative AI model's outputs can directly impact patient health, making safety and fairness the paramount consideration. Incorrect or biased advice could lead to misdiagnosis or harm, outweighing performance metrics like latency or cost. Regulatory frameworks such as HIPAA and FDA guidelines for clinical decision support further mandate rigorous validation of model safety and fairness before deployment.

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.