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, 2024 No Comments READ 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, 2024 No Comments READ 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, 2024 No Comments READ 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, 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...

September 15, 2024 No Comments READ 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, 2024 No Comments READ 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, 2024 No Comments READ 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, 2024 No Comments READ MORE +

Which of the following provider blocks would allow you to do this?

You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this? A) B) C) D) A . Option AB . Option BC . Option CD . Option DView...

September 14, 2024 No Comments READ MORE +

You can reference a resource created with for_each using a Splat ( *) expression.

You can reference a resource created with for_each using a Splat ( *) expression.A . TrueB . FalseView AnswerAnswer: B Explanation: You cannot reference a resource created with for_each using a splat (*) expression, as it will not work with resources that have non-numeric keys. You need to use a...

September 14, 2024 No Comments READ MORE +