If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.

If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.A . TrueB . FalseView AnswerAnswer: A Explanation: If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you...

February 3, 2024 No Comments READ MORE +

What does Terraform use the .terraform.lock.hc1 file for?

What does Terraform use the .terraform.lock.hc1 file for?A . There is no such fileB . Tracking specific provider dependenciesC . Preventing Terraform runs from occurringD . Storing references to workspaces which are lockedView AnswerAnswer: B Explanation: The .terraform.lock.hcl file is a new feature in Terraform 0.14 that records the exact...

February 3, 2024 No Comments READ MORE +

What does the default "local" Terraform backend store?

What does the default "local" Terraform backend store?A . tfplan filesB . State fileC . Provider pluginsD . Terraform binaryView AnswerAnswer: B Explanation: The default “local” Terraform backend stores the state file in a local file named terraform.tfstate, which can be used to track and manage the state of your...

February 2, 2024 No Comments READ MORE +

Which Terraform command should you use?

As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?A . terraform refresh -upgradeB . terraform apply -upgradeC . terraform init -upgradeD . terraform providers -upgradeView AnswerAnswer: C Explanation: This command will upgrade the plugins to the...

February 2, 2024 No Comments READ MORE +

Which options will produce a list of the IDs?

You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.A . [ var.list [ * ] , id ]B . [ for o in var.list : o.Id...

February 2, 2024 No Comments READ MORE +

What is the workflow for deploying new infrastructure with Terraform?

What is the workflow for deploying new infrastructure with Terraform?A . Write Terraform configuration, run terraform init to initialize the working directory or workspace, and run terraform applyB . Write Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructureC . Write Terraform configuration,...

February 2, 2024 No Comments READ MORE +

How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration? A . aws_instance.example.ebs_block_device[sda2,sda3).volume_idB . aws_lnstance.example.ebs_block_device.[*].volume_idC . aws_lnstance.example.ebs_block_device.volume_idsD . aws_instance.example-ebs_block_device.*.volume_idView AnswerAnswer: D Explanation: This is the correct way to reference the volume IDs associated with the ebs_block_device blocks in this configuration, using the splat expression syntax....

February 2, 2024 No Comments READ MORE +

When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?

When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?A . You can import infrastructure without corresponding Terraform codeB . Terraform will generate the corresponding configuration files for youC . Before you run terraform ImportD . After you run terraform importView AnswerAnswer:...

February 2, 2024 No Comments READ MORE +

Which command will migrate your current state file to the new S3 remote backend?

You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf. Which command will migrate your current state file to the new S3 remote backend?A . terraform stateB . terraform initC . terraform pushD . terraform refreshView...

January 31, 2024 No Comments READ MORE +

When do changes invoked by terraform apply take effect?

When do changes invoked by terraform apply take effect?A . After Terraform has updated the state fileB . Once the resource provider has fulfilled the requestC . ImmediatelyD . None of the above are correctView AnswerAnswer: B Explanation: Changes invoked by terraform apply take effect once the resource provider has...

January 31, 2024 No Comments READ MORE +