Which of the below ...
 
Notifications
Clear all

Which of the below features of Terraform can be used for managing small differences between different environments which can act more like completely separate working directories.

1 Posts
1 Users
0 Likes
83 Views
(@salterslloyd)
Posts: 746
Noble Member
Topic starter
 

Which of the below features of Terraform can be used for managing small differences between different environments which can act more like completely separate working directories.

  • A . Repositories
    B. Workspaces
    C. Environment Variables
    D. Backends

Show Answer Hide Answer

Suggested Answer: B

Explanation:

workspaces allow conveniently switching between multiple instances of a single configuration within its single backend. They are convenient in a number of situations, but cannot solve all problems.

A common use for multiple workspaces is to create a parallel, distinct copy of a set of infrastructure in order to test a set of changes before modifying the main production infrastructure. For example, a developer working on a complex set of infrastructure changes might create a new temporary workspace in order to freely experiment with changes without affecting the default workspace.

Non-default workspaces are often related to feature branches in version control. The default workspace might correspond to the "master" or "trunk" branch, which describes the intended state of production infrastructure. When a feature branch is created to develop a change, the developer of that feature might create a corresponding workspace and deploy into it a temporary "copy" of the main infrastructure so that changes can be tested without affecting the production infrastructure. Once the change is merged and deployed to the default workspace, the test infrastructure can be destroyed and the temporary workspace deleted.

https://www.terraform.io/docs/state/workspaces.html

https://www.terraform.io/docs/state/workspaces.html#when-to-use-multiple-workspaces
 
Posted : 05/12/2022 9:51 pm

Latest TA-002-P V1 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: