Free TAO-Pro sample questions
Real questions from the Terraform Authoring and Operations Professional practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 8 of 17 free sample questions.
A team is using a Terraform configuration that utilizes the `hashicorp/aws` provider. They need to ensure that the configuration is compatible with any version of the provider that is at least version 5.0.0 but less than 6.0.0. Which version constraint string correctly expresses this requirement?
You are developing a Terraform module that creates an S3 bucket. You want to validate that the bucket name passed via the input variable `bucket_name` meets AWS naming requirements: it must be between 3 and 63 characters long and must start with a lowercase letter or number. You decide to use a `validation` block within the variable declaration. Which configuration correctly implements this?
You are creating a reusable Terraform module for an AWS VPC. The module must accept a list of subnet objects, where each object has a `cidr` (string) and an optional `tags` (map of strings). If `tags` is omitted, it should default to an empty map. Which type constraint correctly defines this input variable using Terraform's optional object attributes feature?
During a `terraform apply`, you encounter a provider error related to API rate limiting. You need to gather more detailed information about the HTTP requests being made by the AWS provider to debug the issue. Which environment variable should you set to enable the most verbose logging specifically for Terraform core and providers?
You are managing a Terraform configuration that uses a local backend. You have been tasked with migrating this state to an S3 backend with DynamoDB locking. After configuring the `backend "s3"` block in your `terraform.tf` file, what is the next command you must run to successfully migrate the existing state data to the new backend?
You are using HCP Terraform (formerly Terraform Cloud) and want to provision infrastructure in AWS. You need to authenticate the AWS provider without hardcoding long-lived access keys in your workspace variables. Which feature should you configure to allow HCP Terraform to authenticate with AWS using temporary, rotating credentials via OpenID Connect (OIDC)?
You are refactoring a Terraform configuration that manages an AWS VPC. You want to extract the security group rules into a separate module. However, the security groups themselves must remain in the root module. You need to pass the security group ID from the root module to the new child module. Which Terraform concept facilitates this data flow?
9 more free samples are waiting
Create a free account to unlock the whole TAO-Pro sample bank, or get full access to all 216 practice questions in the simulator.