Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Terraform Associate topic 1 question 163 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 163
Topic #: 1
[All Terraform Associate Questions]

When does Sentinel enforce policy logic during a Terraform Enterprise run?

  • A. Before the plan phase
  • B. During the plan phase
  • C. Before the apply phase
  • D. After the apply phase
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Burakko
Highly Voted 1 year, 7 months ago
Selected Answer: C
"Enforcing policy checks on runs - Policies are checked when a run is performed, after the terraform plan but before it can be confirmed or the terraform apply is executed."
upvoted 7 times
...
mohamed1999
Most Recent 3 months, 4 weeks ago
Selected Answer: C
Terraform Enterprise enforces Sentinel policies between the plan and apply phases of a run, preventing out of policy infrastructure from being provisioned. Unless overridden by an authorized user, only plans that pass all Sentinel policies checked against them are allowed to proceed to the apply step.
upvoted 3 times
...
zanhsieh
11 months, 4 weeks ago
Selected Answer: C
C. See the official diagram here: https://developer.hashicorp.com/terraform/tutorials/policy/sentinel-install
upvoted 1 times
...
camps
1 year ago
Selected Answer: B
B. During the plan phase. Sentinel is a policy-as-code framework integrated with Terraform Enterprise that allows organizations to define and enforce policies on infrastructure changes. Sentinel enforces policy logic during the plan phase of a Terraform Enterprise run, before any changes are applied to the infrastructure. During the plan phase, Terraform generates an execution plan that describes the changes that will be made to the infrastructure. Sentinel evaluates policy rules against this execution plan to determine whether the proposed changes comply with the defined policies. If any violations are detected, the plan is rejected, and the changes are not applied. Sentinel does not enforce policy logic before the plan phase or after the apply phase. However, Sentinel policies can also be used to enforce compliance on policy requirements that are not directly related to infrastructure changes, such as resource tagging or naming conventions. In these cases, Sentinel policies may be evaluated at other points in the Terraform Enterprise workflow, such as during VCS (version control system) integration or during cost estimation.
upvoted 2 times
mohamed1999
3 months, 4 weeks ago
Terraform Enterprise enforces Sentinel policies between the plan and apply phases of a run, preventing out of policy infrastructure from being provisioned. Unless overridden by an authorized user, only plans that pass all Sentinel policies checked against them are allowed to proceed to the apply step.
upvoted 1 times
...
...
phidelics
1 year, 1 month ago
Selected Answer: C
terraform plan >>>>>>sentinel policy>>>>>>>>>terraform apply
upvoted 3 times
...
Pinky0289
1 year, 7 months ago
Policies are enforced after the plan and before the apply commands. so, the answer is option C.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...