Question 900 of 991
Using OCI Generative AI ServicehardMultiple SelectObjective-mapped

Securing OCI Generative AI Inference API

This 1Z0-1127 practice question tests your understanding of using oci generative ai service. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.

Which THREE steps are necessary to secure access to the OCI Generative AI inference API in a production environment?

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

Configure network security groups to allow only trusted source IPs to the inference endpoint.

Option B is correct because network security groups (NSGs) allow you to restrict inbound traffic to the Generative AI inference endpoint to only trusted source IP addresses, reducing the attack surface. In a production environment, this is a fundamental network-layer security control to prevent unauthorized access to the API.

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.

  • Enable encryption with OCI Vault keys for all inference data.

    Why it's wrong here

    Encryption protects data at rest but does not control access.

  • Configure network security groups to allow only trusted source IPs to the inference endpoint.

    Why this is correct

    NSGs provide network-level security.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Create IAM policies that grant the 'use' verb on generative-ai-family resources.

    Why this is correct

    IAM policies are fundamental for authorization.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use private endpoints to access the Generative AI service from a VCN.

    Why this is correct

    Private endpoints avoid public internet exposure.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Apply data masking policies to obfuscate sensitive information in prompts.

    Why it's wrong here

    Data masking is a post-processing step, not an access control mechanism.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Oracle often tests the distinction between network-layer controls (NSGs, private endpoints) and data-layer controls (encryption, masking), expecting candidates to recognize that securing API access requires network and IAM controls, not data protection features.

Detailed technical explanation

How to think about this question

Network security groups (NSGs) operate at the subnet level and use stateful filtering based on security rules. When you attach an NSG to a VCN subnet hosting the Generative AI endpoint, you can define ingress rules that allow traffic only from specific CIDR blocks or source IPs, effectively creating a network perimeter. This is distinct from IAM policies, which control authorization at the identity layer, and private endpoints, which provide private connectivity within a VCN.

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 network engineer segments a warehouse floor into three subnets: 20 scanners, 5 printers, and 2 management hosts. Picking the wrong mask wastes addresses or leaves too few usable hosts. Exam questions test whether you can apply CIDR notation, calculate block size, and identify the correct usable-host range for a given prefix.

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: Configure network security groups to allow only trusted source IPs to the inference endpoint. — Option B is correct because network security groups (NSGs) allow you to restrict inbound traffic to the Generative AI inference endpoint to only trusted source IP addresses, reducing the attack surface. In a production environment, this is a fundamental network-layer security control to prevent unauthorized access to the API.

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

4 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. Which TWO actions are required to enable a user to access OCI Generative AI service?

easy
  • A.Create a dedicated AI cluster.
  • B.Enable the GenAI service in the region's service limits.
  • C.Subscribe to the GenAI service in the OCI Console.
  • D.Install the OCI SDK.
  • E.Ensure the user has the appropriate IAM policy.

Why C: Option C is correct because to use OCI Generative AI service, a user must first subscribe to the service in the OCI Console. This subscription step activates the service for the tenancy, making it available for use. Without this explicit subscription, the service remains disabled and inaccessible, even if other prerequisites like IAM policies are in place.

Variation 2. A user has attached an IAM policy granting access to the generative-ai-family resource type, but API calls to the Generative AI service return a 403 Forbidden error. What is the most likely cause?

medium
  • A.The service is not enabled in the tenancy.
  • B.The policy does not include the 'use' verb for the resource type.
  • C.The user has not created a Dedicated AI Cluster.
  • D.The policy does not specify the correct compartment or resource.

Why D: Option D is correct because IAM policies in OCI are evaluated based on the resource type, the verb, and the compartment. Even if a policy grants access to the 'generative-ai-family' resource type, if the policy does not specify the correct compartment (or uses a condition that does not match the resource's compartment), the API call will be denied with a 403 Forbidden. The user must ensure the policy's 'allow' statement includes the appropriate compartment or uses a dynamic group or condition that matches the resource's location.

Variation 3. An administrator creates this IAM policy to allow a group to use a specific generative AI model. However, users report a 403 Forbidden error. What is the most likely issue?

medium
  • A.The policy syntax is invalid for OCI IAM; missing required fields
  • B.The resource OCID is incorrect
  • C.The policy does not specify the compartment where the model resides
  • D.The action name is wrong; it should be 'ai:generate-text' (correct already)

Why A: The most likely issue is that the policy syntax is invalid because OCI IAM policies require a 'verb' (e.g., 'allow', 'deny') at the beginning of each statement. Without this required field, the policy is syntactically incorrect and will be rejected by the IAM service, resulting in a 403 Forbidden error for all users in the group.

Variation 4. An organization deploys a fine-tuned model for legal document analysis using OCI Generative AI Service. They need to ensure that only authorized users in the 'LegalTeam' group can access the model endpoint. Which policy statement should be used?

hard
  • A.Allow group LegalTeam to use generative-ai-model in compartment ABC
  • B.Allow group LegalTeam to manage generative-ai-family in compartment ABC
  • C.Allow group LegalTeam to read generative-ai-model in compartment ABC
  • D.Allow group LegalTeam to inspect generative-ai-model in compartment ABC

Why A: Option A is correct because the 'use' verb on the 'generative-ai-model' resource type grants the LegalTeam group permission to invoke the model endpoint for inference, which is the minimum privilege required for accessing a deployed fine-tuned model in OCI Generative AI Service. The 'use' permission specifically allows calling the model for text generation or analysis without granting broader management or read capabilities.

Keep practising

More 1Z0-1127 practice questions

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.