Terraform associate exam 151-191
What does terraform refresh modify?
A. Your cloud infrastructure
B. Your state file
C. Your Terraform plan
D. Your Terraform configuration
B
Which of the following is not valid source path for specifying a module?
A. source = "./modulelversion=v1.0.0" ...
Terraform associate exam 151-191
What does terraform refresh modify?
A. Your cloud infrastructure
B. Your state file
C. Your Terraform plan
D. Your Terraform configuration
B
Which of the following is not valid source path for specifying a module?
A. source = "./modulelversion=v1.0.0" B. source =
"github.com/hashicorp/example?ref=v1.0.0"
C. source = "./module"
D. source = "hashicorp/consul/aws"
A
Which of the following is true about terraform apply? (Choose two.)
A. It only operates on infrastructure defined in the current working directory or
workspace
B. You must pass the output of a terraform plan command to it
C. Depending on provider specification, Terraform may need to destroy and
recreate your infrastructure resources
D. By default, it does not refresh your state file to reflect current infrastructure
configuration
E. You cannot target specific resources for the operation
AC
Which of the following statements about local modules is incorrect?
A. Local modules are not cached by terraform init command
B. Local modules are sourced from a directory on disk
C. Local modules support versions D. All of the above (all statements above are
incorrect)
E. None of the above (all statements above are correct)
C
Which of the following is true about Terraform's implementation of infrastructure
as code? (Choose two.)
A. It is only compatible with AWS infrastructure management
B. You cannot reuse infrastructure configuration
C. You can version your infrastructure configuration
D. It requires manual configuration of infrastructure resources
E. It allows you to automate infrastructure provisioning
CE
, You need to write some Terraform code that adds 42 firewall rules to a security
group as shown in the example.
What can you use to avoid writing 42 different nested ingress config blocks by
hand?
A. A count loop
B. A for block
C. A for each block
D. A dynamic block
D
Which of the following is the safest way to inject sensitive values into a Terraform
Cloud workspace?
A. Write the value to a file and specify the file with the -var-file flag B. Set a value
for the variable in the UI and check the "Sensitive" check box
C. Edit the state file directly just before running terraform apply
D. Set the variable value on the command line with the -var flag
B
terraform apply will fail if you have not am terraform plan first to update the plan
output.
A. True
B. False
B
How would you reference the attribute "name" of this fictitious resource in HCL?
resource "kubernetes_namespace" "example" {
name = "test"
}
A. resource.kubernetes_namespace.example.name
B. kubernetes_namespace.test.name
C. kubernetes_namespace.example.name
D. data.kubernetes_namespace.name E. None of the above
C
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 LectDan. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.49. You're not tied to anything after your purchase.