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...
What does the default "local" Terraform backend store?
What does the default "local" Terraform backend store?A . tfplan filesB . State fileC . Provider pluginsD . Terraform binaryView AnswerAnswer: B Explanation: The default “local” Terraform backend stores the state file in a local file named terraform.tfstate, which can be used to track and manage the state of your...
How can you protect that data?
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?A . Edit your state file to scrub out the sensitive dataB . Always store your secrets in a secrets.tfvars fileC . Delete the state file every time you...
_______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...
What are some benefits of using Sentinel with Terraform Cloud/Terra form Cloud? Choose three correct answers.
What are some benefits of using Sentinel with Terraform Cloud/Terra form Cloud? Choose three correct answers.A . You can enforce a list of approved AWS AMIsB . Policy-as-code can enforce security best practicesC . You can check out and check in cloud access keysD . You can restrict specific resource...
Which of these ate features of Terraform Cloud? Choose two correct answers.
Which of these ate features of Terraform Cloud? Choose two correct answers.A . Automated infrastructure deployment visualizationB . Automatic backupsC . A web-based user interface (Ul)D . Remote state storageView AnswerAnswer: C,D Explanation: These are features of Terraform Cloud, which is a hosted service that provides a web-based UI, remote...
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...
How does Terraform manage most dependencies between resources?
How does Terraform manage most dependencies between resources? A. Terraform will automatically manage most resource dependencies B. Using the depends_on parameter C. By defining dependencies as modules and including them in a particular order D. The order that resources appear in Terraform configuration indicates dependenciesView AnswerAnswer: A Explanation: This is...
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.A . TrueB . FalseView AnswerAnswer: A Explanation: When you use a remote backend that needs authentication, HashiCorp recommends that you:
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...