Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Terraform associate exam 151-191

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
19-01-2024
Written in
2023/2024

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 = " 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 A C 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 C E

Show more Read less
Institution
Course

Content preview

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

Written for

Course

Document information

Uploaded on
January 19, 2024
Number of pages
9
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.99
Get access to the full document:

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

Get to know the seller

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.
LectDan Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
220
Member since
3 year
Number of followers
157
Documents
7985
Last sold
1 month ago

4.0

47 reviews

5
25
4
12
3
2
2
3
1
5

Recently viewed by you

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