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, 2024No CommentsREAD 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, 2024No CommentsREAD 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:...

September 19, 2024No CommentsREAD MORE +

When does Sentinel enforce policy logic during a Terraform Cloud run?

When does Sentinel enforce policy logic during a Terraform Cloud run?A . Before the plan phaseB . During the plan phaseC . Before the apply phaseD . After the apply phaseView AnswerAnswer: C Explanation: Sentinel policies are checked after the plan stage of a Terraform run, but before it can...

September 18, 2024No CommentsREAD MORE +

Which of these ate features of Terraform Cloud? Choose two correct answers.

Which of these ate features of Terraform Cloud? Choose two correct answers.A . Automated infrastructure deployment visualizationB . Automatic backupsC . A web-based user interface (Ul)D . Remote state storageView AnswerAnswer: CD Explanation: These are features of Terraform Cloud, which is a hosted service that provides a web-based UI, remote...

September 17, 2024No CommentsREAD MORE +

What is one disadvantage of using dynamic blocks in Terraform?

What is one disadvantage of using dynamic blocks in Terraform?A . Dynamic blocks can construct repeatable nested blocksB . Terraform will run more slowlyC . They cannot be used to loop through a list of valuesD . They make configuration harder to read and understandView AnswerAnswer: D Explanation: This is...

September 17, 2024No CommentsREAD 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...

September 15, 2024No CommentsREAD MORE +

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?A . Only Terraform Cloud organization owners can set workspace variables on VCS connected workspacesB . Commit a change to the VCS working directory and branch that the Terraform Cloud...

September 15, 2024No CommentsREAD MORE +

How can you do this safely?

You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?A . Copy the sensitive variables into your Terraform codeB . Store the sensitive variables in a secure_varS.tf fileC . Store the sensitive variables as plain text...

September 15, 2024No CommentsREAD MORE +

Only the user that generated a plan may apply it.

Only the user that generated a plan may apply it.A . TrueB . FalseView AnswerAnswer: B Explanation: Any user with permission to apply a plan can apply it, not only the user that generated it. This allows for collaboration and delegation of tasks among team members.

September 14, 2024No CommentsREAD MORE +