BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA CY0-001 Exam - Topic 3 Question 8 Discussion

Posted by Effie on Jul 02, 2026 at 11:34 AM

A customer-facing, AI-powered chatbot has been jailbroken through prompt injections. As a result, the AI model is offering a 99% discount on the purchase of a new vehicle.

Which of the following should be implemented to enhance the model's robustness against such attacks?

Suggested Answer: D

Basic Concept: Jailbreaking through prompt injection exploits the LLM's tendency to follow instructions embedded in user input, overriding its intended behavior. The model was manipulated to offer unauthorized discounts, demonstrating that its operational boundaries were not properly enforced. CompTIA SecAI+ Study Guide identifies guardrails as the primary defense against jailbreaking attacks.

Why D is Correct: Guardrails are robust, layered controls that enforce behavioral boundaries on LLM inputs and outputs. They can detect and block jailbreaking attempts, enforce business logic constraints such as preventing unauthorized discounts, validate outputs against policy rules before delivery, and prevent the model from operating outside its defined scope. Guardrails are specifically designed to make models more robust against prompt injection and jailbreaking.

Why A is Wrong: Bias filtering is designed to detect and remove biased, discriminatory, or offensive content from model outputs. It addresses content fairness issues but does not prevent jailbreaking attacks that manipulate the model into performing unauthorized actions.

Why B is Wrong: A system prompt sets the model's base instructions and persona, but the jailbreak attack already demonstrates that the current prompt can be overridden. Guardrails provide enforcement at a layer that is more resistant to prompt manipulation than the system prompt alone.

Why C is Wrong: Log monitoring detects jailbreaking attempts after they have already succeeded. It is a detective control that enables incident response but does not prevent the model from offering unauthorized discounts in the first place.


Get Premium CY0-001 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
ER
Ernie 21 hours ago
Agreed, it doesn't address prompt injections.
ER
Erasmo 6 days ago
A) Bias filtering seems less relevant here.
JI
Jin 11 days ago
True, it tracks suspicious activity.
JO
Josue 16 days ago
C) Log monitoring could help too.
BE
Bette 22 days ago
Not all, but they guide the AI's behavior.
JI
Jin 27 days ago
But can they stop all attacks?
ER
Erasmo 1 month ago
System prompts can set boundaries.
BE
Bette 1 month ago
I prefer B) System prompt.
ER
Ernie 1 month ago
They help prevent misuse of the AI.
JO
Josue 2 months ago
Why guardrails?
ER
Ernie 2 months ago
I think D) Guardrails is the best choice.
ER
Erasmo 2 months ago
This is a tricky question.
KA
Katina 2 months ago
It’s all about proactive measures, right?
AU
Audra 2 months ago
Yes, and they can adapt to new threats over time.
LI
Lizette 2 months ago
Exactly! Guardrails create a safety net for the AI.
EL
Elena 3 months ago
True, but without guardrails, the system is still vulnerable.
KR
Krissy 3 months ago
I think B) System prompt is crucial for setting boundaries initially.
CH
Cherelle 3 months ago
C) Log monitoring is important, but it’s more about tracking than prevention.
AU
Audra 3 months ago
I feel like A) Bias filtering could help too, but not as much as guardrails.
KA
Katina 3 months ago
I agree! Guardrails can prevent such prompt injections.
LI
Lizette 3 months ago
This is a tricky question. I think D) Guardrails is the best option.
DE
Delfina 4 months ago
Totally agree, a system prompt could really tighten things up!
SA
Sarah 4 months ago
I think log monitoring could help catch these issues early.
AR
Art 4 months ago
99% discount? Really? That seems too good to be true.
CA
Carla 4 months ago
Definitely need better guardrails for this!
TA
Tamra 4 months ago
Sounds like a serious security flaw!
WH
Whitley 5 months ago
I think bias filtering was mentioned in relation to ethical AI, but I’m not clear on how it would apply to this specific situation.
CL
Clemencia 5 months ago
I feel like log monitoring is important too, but it’s more about tracking issues after they happen rather than preventing them.
BE
Berry 5 months ago
I’m not entirely sure, but I think system prompts might help define the chatbot's behavior better. It could limit the chances of prompt injections.
CA
Carry 5 months ago
I remember studying about guardrails in our last session. They seemed crucial for preventing unexpected outputs like that discount.
0/2000 characters

Save Cancel