In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
B;speculative plan runs are automatically triggered when a pull request (PR) is opened or updated, allowing you to preview the potential impact of proposed changes before merging. However, when changes are merged or committed directly to the specified branch, Terraform Cloud initiates a standard plan and apply workflow, not a speculative plan
online research says TRUE
In a Terraform Cloud workspace linked to a version control repository, speculative plan runs do start automatically when you merge or commit changes to the repository. This is designed to give users an early preview of the potential changes to infrastructure, allowing them to review the plan before it is finalized or applied. This automatic behavior helps ensure that changes are validated in the context of the current state of the infrastructure, even before they are manually applied.
pull requests start speculative plans, this occurs before a commit or merge.
https://developer.hashicorp.com/terraform/cloud-docs/run/remote-operations#speculative-plans
It is true because Terraform Cloud can monitor the linked version control repository for changes and automatically trigger a speculative plan run in response to each commit or merge. This allows users to quickly see the expected changes that would result from the proposed change, without actually applying those changes. Speculative plan runs can be a useful tool for catching errors early in the development process and avoiding potentially costly mistakes.
Whether to perform speculative plans on pull requests to the connected repository, to assist in reviewing proposed changes. Automatic speculative plans are enabled by default, but you can disable them for any workspace.
https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings/vcs
upvoted 1 times
...
Log in to ExamTopics
Sign in:
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.
nickylake
4 days, 23 hours agoArjun2024USA
2 days, 5 hours agovortegon
11 months, 4 weeks agoFarziWaliMarzi
1 year, 7 months agoprincajen
1 year, 9 months agoInformationOverload
1 year, 10 months ago