• 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 2 out of 9 pages
Exam (elaborations)

Terraform associate exam 51-100

Document preview thumbnail
Preview 2 out of 9 pages

Terraform associate exam 51-100 Where in your Terraform configuration do you specify a state backend? A. The terraform block B. The resource block C. The provider block D. The datasource block A In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names. A. True B. False A What command should you run to display all workspaces for the current configuration? A. terraform workspace B. terraform workspace show C. terraform workspace list D. terraform show workspace C Terraform providers are always installed from the Internet. A. True B. False B Which of these is the best practice to protect sensitive values in state files? A. Blockchain B. Secure Sockets Layer (SSL) C. Enhanced remote backends D. Signed Terraform providers C When does terraform apply reflect changes in the cloud environment? A. Immediately B. However long it takes the resource provider to fulfill the request C. After updating the state file D. Based on the value provided to the -refresh command line argument E. None of the above B How would you reference the "name" value of the second instance of this fictitious resource? resource "aws_instance" "web" { count = 2 name = "terraform-${}" } A. element(aws_, 2) B. aws_[1].name C. aws_[1] D. aws_[2].name E. aws_.*.name B A Terraform provider is not responsible for: A. Understanding API interactions with some service B. Provisioning infrastructure in multiple clouds C. Exposing resources and data sources based on an API D. Managing actions to take based on resource differences B Terraform provisioners can be added to any resource block. A. True B. False A(53%) - B(47%) What is terraform refresh intended to detect? A. Terraform configuration code changes B. Empty state files C. State file drift D. Corrupt state files C FILL BLANK - Which flag would you add to terraform plan to save the execution plan to a file? Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted. -out=FILENAME FILL BLANK - What is the name of the default file where Terraform stores the state? Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted Tte A Terraform local value can reference other Terraform local values. A. True B. False A Which of the following is not a valid Terraform collection type? A. list B. map C. tree D. set C When running the command terraform taint against a managed resource you want to force recreation upon, Terraform will immediately destroy and recreate the resource. A. True B. False B All standard backend types support state storage, locking, and remote operations like plan, apply and destroy. A. True B. False B How can terraform plan aid in the development process? A. Validates your expectations against the execution plan without permanently modifying state B. Initializes your working directory containing your Terraform configuration files C. Formats your Terraform configuration files D. Reconciles Terraform's state against deployed resources and permanently modifies state using the current status of deployed resources A You would like to reuse the same Terraform configuration for your development and production environments with a different state file for each. Which command would you use? A. terraform import B. terraform workspace C. terraform state D. terraform init B What is the name assigned by Terraform to reference this resource? mainresource "google_compute_instance" "main" { name="test" } A. compute_instance B. main C. google D. test B You're building a CI/CD (continuous integration/ continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely? A. Pass variables to Terraform with a ג"€var flag B. Copy the sensitive variables into your Terraform code C. Store the sensitive variables in a secure_ file D. Store the sensitive variables as plain text in a source code repository B Your security team scanned some Terraform workspaces and found secrets stored in a plaintext in state files. How can you protect sensitive data stored in Terraform state files? A. Delete the state file every time you run Terraform B. Store the state in an encrypted backend C. Edit your state file to scrub out the sensitive data D. Always store your secrets in a s file. B In contrast to Terraform Open Source, when working with Terraform Enterprise and Cloud Workspaces, conceptually you could think about them as completely separate working directories. A. True B. False A You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (*.tf files). You need to enable debug messages to find this out. Which of the following would achieve this? A. Set the environment variable TF_LOG=TRACE B. Set verbose logging for each provider in your Terraform configuration C. Set the environment variable TF_VAR_log=TRACE D. Set the environment variable TF_LOG_PATH A How is terraform import run? A. As a part of terraform init B. As a part of terraform plan C. As a part of terraform refresh D. By an explicit call E. All of the above D You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you delete the VM using the cloud provider console, and run terraform apply again without changing any Terraform code?


Document information

Uploaded on
November 28, 2023
Number of pages
9
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$12.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.
Topscorer1
3.7
(42)
Sold
253
Followers
208
Items
7220
Last sold
3 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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

Whoops! We can’t load your doc right now. Try again or contact support.