
Answer-first summary for fast verification
Answer: No
## Analysis of the Proposed Solution The goal requires storing the **DateTime** as an **additional column** in Table1 when source data files are loaded into container1. The proposed solution uses a **Get Metadata activity** to retrieve the DateTime of the files. ### Why the Solution Does NOT Meet the Goal 1. **Get Metadata Activity Functionality**: - The Get Metadata activity retrieves metadata about files (e.g., file name, size, last modified date) but **does not modify or enrich the data content**. - It can extract the DateTime (e.g., last modified timestamp) of files in container1, but this metadata remains separate from the actual data rows being processed. 2. **Missing Data Transformation**: - To add an additional column to Table1, the DateTime value must be **incorporated into each row** during data ingestion/transformation. - The Get Metadata activity alone cannot map the retrieved DateTime to individual rows in the data flow. It lacks the capability to **append this value as a column** to the dataset. 3. **Required Approach**: - A proper solution would involve: - Using a **data flow** with a **derived column transformation** to create the new DateTime column. - Alternatively, using the Get Metadata activity **in conjunction with** a ForEach loop and data flow to process each file and dynamically add the DateTime. - The proposed solution stops at metadata retrieval without the necessary steps to persist the DateTime in Table1. ### Conclusion While the Get Metadata activity can retrieve file DateTime, it does not fulfill the requirement of storing this DateTime as an additional column in the table. The solution is **insufficient** without downstream transformations to embed the metadata into the data rows.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have an Azure Synapse Analytics dedicated SQL pool with a table named Table1. Data files are ingested and loaded into an Azure Data Lake Storage Gen2 container named container1. You plan to insert data from these files into Table1, transforming it so that each row from the files produces one row in the table. You need to ensure that when the source data files are loaded into container1, the DateTime of the load is stored as an additional column in Table1.
Proposed Solution: In an Azure Synapse Analytics pipeline, you use a Get Metadata activity that retrieves the DateTime of the files.
Does this solution meet the goal?
A
Yes
B
No
No comments yet.