Difference between revisions of "Terraform example questions"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 14: Line 14:
  
 
* Name two [[Terraform versions]] does NOT support [[Sentinel]]?
 
* Name two [[Terraform versions]] does NOT support [[Sentinel]]?
 +
 +
* [[Can Sentinel be used to manage your infrastructure costs?]]
  
 
* [[You have a number of different variables in a parent module that calls multiple child modules. Can the child modules refer to any of the variables declared in the parent module?]]
 
* [[You have a number of different variables in a parent module that calls multiple child modules. Can the child modules refer to any of the variables declared in the parent module?]]
Line 26: Line 28:
  
 
* [[Is terraform cloud-agnostic?]]
 
* [[Is terraform cloud-agnostic?]]
 +
 +
* Can terraform manage [[dependencies]] across different clouds provider?
 +
 +
* [[True or False? In Terraform OSS, workspaces generally use the same code repository while workspaces in Terraform Enterprise/Cloud are often mapped to different code repositories]]
 +
 +
* [[True or False? Running a terraform apply will fail if you do not run a terraform plan first.]]
 +
 +
 +
* [[You have infrastructure deployed with Terraform. A developer recently submitted a support ticket to update a security group to permit a new port. To satisfy the ticket, you update the Terraform configuration to reflect the changes and run a terraform plan. However, a co-worker has since logged into the console and manually updated the security group.]]
 +
 +
What will happen when you run a terraform apply?
 +
 +
* [[True or False? When using the Terraform provider for Vault, the tight integration between these HashiCorp tools provides the ability to mask secrets in the state file]]
 +
 +
* [[True or False? Rather than use a state file, Terraform can inspect cloud resources on every run to validate that the real-world resources match the desired state.]]
 +
 +
* [[When writing Terraform code, how many spaces between each nesting level does HashiCorp recommends that you use?]]
  
 
== See also ==
 
== See also ==
 
* {{tf cert}}
 
* {{tf cert}}

Latest revision as of 20:14, 5 April 2023

  • Which of the features below is available in the free version of Terraform Cloud? (select three)
  • What feature does Terraform use to map configuration to resources in the real world?
  • True or False? Under special circumstances, Terraform can be used without state.
Solution: https://developer.hashicorp.com/terraform/language/state/purpose
  • Can terraform manage dependencies across different clouds provider?


  • [[You have infrastructure deployed with Terraform. A developer recently submitted a support ticket to update a security group to permit a new port. To satisfy the ticket, you update the Terraform configuration to reflect the changes and run a terraform plan. However, a co-worker has since logged into the console and manually updated the security group.]]

What will happen when you run a terraform apply?

See also[edit]

Advertising: