
HashiCorp Certified:Terraform Authoring and Operations Professional
Domain 4Objective 2
4b TERRAFORM-AUTHORING-AND-OPERATIONS-PROFESSIONAL Practice Questions (Page 1)
Part of the Create, maintain, and use Terraform modules domain, which makes up ~13% of our current practice bank. HashiCorp does not publish an official question count, but from its 240-minute exam (~95–160 total, ~12–21 in this domain), expect 3–5 from this objective — we provide 16 practice questions to prepare you well beyond it. (estimate)
16questions here
4free pages
5concepts
Questions 1–5
- 1
A root configuration includes a module that creates an AWS S3 bucket and outputs the bucket ARN. A separate resource creates an S3 bucket policy that references the bucket ARN. The developer writes: resource "aws_s3_bucket_policy" "policy" { bucket = module.bucket.bucket_arn policy = "..." } What is the execution order?
Select an answer first - 2
Which expression is valid for using a module output as a value in another resource?
Select an answer first - 3
A root configuration includes two modules: one creates an AWS VPC and outputs the VPC ID, and the other creates a subnet and needs the VPC ID. The subnet module also outputs the subnet ID, which is used by a separate resource in the root configuration. How does Terraform determine the execution order?
Select an answer first - 4
A team uses a module from the Terraform Registry to create Google Cloud Pub/Sub topics. They have been using version 1.0.0. They want to upgrade to the latest 1.x version but are worried about a potential 2.0 release. They also want to ensure that any future 1.x version is acceptable. Which version constraint should they use?
Select an answer first - 5
A root configuration includes a module that creates an Azure App Service plan and outputs its ID. A separate resource creates an App Service and needs the plan ID. The developer writes: resource "azurerm_app_service" "app" { name = "myapp" location = "East US" resource_group_name = "rg" app_service_plan_id = module.app_service_plan.plan_id } What is the execution order?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by HashiCorp. “TERRAFORM-AUTHORING-AND-OPERATIONS-PROFESSIONAL” is a trademark of its owner, used for identification only.