最新的HashiCorp Certified: Terraform Associate (004) (HCTA0-004) - Terraform-Associate-004免費考試真題

問題1
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.

正確答案: A
說明:(僅 VCESoft 成員可見)
問題2
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?

正確答案: B
說明:(僅 VCESoft 成員可見)
問題3
Which Terraform command checks that your configuration syntax is correct?

正確答案: B
說明:(僅 VCESoft 成員可見)
問題4
Terraform configuration can only call modules from the public registry.

正確答案: A
說明:(僅 VCESoft 成員可見)
問題5
The exhibit below shows part of a Terraform configuration you have been asked to update. The name of the Azure Virtual Network should be set to the name of the resource group followed by a dash and the word vnet.
Exhibit:
data " azurerm_resource_group " " example " {
name = var.resource_group_name
}
resource " azurerm_virtual_network " " example " {
name = ______________________
}
Which expression fulfills this requirement?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題6
The HCP Terraform private registry keeps the module configurations confidential within your organization.

正確答案: B
說明:(僅 VCESoft 成員可見)
問題7
A data source is shown in the exhibit below.
How do you reference the id attribute of this data source?

}
}

正確答案: D
說明:(僅 VCESoft 成員可見)
問題8
Define the purpose of state in Terraform.

正確答案: B
說明:(僅 VCESoft 成員可見)
問題9
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 list of all active VM IDs.
Which method could you use to determine which instance Terraform manages?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題10
You can reference a resource created with for_each using a Splat ( *) expression.

正確答案: A
說明:(僅 VCESoft 成員可見)
問題11

The Terraform configuration shown in the Exhibit space on this page v/ill create a new AWS instance.

正確答案: A
說明:(僅 VCESoft 成員可見)
問題12
A terraform apply can not _________ infrastructure.

正確答案: A
說明:(僅 VCESoft 成員可見)
問題13
Terraformrequiresthe Go runtime as a prerequisite for installation.

正確答案: A
說明:(僅 VCESoft 成員可見)
問題14
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.

正確答案: B
說明:(僅 VCESoft 成員可見)
問題15
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.

正確答案: B
說明:(僅 VCESoft 成員可見)