NSE7_PBC-7.2 · Question #79
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?
The correct answer is A. Use multiple terraform.tfvars files With a variables.tf file. 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…
Question
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?
Options
- AUse multiple terraform.tfvars files With a variables.tf file.
- BUse the provider. tf file to add all the new values
- CInstall and configure two Terraform staging servers to deploy resources.
- DUse the variable, tf file and edit its values to match multiple resources
How the community answered
(48 responses)- A79% (38)
- B6% (3)
- C13% (6)
- D2% (1)
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 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.
Topics
Community Discussion
No community discussion yet for this question.