1Z0-1127-25 Using OCI Generative AI Service Practice Question
Exhibit
{
"model": "cohere.command-light",
"compartmentId": "ocid1.compartment.oc1..aaaa...",
"messages": [
{"role": "user", "content": "Hello"}
],
"parameters": {
"temperature": 0.5,
"maxTokens": 100
}
}Refer to the exhibit. A developer sends this JSON payload to the /chat endpoint. The response includes an error that 'maxTokens' must be an integer. What is the issue?
⚠ Common exam trap
Oracle often tests the difference between snake_case and camelCase parameter names in OCI services, and the trap here is that candidates familiar with OpenAI's API conventions might assume 'maxTokens' is correct, overlooking OCI's strict snake_case requirement.
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
✓
The parameter should be 'max_tokens' instead of 'maxTokens'
The OCI Generative AI service expects the parameter name 'max_tokens' (snake_case) for specifying the maximum number of tokens in the response, not 'maxTokens' (camelCase). The error message indicates that the value is not being recognized as an integer because the JSON key itself is incorrect, causing the service to fail validation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The compartmentId is missing
Why it's wrong here
CompartmentId is present.
- ✗
The temperature value is too low
Why it's wrong here
Temperature of 0.5 is valid.
- ✓
The parameter should be 'max_tokens' instead of 'maxTokens'
Why this is correct
The API expects snake_case parameters.
- ✗
The model name 'cohere.command-light' is incorrect
Why it's wrong here
That model name is valid.
Go deeper
Related to this question
About these practice questions
This 1Z0-1127-25 question is part of Courseiva's 768-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 →
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.