Skip to Content

OCI CAF: How many levels deep can you nest OCI compartments?

The ultimate guide to structuring your OCI compartment hierarchy

Learn how to organize your Oracle Cloud Infrastructure by nesting compartments up to six levels deep to improve resource management, security, and cost governance.

Question

How many levels deep can a tenancy include in a Compartment hierarchy?

A. Six
B. Four
C. Seven
D. Five
E. Unlimited

Answer

A. Six

Explanation

In Oracle Cloud Infrastructure (OCI), a tenancy can include a compartment hierarchy that is nested up to six levels deep.

When you create an OCI account, the system automatically generates a root compartment. From there, administrators can build sub-compartments to organize and isolate resources like virtual machines, databases, and networks. These sub-compartments inherit access policies and governance rules from their parent compartments above them in the hierarchy. Because OCI supports nesting up to six levels deep, organizations have the flexibility to design complex structures that mirror their specific departments, project teams, or software environments.

Oracle Cloud Infrastructure Cloud Adoption Framework and Essentials certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the OCI CAF graded quizzes and final assessments, earn OCI CAF digital credential and badge.