1Z0-1127-25 Practice Question: Building LLM Applications with RAG and Vector Search
When invoking the OCI Generative AI service from a RAG application, the developer receives a 401 Unauthorized error. The application uses resource principal authentication from an OCI Data Science notebook session. What is the most likely fix?
⚠ Common exam trap
Oracle often tests the distinction between network-level issues (security lists, NACLs) and IAM-level issues (dynamic groups, policies) — the trap here is that candidates may confuse a 401 Unauthorized error with a network connectivity problem and incorrectly choose a security list fix.
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
✓
Ensure the dynamic group includes the data science notebook session and has the correct policy
The 401 Unauthorized error indicates that the OCI Generative AI service cannot authenticate the request. In a RAG application using resource principal authentication from an OCI Data Science notebook session, the notebook session must be a member of a dynamic group, and that dynamic group must have an IAM policy granting it the necessary permissions (e.g., `allow dynamic-group <name> to use generative-ai-family in compartment <name>`). Option C correctly identifies that the dynamic group configuration or policy is missing or incorrect, which is the most likely cause of the authentication failure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add the Generative AI service to the subnet's security list
Why it's wrong here
Security lists control network traffic, not authentication.
- ✗
Use an API key instead of resource principal
Why it's wrong here
API keys can work but are less secure and not a direct fix for the resource principal misconfiguration.
- ✓
Ensure the dynamic group includes the data science notebook session and has the correct policy
Why this is correct
The dynamic group must match the session, and the policy must grant access to the Generative AI service.
- ✗
Restart the notebook session
Why it's wrong here
Restarting does not change authentication configuration.
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.