All standard backend types support state locking, and remote operations like plan, apply, and destroy.
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
It is best practice to store secret data in the same version control repository as your Terraform configuration.
You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully.
Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags. What will happen?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
Which provider authentication method prevents credentials from being stored in the state file?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
Which of these are features of Terraform Cloud? Choose two correct answers.
Infrastructure as Code (laC) can be stored in a version control system along with application code.
You must use different Terraform commands depending on the cloud provider you use.
When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
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?
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
Which option cannot be used to keep secrets out of Terraform configuration files?
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
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'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?
Terraform configuration (including any module references) can contain only one Terraform provider type.
Before you can use a remote backend, you must first execute terra-form init.
Which command(s) adds existing resources in a public cloud into Terraform state?
You much initialize your working directory before running terraform validate.
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
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)
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?
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?
As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?
Which parameters does terraform import require? Choose two correct answers.
What information does the public Terraform Module Registry automatically expose about published modules?