Rationale for Correct Answer:A Terraform resource block has the following structure:
resource " < RESOURCE TYPE > " " < RESOURCE NAME > " {
}
In the exhibit:
Resource type: azurerm_resource_group
Resource name: dev
The resource name is the second label in the resource block and is used internally by Terraform to reference the resource (e.g., azurerm_resource_group.dev).
Analysis of Incorrect Options (Distractors):
A. azurerm: This is the provider name, not the resource name.
B. azurerm_resource_group: This is the resource type, not the name.
D. test: This is the value of the name argument inside the resource, not the Terraform resource name.
Key Concept:Understanding the distinction between resource type, resource name, and resource arguments in Terraform configurations.
[Reference:Terraform Exam Objective – Read, Generate, and Modify Configurations, , , , ]
Submit