Noos
PT EN
RAN-DBDEA-00224
Ranvier · DBDEA

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

A data engineer builds an intermediate DataFrame in her notebook: a read of a large Parquet dataset from cloud storage, a join with a 5 GB dimension, a filter to active regions, and a deduplication pass. Five cells later in the same notebook reuse that DataFrame, and each one currently re-runs the whole lineage, taking about six minutes per cell. She wants the reuse to be fast and the memory released when the notebook ends. Which approach fits?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. Call cache() before the first action runs, so that even the initial computation that materializes the DataFrame becomes faster
  2. B. Call cache() in the very first cell and rely on the cached data surviving cluster termination, so that tomorrow's job run reuses it
  3. C. Do nothing, because Spark automatically caches every DataFrame in memory after its first action and reuses it for free
  4. D. Call cache() on the DataFrame, materialize it with an action once, and call unpersist() when the last consuming cell finishes
Revelar gabarito

Resposta correta: Call cache() on the DataFrame, materialize it with an action once, and call unpersist() when the last consuming cell finishes

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 (D): Call cache() on the DataFrame, materialize it with an action once, and call unpersist() when the last consuming cell finishes

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.