AI-103 Implement Generative AI And Agentic Solutions Practice Question
You are integrating Azure OpenAI into an enterprise application. You need to prevent prompt injection attacks where users attempt to override the system instructions. Which approach provides the most robust defense?
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
✓
Implement an input guardrail using Azure AI Content Safety to detect and block jailbreak attempts before they reach the model.
Using dual-prompt architectures or Azure AI Content Safety groundedness checks provides robust detection and mitigation against prompt injections.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Implement an input guardrail using Azure AI Content Safety to detect and block jailbreak attempts before they reach the model.
Why this is correct
Azure AI Content Safety provides dedicated jailbreak and prompt injection detection classifiers.
- ✗
Set the model frequency penalty to 2.0 to penalize repeated malicious phrases.
Why it's wrong here
Frequency penalty discourages repeating tokens, which does not prevent prompt injection.
- ✗
Append 'Ignore previous instructions' at the end of every user message.
Why it's wrong here
This reinforces the vulnerability rather than protecting against it.
- ✗
Encode all user input in Base64 before sending it to the model.
Why it's wrong here
Large language models can easily decode Base64, offering no security against prompt injection.
About these practice questions
One of 510 original AI-103 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Microsoft exam blueprint
This AI-103 practice question is part of Courseiva's free Microsoft 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 AI-103 exam.