Which of the following is not a valid source path for specifying a module?
Which option cannot be used to keep secrets out of Terraform configuration files?
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
Terraform configuration can only import modules from the public registry.
Which of the following is not a benefit of adopting infrastructure as code?
terraform validate confirms thesyntaxof Terraform files.
What does Terraform use the .terraform.lock.hc1 file for?
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
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?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
A terraform apply can not _________ infrastructure.
How does Terraform determine dependencies between resources?
What type of block is used to construct a collection of nested configuration blocks?
What is a key benefit of the Terraform state file?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
A Terraform provider is NOT responsible for:
Which command(s) adds existing resources in a public cloud into Terraform state?
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
What information does the public Terraform Module Registry automatically expose about published modules?
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Which command lets you experiment with terraform expressions?
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
A Terraform backend determines how Terraform loads state and stores updates when you execute which command?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
Any user can publish modules to the public Terraform Module Registry.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Which of the following is true about terraform apply?(Pick 2 correct responses)
When should you run terraform init?
terraform validate confirms that your infrastructure matches the Terraform state file.
terraform destroy is the only way to remove infrastructure.
What is one disadvantage of using dynamic blocks in Terraform?
When do you need to explicitly execute Terraform in refresh-only mode?
What does state looking accomplish?
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
Why would you use the -replace flag for terraform apply?
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
You have to initialize a Terraform backend before it can be configured.
A child module can always access variables declared in its parent module.
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
Git::https://example.com/vpc.git)?
What does Terraform not reference when running a terraform apply -refresh-only ?
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.
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
You can access state stored with the local backend by using terraform_remote_state data source.
What type of information can be found on the Terraform Registry when using published modules?
You much initialize your working directory before running terraform validate.
Terraformrequiresthe Go runtime as a prerequisite for installation.
You can develop a custom provider to manage its resources using Terraform.
What does this code do?
terraform { required_providers { aws = ">= 3.0" }}
Select the command that doesn’t cause Terraform to refresh its state.
Which of the following is not a way to trigger terraform destroy?
Only the user that generated a plan may apply it.
What is the provider for this resource?
What is the purpose of the terraform.lock.hcl file in Terraform?
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?
Which of these are features of Terraform Cloud? Choose two correct answers.
You used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform configuration. To be safe, you would like to first see all the infrastructure that Terraform will delete.
Which command should you use to show all the resources that will be deleted? (Pick the 2 correct responses)
Terraform providers are always installed from the Internet.
When do changes invoked by terraform apply take effect?
Terraform providers are part of the Terraform core binary.
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
Which statement describes a goal of Infrastructure as Code (IaC)?
When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.
Which of these ate features of Terraform Cloud? Choose two correct answers.
You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.
What will happen you run terraform apply in the working directory again?
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
Where in your Terraform configuration do you specify a state backend?