Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
- ATrue
- BFalse (correct answer)
Reveal answer & explanationHide answer
The correct answer is B. Option B: False
Page 5 of 19 Β· 368 total questions.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
The correct answer is B. Option B: False
A terraform apply can not _________ infrastructure.
The correct answer is D. Option D: import
You need to constrain the GitHub provider to version 2.1 or greater. Which of the following should you put into the Terraform 0.12 configuration's provider block?
The correct answer is D. Option D: version = ">= 2.1"
You just scaled your VM infrastructure and realized you set the count variable to the wrong value. You correct the value and save your change. What do you do next to make your infrastructure match your configuration?
The correct answer is A. Option A: Run an apply and confirm the planned changes This option scales automatically to match demand.
Terraform provisioners that require authentication can use the ______ block.
The correct answer is A. Option A: connection
Terraform validate reports syntax check errors from which of the following scenarios?
The correct answer is B. Option B: There is missing value for a variable
Which of the following is allowed as a Terraform variable name?
The correct answer is B. Option B: name
What type of block is used to construct a collection of nested configuration blocks?
The correct answer is D. Option D: dynamic
Module variable assignments are inherited from the parent module and do not need to be explicitly set.
The correct answer is B. Option B: False
If writing Terraform code that adheres to the Terraform style conventions, how would you properly indent each nesting level compared to the one above it?
The correct answer is D. Option D: With two spaces
Which of the following is not an action performed by terraform init?
The correct answer is A. Option A: Create a sample main.tf file
HashiCorp Configuration Language (HCL) supports user-defined functions.
The correct answer is B. Option B: False
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
The correct answer is B. Option B: Commit a change to the VCS working directory and branch that the Terraform Cloud workspace is connected to
Explanation
Terraform Cloud, now HCP Terraform, provides managed remote runs, state, collaboration, policy, and governance.
Terraform and Terraform providers must use the same major version number in a single configuration.
The correct answer is B. Option B: False
Which statement describes a goal of infrastructure as code?
The correct answer is D. Option D: The programmatic configuration of resources
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
The correct answer is C. Option C: When a change is made to the resources via the Azure Cloud Console, the current state file will not be updated
Explanation
Terraform state maps resource addresses to remote objects and stores metadata needed to calculate changes efficiently.
You need to deploy resources into two different cloud regions in the same Terraform configuration. To do that, you declare multiple provider configurations as follows: What meta-argument do you need to configure in a resource block to deploy the resource to the `us-west-2` AWS region?

The correct answer is C. Option C: provider = aws.west
Explanation
A provider plugin implements resource types and data sources that communicate with an external API.
You have declared an input variable called environment in your parent module. What must you do to pass the value to a child module in the configuration?
The correct answer is C. Option C: Declare a node_count input variable for child module
Explanation
A Terraform module packages related resources into a reusable configuration with defined inputs and outputs. A child module is called by another module to reuse and encapsulate infrastructure configuration. An input variable parameterizes a module so callers can provide environment-specific values.
If a module declares a variable with a default, that variable must also be defined within the module.
The correct answer is B. Option B: False
Which option cannot be used to keep secrets out of Terraform configuration files?
The correct answer is B. Option B: Mark the variable as sensitive
Explanation
Marking a value sensitive redacts it from routine CLI output, though it can still be stored in state.
Showing questions 81β100 of 368 Β· Page 5 of 19