Courseiva
← Back to HashiCorp Certified: Terraform Authoring and Operations Professional (AWS provider) (AWS provider) questions

Scenario-based practice

Hard Difficulty Questions

Practise HashiCorp Certified: Terraform Authoring and Operations Professional (AWS provider) (AWS provider) practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

20
scenario questions
AWS provider
exam code
HashiCorp
vendor

Scenario guide

How to approach hard difficulty questions

These are the questions most candidates get wrong. They require connecting multiple concepts, reading tricky output, or knowing edge-case behaviour that isn't on most study cards. Practising them trains you to operate under uncertainty — a necessary skill on the real exam.

Quick answer

Hard Difficulty Questions questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Related practice questions

Related AWS provider topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

You want to pass a complex object type to a module, but you need to ensure specific attributes are present. How do you define this in the variable block?

Question 2hardmultiple choice
Full question →

Your organization uses HCP Terraform with projects to group workspaces by business unit. A compliance rule states that any workspace in the 'finance' project must have a cost estimation check that fails the run if the monthly cost increase exceeds $500. You have enabled cost estimation in the organization settings. What should you do next to enforce this rule?

Question 3hardmultiple choice
Full question →

When migrating from local state to HCP Terraform, which command is used to initialize the migration?

Question 4hardmultiple choice
Full question →

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?

Question 5hardmultiple choice
Full question →

When using 'replace_triggered_by', what happens if the referenced resource is deleted?

Question 6hardmultiple choice
Full question →

A provider binary is not found in the local Terraform registry cache. What command should you run to force Terraform to download the provider again?

Question 7hardmultiple choice
Full question →

Which HCP Terraform feature allows you to manage infrastructure across multiple cloud accounts using a single organization?

Question 8hardmultiple choice
Full question →

You are using a dynamic block to define multiple 'tag' blocks inside an AWS resource. The dynamic block is failing because it expects a set of objects but receives a flat list. Which function best prepares your data?

Question 9hardmultiple choice
Full question →

If a developer wants to use a provider that is not in the public registry, can they still use it?

Question 10hardmulti select
Full question →

Which TWO of the following are limitations of 'ignore_changes'?

Question 11hardmultiple choice
Full question →

During a refactor, an engineer renames the Terraform address of an aws_s3_bucket from aws_s3_bucket.logs to aws_s3_bucket.audit_logs in the configuration, keeping every argument identical. The bucket holds production logs. What is the safest way to apply this change without destroying and recreating the bucket?

Question 12hardmultiple choice
Review the full subnetting walkthrough →

A configuration defines a dynamic block that generates ingress rules for an aws_security_group from a list of objects. Each object has a from_port, to_port, and protocol attribute, and one object also carries an extra cidr_blocks list. You want every generated rule to include the from_port, to_port, and protocol values, and to include cidr_blocks only when it is present, without writing a separate block for the odd entry. Which approach satisfies this?

Question 13hardmultiple choice
Full question →

Your organization uses HCP Terraform with the AWS provider. A Sentinel policy set is attached to the 'production' project with a soft-mandatory policy that checks for required tags on all AWS resources. During a run, the policy fails because a developer forgot to add a 'CostCenter' tag to an EC2 instance. What is the outcome of the run, and what can the developer do?

Question 14hardmultiple choice
Full question →

If a module has a required variable but you do not provide it in the calling configuration, what happens?

Question 15hardmultiple choice
Full question →

How can you view the detailed breakdown of cost estimates for a specific Terraform plan?

Question 16hardmultiple choice
Full question →

A Sentinel policy is failing on a cost estimation result. What is the most likely cause if the cost estimation feature is enabled but the policy still fails?

Question 17hardmulti select
Full question →

Which TWO of the following are valid ways to pass a provider configuration to a child module?

Question 18hardmultiple choice
Full question →

What happens if you set 'ignore_changes = all' in a resource lifecycle block?

Question 19hardmulti select
Full question →

A platform engineer is preparing a Terraform configuration that will run in an environment where the AWS provider must be pinned to a specific minor version, and the provider must be sourced from the public Terraform Registry. The engineer also wants to ensure that `terraform init` records the selected version and checksums for later verification. Which two actions should the engineer take? (Choose two.)

Question 20hardmultiple choice
Full question →

An `aws_instance` resource has `lifecycle { ignore_changes = [ami] }`. A security team updates the AMI ID in the Terraform configuration to a new hardened image. The instance is currently running an older AMI. What does Terraform plan for this resource during the next `terraform apply`?

These AWS provider practice questions are part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style AWS provider questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.