1Z0-1067-25 Question 66
Select 2You are managing multiple departments within a single Oracle Cloud Infrastructure tenancy. The finance team requires that the 'Analytics' compartment must not exceed a certain monthly usage threshold, and new resources should be prevented from being created if costs approach this limit. Which two approaches would best help you enforce these requirements?
- A
Create a usage-based budget for the 'Analytics' compartment and configure a threshold alert that automatically removes existing resources when usage exceeds the budget.
- B
Set up a monthly cost budget for the entire tenancy and assume that resource creation in any subcompartment will be blocked once the overall tenancy budget is reached.
- C
Use a usage-based budget for the 'Analytics' compartment with threshold alerts and create a custom event that triggers a function to block new resource creation when usage hits the defined threshold.
- D
Establish a compartment quota for the 'Analytics' compartment that limits specific resource counts or shapes, and define a cost-based budget for the same compartment to track expenses and receive alerts.
Show answer and explanation
Correct answers: C, D
Explanation
To manage usage in a specific compartment, you typically use a combination of budgets (either cost-based or usage-based) and compartment quotas. Budgets in OCI provide threshold alerts and can be connected with events and functions to automate enforcement measures. Compartment quotas impose a strict cap on resource creation. For more details, consult the Oracle Cloud Infrastructure documentation on Budgets (docs.oracle.com/en-us/iaas/Content/Billing/Concepts/budgetsoverview.htm) and Compartment Quotas (docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcequotas.htm).
- A. Incorrect.
Option 1 is incorrect because a budget alert in OCI does not automatically trigger removal of existing resources. Although budgets can notify you when a threshold is reached, they do not natively delete or stop resources.
- B. Incorrect.
Option 2 is incorrect because setting a budget only at the tenancy level does not block new resource creation in a specific subcompartment. Tenancy-wide budgets help track overall costs but do not enforce usage limits in specific compartments by default.
- C. Correct.
Option 3 is correct. A usage-based budget for the 'Analytics' compartment can monitor consumption and alert you. You can pair this with OCI Events and Functions to automate an action (such as denying new resource creation) when a budget threshold is exceeded.
- D. Correct.
Option 4 is correct. A compartment quota imposes hard usage limits by constraining the number or type of resources in a compartment. Combining it with a cost-based budget helps monitor and alert on spending in that compartment. Alerts signal when you approach the budget limit, and the quota prevents further resource growth beyond defined parameters.