CY0-001 · Question #67
An internal user enters a client credit card number into an internal generative machine learning (ML) model: #User prompt: Customer Jane Doe has a new credit card that she wants to add to her…
The correct answer is A. Guardrails. Guardrails are the primary security control for LLMs to prevent prompt injection attacks. They enforce rules on what inputs are accepted and how the model responds, blocking malicious or sensitive prompts (such as credit card numbers) before they can manipulate or exploit the…
Question
An internal user enters a client credit card number into an internal generative machine learning (ML) model:
#User prompt: Customer Jane Doe has a new credit card that she wants to add to her account. The number is 5555-5555-5555-5555 Which of the following is the most effective way to prevent prompt injection attacks against a large language model (LLM)?
Options
- AGuardrails
- BAntivirus
- CWeb application firewall (WAF)
- DRole-based access control
How the community answered
(28 responses)- A71% (20)
- B7% (2)
- C4% (1)
- D18% (5)
Explanation
Guardrails are the primary security control for LLMs to prevent prompt injection attacks. They enforce rules on what inputs are accepted and how the model responds, blocking malicious or sensitive prompts (such as credit card numbers) before they can manipulate or exploit the model.
Topics
Community Discussion
No community discussion yet for this question.