Noos
PT EN
RAN-DBDEA-00220
Ranvier · DBDEA

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

Compliance requires that every payment amount be non-negative. An engineer runs the statement below on a Delta table that already holds millions of historical rows, including negative refunds imported from a legacy migration: ```sql ALTER TABLE catalog.finance.payments ADD CONSTRAINT chk_amount CHECK (amount >= 0); ``` What is the outcome of this statement, and why?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. It succeeds — the CHECK applies only to rows written after it is added, and existing rows are never re-validated against it
  2. B. It fails with a parse error — CHECK constraints are not supported on Delta tables, where only NOT NULL can be enforced
  3. C. It succeeds — the constraint is created in a disabled, logging-only state and only starts validating once it is enabled
  4. D. It fails — ADD CONSTRAINT verifies every existing row against the CHECK, and the negative rows block it until they are corrected or removed
Revelar gabarito

Resposta correta: It fails — ADD CONSTRAINT verifies every existing row against the CHECK, and the negative rows block it until they are corrected or removed

Referência: https://docs.databricks.com/aws/en/tables/constraints

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): It fails — ADD CONSTRAINT verifies every existing row against the CHECK, and the negative rows block it until they are corrected or removed

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.