What is the Terraform style convention for indenting a nesting level compared to the one above it?
Correct : A
Terraform's Indentation Standards: Terraform's style convention uses two spaces per nesting level for readability, helping to maintain uniform code across teams.
Configuration Files: Consistent indentation is crucial for Terraform's HCL syntax, as it improves readability and avoids parsing issues.
More details are available in the Terraform configuration style guide.
Start a Discussions
In a HCP Terraform/Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
Correct : A
Speculative Plans: Terraform Cloud's speculative plan feature runs automatically when changes are detected in a linked VCS repository, enabling users to review potential infrastructure changes without committing them.
Automatic Integration: This feature automates the planning process by triggering when changes are committed, aiding teams in previewing infrastructure changes seamlessly.
For further understanding, see the Terraform Cloud VCS Integration documentation.
Start a Discussions
Which command(s) adds existing resources in a public cloud into Terraform state?
Correct : D
Importing Existing Resources: The terraform import command brings resources already deployed in a cloud environment into Terraform's state file, allowing Terraform to manage them.
Workflow Usage: Importing is vital when managing resources created outside of Terraform or those in place before Terraform adoption.
Refer to Terraform's import command documentation.
Start a Discussions
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
Correct : A, D
Automated Visualization: HCP Terraform provides visualization tools that map infrastructure configurations, helping users manage complex architectures.
Remote State Storage: Terraform Cloud offers remote state management, essential for teams working collaboratively on shared infrastructure, ensuring consistency and avoiding state conflicts.
For more information, consult Terraform Cloud and HCP Terraform features in the official documentation.
Start a Discussions
Which of the following is not a way to trigger terraform destroy?
Correct : B
Destroy Command Options: The terraform destroy command is the correct method to destroy resources, and it requires either manual approval or the -auto-approve flag.
Unsupported Triggering Method: The --destroy flag is not a recognized option for plan or apply commands, making B the correct answer as it is not a valid way to initiate resource destruction.
For more on destroying resources, refer to the terraform destroy command documentation in the Terraform CLI reference.
Start a Discussions