Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 169 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 169
Topic #: 1
[All Terraform Associate Questions]

As a member of an operations team that uses infrastructure as code (IaC) practices, you are tasked with making a change to an infrastructure stack running in a public cloud.
Which pattern would follow IaC best practices for making a change?

  • A. Clone the repository containing your infrastructure code and then run the code
  • B. Use the public cloud console to make the change after a database record has been approved
  • C. Make the change programmatically via the public cloud CLI
  • D. Make the change via the public cloud API endpoint
  • E. Submit a pull request and wait for an approved merge of the proposed changes
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
camps
1 year, 7 months ago
Selected Answer: E
E. Submit a pull request and wait for an approved merge of the proposed changes. As a member of an operations team that uses infrastructure as code (IaC) practices, the best practice for making a change to an infrastructure stack running in a public cloud is to submit a pull request (PR) and wait for an approved merge of the proposed changes. This approach follows the best practice of using version control for infrastructure code and collaborating through pull requests to review and approve changes. By following this process, changes to the infrastructure stack are tracked, reviewed, and approved in a controlled and auditable way.
upvoted 3 times
...
fedeX
1 year, 10 months ago
Selected Answer: E
Following IaC best practices, the recommended pattern for making a change to an infrastructure stack running in a public cloud would be to submit a pull request and wait for an approved merge of the proposed changes. This approach allows you to use version control and review processes to ensure that changes to the infrastructure are carefully reviewed and tested before being applied. It also allows you to track changes over time and roll back any problematic changes if necessary. Option A (cloning the repository and running the code) is a good first step, but it does not address the need for review and approval of the changes. Option B (using the public cloud console) is generally not recommended, as it bypasses the version control and review processes that are central to IaC best practices. Options C (making the change programmatically via the public cloud CLI) and D (making the change via the public cloud API endpoint) are both more in line with IaC best practices, as they allow you to automate the process of making changes, but they still do not address the need for review and approval of the changes.
upvoted 2 times
...
InformationOverload
1 year, 11 months ago
Selected Answer: E
We should follow CI/CD best practices, the answer is E.
upvoted 2 times
...
dani88ge
2 years, 1 month ago
Selected Answer: E
It's E
upvoted 1 times
...
depal_dhir
2 years, 2 months ago
Selected Answer: E
The best practice is PR (Pull Request)
upvoted 2 times
...
keiffo2
2 years, 2 months ago
CI-CD best practices recommend pull requests i.e. merge the branch to main, in order to run a pipeline request - which kicks off a terraform deploy
upvoted 1 times
keiffo2
2 years, 2 months ago
So Answer E
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 ...