Show answerHide answer
Correct answer: B Open Worldwide Application Security Project (OWASP)
Explanation
Explanation:OWASP is the most appropriate resource for setting up guardrails for an LLM application, specifically the OWASP Top 10 for Large Language Models. This framework provides comprehensive, industry-recognized guidance on the unique security risks facing LLM applications—including prompt injection, insecure output handling, model denial of service, sensitive information disclosure, supply chain vulnerabilities, and excessive agency. OWASP offers actionable recommendations for implementing guardrails, such as input validation, output sanitization, content filtering, and privilege enforcement. By leveraging OWASP's guidelines, organizations can systematically address known threats and establish robust guardrails that satisfy compliance requirements while ensuring secure and responsible LLM deployment.
Why the other options are incorrect:
A. Retrieval-augmented generation (RAG):
RAG is an architectural pattern that enhances LLM responses by retrieving relevant external data from a vector database. While RAG improves accuracy and reduces hallucinations, it is not a security resource and does not provide guardrail guidance. RAG itself requires guardrails, which OWASP would help define.
C. LLM libraries:
LLM libraries (e.g., Hugging Face Transformers, LangChain, LlamaIndex) provide development frameworks for building and deploying models. They offer tools for implementation but do not provide security frameworks, best practices, or compliance guidance for guardrails. They are implementation tools, not security resources.
D. Security incident and event management (SIEM):
SIEM is an operational tool for collecting, analyzing, and alerting on security logs and events. It monitors and detects threats after they occur but does not provide proactive guidance on building guardrails or meeting compliance requirements.
References:
CompTIA SecAI+ CY0-001 Exam Objectives: Domain 3.2 (Implementing AI Security Controls – Guardrails) and Domain 2.0 (AI Security Risks and Threats).
OWASP Top 10 for LLMs (v1.1): The definitive resource for LLM-specific security risks and countermeasures.

