TA-002-P · Question #397
TA-002-P Question #397: Real Exam Question with Answer & Explanation
The correct answer is B: False. Splat Expressions with Maps The splat expression patterns shown above apply only to lists, sets, and tuples. To get a similar result with a map or object value you must use for expressions. Resources that use the for_each argument will appear in expressions as a map of objects, s
Question
You can reference a resource created with for_each using a Splat (*) expression.
Options
- ATrue
- BFalse
Explanation
Splat Expressions with Maps The splat expression patterns shown above apply only to lists, sets, and tuples. To get a similar result with a map or object value you must use for expressions. Resources that use the for_each argument will appear in expressions as a map of objects, so you can't use splat expressions with those resources.
Topics
Community Discussion
No community discussion yet for this question.