Noos
PT EN
RAN-DBDEA-00210
Ranvier · DBDEA

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

A nightly sales report joins catalog.sales.facts_sales to catalog.sales.dim_stores on store_id to append each store's region and manager. After the join, the report is missing thousands of sales: several new stores started selling before their dim_stores records were created. The business rule requires every sale to appear in the report even when store attributes are unknown. Which join change satisfies this rule?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. Switch to a LEFT JOIN cautiously — an outer join still discards non-matching rows before combining, so the unregistered stores would keep disappearing
  2. B. Replace the INNER JOIN with a LEFT JOIN — sales whose store_id has no dimension row are kept, with NULLs filling the store attribute columns
  3. C. No join change is needed — Spark inspects the table sizes and decides on its own whether INNER or LEFT semantics apply to the query
  4. D. Keep the INNER JOIN and add an ORDER BY — INNER and LEFT return exactly the same rows and differ only in how the output is sorted
Revelar gabarito

Resposta correta: Replace the INNER JOIN with a LEFT JOIN — sales whose store_id has no dimension row are kept, with NULLs filling the store attribute columns

Referência: https://docs.databricks.com/aws/en/pyspark/reference

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): Replace the INNER JOIN with a LEFT JOIN — sales whose store_id has no dimension row are kept, with NULLs filling the store attribute columns

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.