ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 44 - NSE7_PBC-7.2 discussion

Report
Export

Your goal is to deploy resources in multiple places and regions in the public cloud using Terraform.

What is the most efficient way to deploy resources without changing much of the Terraform code?

A.
Use multiple terraform.tfvars files With a variables.tf file.
Answers
A.
Use multiple terraform.tfvars files With a variables.tf file.
B.
Use the provider. tf file to add all the new values
Answers
B.
Use the provider. tf file to add all the new values
C.
Install and configure two Terraform staging servers to deploy resources.
Answers
C.
Install and configure two Terraform staging servers to deploy resources.
D.
Use the variable, tf file and edit its values to match multiple resources
Answers
D.
Use the variable, tf file and edit its values to match multiple resources
Suggested answer: A

Explanation:

When deploying resources in multiple places and regions in the public cloud using Terraform, the most efficient way is:

A) Use multiple terraform.tfvars files with a variables.tf file.

Terraform.tfvars File: This file is used to assign values to variables defined in your Terraform configuration. By having multiple .tfvars files, you can define different sets of values for different deployments, such as for different regions or environments, without changing the main configuration.

Variables.tf File: This file contains the definition of variables that will be used within your Terraform configuration. It works in conjunction with terraform.tfvars files, allowing you to parameterize your configuration so that you can deploy the same template in multiple environments with different variables.

asked 18/09/2024
Susan Brady
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first