GenAI Engineer Governance MEDIUM
PRODUCTION SCENARIO
A Generative AI Engineer runs a support assistant on a Foundation Model APIs chat endpoint that receives customer messages containing phone numbers and card numbers. Compliance requires the assistant to keep answering while the model never sees the raw values.

Which AI Gateway setting meets this requirement?

Answering here is anonymous. Nothing is saved unless you sign in.

Show answer and explanation

Answer: PII detection with the Mask action on requests and responses

AI Gateway PII detection offers Block or Mask for data such as names, addresses and credit card numbers detected in endpoint requests and responses. Mask hides the values and lets the request through, which is what keeps the assistant answering; Block rejects the request outright, so the customer gets no answer. Safety guards against unsafe and harmful content rather than personal data, and a custom deny policy also ends the conversation instead of continuing it.
Free

Keep practicing GenAI Engineer

45 original GenAI Engineer practice questions, each with an explanation and a source link. No account needed.

Start free practice set → Timed, explained, free