ExamGecko
Question list
Search
Search

Question 142 - Terraform Associate 003 discussion

Report
Export

Which configuration consistency errors does terraform validate report?

A.
Terraform module isn't the latest version
Answers
A.
Terraform module isn't the latest version
B.
Differences between local and remote state
Answers
B.
Differences between local and remote state
C.
Declaring a resource identifier more than once
Answers
C.
Declaring a resource identifier more than once
D.
A mix of spaces and tabs in configuration files
Answers
D.
A mix of spaces and tabs in configuration files
Suggested answer: C

Explanation:

Terraform validate reports configuration consistency errors, such as declaring a resource identifier more than once. This means that the same resource type and name combination is used for multiple resource blocks, which is not allowed in Terraform. For example,resource 'aws_instance' 'example' {...}cannot be used more than once in the same configuration. Terraform validate does not report errors related to module versions, state differences, or formatting issues, as these are not relevant for checking the configuration syntax and structure.Reference= [Validate Configuration], [Resource Syntax]

asked 18/09/2024
Ida Aasvistad
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first