Which of the following statements about Terraform modules is not true?

Which of the following statements about Terraform modules is not true?A . Modules can call other modulesB . A module is a container for one or more resourcesC . Modules must be publicly accessibleD . You can call the same module multiple timesView AnswerAnswer: C Explanation: This is not true,...

February 5, 2024 No Comments READ MORE +

Why does this backend configuration not follow best practices?

Why does this backend configuration not follow best practices? A . An alias meta-argument should be included in backend blocks whenever possibleB . You should use the local enhanced storage backend whenever possibleC . You should not store credentials in Terraform configurationD . The backend configuration should contain multiple credentials...

February 5, 2024 No Comments READ MORE +

Terraform providers are always installed from the Internet.

Terraform providers are always installed from the Internet.A . TrueB . FalseView AnswerAnswer: B Explanation: Terraform providers are not always installed from the Internet. There are other ways to install provider plugins, such as from a local mirror or cache, from a local filesystem directory, or from a network filesystem....

February 5, 2024 No Comments READ MORE +

What should you do to delete the newly-created VM with Terraform?

You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created...

February 5, 2024 No Comments READ MORE +

Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?

Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?A . terraform destroy, then terraform applyB . terraform initC . terraform pushD . terraform applyView AnswerAnswer: A Explanation: This command will initialize the new backend and prompt you...

February 5, 2024 No Comments READ MORE +

When is the best time to run terraform validate?

You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?A . After you run terraform apply so you can validate your infrastructureB . Before you run terraform apply so you can validate your provider credentialsC . Before you...

February 5, 2024 No Comments READ MORE +

Outside of the required_providers block, Terraform configurations always refer to providers by their local names.

Outside of the required_providers block, Terraform configurations always refer to providers by their local names.A . TrueB . FalseView AnswerAnswer: B Explanation: Outside of the required_providers block, Terraform configurations can refer to providers by either their local names or their source addresses. The local name is a short name that...

February 4, 2024 No Comments READ MORE +

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

Which of the following is not a valid siring function in Terraform?A . choafB . joinC . SplitD . sliceView AnswerAnswer: A Explanation: This is not a valid string function in Terraform. The other options are valid string functions that can manipulate strings in various ways2.

February 4, 2024 No Comments READ MORE +

How can you do this safely?

You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?A . Copy the sensitive variables into your Terraform codeB . Store the sensitive variables in a secure_varS.tf fileC . Store the sensitive variables as plain text...

February 4, 2024 No Comments READ MORE +

_______backends support state locking.

_______backends support state locking.A . AllB . NoC . SomeD . Only localView AnswerAnswer: C Explanation: Some backends support state locking, which prevents other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss. Not all backends support this feature, and...

February 4, 2024 No Comments READ MORE +