Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this security control?
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
You have developed a new cloud-based service that uses proprietary APIs and want to use Terraform to create, manage, and delete users from the service. How can Terraform interact with the service?
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
You can reference a resource created with for_each using a Splat ( *) expression.
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
When you use a remote backend that needs authentication, HashiCorp recommends that you:
You can access state stored with the local backend by using terraform_remote_state data source.
You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time.
Which Terraform command should you runfirst?
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
Terraform configuration (including any module references) can contain only one Terraform provider type.
The Terraform binary version and provider versions must match each other in a single configuration.
You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses)
You can configure Terraform to log to a file using the TF_LOG environment variable.
If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
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 which instance Terraform manages?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?