Refresh CMD Flashcards

1
Q

What is the purpose of the refresh functionality in TerraForm?

A

The refresh functionality allows TerraForm to know about manual modifications made to the infrastructure, enabling it to revert to the original desired state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When does TerraForm automatically refresh the state?

A

TerraForm automatically refreshes the state when running the TerraForm Plan or TerraForm Apply commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens when you run TerraForm Plan?

A

The first step is to refresh the infrastructure state and match it to the desired configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What can happen if you manually run the TerraForm refresh command?

A

Manually running the TerraForm refresh command can lead to a dangerous situation where the entire TF state file may be removed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What should you do if the TerraForm state file is empty after a manual refresh?

A

You can revert to the earlier version using the TF State backup that is available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is the TerraForm Refresh command still recommended in newer versions?

A

The TerraForm Refresh command is deprecated in newer versions, and it’s recommended to use the refresh option with TerraForm Plan and Apply.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a best practice regarding remote backends like S3?

A

Enabling versioning in remote backends like S3 allows you to revert to earlier versions of the state file if it gets messed up.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What should you do with resources created for practicals?

A

Make sure to destroy all the resources that you create for your practicals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly