Terraform Associate UPDATED Exam Questions and CORRECT Answers
7 views 0 purchase
Course
Terraform Associate
Institution
Terraform Associate
Terraform Associate UPDATED Exam
Questions and CORRECT Answers
One remote backend configuration always maps to a single remote workspace? True or False
- CORRECT ANSWER- False
How is the Terraform remote backend different than other state backends such as S3, Consul,
etc.?
A. It can execut...
Terraform Associate UPDATED Exam
Questions and CORRECT Answers
One remote backend configuration always maps to a single remote workspace? True or False
- CORRECT ANSWER- False
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
C. It is only available to paying customers
D. All of the above - CORRECT ANSWER- A. It can execute Terraform runs on dedicated
infrastructure on premises or in Terraform Cloud Most Voted
A provider configuration block is required in every Terraform configuration? True or False -
CORRECT ANSWER- False
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 - CORRECT ANSWER- Terraform taint
null_resource.run_script
Terraform taint marks a resource as degraded or damaged, indicating that this resource will
be destroyed and recreated during the next apply operation
Which provisioner invokes a process on the resource created by Terraform?
A. remote-exec
B. null-exec
C. local-exec
D. file - CORRECT ANSWER- remote-exec
,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 -
CORRECT ANSWER- C. Run terraform state list to find the name of the resource, then
terraform state show to find the attributes including public IP address Most Voted
Which of the following is not a key principle of infrastructure as code?
A. Versioned infrastructure
B. Golden images
C. Idempotence
D. Self-describing infrastructure - CORRECT ANSWER- B. Golden images
Terraform variables and outputs that set the "description" argument will store that description
in the state file.
A. True
B. False - CORRECT ANSWER- False
If you manually destroy infrastructure, what is the best practice reflecting this change in
Terraform?
A. Run terraform refresh
B. It will happen automatically
C. Manually update the state fire
D. Run terraform import - CORRECT ANSWER- A. Run terraform refresh
What is not processed when running a terraform refresh?
A. State file
,B. Configuration file
C. Credentials
D. Cloud provider - CORRECT ANSWER- Configuration file
What information does the public Terraform Module Registry automatically expose about
published modules?
A. Required input variables
B. Optional inputs variables and default values
C. Outputs
D. All of the above
E. None of the above - CORRECT ANSWER- D. All of the above Most Voted
If a module uses a local values, you can expose that value with a terraform output.
A. True
B. False - CORRECT ANSWER- True
Which of the following is not a valid string function in Terraform?
A. split
B. join
C. slice
D. chomp - CORRECT ANSWER- C. slice
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using
the gcloud command line tool. However, you are standardizing withTerraform and want to
manage these VMs using Terraform instead.What are the two things you must do to achieve
this? (Choose two.)
A. Provision new VMs using Terraform with the same VM names
B. Use the terraform import command for the existing VMs
C. Write Terraform configuration for the existing VMs
D. Run the terraform import-gcp command - CORRECT ANSWER- B. Use the terraform
import command for the existing VMs Most Voted
C. Write Terraform configuration for the existing VMs Most Voted
, terraform init initializes a sample main.tf file in the current directory.
A. True
B. False - CORRECT ANSWER- B. False
Why would you use the terraform taint command?
A. When you want to force Terraform to destroy a resource on the next apply
B. When you want to force Terraform to destroy and recreate a resource on the next apply
C. When you want Terraform to ignore a resource on the next apply
D. When you want Terraform to destroy all the infrastructure in your workspace - CORRECT
ANSWER- B. When you want to force Terraform to destroy and recreate a resource on the
next apply Most Voted
Terraform requires the Go runtime as a prerequisite for installation.
A. True
B. False - CORRECT ANSWER- B. False
When should you use the force-unlock command?
A. You see a status message that you cannot acquire the lock
B. You have a high priority change
C. Automatic unlocking failed
D. You apply failed due to a state lock - CORRECT ANSWER- C. Automatic unlocking
failed Most Voted
terraform validate validates the syntax of Terraform files.
A. True
B. False - CORRECT ANSWER- A. True
You have used Terraform to create an ephemeral development environment in the cloud and
are now ready to destroy all the infrastructure described by yourTerraform configuration. To
be safe, you would like to first see all the infrastructure that will be deleted by
Terraform.Which command should you use to show all of the resources that will be deleted?
(Choose two.)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.49. You're not tied to anything after your purchase.