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...

March 8, 2022 No Comments READ MORE +

HashiCorp Configuration Language (HCL) supports user-defined functions.

HashiCorp Configuration Language (HCL) supports user-defined functions.A . TrueB . FalseView AnswerAnswer: B

March 7, 2022 No Comments READ MORE +

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

March 7, 2022 No Comments READ MORE +

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"...

March 7, 2022 No Comments READ MORE +

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

March 7, 2022 No Comments READ MORE +

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...

March 7, 2022 No Comments READ MORE +

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...

March 7, 2022 No Comments READ MORE +

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

March 6, 2022 No Comments READ MORE +

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

March 6, 2022 No Comments READ MORE +

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...

March 6, 2022 No Comments READ MORE +