DP-203 · Question #168
DP-203 Question #168: Real Exam Question with Answer & Explanation
To load CSV files into Azure Synapse Analytics using PolyBase while skipping header rows, you must follow a specific sequence: First, create a database scoped credential using an Azure Active Directory Application and Service Principal Key to authenticate access to ADLS Gen2. Sec
Question
Drag and Drop Question You have data stored in thousands of CSV files in Azure Data Lake Storage Gen2. Each file has a header row followed by a properly formatted carriage return (/r) and line feed (/n). You are implementing a pattern that batch loads the files daily into an enterprise data warehouse in Azure Synapse Analytics by using PolyBase. You need to skip the header row when you import the files into the data warehouse. Before building the loading pattern, you need to prepare the required database objects in Azure Synapse Analytics. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. NOTE: Each correct selection is worth one point Answer:
Explanation
To load CSV files into Azure Synapse Analytics using PolyBase while skipping header rows, you must follow a specific sequence: First, create a database scoped credential using an Azure Active Directory Application and Service Principal Key to authenticate access to ADLS Gen2. Second, create an external data source pointing to the ADLS Gen2 container using the 'abfs://' (Azure Blob File System) location, referencing the credential. Third, create an external file format specifying the file type as CSV and setting the FIRST_ROW option to '2' to skip the header row - this is the key setting that tells PolyBase to begin reading data from the second row onward.
Topics
Community Discussion
No community discussion yet for this question.