exam questions

Exam NSE7_PBC-7.2 All Questions

View all questions & answers for the NSE7_PBC-7.2 exam

Exam NSE7_PBC-7.2 topic 1 question 19 discussion

Actual exam question from Fortinet's NSE7_PBC-7.2
Question #: 19
Topic #: 1
[All NSE7_PBC-7.2 Questions]

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 the Variable.tf file and edit its values to match multiple resources.
  • B. Use Ansible and terraform output values to deploy resources.
  • C. Use multiple terraform.tfvars files with a variables.tf file.
  • D. Use the provider.tf file to add all the new values.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rac_sp
4 months, 1 week ago
Selected Answer: C
C is THE most efficient way to acomplish the required task
upvoted 2 times
rac_sp
4 months, 1 week ago
Benefits of This Approach Reusability: Your core configuration files (main.tf, variables.tf) stay the same. Only the .tfvars files need to change for different regions or environments. Scalability: Want to add a new region? Simply create a new .tfvars file—no need to modify existing code. Flexibility: You can easily switch between environments or regions without rewriting the code. Consistency: By defining variables in one place (variables.tf), you reduce the risk of errors and duplication.
upvoted 2 times
...
...
jhonnyjhon
6 months, 3 weeks ago
Answer B,
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...