Difference between revisions of "Terraform example questions"

From wikieduonline
Jump to navigation Jump to search
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
Which of the features below is available in the free version of [[Terraform Cloud]]? (select three)
+
* 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?
  
 +
* What actions does a [[terraform init]] performs?
  
 +
* True or False? Under special circumstances, Terraform can be used without [[state]].
 +
::Solution: https://developer.hashicorp.com/terraform/language/state/purpose
  
 +
* True or False? [[Input variables]] that are marked as sensitive are NOT written to [[Terraform state]].
  
{{tf cert}}
+
* True or False? When you are referencing a [[module]], you must specify the [[version of the module]] in the calling module block.
 +
 
 +
* 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?]]
 +
 
 +
* [[True or False? Running a terraform apply will fail if you do not run a terraform plan first.]]
 +
 
 +
* [[Where is the most secure place to store credentials when using a remote backend?]]
 +
 
 +
* [[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.]]
 +
 
 +
* [[By default, where does Terraform CLI store its state?]]
 +
 
 +
* [[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 ==
 +
* {{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: