nerdexam
CompTIA

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…

Threat Management

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)
  • A
    71% (20)
  • B
    7% (2)
  • C
    4% (1)
  • D
    18% (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

#prompt injection#LLM security#guardrails#AI threats

Community Discussion

No community discussion yet for this question.

Full CY0-001 Practice