Noos
PT EN
RAN-DBDEA-00188
Ranvier · DBDEA

Prova DBDEA Tópicos: ingestion Dificuldade: medium A questão está em en.

A finance tool exports nightly CSV files, each starting with a header row of column names. The team loads them with the statement below, and the first run produced generic columns such as _c0 whose values are header text like transaction_id, with every data row shifted. Which change makes the load treat the first line of each file as a header? ```sql COPY INTO main.finance.payments_raw FROM '/Volumes/main/finance/landing/payments/' FILEFORMAT = CSV; ```

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. Keep the statement unchanged: COPY INTO detects header rows automatically in every supported file format
  2. B. Add FORMAT_OPTIONS ('header' = 'true') so the reader treats each file's first line as column names instead of data
  3. C. Run a preprocessing job that removes the first line of every CSV file in the landing volume before each nightly load runs
  4. D. Change FILEFORMAT to JSON, because CSV files do not accept format options such as header handling
Revelar gabarito

Resposta correta: Add FORMAT_OPTIONS ('header' = 'true') so the reader treats each file's first line as column names instead of data

Referência: https://docs.databricks.com/aws/en/ingestion/copy-into

02 — Camada de Mielina · Discussão Canônica

Onde a prova tenta te enganar — e como quem passou resolveu.

0 Aprovados

contribuíram nesta questão

Matriz de Dissecção de Alternativas Clique numa alternativa para filtrar ou inaugurar a dissecção.
✦ Síntese Consolidada (Wiki) rev. #1 (baseline) · CC BY-SA 4.0
Inaugurar síntese desta questão →

Ainda não há síntese comunitária consolidada para esta questão. Abaixo está o ponto de partida oficial verificável — se você passou na prova, inaugure a dissecção das alternativas.

Gabarito Oficial (B): Add FORMAT_OPTIONS ('header' = 'true') so the reader treats each file's first line as column names instead of data

Ranvier · DBDEA

Contribuir com a Questão

Sua contribuição constrói sua Bainha Orbital

Contribuições dos pares

Nenhuma contribuição pública ainda. Seja o primeiro aprovado a explicar por que as alternativas incorretas enganam — sua contribuição constrói sua Bainha Orbital.