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 fileB . Initialize a configured backendC . Retrieve the source code for all referenced modulesD . Load required provider pluginsView AnswerAnswer: A

August 30, 2021 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

August 30, 2021 No Comments READ MORE +

How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?

How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?A . It can execute Terraform runs on dedicated infrastructure on premises or in Terraform CloudB . It doesn't show the output of a terraform apply locallyC . It is only available to paying customersD...

August 30, 2021 No Comments READ MORE +

What command should be used to tell Terraform to no longer manage the resource?

A fellow developer on your team is asking for some help in refactoring their Terraform code. As part of their application’s architecture, they are going to tear down an existing deployment managed by Terraform and deploy new. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep...

August 30, 2021 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"...

August 30, 2021 No Comments READ MORE +

Which of the following is not true of Terraform providers?

Which of the following is not true of Terraform providers?A . Providers can be written by individualsB . Providers can be maintained by a community of usersC . Some providers are maintained by HashiCorpD . Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on Terraform providersE ....

August 30, 2021 No Comments READ MORE +

What meta-argument do you need to configure in a resource block to deploy the resource to the “us-west-2” AWS region?

You need to deploy resources into two different cloud regions in the same Terraform configuration. To do that, you declare multiple provider configurations as follows: What meta-argument do you need to configure in a resource block to deploy the resource to the “us-west-2” AWS region?A . alias = westB ....

August 30, 2021 No Comments READ MORE +

Terraform provisioners can be added to any resource block.

Terraform provisioners can be added to any resource block.A . TrueB . FalseView AnswerAnswer: A

August 30, 2021 No Comments READ MORE +

When does terraform apply reflect changes in the cloud environment?

When does terraform apply reflect changes in the cloud environment?A . ImmediatelyB . However long it takes the resource provider to fulfill the requestC . After updating the state fileD . Based on the value provided to the -refresh command line argumentE . None of the aboveView AnswerAnswer: E

August 29, 2021 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.ubuntuB . data.aws_ami.ubuntuC . data.aws_ami.ubuntu.idD . 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

August 29, 2021 No Comments READ MORE +