NCA-GENL Software Development Practice Question
A developer is writing a Python client for an NVIDIA-hosted LLM endpoint and needs the model to answer every request in a strict JSON schema without extra prose. Where should the formatting contract be expressed so it applies consistently across all requests from the service?
⚠ Common exam trap
The trap here is reaching for a custom HTTP header or an assistant message as a configuration channel, when behavioral instructions are only honored in the system and user roles.
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
✓
In a system-role message describing the required schema and the rule against extra prose.
A service-wide formatting contract belongs in the system-role message, which the endpoint treats as standing instructions for the whole conversation and which the client can reuse on every call. User-turn reminders, assistant-role content, and custom headers either dilute the instruction, misrepresent the turn, or are simply ignored.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
In the assistant-role message, since the assistant produces the JSON output.
Why it's wrong here
Assistant-role messages represent prior model output in the conversation history. Writing instructions there misrepresents the turn as something the model already said, and the endpoint does not treat assistant content as a behavioral directive, so the schema requirement would not be enforced.
- ✓
In a system-role message describing the required schema and the rule against extra prose.
Why this is correct
The system role carries instructions that apply to the whole conversation and take precedence over user turns, making it the right place for a persistent formatting contract. Every request built by the service reuses the same system message, so schema and no-prose rules stay consistent without repeating them in each user prompt.
- ✗
In an HTTP header on the request, such as X-Response-Schema.
Why it's wrong here
The OpenAI-compatible chat completions API defines no header for output schemas; unknown headers are ignored by the server and by intermediaries. The contract would silently have no effect, and the model would continue producing prose alongside the JSON the caller expects to parse.
- ✗
Appended to each user message as a trailing reminder sentence.
Why it's wrong here
Repeating the contract inside every user turn works intermittently but mixes instructions with data, consumes tokens on each call, and is easy to omit when a new code path builds the request. Centralizing the rule in a system message is both cheaper and far more reliable for a service-wide guarantee.
About these practice questions
Courseiva writes every NCA-GENL question from scratch — 367 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.