nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #87

Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this security control?

The correct answer is D. With a Sentinel policy, which runs before every apply. The best way to automatically and proactively enforce the security control that new AWS S3 buckets must be private and encrypted at rest is with a Sentinel policy, which runs before every apply. Sentinel is a policy as code framework that allows you to define and enforce logic-ba

Submitted by cyberguy42· Apr 18, 2026Understand Terraform Cloud and Enterprise Capabilities

Question

Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this security control?

Options

  • AAuditing cloud storage buckets with a vulnerability scanning tool
  • BBy adding variables to each Terraform Cloud workspace to ensure these settings are always
  • CWith an S3 module with proper settings for buckets
  • DWith a Sentinel policy, which runs before every apply

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    14% (6)
  • C
    5% (2)
  • D
    75% (33)

Explanation

The best way to automatically and proactively enforce the security control that new AWS S3 buckets must be private and encrypted at rest is with a Sentinel policy, which runs before every apply. Sentinel is a policy as code framework that allows you to define and enforce logic-based policies for your infrastructure. Terraform Cloud supports Sentinel policies for all paid tiers, and can run them before any terraform plan or terraform apply operation. You can write a Sentinel policy that checks the configuration of the S3 buckets and ensures that they have the proper settings for privacy and encryption, and then assign the policy to your Terraform Cloud organization or workspace. This way, Terraform Cloud will prevent any changes that violate the policy from being applied.

Topics

#Sentinel#Policy as Code#Terraform Cloud#Security Enforcement

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice