Which of the following is not a benefit of adopting infrastructure as code?
- AInterpolation (correct answer)
- BReusability of code
- CVersioning
- DAutomation
Reveal answer & explanationHide answer
The correct answer is A. Option A: Interpolation
Page 11 of 19 · 368 total questions.
Which of the following is not a benefit of adopting infrastructure as code?
The correct answer is A. Option A: Interpolation
Module version is required to reference a module on the Terraform Module Registry.
The correct answer is B. Option B: False
While deploying a virtual machine, the first launch user_data script fails due to race condition with another resource deployed during the same Terraform run. What is the least disruptive method to correct the issue?
The correct answer is A. Option A: Run terraform taint against the virtual machine’s resource name, then terraform apply
Explanation
terraform apply executes the dependency-aware changes required to make infrastructure match the configuration.
The public Module Registry is free to use.
The correct answer is A. Option A: True
Both Terraform Cloud and Terraform Enterprise support policy as code (Sentinel).
The correct answer is A. Option A: True
You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?
The correct answer is C. Option C: Dynamic blocks
Explanation
A dynamic block programmatically generates repeatable nested blocks from a collection.
Which of the following module source paths does not specify a remote module?
The correct answer is A. Option A: source = “./modules/consul”
Explanation
A Terraform module packages related resources into a reusable configuration with defined inputs and outputs.
You have a list of numbers that represents the number of free CPU cores on each virtual cluster: numcpus = [ 18, 3, 7, 11, 2 ] What Terraform function could you use to select the largest number from the list?
The correct answer is A. Option A: max(numcpus)
Variables declared within a module are accessible outside of the module.
The correct answer is B. Option B: False
Which of the following is not a valid Terraform variable type?
The correct answer is C. Option C: array
What is a key benefit of the Terraform state file?
The correct answer is D. Option D: A state file represents a source of truth for resources provisioned with Terraform
Explanation
Terraform state maps resource addresses to remote objects and stores metadata needed to calculate changes efficiently.
Which of these statements about Terraform Enterprise workspaces is false?
The correct answer is B. Option B: You must use the CLI to switch between workspaces
Define the purpose of state in Terraform.
The correct answer is A. Option A: State is used to map real world resources to your configuration and keep track of metadata
Which backend does the Terraform CLI use by default?
The correct answer is D. Option D: Local
Using the terraform state rm command against a resource will destroy it.
The correct answer is B. Option B: False
Which method for sharing Terraform configurations keeps them confidential within your organization, supports Terraform’s semantic version constraints, and provides a browsable directory?
The correct answer is B. Option B: Terraform Cloud/Terraform Enterprise private module registry
Explanation
A Terraform module packages related resources into a reusable configuration with defined inputs and outputs. Terraform Cloud, now HCP Terraform, provides managed remote runs, state, collaboration, policy, and governance.
How would you refer to the indexing instance from the below configuration?

The correct answer is D. Option D: aws_instance.web[“indexing”]
Which feature is not included in Terraform Cloud’s free tier?
The correct answer is C. Option C: Audit logging
When should you run terraform init?
The correct answer is C. Option C: After you start coding a new Terraform project and before you run terraform plan for the first time
Explanation
terraform plan compares configuration and state with real infrastructure and previews the proposed changes without applying them.
Terraform configuration (including any module references) can contain only one Terraform provider type.
The correct answer is B. Option B: False
Showing questions 201–220 of 368 · Page 11 of 19