1Z0-1127-25 OCI Generative AI Service Practice Question
An organization wants to allow its data science group to use OCI Generative AI services but restrict access to a specific compartment. Which IAM policy statement correctly achieves 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
✓
allow group data-scientists to use generative-ai-family in compartment GenAI-Prod
The 'allow group <group_name> to use generative-ai-family in compartment <compartment_name>' policy grants access to all GenAI resources within that compartment. The other options either miss the compartment scope or use incorrect verbs.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
allow group data-scientists to use generative-ai-family in compartment GenAI-Prod
Why this is correct
This grants the necessary permissions within the specified compartment only.
- ✗
allow group data-scientists to manage generative-ai-family in tenancy
Why it's wrong here
'manage' grants broader permissions than needed and applies to the whole tenancy, not a compartment.
- ✗
allow group data-scientists to read generative-ai-family in compartment GenAI-Prod
Why it's wrong here
'read' is too restrictive; they need 'use' to invoke inference, create endpoints, etc.
- ✗
allow group data-scientists to use generative-ai-family where target.compartment.id = 'GenAI-Prod'
Why it's wrong here
The condition syntax is incorrect; compartment names cannot be used directly in conditions without OCID.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 1Z0-1127-25 question from scratch — 768 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 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.