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 +

What information does the public Terraform Module Registry automatically expose about published modules?

What information does the public Terraform Module Registry automatically expose about published modules?A . Required input variablesB . Optional inputs variables and default valuesC . OutputsD . All of the aboveE . None of the aboveView AnswerAnswer: D Explanation: The public Terraform Module Registry automatically exposes all the information about...

February 3, 2024 No Comments READ MORE +

It is best practice to store secret data in the same version control repository as your Terraform configuration.

It is best practice to store secret data in the same version control repository as your Terraform configuration.A . TrueB . FalseView AnswerAnswer: B Explanation: It is not a best practice to store secret data in the same version control repository as your Terraform configuration, as it could expose your...

February 3, 2024 No Comments READ MORE +