Question 1
An AWS IAM role named app-prod-role was created manually before Terraform was adopted. After adding an aws_iam_role resource block, what is the safest next step if you want Terraform to manage the existing role without recreating it?
Correct Answer:
Run terraform import for the resource address and existing role name
Question 2
During an operations review, you need to see only drift between Terraform state and the real AWS environment without proposing configuration changes. Which command is most appropriate?
Correct Answer:
terraform plan -refresh-only
Question 3
A production RDS instance must never be destroyed by a normal Terraform apply, even if someone removes its resource block or makes a change that would force replacement. Which lifecycle setting best enforces this?
Correct Answer:
prevent_destroy = true
Question 4
An EC2 launch template should be replaced whenever a separate aws_ami_copy.gold image resource changes, even if no direct argument in the launch template changes. Which lifecycle argument is designed for this?
Correct Answer:
replace_triggered_by
Question 5
Before decommissioning a short-lived AWS sandbox, you want a reviewable execution plan that shows what Terraform would delete. Which command should you run first?
Correct Answer:
terraform plan -destroy
Question 1
Exam overview

About this Exam

Prepare with the Terraform Professional Practice Questions - HashiCorp Terraform Authoring and Operations Professional Exam practice quiz. This question bank includes 100 questions covering terraform, state, plan, want, and configuration. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

Terraform Professional Practice Questions - HashiCorp Terraform Authoring and Operations Professional Exam

This practice set contains 100 questions from the matching question bank and focuses on terraform, state, plan, want, and configuration. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions