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...

February 9, 2024 No Comments READ MORE +

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 cloud 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 . In a new folder, use the terraform_remote_state data...

February 9, 2024 No Comments READ MORE +

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 +