• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 61 páginas
Examen

Databricks - Data Engineer Associate Exam With Guaranteed Accurate Answers

Document preview thumbnail
Vista previa 4 fuera de 61 páginas

DATABRICKS - DATA ENGINEER ASSOCIATE EXAM DATABRICKS - DATA ENGINEER ASSOCIATE EXAM WITH GUARANTEED ACCURATE ANSWERS You were asked to create a table that can store the below data, orderTime is a timestamp but the finance team when they query this data normally prefer the orderTime in date format, you would like to create a calculated column that can convert the orderTime column timestamp datatype to date and store it, fill in the blank to complete the DDL. CREATE TABLE orders ( orderId int, orderTime timestamp, orderdate date _____________________________________________ , units int) A. AS DEFAULT (CAST(orderTime as DATE)) B. GENERATED ALWAYS AS (CAST(orderTime as DATE)) C. GENERATED DEFAULT AS (CAST(orderTime as DATE)) D. AS (CAST(orderTime as DATE)) E. Delta lake does not support calculated columns, value should be inserted into the table as part of the ingestion process - ACCURATE ANSWERS B. GENERATED ALWAYS AS (CAST(orderTime as DATE)) Explanation The answer is, GENERATED ALWAYS AS (CAST(orderTime as DATE)) Delta Lake supports generated columns which are a special type of columns whose values are automatically generated based on a user-specified function over other columns in the Delta table. When you write to a table with generated columns and you do not explicitly provide

Vista previa del contenido

DATABRICKS - DATA ENGINEER
ASSOCIATE EXAM
DATABRICKS - DATA ENGINEER ASSOCIATE EXAM WITH GUARANTEED ACCURATE
ANSWERS




You were asked to create a table that can store the below data,
<orderTime> is a timestamp but the finance team when they query this
data normally prefer the <orderTime> in date format, you would like to
create a calculated column that can convert the <orderTime> column
timestamp datatype to date and store it, fill in the blank to complete the
DDL.


CREATE TABLE orders (
orderId int,
orderTime timestamp,
orderdate date _____________________________________________ ,
units int)

,A. AS DEFAULT (CAST(orderTime as DATE))
B. GENERATED ALWAYS AS (CAST(orderTime as DATE))
C. GENERATED DEFAULT AS (CAST(orderTime as DATE))
D. AS (CAST(orderTime as DATE))
E. Delta lake does not support calculated columns, value should be
inserted into the table as part of the ingestion process - ACCURATE
ANSWERS✔✔ B. GENERATED ALWAYS AS (CAST(orderTime as
DATE))


Explanation
The answer is, GENERATED ALWAYS AS (CAST(orderTime as
DATE))


https://docs.microsoft.com/en-us/azure/databricks/delta/delta-batch#--
use-generated-columns


Delta Lake supports generated columns which are a special type of
columns whose values are automatically generated based on a user-
specified function over other columns in the Delta table. When you write
to a table with generated columns and you do not explicitly provide
values for them, Delta Lake automatically computes the values.
Note: Databricks also supports partitioning using generated column

,The data engineering team noticed that one of the job fails randomly as a
result of using spot instances, what feature in Jobs/Tasks can be used to
address this issue so the job is more stable when using spot instances?


A. Use Databrick REST API to monitor and restart the job
B. Use Jobs runs, active runs UI section to monitor and restart the job
C. Add second task and add a check condition to rerun the first task if it
fails
D. Restart the job cluster, job automatically restarts
E. Add a retry policy to the task - ACCURATE ANSWERS✔✔ E. Add a
retry policy to the task


The answer is, Add a retry policy to the task


Tasks in Jobs support Retry Policy, which can be used to retry a failed
tasks, especially when using spot instance it is common to have failed
executors or driver.


What is the main difference between AUTO LOADER and COPY
INTO?


A. COPY INTO supports schema evolution.
B. AUTO LOADER supports schema evolution.
C. COPY INTO supports file notification when performing incremental
loads.

, D. AUTO LOADER supports reading data from Apache Kafka
E, AUTO LOADER Supports file notification when performing
incremental loads. - ACCURATE ANSWERS✔✔ E, AUTO LOADER
Supports file notification when performing incremental loads.


Explanation
Auto loader supports both directory listing and file notification but
COPY INTO only supports directory listing.


Auto loader file notification will automatically set up a notification
service and queue service that subscribe to file events from the input
directory in cloud object storage like Azure blob storage or S3. File
notification mode is more performant and scalable for large input
directories or a high volume of files.


Auto Loader and Cloud Storage Integration


Auto Loader supports a couple of ways to ingest data incrementally


Directory listing - List Directory and maintain the state in RocksDB,
supports incremental file listing
File notification - Uses a trigger+queue to store the file notification
which can be later used to retrieve the file, unlike Directory listing File
notification can scale up to millions of files per day.

Información del documento

Subido en
1 de noviembre de 2024
Número de páginas
61
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$16.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
GRADEUNITS
3.6
(32)
Vendido
191
Seguidores
94
Artículos
6048
Última venta
1 mes hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes