Module version is required to reference a module on the Terraform Module Registry.

Module version is required to reference a module on the Terraform Module Registry.A . TrueB . FalseView AnswerAnswer: B Explanation: Module version is optional to reference a module on the Terraform Module Registry. If you omit the version constraint, Terraform will automatically use the latest available version of the module

February 11, 2024 No Comments READ MORE +

Which pattern would follow laC best practices for making a change?

As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?A . Make the change via the public cloud API...

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

February 11, 2024 No Comments READ MORE +

Which of the following is not a valid Terraform variable type?

Which of the following is not a valid Terraform variable type?A . listB . arrayC . napD . stringView AnswerAnswer: B Explanation: This is not a valid Terraform variable type. The other options are valid variable types that can store different kinds of values2.

February 10, 2024 No Comments READ MORE +

What does Terraform not reference when running a terraform apply -refresh-only?

What does Terraform not reference when running a terraform apply -refresh-only?A . State fileB . CredentialsC . Cloud providerD . Terraform resource definitions in configuration filesView AnswerAnswer: D Explanation: When running a terraform apply -refresh-only, Terraform does not reference the configuration files, but only the state file, credentials, and cloud...

February 10, 2024 No Comments READ MORE +

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.A . TrueB . FalseView AnswerAnswer: B Explanation: Module variable assignments are not inherited from the parent module and you need to explicitly set them using the source argument. This allows you to...

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

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 +