• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 73 pages
Exam (elaborations)

Terraform Associate Exam Questions With Answers

Document preview thumbnail
Preview 4 out of 73 pages

TERRAFORM ASSOCIATE EXAM QUESTIONS WITH ANSWERS

Content preview

TERRAFORM ASSOCIATE EXAM
QUESTIONS 1-191 2025 WITH
ANSWERS


The terraform.tfstate file always matches your currently built infrastructure.




A. True


B. False - ....ANSWER ...-B


One remote backend configuration always maps to a single remote workspace.




A. True


B. False - ....ANSWER ...-B


How is the Terraform remote backend different than other state backends such as S3,

Consul, etc.?




A. It can execute Terraform runs on dedicated infrastructure on premises or in

Terraform Cloud

B. It doesn't show the output of a terraform apply locally




....FOR STUDY PURPOSES...©️2025 ALL RIGHTS RESERVED... 1

,C. It is only available to paying customers


D. All of the above - ....ANSWER ...-A


What is the workflow for deploying new infrastructure with Terraform?




A. terraform plan to import the current infrastructure to the state file, make code

changes, and terraform apply to update the infrastructure.

B. Write a Terraform configuration, run terraform show to view proposed changes, and

terraform apply to create new infrastructure.

C. terraform import to import the current infrastructure to the state file, make code

changes, and terraform apply to update the infrastructure.

D. Write a Terraform configuration, run terraform init, run terraform plan to view

planned infrastructure changes, and terraform apply to create new infrastructure. -

....ANSWER ...-D


A provider configuration block is required in every Terraform configuration. Example:




pvorider "provider_name" {

...

}




A.True


B.False - ....ANSWER ...-B(58%) - A(42%)



....FOR STUDY PURPOSES...©️2025 ALL RIGHTS RESERVED... 2

,You run a local-exec provisioner in a null resource called null_resource.run_script and

realize that you need to rerun the script. Which of the following commands would you

use first?




A. terraform taint null_resource.run_script

B. terraform apply -target=null_resource.run_script

C. terraform validate null_resource.run_script


D. terraform plan -target=null_resource.run_script - ....ANSWER ...-A


Which provisioner invokes a process on the resource created by Terraform?




A. remote-exec

B. null-exec

C. local-exec


D. file - ....ANSWER ...-A


Which of the following is not true of Terraform providers?




A. Providers can be written by individuals

B. Providers can be maintained by a community of users

C. Some providers are maintained by HashiCorp




....FOR STUDY PURPOSES...©️2025 ALL RIGHTS RESERVED... 3

, D. Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on

Terraform providers E. None of the above - ....ANSWER ...-E


What command does Terraform require the first time you run it within a configuration

directory?




A. terraform import

B. terraform init

C. terraform plan


D. terraform workspace - ....ANSWER ...-B


You have deployed a new webapp with a public IP address on a cloud provider.

However, you did not create any outputs for your code. What is the best method to

quickly find the IP address of the resource you deployed?




A. Run terraform output ip_address to view the result

B. In a new folder, use the terraform_remote_state data source to load in the state file,

then write an output for each resource that you find the state file

C. Run terraform state list to find the name of the resource, then terraform state show to

find the attributes including public IP address

D. Run terraform destroy then terraform apply and look for the IP address in stdout -

....ANSWER ...-C


Which of the following is not a key principle of infrastructure as code?




....FOR STUDY PURPOSES...©️2025 ALL RIGHTS RESERVED... 4

Document information

Uploaded on
June 29, 2025
Number of pages
73
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KatelynWhitman
3.6
(260)
Sold
1261
Followers
485
Items
43877
Last sold
4 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions