ExamGecko
Question list
Search
Search

Question 9 - Terraform Associate 003 discussion

Report
Export

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?

A.
Auditing cloud storage buckets with a vulnerability scanning tool
Answers
A.
Auditing cloud storage buckets with a vulnerability scanning tool
B.
By adding variables to each Terraform Cloud workspace to ensure these settings are always enabled
Answers
B.
By adding variables to each Terraform Cloud workspace to ensure these settings are always enabled
C.
With an S3 module with proper settings for buckets
Answers
C.
With an S3 module with proper settings for buckets
D.
With a Sentinel policy, which runs before every apply
Answers
D.
With a Sentinel policy, which runs before every apply
Suggested answer: D

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 anyterraform planorterraform applyoperation. 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.Reference= [Sentinel Policy Framework], [Manage Policies in Terraform Cloud], [Write and Test Sentinel Policies for Terraform]

asked 18/09/2024
Georgios Kavvalakis
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first