Which of the following is not true of Terraform providers?
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?
Your root module contains a variable namednum_servers. Which is the correct way to pass its value to a child module with an input namedservers?
Variables declared within a module are accessible outside of the module.
Which of these ate features of Terraform Cloud? Choose two correct answers.
How would you output returned values from a child module in the Terraform CLI output?
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.
Any user can publish modules to the public Terraform Module Registry.
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
terraform init creates an example main.tf file in the current directory.
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
You can access state stored with the local backend by using terraform_remote_state data source.
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.
Which variable type could you use for this input?
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
Module version is required to reference a module on the Terraform Module Registry.
You modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state without destroying the existing resource?
Original configuration:
resource "aws_s3_bucket" "photoes" {
bucket_prefix = "images"
}
Updated configuration:
resource "aws_s3_bucket" "photos" {
bucket_prefix = "images"
}
What is one disadvantage of using dynamic blocks in Terraform?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
What is a Terraform provider not responsible for?
Which of these is true about Terraform's plugin-based architecture?
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.
Terraform configuration (including any module references) can contain only one Terraform provider type.
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
Which method for sharing Terraform configurations fulfills the following criteria:
1. Keeps the configurations confidential within your organization
2. Support Terraform’s semantic version constrains
3. Provides a browsable directory
Terraform configuration can only import modules from the public registry.
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
Terraform providers are part of the Terraform core binary.
You much initialize your working directory before running terraform validate.
Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)
You have a list of numbers that represents the number of free CPU cores on each virtual cluster:
numcpus = [ 18, 3, 7, 11, 2 ]
What Terraform function could you use to select the largest number from the list?
Which of the following is not a way to trigger terraform destroy?
You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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?
When you use a backend that requires authentication, it is best practice to:
You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would like to first see all the infrastructure that Terraform will delete.
Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.
Which command lets you experiment with terraform expressions?
Terraform variable names are saved in the state file.
terraform apply will fail if you have not run terraform plan first to update the plan output.
In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
Which Terraform collection type should you use to store key/value pairs?
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?
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
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.
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
What does Terraform not reference when running a terraform apply -refresh-only ?
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
When do changes invoked by terraform apply take effect?
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.
terraform validate reports syntax check errors for which of the following?
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
Terraform configuration can only call modules from the public registry.
What is terraform plan -refresh-only intended to detect?
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?
Infrastructure as Code (laC) can be stored in a version control system along with application code.
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
Where can Terraform not load a provider from?
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out. Which of the following would achieve this?
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
If a module declares a variable with a default, that variable must also be defined within the module.
What is a key benefit of the Terraform state file?
Which command must you first run before performing further Terraform operations in a working directory?
Which Terraform command checks that your configuration syntax is correct?