Which statements best describes what the local variable assignment is doing in the following code snippet:

Which statements best describes what the local variable assignment is doing in the following code snippet:
A. Create a distinct list of route table name objects
B. Create a map of route table names to subnet names
C. Create a map of route table names from a list of subnet names
D. Create a list of route table names eliminating duplicates

Download Printable PDF. VALID exam to help you PASS.

One thought on “Which statements best describes what the local variable assignment is doing in the following code snippet:

  1. In the code snippet, the locals block defines a local variable named route_table_names that is assigned the result of a distinct function applied to a list of objects containing name attributes:

    The distinct function filters the input list to return only the unique elements, in this case a list of unique name attributes from the aws_route_table.private resources. The resulting route_table_names variable is a list of distinct route table name objects.

    Option A is therefore the best description of what the local variable assignment is doing in the given code snippet.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.