Which command must you first run before performing further Terraform operations in a working directory?

Which command must you first run before performing further Terraform operations in a working directory?A . terraform importB . terraform workspaceC . terraform planD . terraform initView AnswerAnswer: D Explanation: terraform init is the first command that should be run after writing a new Terraform configuration or cloning an existing...

April 29, 2025 No Comments READ MORE +

Which Terraform command should you use?

As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?A . terraform refresh -upgradeB . terraform apply -upgradeC . terraform init -upgradeD . terraform providers -upgradeView AnswerAnswer: C Explanation: This command will upgrade the plugins to the...

April 27, 2025 No Comments READ MORE +

What will happen?

You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully. Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags....

April 26, 2025 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...

April 23, 2025 No Comments READ MORE +

Which of the following backends would not work?

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?A . ArtifactoryB . Amazon S3C . Terraform CloudD . GitView AnswerAnswer:...

April 20, 2025 No Comments READ MORE +

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.A . TrueB . FalseView AnswerAnswer: B Explanation: The...

April 20, 2025 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....

April 19, 2025 No Comments READ MORE +

How do you specify a module’s version when publishing it to the public terraform Module Registry?

How do you specify a module’s version when publishing it to the public terraform Module Registry?A . Configuration it in the module's Terraform codeB . Mention it on the module's configuration page on the Terraform Module RegistryC . The Terraform Module Registry does not support versioning modulesD . Tag a...

April 18, 2025 No Comments READ MORE +

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?A . terraform fmt -write-falseB . terraform fmt -list -recursiveC . terraform fmt -check -recursiveD . terraform fmt -checkView AnswerAnswer: C Explanation: This command will check if...

April 13, 2025 No Comments READ MORE +

What is one disadvantage of using dynamic blocks in Terraform?

What is one disadvantage of using dynamic blocks in Terraform?A . Dynamic blocks can construct repeatable nested blocksB . Terraform will run more slowlyC . They cannot be used to loop through a list of valuesD . They make configuration harder to read and understandView AnswerAnswer: D Explanation: This is...

April 8, 2025 No Comments READ MORE +