Recall & Review
beginner
What does the
-auto-approve flag do in Terraform?The
-auto-approve flag skips the manual approval step and applies changes immediately without asking for confirmation.Click to reveal answer
beginner
Why can using
-auto-approve be dangerous?Because it applies changes without review, it can cause unintended infrastructure changes or outages if mistakes are present in the configuration.
Click to reveal answer
beginner
What is a safer alternative to using
-auto-approve?Review the plan output manually and run
terraform apply without -auto-approve to confirm changes before applying.Click to reveal answer
intermediate
In what situations might
-auto-approve be acceptable?In automated pipelines where changes are small, tested, and reviewed beforehand, and quick deployment is needed without manual steps.
Click to reveal answer
intermediate
How can teams reduce risks when using
-auto-approve in Terraform?By implementing code reviews, automated tests, and approval gates before the apply step, even if
-auto-approve is used in automation.Click to reveal answer
What happens when you run
terraform apply -auto-approve?✗ Incorrect
The
-auto-approve flag skips the confirmation prompt and applies changes right away.Why is it risky to use
-auto-approve in production environments?✗ Incorrect
Using
-auto-approve skips manual review, increasing the risk of mistakes affecting production.Which practice helps reduce risks when using
-auto-approve?✗ Incorrect
Automated tests and code reviews catch errors before changes are applied automatically.
When might using
-auto-approve be acceptable?✗ Incorrect
Automated pipelines with prior testing and review can safely use
-auto-approve for faster deployment.What does Terraform normally do before applying changes without
-auto-approve?✗ Incorrect
Terraform shows the planned changes and waits for user confirmation before applying.
Explain what the
-auto-approve flag does in Terraform and why it can be dangerous.Think about what happens when you don't get a chance to review changes.
You got /4 concepts.
Describe best practices to safely use
-auto-approve in automated Terraform workflows.Consider how teams can prevent mistakes before applying changes automatically.
You got /4 concepts.