Oracle Cloud Infrastructure 2024 Security Professional (1Z0-1104-24) Exam-style mock test
Oracle OCI Security Professional (1Z0-1104) Practice Exams|Practice test
Full explanations
Exam format
Pass line 65%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · IAM, Compartments, Policies, and Federation
A B2B SaaS company runs separate development, staging, and production environments for its billing platform on OCI. The security lead wants each environment isolated so a misconfigured policy in development can never grant access to production resources, while keeping shared logging resources accessible to all teams. Which compartment design best meets this requirement?
・Place every billing resource in the tenancy root compartment and separate environments using only resource tags
Incorrect. Tags do not create an isolation boundary for policies, so a broad root-level policy would still span every environment.
✓Create one compartment per environment under the root, plus a shared-logging compartment, and scope policies to each compartment
Correct. Separate compartments per environment give true policy isolation, and a dedicated shared-logging compartment can be granted to all teams independently.
・Create a single billing compartment and rely on IAM groups alone to keep development and production users apart
Incorrect. Groups control who acts, but without compartment boundaries a single policy can still reach across all environments.
・Create nested compartments where production sits inside the development compartment to inherit its network policies
Incorrect. Nesting production inside development makes production inherit development's broader access, which is the opposite of isolation.
Explanation
Compartments are OCI's primary isolation boundary. One compartment per environment plus a shared compartment for common resources gives policy-level separation while still allowing controlled sharing.
Example2 · Network Security (Security Lists, NSGs, WAF, Bastion)
A B2B SaaS company runs its multi-tenant API tier and a shared Redis cache inside the same subnet. The team wants the API instances to reach Redis on port 6379 while preventing other workloads that later join the same subnet from reaching Redis. Which approach best satisfies this requirement?
・Add a stateful ingress security list rule on the subnet that allows TCP 6379 sourced from the entire subnet CIDR block
Incorrect. A security list applies to every VNIC in the subnet, so any future workload in that subnet would also be permitted to reach 6379.
✓Put Redis and the API tier in separate NSGs and allow ingress 6379 whose source is the API NSG
Correct. NSGs apply at the VNIC level and support an NSG as a source, so only VNICs in the API NSG can reach Redis even when others share the subnet.
・Rely on the default security list, which already isolates each separate instance within a shared subnet
Incorrect. The default security list does not isolate instances inside a shared subnet; its rules apply uniformly to all VNICs.
・Move Redis to its own dedicated subnet and open port 6379 widely to 0.0.0.0/0 for reachability
Incorrect. Opening 6379 to 0.0.0.0/0 exposes the cache broadly and still does not restrict access to only the API instances.
Explanation
NSGs operate at the VNIC level and can reference another NSG as the source, giving resource-level segmentation within a shared subnet that security lists cannot provide.
Example3 · Data Protection, Vault, KMS, and Encryption
A B2B SaaS company is onboarding a payments-processing customer whose contract demands that tenant encryption keys never leave validated hardware security modules and are stored on dedicated, isolated cryptographic hardware. The platform team must provision an OCI Vault for this tenant. Which Vault type should they select to meet the isolation requirement?
・A Default (shared) Virtual Private Vault that stores keys in software partitions
Incorrect. The Default Vault shares HSM partitions across tenants and is not a Virtual Private Vault, so it does not deliver the dedicated-hardware isolation the contract requires.
✓A Virtual Private Vault, which provides a dedicated partition within the HSM
Correct. A Virtual Private Vault gives the tenant a dedicated, isolated partition within the HSM, satisfying the requirement that keys reside only on dedicated cryptographic hardware.
・An Object Storage bucket configured with server-side encryption and customer-supplied keys for key material
Incorrect. An Object Storage bucket is a data store, not a key-management service, and cannot provide HSM-backed key isolation for the tenant.
・A standard Vault using the Software protection mode with automatic key rotation enabled
Incorrect. The Software protection mode keeps key material outside the HSM boundary, which violates the requirement that keys never leave validated hardware.
Explanation
A Virtual Private Vault allocates a dedicated HSM partition to the tenant, meeting contractual isolation and FIPS-validated hardware requirements, whereas the shared Default Vault and Software mode do not.
Example4 · Cloud Guard, Security Zones, and Threat Detection
A healthcare services firm is turning on Cloud Guard for the first time in its root compartment. The security lead asks what Cloud Guard primarily evaluates to surface risks across the firm's patient-data tenancy. What is the primary function of Cloud Guard?
・It encrypts object storage buckets holding protected health information and rotates the associated master encryption keys automatically every quarter
Incorrect. Encryption and key rotation are handled by the Vault/KMS service, not Cloud Guard, which does not perform encryption duties.
✓It monitors resource configurations and OCI activity against detector recipes, then generates problems the security team can review and remediate
Correct. Cloud Guard uses detector recipes to evaluate configuration posture and activity, raising problems for the security team to triage and remediate.
・It inspects inbound and outbound packet flows at the subnet boundary and blocks traffic that matches signatures of known malicious payloads
Incorrect. Packet-level inspection and signature blocking describe Network Firewall or IDS/IPS capabilities, not Cloud Guard.
・It applies required labels to compartments
Incorrect. Compartment labeling is not a Cloud Guard function; it detects risks, it does not tag compartments.
Explanation
Cloud Guard is a posture-and-activity monitoring service: detector recipes evaluate resources and events to produce problems, and responder recipes can remediate them.
Example5 · Logging, Audit, Compliance, and Vulnerability Scanning
A healthcare services firm must capture application-level events emitted by its patient-portal microservices running on OCI Compute, and route them into the OCI Logging service for later search. The platform team wants these events treated as first-class OCI logs rather than only stored on the instance. Which Logging capability should they configure?
・Enable Audit logs, which already record every API operation including the custom application events emitted by the portal services
Incorrect. Audit logs record OCI control-plane API calls, not arbitrary application events generated inside the portal microservices.
✓Create a custom log and use the Unified Monitoring Agent to ingest the application log files into OCI Logging
Correct. Custom logs are designed for first-party or third-party application events, and the Unified Monitoring Agent collects the log files and ingests them into OCI Logging.
・Rely on service logs, since OCI automatically captures application output from any Compute instance it manages
Incorrect. Service logs come from supported OCI resources (such as load balancers or API Gateway), not from arbitrary application output on a Compute instance.
・Export the instance's local log files to Object Storage and query them there instead of using OCI Logging
Incorrect. Exporting to Object Storage bypasses the Logging service and does not make the events first-class, searchable OCI logs.
Explanation
Application-generated events belong to custom logs, which are ingested by the Unified Monitoring Agent, whereas Audit and service logs cover API operations and supported OCI services respectively.
Example6 · IAM, Compartments, Policies, and Federation
A healthcare services firm runs its patient portal, its billing analytics, and a shared logging platform in a single OCI tenancy. The security team wants each workload's resources isolated so that an IAM policy can grant the billing team access to only its own resources without touching the portal. Which approach best meets this requirement?
✓Place each workload's resources in its own dedicated compartment and scope policies to those compartments
Correct. Compartments are the primary isolation boundary in OCI, and scoping policies to a compartment grants a group access only to the resources inside it.
・Tag every resource with a free-form key named workload and write policies that match the tag value
Incorrect. Free-form tags are not a security boundary and cannot be used to scope access the way a compartment can in a policy statement.
・Create one compartment for all workloads and separate the teams into different IAM groups only
Incorrect. A single shared compartment means a policy granting the billing group access would expose portal resources too, defeating isolation.
・Keep all resources in the root compartment and rely on resource-level naming conventions
Incorrect. The root compartment holds everything and naming conventions provide no enforced access boundary at all.
Explanation
Compartments are OCI's logical isolation container; policies written against a compartment restrict a group's access to just that compartment's resources.
Example7 · IAM, Compartments, Policies, and Federation
RetailNova, an online fashion retailer, is onboarding to OCI and wants to isolate resources for its Production and Development environments so that billing, quotas, and access can be managed separately within a single tenancy. Which approach best meets this requirement?
・Request a separate OCI tenancy for Production and another separate tenancy for Development, then federate them together
Incorrect. Separate tenancies add heavy administrative overhead and are not needed; compartments within one tenancy provide the required isolation of billing, quotas, and access.
✓Create two child compartments, Prod and Dev, under the root compartment and place each environment's resources in them
Correct. Child compartments give logical isolation within one tenancy, enabling per-compartment policies, budgets, and quotas for each environment.
・Place all resources in the root compartment and use freeform tags named env to distinguish Production from Development
Incorrect. The root compartment with tags does not provide access isolation; anyone with tenancy-level access could reach all resources regardless of the tag.
・Create one compartment for networking and assign both environments the same IAM group so they inherit identical policies and quotas
Incorrect. A single compartment with one shared group defeats isolation because both environments would receive identical access and quota controls.
Explanation
Compartments are the native OCI construct for isolating resources, access, quotas, and cost tracking within a single tenancy, so child Prod and Dev compartments satisfy the requirement.
Example8 · IAM, Compartments, Policies, and Federation
RetailNova's security team must let the OrderOps group manage only object storage buckets inside the Fulfillment compartment, with no other permissions. Which single policy statement correctly expresses this least-privilege intent?
・Allow group OrderOps to manage all-resources in tenancy where request.compartment.id equals Fulfillment
Incorrect. Granting manage on all-resources violates least privilege by allowing far more than object storage, even if scoped by a condition.
✓Allow group OrderOps to manage object-family in compartment Fulfillment
Correct. Scoping manage on the object-family resource type to the Fulfillment compartment grants exactly the bucket and object permissions needed and nothing more.
・Allow group OrderOps to use buckets in tenancy excluding every compartment other than the Fulfillment compartment
Incorrect. The use verb is too weak to manage buckets and the exclusion syntax shown is not valid OCI policy language.
・Allow group OrderOps to read object-family in compartment Fulfillment
Incorrect. The read verb only permits viewing metadata and cannot create, update, or delete buckets, so it fails the management requirement.
Explanation
Least privilege is achieved by pairing the correct verb (manage) with the specific resource family (object-family) scoped to the target compartment.
Example9 · IAM, Compartments, Policies, and Federation
A RetailNova administrator writes a policy at the root compartment granting a group manage access to instance-family. The Payments compartment is a child of the root. What access does the group have inside the Payments compartment?
・No access, because policies must be attached directly to each compartment where the group should operate
Incorrect. Policies attached at a parent compartment do apply downward, so direct attachment in every compartment is not required.
✓Full manage access to instance-family, since a policy at a parent compartment applies to its descendant compartments
Correct. Permissions granted at a compartment flow to all nested child compartments, so the group has manage access to instance-family in Payments.
・Read-only access, because inherited permissions are automatically downgraded as they pass to child compartments
Incorrect. OCI does not downgrade inherited permissions; the verb granted at the parent is preserved in descendants.
・Access only after an administrator re-creates an identical policy that is attached inside the Payments compartment itself
Incorrect. Re-creating the policy is unnecessary because inheritance already extends the parent policy to child compartments.
Explanation
A policy attached to a compartment governs that compartment and everything nested beneath it, so manage on instance-family is inherited by the Payments child compartment.
Example10 · IAM, Compartments, Policies, and Federation
A financial services firm runs its loan-origination platform and a separate fraud-analytics workload in one OCI tenancy. The security team must guarantee that fraud analysts cannot view or manage any loan-platform resources, even by accident. Which compartment design best achieves this isolation?
✓Create two sibling compartments and scope each team's policies to only its own compartment
Correct. Separate sibling compartments with policies scoped to each compartment enforce hard isolation because a policy grants access only within the compartment it names.
・Place all resources in the root compartment and rely on resource-level tag defaults for separation
Incorrect. Tag defaults label resources but do not restrict who can view or manage them, so no isolation is enforced.
・Keep everything in a single shared compartment while assigning distinct user passwords and API keys to each team
Incorrect. Credentials authenticate identity but a shared compartment still exposes all resources to anyone with matching policies.
・Create one compartment for all workloads and grant both teams the manage all-resources permission so they can self-govern access boundaries
Incorrect. Granting manage all-resources to both teams removes the boundary entirely and lets either team reach the other's resources.
Explanation
Compartments are the primary isolation boundary in OCI; scoping each team's policies to its own compartment prevents cross-workload access.
Example11 · IAM, Compartments, Policies, and Federation
A bank's auditors need read-only visibility into all object storage buckets in the Compliance compartment but must not be able to change anything. The group is named ComplianceAuditors. Which policy statement grants exactly the access required?
・Allow group ComplianceAuditors to manage object-family in compartment Compliance
Incorrect. The manage verb grants full control including create and delete, exceeding read-only requirements.
・Allow group ComplianceAuditors to inspect buckets in tenancy
Incorrect. Inspect lists resource metadata only and is scoped to the whole tenancy, not the Compliance compartment's object contents.
✓Allow group ComplianceAuditors to read object-family in compartment Compliance
Correct. The read verb on object-family scoped to the Compliance compartment grants viewing of bucket contents without any modify permission.
・Allow group ComplianceAuditors to use object-family in compartment Compliance where the request targets read operations only
Incorrect. The use verb permits updates on existing resources, and this condition syntax is not valid for restricting to read operations.
Explanation
OCI verbs escalate inspect, read, use, manage; read on object-family in the named compartment delivers precise read-only access.
Example12 · IAM, Compartments, Policies, and Federation
A manufacturing distributor stores its ERP object buckets in a compartment named 'erp-prod'. A security engineer must allow the 'ops-team' group to list and read objects there but never delete them. Which policy statement correctly expresses this least-privilege requirement?
・Allow group ops-team to manage object-family in compartment erp-prod
Incorrect. The 'manage' verb grants full control including delete, which violates the no-delete requirement.
✓Allow group ops-team to read objects in compartment erp-prod
Correct. The 'read' verb for objects grants inspect and get permissions (list and read content) but not the delete permission from 'use' or 'manage'.
・Allow group ops-team to use buckets in compartment erp-prod where request.permission = 'OBJECT_INSPECT' and target.bucket.name != 'secrets'
Incorrect. Using the 'buckets' resource with OBJECT_INSPECT is malformed; object listing/reading is scoped to the objects resource, and this adds an unrelated bucket-name condition.
・Allow group ops-team to inspect objects in tenancy excluding delete permissions on compartment erp-prod buckets
Incorrect. OCI policy syntax has no 'excluding' clause, and this attempts to subtract permissions in a way the language does not support.
Explanation
The 'read' verb on the objects resource grants exactly list and get-content without delete, satisfying least privilege. 'manage' and 'use' both include delete.
Example13 · IAM, Compartments, Policies, and Federation
The distributor organizes resources as root > 'plants' > 'plant-east'. A policy written at the 'plants' compartment grants the 'auditors' group the 'read all-resources' verb. What access does the auditors group effectively have on resources inside 'plant-east'?
・No access, because policies only apply to resources directly in the compartment where the policy is attached and never to sub-compartments
Incorrect. Policies attached to a compartment do cascade downward into nested compartments by inheritance.
✓Read access, because a policy attached to a compartment also applies to all compartments nested beneath it
Correct. A policy attached at a parent compartment applies to that compartment and all compartments nested within it, so auditors can read resources in plant-east.
・Read access only after an identical policy is manually duplicated and attached inside the 'plant-east' child compartment as well
Incorrect. Inheritance is automatic; no manual duplication of the policy in the child compartment is required.
・Full manage access, since 'all-resources' automatically escalates read to manage within any descendant compartment of the policy
Incorrect. The verb remains 'read'; 'all-resources' expands the resource scope, not the permission level, and does not escalate to manage.
Explanation
OCI policies are inherited downward: a statement at a parent compartment governs all nested child compartments, preserving the stated verb.
Example14 · IAM, Compartments, Policies, and Federation
A telecom operator runs its billing platform, 5G core network functions, and a retail web portal in one OCI tenancy. The security team wants each workload's resources isolated so that a policy granting access to one workload never implicitly grants access to another. What compartment design should the architect adopt?
✓Place billing, 5G core, and retail resources into three separate top-level compartments under the root and scope each team's policies to its own compartment
Correct. Separate compartments give each workload its own isolation boundary, and compartment-scoped policies ensure access granted in one does not leak to another.
・Keep every resource in the root compartment and rely only on tag-based conditions in policies to separate the three workloads
Incorrect. Keeping everything in root with only tag conditions is fragile and does not provide the structural isolation that separate compartments give.
・Create a single shared compartment for all three workloads and differentiate them purely with resource naming conventions and IAM groups
Incorrect. A single shared compartment with naming conventions offers no real boundary, so a broad policy could reach all three workloads.
・Use three distinct regions, one per workload, so each workload is automatically isolated at the region boundary without any compartment structure
Incorrect. Regions are for geographic distribution and latency, not workload isolation; the same policies and compartments still apply within each region.
Explanation
Compartments are the primary isolation construct in OCI; placing each workload in its own compartment and scoping policies to it prevents cross-workload access.
Example15 · IAM, Compartments, Policies, and Federation
The telecom's network engineers need to list, view, and launch compute instances in the NetworkOps compartment but must not be able to delete instances or change networking. Which single policy statement grants the least-privilege access that still allows launching instances?
✓Allow group NetworkEngineers to use instance-family in compartment NetworkOps
Correct. The use verb on instance-family permits listing, viewing, and launching instances without granting full manage (delete) rights.
・Allow group NetworkEngineers to manage all-resources in compartment NetworkOps
Incorrect. manage all-resources is far too broad and would allow deletion and networking changes, violating least privilege.
・Allow group NetworkEngineers to inspect instance-family in compartment NetworkOps
Incorrect. The inspect verb only allows listing resource metadata and cannot launch instances.
・Allow group NetworkEngineers to read instances in tenancy with networking excluded
Incorrect. read instances allows viewing but not launching, and 'excluded' is not valid policy syntax.
Explanation
OCI policy verbs are cumulative: inspect < read < use < manage. The use verb on instance-family covers launch while stopping short of delete, matching the requirement.
▶ Try 10 free questions (graded)