
Ultimate access to all questions.
Question: 29
A Generative AI Engineer is developing an LLM application that users can use to generate personalized birthday poems based on their names.
Which technique would be most effective in safeguarding the application, given the potential for malicious user inputs?
Explanation:
Option A is the correct answer because implementing a safety filter provides proactive protection against malicious inputs. Here's why:
Why other options are less effective:
This approach aligns with best practices for LLM application security, ensuring user safety while maintaining the application's intended functionality for legitimate users.