Hashicorp Certified Terraform Associate 003 · Free Practice Question Medium
Question 22
Which feature of HCP Terraform can be used to enforce fine-grained policies to enforce standardization and cost controls before resources are provisioned with Terraform?
-
A
sentinel and OPA
-
B
workspaces
-
C
remote runs
-
D
private registry
Reveal correct answer
Correct answer: A
Explanation
Sentinel is an embedded policy-as-code framework integrated with the HashiCorp Enterprise products. It enables fine-grained, logic-based policy decisions and can be extended to use information from external sources.
HashiCorp also supports Open Policy Agent (OPA) in HCP Terraform.
https://developer.hashicorp.com/terraform/cloud-docs/policy-enforcement
A.
Sentinel and OPA are both policy as code tools that can be integrated with HCP Terraform to enforce fine-grained policies. These tools allow organizations to define and enforce policies that govern infrastructure provisioning, ensuring standardization and cost controls are in place before resources are provisioned with Terraform.
B.
Workspaces in HCP Terraform are used to organize and manage Terraform configurations and state files. While workspaces provide isolation and collaboration features, they do not specifically enforce fine-grained policies for standardization and cost controls before resource provisioning.
C.
Remote runs in HCP Terraform allow users to trigger Terraform runs remotely from the cloud platform. While remote runs provide visibility and collaboration features, they do not directly enforce fine-grained policies for standardization and cost controls before resource provisioning.
D.
Private registry in HCP Terraform is used to store and manage private Terraform modules. While it provides a secure way to share and reuse modules within an organization, it does not directly enforce fine-grained policies for standardization and cost controls before resource provisioning.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
