TERRAFORM-ASSOCIATE-003 Exam Questions
247 real TERRAFORM-ASSOCIATE-003 exam questions with expert-verified answers and explanations. Page 5 of 5.
- Question #206
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if y...
- Question #207
Which statement describes a goal of Infrastructure as Code (IaC)?
- Question #208
terraform init creates an example main.tf file in the current directory.
- Question #209
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
- Question #210
terraform destroy is the only way to remove infrastructure.
- Question #211
Terraform installs its providers during which phase?
- Question #212
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
- Question #213
terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem? Error: yaml CopyEdit Error loading state: AccessDeni...
- Question #214
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
- Question #215
A child module can always access variables declared in its parent module.
- Question #216
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
- Question #217
terraform init retrieves and caches the configuration for all remote modules.
- Question #218
Which command does not cause Terraform to refresh its state?
- Question #219
What functionality do providers offer in Terraform? (Pick 3 correct responses)
- Question #220
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 Terrafor...
- Question #221
Which of the following is true about terraform apply? (Pick 2 correct responses)
- Question #222
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
- Question #223
terraform apply will fail if you have not run terraform plan first to update the plan output.
- Question #224
A Terraform backend determines how Terraform loads state and stores updates when you execute which command?
- Question #225
What command can you run to generate DOT (Graphviz) formatted data to visualize Terraform dependencies?
- Question #226
Which of the following is available only in HCP Terraform workspaces and not in Terraform CLI?
- Question #227
Which argument can you use to prevent unexpected updates to a module's configuration when calling Terraform Registry modules?
- Question #228
terraform validate confirms the syntax of Terraform files.
- Question #229
Which of the following is not an advantage of using Infrastructure as Code (IaC) operations?
- Question #230
Terraform requires the Go runtime as a prerequisite for installation.
- Question #231
What is modified when executing Terraform in refresh-only mode?
- Question #232
Which of the following locations can Terraform use as a private source for modules? (Pick 2 correct responses)
- Question #233
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
- Question #234
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 w...
- Question #235
What is a Terraform provider not responsible for?
- Question #236
What is the purpose of the terraform.lock.hcl file in Terraform?
- Question #237
What task does the terraform import command perform?
- Question #238
Which of the following can you do with terraform plan? (Pick 2 correct responses)
- Question #239
What type of information can be found on the Terraform Registry when using published modules?
- Question #240
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
- Question #241
When you use a backend that requires authentication, it is best practice to:
- Question #242
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...
- Question #243
Which of the following should you add in the required_providers block to define a provider version constraint?
- Question #244
One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
- Question #245
If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.
- Question #246
If one of your modules uses a local value, you can expose that value to callers of the module by defining a Terraform output in the module's configuration.
- Question #247
A developer launched a VM outside of the Terraform workflow and ended up with two servers with the same name. They are unsure which VM is managed with Terraform, but they do have a...
- Question #248
Only the user that generated a terraform plan may apply it.
- Question #249
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub. Which built-in Terraform function can you use to import the file's contents a...
- Question #250
You are tasked with making a change to an infrastructure stack running in a public cloud using HCP Terraform/Terraform Cloud. Which pattern follows IaC best practices?
- Question #252
Which of the following should you add in the required_providers block to define a provider version constraint?
- Question #253
When you use a backend that requires authentication, it is best practice to: