QuestionQ11

VerifiedSecurity, Compliance, and Governance for AI Solutions

A company wants to use a large language model (LLM) to develop a conversational agent. The company needs to prevent the LLM from being manipulated with common prompt engineering techniques to perform undesirable actions or expose sensitive information.

Which action will reduce these risks?

Explanation

Creating a prompt template that instructs the LLM to recognize and resist common attack patterns (prompt injection, malicious requests) strengthens the model's ability to defend itself against manipulation. By explicitly teaching the model its boundaries and expected behaviors, you reduce the risk of undesirable outputs and data exposure. Increasing temperature amplifies randomness (counterproductive), restricting to specific platforms lacks security benefit, and limiting input tokens risks losing critical context.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!