What features does the hosted service Terraform Cloud provide? (Choose two.)

What features does the hosted service Terraform Cloud provide? (Choose two.)A . Automated infrastructure deployment visualization B. Automatic backups C. Remote state storage D. A web-based user interface (UI)View AnswerAnswer: C,D Explanation: https://www.terraform.io/enterprise/admin/infrastructure/backup-restore

October 4, 2022 No Comments READ MORE +

Which of the following is not an action performed by terraform init?

Which of the following is not an action performed by terraform init?A . Create a sample main.tf file B. Initialize a configured backend C. Retrieve the source code for all referenced modules D. Load required provider pluginsView AnswerAnswer: A

October 3, 2022 No Comments READ MORE +

A Terraform local value can reference other Terraform local values.

A Terraform local value can reference other Terraform local values.A . True B. FalseView AnswerAnswer: A Explanation: "The expressions in local values are not limited to literal constants; they can also reference other values in the module in order to transform or combine them, including variables, resource attributes, or other...

October 3, 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 versioning B. Append ?ref=v1.0.0 argument to the source path C. Add version = "1.0.0"...

October 3, 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 S3 B. Artifactory C. Git D. Terraform CloudView...

October 3, 2022 No Comments READ MORE +

What value should you enter for the ami argument in the AWS instance resource?

Examine the following Terraform configuration, which uses the data source for an AWS AMI. What value should you enter for the ami argument in the AWS instance resource?A . aws_ami.ubuntu B. data.aws_ami.ubuntu C. data.aws_ami.ubuntu.id D. aws_ami.ubuntu.idView AnswerAnswer: C Explanation: resource "aws_instance" "web" { ami= data.aws_ami.ubuntu.id Reference: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance

October 3, 2022 No Comments READ MORE +

If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?A . Run terraform refresh B. It will happen automatically C. Manually update the state fire D. Run terraform importView AnswerAnswer: A Explanation: https://www.terraform.io/cli/commands/refresh#:~:text=The%20terraform%20refresh%20command%20reads%20the%20current%20settings%20from%20all%20managed%20remote%20objects%20and%20updates%20the%20Terraform%20state%20to%20match.

October 3, 2022 No Comments READ MORE +

In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.

In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.A . True B. FalseView AnswerAnswer: A Explanation: Outside of the required_providers block, Terraform configurations always refer to providers by their local names. Reference: https://www.terraform.io/docs/language/providers/requirements.html https://www.terraform.io/language/providers/requirements#local-names

October 3, 2022 No Comments READ MORE +

What will happen if you delete the VM using the cloud provider console, and run terraform apply again without changing any Terraform code?

You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you delete the VM using the cloud provider console, and run terraform apply again without changing any Terraform code?A . Terraform...

October 2, 2022 No Comments READ MORE +

A Terraform provider is not responsible for:

A Terraform provider is not responsible for:A . Understanding API interactions with some service B. Provisioning infrastructure in multiple clouds C. Exposing resources and data sources based on an API D. Managing actions to take based on resource differencesView AnswerAnswer: B Explanation: https://www.terraform.io/language/providers

October 2, 2022 No Comments READ MORE +