Noos
PT EN
RAN-DBDEA-00134
Ranvier · DBDEA

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

A PySpark job reads a Delta table into a DataFrame that currently has 200 partitions spread across the cluster. Before writing the result, the team wants to end up with 8 partitions to avoid producing hundreds of tiny output files, but without paying for a full shuffle of the data. Which operation should they use?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. repartition(8), the only DataFrame operation able to reduce the number of partitions
  2. B. coalesce(8), which always preserves the current data distribution across the worker nodes
  3. C. coalesce(8), which merges existing partitions into fewer ones without a full shuffle
  4. D. either operation, because repartition and coalesce are synonyms that differ only in naming
Revelar gabarito

Resposta correta: coalesce(8), which merges existing partitions into fewer ones without a full shuffle

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): coalesce(8), which merges existing partitions into fewer ones without a full shuffle

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.