TA-002-P Dumps TA-002-P Braindumps TA-002-P Real Questions TA-002-P Practice Test TA-002-P Actual Questions HashiCorp TA-002-P HashiCorp Certified: Terraform Associate 2023 https://killexams.com/pass4sure/exam-detail/TA-002-P Question: 277 What is the default backend for Terraform? A. consul B. gcs C. local D. etcd Answer: C Explanation: By default, Terraform uses the "local" backend, which is the normal behavior of Terraform you’re used to. https://www.terraform.io/docs/backends/index.html Question: 278 What is the default backend for Terraform? A. consul B. gcs C. local D. etcd Answer: C Explanation: By default, Terraform uses the "local" backend, which is the normal behavior of Terraform you’re used to. https://www.terraform.io/docs/backends/index.html Question: 279 Please identify the offerings which are unique to Terraform Enterprise, and not available in either Terraform OSS, or Terraform Cloud. Select four. A. Audit Logs B. Private Network Connectivity C. VCS Integration D. Sentinel E. Clustering Answer: A,B,E Explanation: https://www.hashicorp.com/products/terraform/pricing/ Question: 280 Terraform variables and outputs that set the "description" argument will store that description in the state file. A. True B. False Answer: B Explanation: Reference: https://www.terraform.io/docs/language/values/outputs.html Question: 281 A provider configuration block is required in every Terraform configuration. Example: A. True B. False Answer: A Explanation: Reference: https://github.com/hashicorp/terraform/issues/17928 Question: 282 Terraform providers are always installed from the Internet. A. True B. False Answer: B Explanation: Terraform configurations must declare which providers they require, so that Terraform can install and use them. Reference: https://www.terraform.io/docs/language/providers/configuration.html Question: 283 Where does the Terraform local backend store its state? A. In the /tmp directory B. In the terraform.tfvars file C. In the terraform.tfstate file D. In the user’s .terraformrc file Answer: C Explanation: The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally. Reference: https://www.terraform.io/docs/language/settings/backends/local.html Question: 284 Which of the following command can be used to view the specified version constraints for all providers used in the current configuration. A. terraform providers B. terraform state show C. terraform provider D. terraform plan Answer: A Explanation: Use the terraform providers command to view the specified version constraints for all providers used in the current configuration. https://www.terraform.io/docs/configuration/providers.html Question: 285 Which Terraform command will force a marked resource to be destroyed and recreated on the next apply? A. terraform fmt B. terraform destroy C. terraform taint D. terraform refresh Answer: C Explanation: The terraform taint command manually marks a Terraform-managed resource as tainted, forcing it to be destroyed and recreated on the next apply. This command will not modify infrastructure, but does modify the state file in order to mark a resource as tainted. Once a resource is marked as tainted, the next plan will show that the resource will be destroyed and recreated and the next apply will implement this change. Forcing the recreation of a resource is useful when you want a certain side effect of recreation that is not visible in the attributes of a resource. For example: re-running provisioners will cause the node to be different or rebooting the machine from a base image will cause new startup scripts to run. Note that tainting a resource for recreation may affect resources that depend on the newly tainted resource. For example, a DNS resource that uses the IP address of a server may need to be modified to reflect the potentially new IP address of a tainted server. The plan command will show this if this is the case. https://www.terraform.io/docs/commands/taint.html Question: 286 If a module uses a local variable, you can expose that value with a terraform output. A. True B. False Answer: A Explanation: Output values are like function return values. Reference: https://www.terraform.io/docs/language/values/locals.html https://www.terraform.io/docs/language/values/outputs.html Question: 287 Why would you use the terraform taint command? A. When you want to force Terraform to destroy a resource on the next apply B. When you want to force Terraform to destroy and recreate a resource on the next apply C. When you want Terraform to ignore a resource on the next apply D. When you want Terraform to destroy all the infrastructure in your workspace Answer: B Explanation: The terraform taint command manually marks a Terraform-managed resource as tainted, forcing it to be destroyed and recreated on the next apply. Reference: https://www.terraform.io/docs/cli/commands/taint.html Question: 288 When using a module block to reference a module stored on the public Terraform Module Registry such as: How do you specify version 1.0.0? A. Modules stored on the public Terraform Module Registry do not support versioning B. Append ?ref=v1.0.0 argument to the source path C. Add version = "1.0.0" attribute to module block D. Nothing C modules stored on the public Terraform Module Registry always default to version 1.0.0 Answer: A Explanation: Reference: https://www.terraform.io/docs/language/modules/sources.html Question: 289 Question: 290 Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers? A. servers = num_servers B. servers = variable.num_servers C. servers = var(num_servers) D. servers = var.num_servers Answer: A Question: 291 You have created 2 workspaces PROD and RQ A. You have switched to RQA and provisioned RQA infrastructure from this workspace. Where is your state file stored? B. terraform.tfstate.d C. terraform.d D. terraform.tfstate.RQA E. terraform.tfstate Answer: A Question: 292 Remove old peers from the CM’s list. Answer: C Question: 293 By default, a defined provisioner is a creation-time provisioner. A. True B. False Answer: A Explanation: https://www.terraform.io/docs/provisioners/index.html Question: 294 What is the default backend for Terraform? A. consul B. gcs C. local D. etcd Answer: C 6$03/( 48(67,216 7KHVH TXHVWLRQV DUH IRU GHPR SXUSRVH RQO\ )XOO YHUVLRQ LV XS WR GDWH DQG FRQWDLQV DFWXDO TXHVWLRQV DQG DQVZHUV .LOOH[DPV FRP LV DQ RQOLQH SODWIRUP WKDW RIIHUV D ZLGH UDQJH RI VHUYLFHV UHODWHG WR FHUWLILFDWLRQ H[DP SUHSDUDWLRQ 7KH SODWIRUP SURYLGHV DFWXDO TXHVWLRQV H[DP GXPSV DQG SUDFWLFH WHVWV WR KHOS LQGLYLGXDOV SUHSDUH IRU YDULRXV FHUWLILFDWLRQ H[DPV ZLWK FRQILGHQFH +HUH DUH VRPH NH\ IHDWXUHV DQG VHUYLFHV RIIHUHG E\ .LOOH[DPV FRP $FWXDO ([DP 4XHVWLRQV .LOOH[DPV FRP SURYLGHV DFWXDO H[DP TXHVWLRQV WKDW DUH H[SHULHQFHG LQ WHVW FHQWHUV 7KHVH TXHVWLRQV DUH XSGDWHG UHJXODUO\ WR HQVXUH WKH\ DUH XS WR GDWH DQG UHOHYDQW WR WKH ODWHVW H[DP V\OODEXV %\ VWXG\LQJ WKHVH DFWXDO TXHVWLRQV FDQGLGDWHV FDQ IDPLOLDUL]H WKHPVHOYHV ZLWK WKH FRQWHQW DQG IRUPDW RI WKH UHDO H[DP ([DP 'XPSV .LOOH[DPV FRP RIIHUV H[DP GXPSV LQ 3') IRUPDW 7KHVH GXPSV FRQWDLQ D FRPSUHKHQVLYH FROOHFWLRQ RI TXHVWLRQV DQG DQVZHUV WKDW FRYHU WKH H[DP WRSLFV %\ XVLQJ WKHVH GXPSV FDQGLGDWHV FDQ HQKDQFH WKHLU NQRZOHGJH DQG LPSURYH WKHLU FKDQFHV RI VXFFHVV LQ WKH FHUWLILFDWLRQ H[DP 3UDFWLFH 7HVWV .LOOH[DPV FRP SURYLGHV SUDFWLFH WHVWV WKURXJK WKHLU GHVNWRS 9&( H[DP VLPXODWRU DQG RQOLQH WHVW HQJLQH 7KHVH SUDFWLFH WHVWV VLPXODWH WKH UHDO H[DP HQYLURQPHQW DQG KHOS FDQGLGDWHV DVVHVV WKHLU UHDGLQHVV IRU WKH DFWXDO H[DP 7KH SUDFWLFH WHVWV FRYHU D ZLGH UDQJH RI TXHVWLRQV DQG HQDEOH FDQGLGDWHV WR LGHQWLI\ WKHLU VWUHQJWKV DQG ZHDNQHVVHV *XDUDQWHHG 6XFFHVV .LOOH[DPV FRP RIIHUV D VXFFHVV JXDUDQWHH ZLWK WKHLU H[DP GXPSV 7KH\ FODLP WKDW E\ XVLQJ WKHLU PDWHULDOV FDQGLGDWHV ZLOO SDVV WKHLU H[DPV RQ WKH ILUVW DWWHPSW RU WKH\ ZLOO UHIXQG WKH SXUFKDVH SULFH 7KLV JXDUDQWHH SURYLGHV DVVXUDQFH DQG FRQILGHQFH WR LQGLYLGXDOV SUHSDULQJ IRU FHUWLILFDWLRQ H[DPV 8SGDWHG &RQWHQW .LOOH[DPV FRP UHJXODUO\ XSGDWHV LWV TXHVWLRQ EDQN DQG H[DP GXPSV WR HQVXUH WKDW WKH\ DUH FXUUHQW DQG UHIOHFW WKH ODWHVW FKDQJHV LQ WKH H[DP V\OODEXV 7KLV KHOSV FDQGLGDWHV VWD\ XS WR GDWH ZLWK WKH H[DP FRQWHQW DQG LQFUHDVHV WKHLU FKDQFHV RI VXFFHVV 7HFKQLFDO 6XSSRUW .LOOH[DPV FRP SURYLGHV IUHH [ WHFKQLFDO VXSSRUW WR DVVLVW FDQGLGDWHV ZLWK DQ\ TXHULHV RU LVVXHV WKH\ PD\ HQFRXQWHU ZKLOH XVLQJ WKHLU VHUYLFHV 7KHLU FHUWLILHG H[SHUWV DUH DYDLODEOH WR SURYLGH JXLGDQFH DQG KHOS FDQGLGDWHV WKURXJKRXW WKHLU H[DP SUHSDUDWLRQ MRXUQH\ 'PS .PSF FYBNT WJTJU IUUQT LJMMFYBNT DPN WFOEPST FYBN MJTU .LOO \RXU H[DP DW )LUVW $WWHPSW *XDUDQWHHG