HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Total 299 questions
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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?
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
Which of these are features of Terraform Cloud? Choose two correct answers.
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 3)
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
Exhibit:
resource "azurerm_linux_web_app" "app" {
name = "example-app"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
service_plan_id = azurerm_service_plan.plan.id
identity {
type = "UserAssigned"
identity_ids = [azurerm_user_assigned_identity.app.id]
}
}
resource "azurerm_role_assignment" "kv_access" {
scope = azurerm_key_vault.kv.id
role_definition_name = "Key Vault Secrets User"
principal_id = azurerm_user_assigned_identity.app.principal_id
}
Two resource blocks are shown: azurerm_linux_web_app and azurerm_role_assignment. When provisioned, the web app will use the role assignment during creation, so the role assignment must be created first. How do you ensure the azurerm_role_assignment resource is created first?
