What is the best method to quickly find the IP address of the resource you deployed?

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?A . Run terraform output ip_address to view the resultB...

June 14, 2021 No Comments READ MORE +

Where in your Terraform configuration do you specify a state backend?

Where in your Terraform configuration do you specify a state backend?A . The terraform blockB . The resource blockC . The provider blockD . The datasource blockView AnswerAnswer: A Explanation: Backends are configured with a nested backend block within the top-level terraform block. Reference: https://www.terraform.io/docs/language/settings/backends/configuration.html

June 14, 2021 No Comments READ MORE +

terraform refresh will update the state file?

terraform refresh will update the state file?A . TrueB . FalseView AnswerAnswer: A Explanation: The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. This can be used to detect any drift from the last-known state, and to update...

June 14, 2021 No Comments READ MORE +

Which of the following is not a valid string function in Terraform?

Which of the following is not a valid string function in Terraform?A . splitB . joinC . sliceD . chompView AnswerAnswer: D Explanation: Reference: https://www.terraform.io/docs/language/functions/chomp.html

June 13, 2021 2 Comments READ MORE +

What is the name assigned by Terraform to reference this resource?

What is the name assigned by Terraform to reference this resource? A . devB . azurerm_resource_groupC . azurermD . testView AnswerAnswer: D

June 13, 2021 No Comments READ MORE +

Which one of the below you will choose?

You want terraform plan and apply to be executed in Terraform Cloud's run environment but the output is to be streamed locally . Which one of the below you will choose?A . Local BackendsB . This can be done using any of the local or remote backendsC . Remote BackendsD...

June 13, 2021 No Comments READ MORE +

True or False: A list(...) contain a number of values of the same type while an object(...) can contain a number of values of different types.

True or False: A list(...) contain a number of values of the same type while an object(...) can contain a number of values of different types.A . FalseB . TrueView AnswerAnswer: B Explanation: Collection Types A collection type allows multiple values of one other type to be grouped together as...

June 13, 2021 No Comments READ MORE +

Which of the following is not a key principle of infrastructure as code?

Which of the following is not a key principle of infrastructure as code?A . Versioned infrastructureB . Golden imagesC . IdempotenceD . Self-describing infrastructureView AnswerAnswer: A,B,D Explanation: Reference: https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as-code#:~:text=Idempotence%20is%20a%20principle%20of,of%20the%20environment's%20 starting%20state.

June 13, 2021 No Comments READ MORE +

Terraform init can indeed be run only a few times, because, every time terraform init will initialize the project, and download all plugins from the internet repository, regardless of whether they were present or not, and this increases the waiting time

Terraform init can indeed be run only a few times, because, every time terraform init will initialize the project, and download all plugins from the internet repository, regardless of whether they were present or not, and this increases the waiting timeA . TrueB . FalseView AnswerAnswer: B Explanation: Re-running init...

June 13, 2021 No Comments READ MORE +

How does Terraform handle working with so many providers?

How does Terraform handle working with so many providers?A . Terraform ships with all of the plugins embedded in the Terraform binary.B . Terraform uses a plugin architecture for providers and only installs the provider plugins required by your configuration in the configuration's working directory.C . Terraform uses a plugin...

June 13, 2021 No Comments READ MORE +