What does Terraform not reference when running a terraform apply -refresh-only?

What does Terraform not reference when running a terraform apply -refresh-only?A . State fileB . CredentialsC . Cloud providerD . Terraform resource definitions in configuration filesView AnswerAnswer: D Explanation: When running a terraform apply -refresh-only, Terraform does not reference the configuration files, but only the state file, credentials, and cloud...

September 23, 2024 No Comments READ MORE +

_______backends support state locking.

_______backends support state locking.A . AllB . NoC . SomeD . Only localView AnswerAnswer: C Explanation: Some backends support state locking, which prevents other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss. Not all backends support this feature, and...

September 23, 2024 No Comments READ MORE +

What will happen you run terraform apply in the working directory again?

You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file. What will happen you run terraform apply in the working directory again?A . Terraform...

September 23, 2024 No Comments READ MORE +

What kind of configuration block will create an infrastructure object with settings specified within the block?

What kind of configuration block will create an infrastructure object with settings specified within the block?A . providerB . stateC . dataD . resourceView AnswerAnswer: D Explanation: This is the kind of configuration block that will create an infrastructure object with settings specified within the block. The other options are...

September 21, 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,...

September 21, 2024 No Comments READ MORE +

What will happen?

You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully. Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags....

September 21, 2024 No Comments READ MORE +

Which pattern would follow laC best practices for making a change?

As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?A . Make the change via the public cloud API...

September 21, 2024 No Comments READ MORE +

Outside of the required_providers block, Terraform configurations always refer to providers by their local names.

Outside of the required_providers block, Terraform configurations always refer to providers by their local names.A . TrueB . FalseView AnswerAnswer: B Explanation: Outside of the required_providers block, Terraform configurations can refer to providers by either their local names or their source addresses. The local name is a short name that...

September 20, 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....

September 20, 2024 No Comments READ MORE +

A Terraform provider is NOT responsible for:

A Terraform provider is NOT responsible for:A . Exposing resources and data sources based on an APUIB . Managing actions to take based on resources differencesC . Understanding API interactions with some serviceD . Provisioning infrastructure in multipleView AnswerAnswer: D Explanation: This is not a responsibility of a Terraform provider,...

September 19, 2024 No Comments READ MORE +