What is the workflow for deploying new infrastructure with Terraform?
What is the workflow for deploying new infrastructure with Terraform?A . terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructureB . Write a Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new...
HashiCorp Configuration Language (HCL) supports user-defined functions.
HashiCorp Configuration Language (HCL) supports user-defined functions.A . TrueB . FalseView AnswerAnswer: B
When running the command terraform taint against a managed resource you want to force recreation upon, Terraform will immediately destroy and recreate the resource.
When running the command terraform taint against a managed resource you want to force recreation upon, Terraform will immediately destroy and recreate the resource.A . TrueB . FalseView AnswerAnswer: B
How do you specify version 1.0.0?
When using a module block to reference a module stored on the public Terraform Module Registry such as: How do you specify version 1.0.0?A . Modules stored on the public Terraform Module Registry do not support versioningB . Append ?ref=v1.0.0 argument to the source pathC . Add version = "1.0.0"...
Which command would you use?
You would like to reuse the same Terraform configuration for your development and production environments with a different state file for each. Which command would you use?A . terraform importB . terraform workspaceC . terraform stateD . terraform initView AnswerAnswer: D
Which of the following backends would not work?
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to begin storing the state file in a central location. Which of the following backends would not work?A . Amazon S3B . ArtifactoryC . GitD . Terraform CloudView...
Why will the apply fail?
You write a new Terraform configuration and immediately run terraform apply in the CLI using the local backend. Why will the apply fail?A . Terraform needs you to format your code according to best practices firstB . Terraform needs to install the necessary plugins firstC . The Terraform CLI needs...
Which provisioner invokes a process on the resource created by Terraform?
Which provisioner invokes a process on the resource created by Terraform?A . remote-execB . null-execC . local-execD . fileView AnswerAnswer: A Explanation: The remote-exec provisioner invokes a script on a remote resource after it is created. Reference: https://www.terraform.io/docs/language/resources/provisioners/remote-exec.html
Where in your Terraform configuration do you specify a state backend?
Where in your Terraform configuration do you specify a state backend?A . The terraform blockB . The resource blockC . The provider blockD . The datasource blockView AnswerAnswer: A Explanation: Backends are configured with a nested backend block within the top-level terraform block. Reference: https://www.terraform.io/docs/language/settings/backends/configuration.html
What are the two things you must do to achieve this?
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.)A . Provision new VMs...