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.

Question 1Choose one

You are managing a critical production environment where applying a configuration that accidentally changes the `user_data` of an EC2 instance would trigger a replacement, causing unacceptable downtime. You want to ensure that any future `terraform apply` fails if it attempts to replace this specific instance due to a change in `user_data`. Which lifecycle configuration should you apply?

Question 2Choose one

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?

Question 3Choose one

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?

Question 4Choose one

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?

Question 5Choose one

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?

Question 6Choose one

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?

Question 7Choose one

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)?

Question 8Choose one

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.

Create account