100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Terraform associate exam 151-191 $9.49   Add to cart

Exam (elaborations)

Terraform associate exam 151-191

 1 view  0 purchase
  • Course
  • Institution

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" ...

[Show more]

Preview 2 out of 9  pages

  • January 19, 2024
  • 9
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
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.

resource "aws_security_group" "many_rules" {
name = "many-rules"
ingress {
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = "0.0.0.0/0"
}
}

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

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.49
  • (0)
  Add to cart