HashiCorp Certified: Terraform Authoring and Operations Professional
Validates professional-level skills in authoring dynamic Terraform HCL configuration and establishing scalable, collaborative workflows. Covers resource lifecycle management, developing and troubleshooting dynamic configuration with functions and meta-arguments, collaborative workflows with remote state and automation, creating and maintaining reusable modules, configuring and troubleshooting providers, and HCP Terraform governance including policy as code. Lab-based exam requiring hands-on Terraform operations with the AWS provider. Prerequisite: Terraform Associate certification recommended.
Sample questions
A free preview of 15 source-grounded questions from this exam — answers and explanations included.
- Q1Develop and Troubleshoot Dynamic Configurationmedium
An engineer is debugging a for_each iteration in a SaaS multi-tenant module where someone passed a list of strings directly and Terraform rejected it, and the engineer must decide how to coerce the input correctly. Per the Terraform language documentation on the for_each meta-argument, which option matches?
- A.The for_each meta-argument implicitly converts lists and tuples to sets, so a bare list of strings is always a valid input value for resource and module blocks.
- B.It accepts maps where each key becomes the instance identifier, and sets of strings created using toset() since for_each does not implicitly convert lists or tuples to sets.Correct answer
- C.The for_each meta-argument accepts only objects whose top-level attributes are strings, and never accepts maps or sets as the iteration value for resource or module blocks.
Sources
Questions are grounded in 150 references from official and authoritative materials.