Noos
PT EN
RAN-DBDEA-00213
Ranvier · DBDEA

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

In an exploratory notebook, an engineer wants to inspect catalog.events.bronze_events, a table with roughly 200 million rows. She runs the cell below, and a few minutes later the run fails with an out-of-memory error raised on the driver process. ```python rows = spark.read.table("catalog.events.bronze_events").collect() ``` Why did this fail, and what is the correct practice?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. collect() fans the rows out across the executors for inspection — the driver out-of-memory error must have a different cause, such as network buffers
  2. B. Prepend coalesce(1) — collapsing the DataFrame into a single partition is what allows collect() to return without exhausting driver memory
  3. C. collect() ships every row into the driver's own memory — inspect with display(), take(n), or limit(), and keep full-scale processing on the cluster
  4. D. The driver never holds data in Spark — only executors allocate memory, so the failure proves the executors were undersized for the table
Revelar gabarito

Resposta correta: collect() ships every row into the driver's own memory — inspect with display(), take(n), or limit(), and keep full-scale processing on the cluster

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 (C): collect() ships every row into the driver's own memory — inspect with display(), take(n), or limit(), and keep full-scale processing on the cluster

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.