Courseiva
Software Development →hardMultiple Choice

NCA-GENL Software Development Practice Question

When integrating an LLM into a production application, you must protect against prompt injection. Which software engineering pattern is most effective for this purpose?

⚠ Common exam trap

Candidates often confuse static prompt engineering rules or fine-tuning with runtime defense mechanisms, missing that prompt injection requires active interception filters.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Implementing an asynchronous guardrail input filter.

Using a guardrail pattern, such as NVIDIA NeMo Guardrails, allows developers to intercept inputs and outputs to validate them against safety policies. This protects the LLM from malicious prompts and prevents the generation of harmful content. Guardrails are fundamental in enterprise AI software development because they provide a programmatic layer of control that enforces safety, compliance, and reliability, regardless of the underlying LLM's inherent behavior.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Hard-coding all possible malicious user inputs.

    Why it's wrong here

    Blacklisting inputs is ineffective because the space of potential malicious prompts is infinite. This approach fails to adapt to new attack vectors and results in unmaintainable code that degrades as the security threat landscape evolves over time.

  • ✓

    Implementing an asynchronous guardrail input filter.

    Why this is correct

    An input filter acts as a gateway that checks prompts against semantic and structural safety rules. By using guardrails, developers can programmatically block or sanitize malicious instructions before they reach the LLM, ensuring a secure interaction loop for every user.

  • ✗

    Increasing the model's temperature parameter.

    Why it's wrong here

    Adjusting the temperature only affects the randomness and creativity of the model's output. It does not provide any security mechanisms or defense against prompt injection, and in some cases, higher temperatures might increase the likelihood of unexpected outputs.

  • ✗

    Caching all prompts in a local database.

    Why it's wrong here

    Caching is a performance optimization, not a security feature. While it might prevent identical injection attacks, it does not provide proactive filtering or semantic analysis, leaving the system vulnerable to novel or varied prompt injection techniques.

About these practice questions

This NCA-GENL question is part of Courseiva's 367-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official NVIDIA exam blueprint

This NCA-GENL practice question is part of Courseiva's free NVIDIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the NCA-GENL exam.