1Z0-997-25 Question 171
Select 2You are working as a Cloud Architect for a large organization looking to enforce cost center tagging on all newly created OCI resources for better governance and cost optimization. The requirement is to automatically assign a default cost center tag if it is not provided or to block the creation of the resource entirely if the mandatory tag is missing. Which TWO strategies can fulfill this requirement?
- A
Configure a Tag Default to automatically apply a cost center tag in each compartment.
- B
Create a budget for each compartment that automatically tags all resources with the correct cost center.
- C
Use Tagging Enforcement (mandatory tags) to require a defined cost center tag on resource creation.
- D
Implement a Quota policy that denies the creation of any resources not tagged with a cost center.
Show answer and explanation
Correct answers: A, C
Explanation
To meet the requirement of enforcing mandatory tags and ensuring that all resources have a cost center tag, you can combine Tag Defaults to assign a default tag value automatically with Tagging Enforcement to block creation of resources missing the mandatory tag. For more information, consult the OCI Tagging documentation and best practices on mandatory tags.
- A. Correct.
Option 1 (Correct): Tag Defaults allow you to specify a default tag value in a given compartment. If a user does not specify the required tag value, OCI automatically applies the default. This helps ensure resources have at least one default cost center tag, supporting governance and cost control.
- B. Incorrect.
Option 2 (Incorrect): Budgets in OCI track and alert on spending but do not automatically apply tags or enforce tagging. They are useful for monitoring and receiving notifications about cost thresholds but cannot assign tags to resources.
- C. Correct.
Option 3 (Correct): Tagging Enforcement (mandatory tags) can be used to require that a resource has certain tags upon creation. If a user attempts to create a resource without the mandatory tag, the creation fails. This ensures cost center tagging is not overlooked.
- D. Incorrect.
Option 4 (Incorrect): Quota policies limit or block the amount and types of resources that can be created, but they do not verify or enforce tags. Quotas focus on restricting the quantity of resources rather than tagging compliance.