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?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
You can configure Terraform to log to a file using the TF_LOG environment variable.
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
terraform apply will fail if you have not run terraform plan first to update the plan output.
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
Infrastructure as Code (laC) can be stored in a version control system along with application code.
If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
Multiple team members are collaborating on infrastructure using Terraform and want to format the* Terraform code following standard Terraform-style convention.
How should they ensure the code satisfies conventions?
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.
Which variable type could you use for this input?
You can reference a resource created with for_each using a Splat ( *) expression.
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
What kind of configuration block will create an infrastructure object with settings specified within the block?
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
Which method for sharing Terraform configurations fulfills the following criteria:
1. Keeps the configurations confidential within your organization
2. Support Terraform’s semantic version constrains
3. Provides a browsable directory
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
What feature stops multiple users from operating on the Terraform state at the same time?
You must use different Terraform commands depending on the cloud provider you use.
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?
What type of block is used to construct a collection of nested configuration blocks?
You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
A Terraform backend determines how Terraform loads state and stores updates when you execute which command?
When you use a remote backend that needs authentication, HashiCorp recommends that you:
terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?
Error:
yaml
CopyEdit
Error loading state: AccessDenied: Access Denied
status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging. Which environment variables must be configured to make Terraform's logging more verbose?
Module version is required to reference a module on the Terraform Module Registry.
Terraform configuration (including any module references) can contain only one Terraform provider type.
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.