Question 476 of 500
Using OCI Generative AI ServicehardMultiple ChoiceObjective-mapped

Quick Answer

The answer is to create a dynamic group and a policy granting access to the Generative AI Service. This is required because resource principal authentication relies on OCI IAM’s token exchange mechanism, where a dynamic group defines which compute instances or resources can act as the application’s identity, and a policy then authorizes that group to invoke the Generative AI Service—eliminating the need for hardcoded API keys. On the Oracle Cloud Infrastructure Generative AI Professional 1Z0-1127 exam, this concept tests your understanding of how to securely integrate OCI services without static credentials; a common trap is assuming a static group or user-based policy suffices, but resource principal mandates a dynamic group for automatic token issuance. Remember the mnemonic “Dyno-Policy” to link dynamic groups with the corresponding policy—without both, the authentication handshake fails.

1Z0-1127 Using OCI Generative AI Service Practice Question

This 1Z0-1127 practice question tests your understanding of using oci generative ai service. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company needs to integrate OCI Generative AI Service with an existing application that uses OCI IAM for authentication. They want to use resource principal to allow the application to call the service without storing API keys. Which step is REQUIRED?

Question 1hardmultiple choice
Full question →

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

Create a dynamic group and a policy granting access to the Generative AI Service

Resource principal authentication in OCI requires the application to be represented by a dynamic group, which matches instances or resources based on defined rules. A policy must then grant that dynamic group access to the Generative AI Service. This avoids storing API keys by using OCI IAM's built-in resource principal token exchange.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create an OCI API key for the application

    Why it's wrong here

    Resource principal avoids API keys; API keys would defeat the purpose.

  • Enable the Generative AI Service for resource principal in the tenancy

    Why it's wrong here

    Resource principal is enabled by default; no tenancy-level toggle exists.

  • Assign the application to a group with admin privileges

    Why it's wrong here

    Admin privileges are too broad and not specific to resource principal.

  • Create a dynamic group and a policy granting access to the Generative AI Service

    Why this is correct

    Dynamic group with matching rules and a policy are required for resource principal.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Oracle often tests the misconception that resource principal requires a tenancy-wide setting or an API key, when in fact the correct mechanism is a dynamic group combined with a targeted IAM policy.

Detailed technical explanation

How to think about this question

Resource principal works by leveraging the OCI IAM token exchange endpoint (https://auth.{region}.oraclecloud.com/v1/resourceprincipal) to obtain a short-lived access token. The dynamic group membership is evaluated at runtime based on instance metadata (e.g., compartment OCID, instance OCID), and the policy must specify 'allow dynamic-group <name> to use generative-ai-family in compartment <name>'. A common real-world scenario is a compute instance running a Python application that uses the OCI SDK's resource_principal_authentication() method to call the Generative AI Service without any hardcoded credentials.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A junior network technician can log in to a core router but cannot reach the enable prompt or configuration mode. The AAA server is authenticating the login — but the authorisation policy only grants privilege level 1, not 15. Authentication (who you are) is working; authorisation (what you can do) is not.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related 1Z0-1127 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free 1Z0-1127 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this 1Z0-1127 question test?

Using OCI Generative AI Service — This question tests Using OCI Generative AI Service — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Create a dynamic group and a policy granting access to the Generative AI Service — Resource principal authentication in OCI requires the application to be represented by a dynamic group, which matches instances or resources based on defined rules. A policy must then grant that dynamic group access to the Generative AI Service. This avoids storing API keys by using OCI IAM's built-in resource principal token exchange.

What should I do if I get this 1Z0-1127 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on 1Z0-1127

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A developer needs to authenticate API calls to OCI Generative AI from a compute instance. Which TWO methods can be used?

easy
  • A.Configure an API key in OCI IAM for the user
  • B.Configure a customer-managed key (CMK) for encryption
  • C.Set up a service connector to forward requests
  • D.Use resource principal with instance principals
  • E.Use an auth token from OCI Identity

Why A: Options B and D are correct. API keys (B) allow programmatic access, and resource principals via instance principals (D) enable secure access without storing credentials on the instance. Option A (auth token) is used for REST API calls to Object Storage, not Generative AI. Option C (service connector) is for data movement, not authentication. Option E (customer-managed key) is for encryption, not authentication.

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This 1Z0-1127 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 exam.