Skip to main content
CloudCareerLabs Logo CloudCareerLabs
Infrastructure as Code

Terraform Prep.

Master state locks recovery, drift management, resource graph logic, variables/secrets loading, reusable module designs, and dynamic blocks.

AR
Written by Ashmit N. Rai • Co-Founder & DevOps Platform Engineer DevOps specialist and platform automation architect. Infrastructure-as-Code expert.

Interactive Flashcards

# 1
Unreviewed

How does Terraform determine resource creation order? Does it provision them in parallel or sequentially?

# 2
Unreviewed

How do you create 10 resources one by one if there are no native implicit dependencies?

# 3
Unreviewed

How do you secure the Terraform state file (terraform.tfstate)?

# 4
Unreviewed

Explain the Terraform lifecycle, terraform refresh, and terraform import.

# 5
Unreviewed

What is Terraform drift, and how do you resolve it?

# 6
Unreviewed

If two people are working on the same Terraform module, how does it work?

# 7
Unreviewed

How do you remove a Terraform lock file so the next person can apply?

# 8
Unreviewed

When you change a Terraform module (e.g., S3), what happens during the terraform plan?

# 9
Unreviewed

How do you create 50 identical instances using Terraform efficiently?

# 10
Unreviewed

What is the "dynamic" block in Terraform and where is it used?

# 11
Unreviewed

How do you securely store DB usernames and passwords in Terraform?

# 12
Unreviewed

What is the difference between terraform destroy and terraform taint?

Scenario Challenges

Select a scenario below to test your troubleshooting workflow.

Topic: State Lock Recovery

A Jenkins pipeline step crashed during a terraform apply, leaving the S3 remote state locked. Release the lock safely.

Locate the Lock ID from the failed pipeline execution console output logs. Click to select
Confirm with the team that no one is currently running a local plan or apply. Click to select
Execute terraform force-unlock <lock-id> to remove the lock from the DynamoDB table. Click to select
Selected Sequence

No steps selected yet. Click options above in sequence.