1Z0-1127-25 Fundamentals of Large Language Models Practice Question
A model generates code with security issues. Which approach is best to mitigate this?
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
✓
Add a system prompt with security guidelines
Adding a system prompt with security guidelines (option D) instructs the model to follow best practices, directly addressing security concerns without changing model training.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Reduce max_tokens
Why it's wrong here
Reducing max_tokens limits output length but does not improve security.
- ✗
Increase temperature
Why it's wrong here
Increasing temperature likely worsens security by adding randomness.
- ✗
Use a different model
Why it's wrong here
Switching models may not directly address the security issue; prompt engineering is more effective.
- ✓
Add a system prompt with security guidelines
Why this is correct
System prompts can guide the model to produce secure code.
Go deeper
Related to this question
About these practice questions
One of 768 original 1Z0-1127-25 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-1127-25 practice question is part of Courseiva's free Oracle 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 1Z0-1127-25 exam.