OCI Foundations Compartments and IAM Policies Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 15, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. In OCI, what happens when you delete a compartment with resources?

Explanation

OCI does not automatically remove or relocate resources when a compartment is deleted. You must first delete or move its resources, and ensure it has no child compartments. Once the compartment is empty, it can be deleted.

Submit
Please wait...
About This Quiz
Oci Foundations Compartments and Iam Policies Quiz - Quiz

This quiz evaluates your understanding of Oracle Cloud Infrastructure compartments and Identity and Access Management (IAM) policies. You'll test your knowledge of compartment hierarchies, policy syntax, principal types, and permission models essential for managing OCI resources securely. Ideal for cloud practitioners preparing for OCI certification or roles involving resource governance... see moreand access control. see less

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which of the following best describes least privilege access in OCI?

Explanation

Least privilege means giving each user only the permissions needed to complete their assigned tasks. This limits unnecessary access, reducing the risk of accidental changes, misuse, or security breaches in OCI.

Submit

3. In OCI, what is a 'resource tag'?

Explanation

In OCI, a resource tag is metadata attached to a cloud resource. Tags help organize and identify resources, group them for management, and track or allocate costs across teams, projects, or departments.

Submit

4. What is the 'root' compartment in OCI?

Explanation

In Oracle Cloud Infrastructure, the root compartment is the top-level compartment associated with a tenancy. It provides the starting point for organizing resources and creating child compartments, forming the hierarchy used to manage access and resources across the tenancy.

Submit

5. Can you grant permissions across compartments with a single IAM policy?

Explanation

IAM policies can be defined in the root or a parent compartment and apply to resources in that compartment and its descendants, subject to the policy’s scope and rules. This allows one policy to grant permissions across multiple child compartments without creating a separate policy in each one.

Submit

6. Which resource-type in IAM policy refers to database resources?

Explanation

In OCI IAM policies, `database-family` is the resource-type that groups database-related resources. It lets administrators grant permissions for database services using a single policy statement.

Submit

7. What is an OCI 'dynamic group'?

Explanation

An OCI dynamic group automatically includes resources whose attributes match specified rules, such as instances in a compartment. This lets administrators grant those resources permissions through policies without manually adding or removing each resource as membership changes.

Submit

8. In OCI IAM, can policies be attached to individual users directly?

Explanation

OCI IAM policies grant permissions to groups, dynamic groups, or resources within specified compartments—not directly to individual users. Users receive permissions by being added to groups that are covered by the relevant policy.

Submit

9. What does the 'inspect' permission level allow a user to do?

Explanation

The ‘inspect’ permission level provides read-only access to information about a resource, such as its metadata and details. It does not allow the user to create, modify, delete, or transfer resources. These actions require additional permissions beyond inspection.

Submit

10. Which policy statement allows members of 'Developers' group to create compute instances in the 'Engineering' compartment?

Explanation

OCI IAM policy statements specify the principal, permitted resource actions, and scope. “Group Developers” identifies the members, “manage compute-family” grants permissions over compute resources—including creating instances—and “in compartment Engineering” limits those permissions to that compartment. The other choices are informal or omit required policy syntax and/or scope. This follows OCI’s policy grammar.

Submit

11. What is the primary purpose of compartments in Oracle Cloud Infrastructure?

Explanation

Compartments provide a logical way to group and separate Oracle Cloud Infrastructure resources within a tenancy. Policies can grant users different levels of access to resources in each compartment, while costs can be tracked by compartment. This helps organizations manage permissions, organize workloads, and monitor cloud spending.

Submit

12. What is the purpose of a 'tenancy' in OCI?

Explanation

A tenancy is the top-level container for an organization’s OCI environment. It holds the organization’s cloud resources and compartments, which can be used to organize and manage those resources. User accounts and virtual networks are managed within the tenancy, but they do not define its purpose.

Submit

13. Can a user belong to multiple groups in OCI?

Explanation

OCI users can be members of multiple groups. Group membership lets administrators grant users different sets of permissions through policies, making it easier to manage access to resources according to each user’s responsibilities.

Submit

14. Which of the following is a valid principal type in OCI IAM?

Explanation

A group is a valid OCI IAM principal type because it represents a collection of users whose permissions can be managed together through IAM policies. Database, network, and storage are OCI resource categories, not principal types used to identify who or what receives access.

Submit

15. What is the broadest permission level in OCI IAM?

Explanation

In OCI IAM, permissions are organized by increasing scope: inspect, read, use, and manage. The manage verb provides the broadest access, allowing users to perform administrative actions such as creating, updating, and deleting resources, as well as managing related settings. Policies should grant it only when that level of control is necessary.

Submit

16. In IAM policy syntax, what does the 'verb' represent?

Explanation

In IAM policy syntax, the verb specifies the level of access granted to a user or group for a resource. Common verbs include inspect, read, use, and manage, with each allowing a different set of actions.

Submit

17. What is the correct syntax for an OCI IAM policy statement?

Explanation

OCI IAM policy statements follow the structure: `Allow to in `. The subject identifies who receives access, the verb specifies the level of permission, the resource type identifies what can be accessed, and the location scopes the resources. Optional conditions can further restrict when the policy applies.

Submit

18. Which type of IAM policy statement grants permissions?

Explanation

IAM policy statements can express both Allow and Deny rules. An Allow statement grants a specified user or group permission to perform actions on resources, while a Deny statement explicitly blocks access. Together, they define effective permissions, with explicit denials generally taking precedence over allows. This lets administrators grant needed access while preventing specific operations.

Submit

19. In OCI IAM, what does a 'principal' refer to?

Explanation

In OCI IAM, a principal is an identity authorized to interact with cloud resources. It may be a user, a group acting through its members, or a service identity, and its permissions determine which actions it can perform.

Submit

20. Which statement correctly describes compartment hierarchy in OCI?

Explanation

OCI compartments form a hierarchy beneath the tenancy’s root compartment. A compartment can contain child compartments, which helps organize resources and manage access at different levels. Policies defined for a parent compartment generally extend to its descendants, allowing permissions to be managed centrally while still supporting more specific controls where needed.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
In OCI, what happens when you delete a compartment with resources?
Which of the following best describes least privilege access in OCI?
In OCI, what is a 'resource tag'?
What is the 'root' compartment in OCI?
Can you grant permissions across compartments with a single IAM...
Which resource-type in IAM policy refers to database resources?
What is an OCI 'dynamic group'?
In OCI IAM, can policies be attached to individual users directly?
What does the 'inspect' permission level allow a user to do?
Which policy statement allows members of 'Developers' group to create...
What is the primary purpose of compartments in Oracle Cloud...
What is the purpose of a 'tenancy' in OCI?
Can a user belong to multiple groups in OCI?
Which of the following is a valid principal type in OCI IAM?
What is the broadest permission level in OCI IAM?
In IAM policy syntax, what does the 'verb' represent?
What is the correct syntax for an OCI IAM policy statement?
Which type of IAM policy statement grants permissions?
In OCI IAM, what does a 'principal' refer to?
Which statement correctly describes compartment hierarchy in OCI?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!