You ' re writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file ' s contents as a string?
You are responsible for a set of infrastructure that is managed by two workspaces: example-network and example-compute . The example-compute workspace uses data from output values configured in the example-network workspace and must be deployed afterward. Currently, this is a manual process:
An operator deploys changes to the example-network workspace.
They manually copy the output values from the example-network workspace to input variables configured for the example-compute workspace.
They deploy the example-compute workspace.
Which HCP Terraform features can you use to automate this process?
Pick the two correct responses below.
Select the command that doesn’t cause Terraform to refresh its state.
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?
You can reference a resource created with for_each using a Splat ( *) expression.
What does Terraform not reference when running a terraform apply -refresh-only ?
Which of the following is not a way to trigger terraform destroy?
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
When declaring a variable, setting the sensitive argument to true will prevent the value from being stored in the state file.
Which of the following should you put into the required_providers block?
|
PDF + Testing Engine
|
|---|
|
$49.5 |
|
Testing Engine
|
|---|
|
$37.5 |
|
PDF (Q&A)
|
|---|
|
$31.5 |
HashiCorp Free Exams |
|---|
|