Which of the following methods could you use to discover which instance Terraform manages?

A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs. Which of the following methods could you use to discover...

February 8, 2024 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:...

February 7, 2024 No Comments READ MORE +

Which variable type could you use for this input?

You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string. Which variable type could you use for this input?A . ListB . ObjectC . MapD . Terraform does not support...

February 6, 2024 No Comments READ MORE +

You must use different Terraform commands depending on the cloud provider you use.

You must use different Terraform commands depending on the cloud provider you use.A . TrueB . FalseView AnswerAnswer: B Explanation: You do not need to use different Terraform commands depending on the cloud provider you use. Terraform commands are consistent across different providers, as they operate on the Terraform configuration...

February 6, 2024 No Comments READ MORE +

terraform validate confirms that your infrastructure matches the Terraform state file.

terraform validate confirms that your infrastructure matches the Terraform state file.A . TrueB . FalseView AnswerAnswer: B Explanation: terraform validate does not confirm that your infrastructure matches the Terraform state file. It only checks whether the configuration files in a directory are syntactically valid and internally consistent3. To confirm that...

February 6, 2024 No Comments READ MORE +

Which of the following provider blocks would allow you to do this?

You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this? A) B) C) D) A . Option AB . Option BC . Option CD . Option DView...

February 6, 2024 No Comments READ MORE +

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?A . Only Terraform Cloud organization owners can set workspace variables on VCS connected workspacesB . Commit a change to the VCS working directory and branch that the Terraform Cloud...

February 6, 2024 No Comments READ MORE +

Variables declared within a module are accessible outside of the module.

Variables declared within a module are accessible outside of the module.A . TrueB . FalseView AnswerAnswer: B Explanation: Variables declared within a module are only accessible within that module, unless they are explicitly exposed as output values1.

February 6, 2024 No Comments READ MORE +

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 +