Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?
You use a cloud provider account that is shared with other team members. You previously used Terraform to create a load balancer that listens on port 80. After application changes, you updated the Terraform code to change the port to 443.
You run terraform plan and see that the execution plan shows the port changing from 80 to 443 like you intended and step away to grab some coffee.
In the meantime, another team member manually changes the load balancer port to 443 through the cloud provider console before you get back to your desk.
What will happen when you run terraform apply upon returning to your desk?
Variables declared within a module are accessible outside of the module.
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
Which of the following statements about Terraform modules is not true?
Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this security control?
A child module can always access variables declared in its parent module.
Which command(s) adds existing resources in a public cloud into Terraform state?
What is the provider for this resource?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
What command can you run to generateDOT (Graphviz)formatted data to visualize Terraform dependencies?
Terraform providers are always installed from the Internet.
Which of the following is not a valid source path for specifying a module?
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.
Which of the following is not a valid Terraform variable type?
A module block is shown in the Exhibit space of this page. When you use a module block to reference a module from the Terraform Registry such as the one in the example, how do you specify version 1.0.0 of the module?
Using the terraform state rm command against a resource will destroy it.
Which of the following is not a valid string function in Terraform?
What is a key benefit of the Terraform state file?
When does Terraform create the .terraform.lock.hc1 file?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
terraform plan updates your state file.
Before you can use a remote backend, you must first execute terra-form init.
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
How does Terraform manage most dependencies between resources?
Which option cannot be used to keep secrets out of Terraform configuration files?
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?
Define the purpose of state in Terraform.
In a HCP Terraform/Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
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?
Why does this backend configuration not follow best practices?
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?
terraform validate confirms thesyntaxof Terraform files.
Select the command that doesn’t cause Terraform to refresh its state.
terraform init creates an example main.tf file in the current directory.
Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
The_________determines how Terraform creates, updates, or delete resources.
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
HashiCorp Configuration Language (HCL) supports user-denned functions.
What does this code do?
terraform { required_providers { aws = ">= 3.0" }}
Which provider authentication method prevents credentials from being stored in the state file?
When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
Which of the following module source paths does not specify a remote module?
You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses)
Where can Terraform not load a provider from?
terraform validate uses provider APIs to verify your infrastructure settings.
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
Which of the following is true about terraform apply?(Pick 2 correct responses)
When do you need to explicitly execute Terraform in refresh-only mode?
How would you output returned values from a child module in the Terraform CLI output?
How could you reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?