Skip to main content
DevOps ⭐ Premium

HashiCorp Certified: Terraform Authoring and Operations Professional - 340 Questions

By Webmaster Certland ❤️ 0 likes

Practice exam for the HashiCorp Certified Terraform Authoring and Operations Professional certification. Covers resource lifecycle management, dynamic HCL configuration, collaborative workflows, Terraform modules, provider management, and HCP Terraform governance.

🔒

Premium Content

This exam is exclusive to Premium users. Upgrade to get unlimited access!

Become Premium

👁️ Free Preview (5 of 340 questions)

1. A DevOps engineer runs `terraform init` on a new project and notices that provider plugins are not being downloaded. Which flag should be used with `terraform init` to force re-downloading all provider plugins?

A terraform init -upgrade
B terraform init -reconfigure
C terraform init -backend=false
D terraform init -get=false

2. A team wants to preview the changes Terraform will make before applying them, and they need the output saved to a file so it can be reviewed by another team member and applied later without re-running the plan. Which sequence of commands achieves this?

A terraform plan > tfplan.txt, then terraform apply tfplan.txt
B terraform plan -out=tfplan, then terraform apply tfplan
C terraform show -out=tfplan, then terraform apply tfplan
D terraform plan -out=tfplan, then terraform apply -plan=tfplan

3. A DevOps engineer needs to apply changes to a specific resource without affecting other resources in the configuration. The engineer wants Terraform to only plan and apply changes to an AWS S3 bucket named `aws_s3_bucket.data`. Which flag should be used?

A terraform apply -only=aws_s3_bucket.data
B terraform apply -resource=aws_s3_bucket.data
C terraform apply -target=aws_s3_bucket.data
D terraform apply -filter=aws_s3_bucket.data

4. An infrastructure team discovers that a manually created AWS security group is not tracked in Terraform state. They want to bring this existing resource under Terraform management without destroying and recreating it. Which command should they use?

A terraform import aws_security_group.main sg-0abc12345
B terraform state push aws_security_group.main
C terraform refresh aws_security_group.main
D terraform plan -import aws_security_group.main

5. A Terraform configuration manages a database instance. A developer manually changed the database instance class directly in the cloud console. During the next `terraform plan`, Terraform detects this drift. What will Terraform propose to do by default?

A Terraform will ignore the drift and show no changes
B Terraform will propose updating the resource to match the configuration
C Terraform will propose destroying and recreating the database instance
D Terraform will automatically update the state file to match the cloud resource

Want to test yourself for real?

Create a free account and run our exam simulation engine.

Free No credit card
  • Simulation engine
  • Up to 10 questions per attempt
  • Score & basic stats
Create free account Already have an account? Sign in
Best
Premium 7-day trial
  • All 340 questions
  • Detailed explanations
  • Smart Practice + Focus Mode
⭐ Start 7-day free trial

Related Exams

Discussion

No comments yet. Be the first to start the discussion!

Sign in to join the discussion.