
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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?
A
Implement a safety filter that detects any harmful inputs and ask the LLM to respond that it is unable to assist
B
Reduce the time that the users can interact with the LLM
C
Ask the LLM to remind the user that the input is malicious but continue the conversation with the user
D
Increase the amount of compute that powers the LLM to process input faster
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.