ExamGecko
Question list
Search
Search

Question 188 - Terraform Associate 003 discussion

Report
Export

When do you need to explicitly execute Terraform in refresh-only mode?

A.

Before every terraform plan.

Answers
A.

Before every terraform plan.

B.

Before every terraform apply.

Answers
B.

Before every terraform apply.

C.

Before every terraform import.

Answers
C.

Before every terraform import.

D.

None of the above.

Answers
D.

None of the above.

Suggested answer: C

Explanation:

Purpose of Refresh-Only Mode: Running Terraform in refresh-only mode updates Terraform's state file with the current state of resources in your infrastructure without making changes to the resources themselves.

Context of Terraform Import: When using terraform import, you're adding existing resources to the state file, and running Terraform in refresh-only mode before this operation can ensure that any initial configuration syncs precisely with the actual state.

For more on refresh-only mode in relation to terraform import, refer to Terraform's import documentation.

asked 29/10/2024
MAYKON AZEVEDO
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first