Sample questions
HashiCorp Certified: Terraform Authoring and Operations Professional (AWS provider) (AWS provider) practice questions
You have a Terraform configuration that uses a module from the public registry. How do you ensure your team uses a specific version?
Which function is most useful when you have a nested list of objects and want to create a single flat list to iterate over with for_each?
Which of the following are valid provider version constraint operators? (Select TWO)
You need to enforce that only specific VM sizes are used in your infrastructure. Which Sentinel feature provides this capability?
Which TWO features help maintain consistency across multiple workspaces?
What happens if two team members try to apply changes to the same workspace in HCP Terraform simultaneously?
When troubleshooting a failed plan in HCP Terraform, which THREE sources should you check?
Which organization-level setting in HCP Terraform governs who can create new workspaces?
Which HCP Terraform feature allows you to manage infrastructure across multiple cloud accounts using a single organization?
Which TWO of the following are valid uses of the 'for' expression?
When refactoring a large infrastructure configuration, you move a resource into a child module. How do you handle the existing state to prevent Terraform from destroying and recrea…
You are using a module that depends on a specific provider version. Where should this constraint be defined?
Why would you use a 'locals' block within a module instead of passing everything through variables?
You want to use a module that is hosted in a private GitHub repository. Which authentication method should Terraform use to access it?
If you have a module that creates an S3 bucket, and you want the bucket name to be prefixed by a value provided by the caller, how do you achieve this?
What is the primary benefit of using a module registry compared to a local file path for module distribution?
How can you protect a module's inputs from receiving incorrect types of data?
When a module is updated, how do you ensure that all environments using this module get the update?
What happens if a Sentinel policy results in an 'advisory' output?
Your team requires a custom module to be versioned strictly to prevent breaking changes during deployments. What is the recommended way to reference a module from a private Git rep…
Where can you define variables that apply to all workspaces within an organization in HCP Terraform?
You need to ensure that all workspaces use a specific set of tags. How can this be enforced?
You want to trigger a run only when a specific file within a module path changes. How do you configure this?
Which TWO of the following are standard stages of an HCP Terraform run pipeline?