
Answer-first summary for fast verification
Answer: No
## Detailed Explanation ### Understanding the Scenario - **Goal**: When source data files are loaded into container1, a DateTime value should be stored as an additional column in Table1. - **Current Solution**: Creating an external table with an additional DateTime column using a dedicated SQL pool. ### Why This Solution Does NOT Meet the Goal #### 1. **External Table Limitations** - External tables in Azure Synapse Analytics dedicated SQL pools are read-only metadata definitions that point to data files in external storage (Azure Data Lake Storage Gen2). - The schema of an external table must match the structure of the underlying data files. You cannot add columns that don't exist in the source files. - Creating an external table with an additional DateTime column would require that column to exist in the source files, which contradicts the requirement to "add" this column during the loading process. #### 2. **Data Transformation Requirements** - The scenario requires data transformation before insertion into Table1. - External tables themselves do not perform transformations; they simply provide a SQL interface to external data. - To add a DateTime column that doesn't exist in the source files, you need to: - Load data from the external table into a staging table - Apply transformations (including adding the DateTime column) - Insert the transformed data into the final Table1 #### 3. **Proper Approach for This Scenario** A complete solution would require: 1. Create an external table that matches the source file structure 2. Use CREATE TABLE AS SELECT (CTAS) or INSERT INTO with transformation logic 3. Add the DateTime column during the transformation step using functions like GETDATE() or deriving from file metadata 4. Load the transformed data into Table1 ### Conclusion Creating only an external table with an additional DateTime column is insufficient because: - External tables cannot modify source data or add columns that don't exist in the underlying files - No data transformation or insertion into Table1 occurs with just an external table definition - The solution lacks the necessary steps to actually populate Table1 with the transformed data including the additional DateTime column The proposed solution is incomplete and does not meet the stated goal of ensuring DateTime is stored as an additional column in Table1 when source data files are loaded.
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 into an Azure Data Lake Storage Gen2 container named container1. You plan to insert and transform data from these files into Table1, where each source file row will become one row in the table. You need to ensure that when the source data files are loaded into container1, a DateTime value is stored as an additional column in Table1.
You propose the following solution: Use a dedicated SQL pool to create an external table that includes an additional DateTime column.
Does this solution meet the goal?
A
Yes
B
No
No comments yet.