What command does Terraform require the first time you run it within a configuration directory?
Answer(s): B
terraform init command is used to initialize a working directory containing Terraform configuration files. Reference:https://www.terraform.io/docs/cli/commands/init.html
You have deployed a new webapp with a public IP address on a clod provider. However, you did not create any outputs for your code.What is the best method to quickly find the IP address of the resource you deployed?
Answer(s): C
https://www.terraform.io/cli/commands/state/show
Which of the following is not a key principle of infrastructure as code?
https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as-code#:~:text=Idempotence%20is%20a%20principle%20of,of%20the%20environment's%20starting%20state.
Terraform variables and outputs that set the "description" argument will store that description in the state file.
https://www.terraform.io/docs/language/values/outputs.html
Post your Comments and Discuss HashiCorp TA-002-P exam prep with other Community members:
We’re offering these study questions to support your success. The least you can do? Drop a useful comment about each question. Help others. Build the community.