What is the workflow for deploying new infrastructure with Terraform?

What is the workflow for deploying new infrastructure with Terraform?A . Write Terraform configuration, run terraform init to initialize the working directory orworkspace, and run terraform applyB . Write Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructureC . Write Terraform configuration, run...

April 6, 2025 No Comments READ MORE +

Which command add existing resources into Terraform state?

Which command add existing resources into Terraform state?A . Terraform initB . Terraform planC . Terraform refreshD . Terraform importE . All of theseView AnswerAnswer: D Explanation: This is the command that can add existing resources into Terraform state, by matching them with the corresponding configuration blocks in your files.

April 5, 2025 No Comments READ MORE +

What information does the public Terraform Module Registry automatically expose about published modules?

What information does the public Terraform Module Registry automatically expose about published modules?A . Required input variablesB . Optional inputs variables and default valuesC . OutputsD . All of the aboveE . None of the aboveView AnswerAnswer: D Explanation: The public Terraform Module Registry automatically exposes all the information about...

March 31, 2025 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...

March 27, 2025 No Comments READ MORE +

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

March 27, 2025 No Comments READ MORE +

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

March 26, 2025 No Comments READ MORE +

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

March 26, 2025 No Comments READ MORE +

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

March 26, 2025 No Comments READ MORE +

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

March 26, 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...

March 25, 2025 No Comments READ MORE +