Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Get started
Adobe Analytics Pipeline Optimization
00:00
5 left

Adobe Analytics Pipeline Optimization

MediumSQL · PostgreSQL

Problem

How do you manage and optimize Adobe Analytics data pipelines moving into platforms like Databricks?

Using the provided Adobe Analytics event and Databricks batch tables, write a query that reports ingestion quality for successfully loaded batches. Treat the newest record for each logical event as authoritative and retain batches with no usable events.

Output

  1. One row per successfully loaded batch, event date, and event type.
  2. Return batch_id, load_date, event_date, event_type, event_count, valid_event_count, total_revenue, and data_quality_pct.
  3. Include an explicit No events row for empty batches and Unmapped for unknown event codes. Sort by batch_id, event_date with nulls first, then event_type.

Schema

adobe_events
ColumnTypeDescription
raw_event_idPKINTPhysical event record identifier
event_idVARCHAR(30)Logical Adobe event identifier
batch_idVARCHAR(20)Databricks load batch identifier
visitor_idVARCHAR(30)Adobe visitor identifier
event_timestampTIMESTAMPTimestamp captured by Adobe Analytics
event_type_codeVARCHAR(20)Adobe event type code
ingestion_timestampTIMESTAMPTime the record entered the pipeline
is_validBOOLEANWhether validation passed
revenueDECIMAL(12,2)Revenue attributed to the event
databricks_batches
ColumnTypeDescription
batch_idPKVARCHAR(20)Databricks pipeline batch identifier
load_dateDATEDate the batch was loaded
load_statusVARCHAR(20)Pipeline load status
target_tableVARCHAR(80)Databricks destination table
event_type_lookup
ColumnTypeDescription
event_type_codePKVARCHAR(20)Adobe event type code
event_type_nameVARCHAR(40)Readable event type name
Tablesadobe_eventsdatabricks_batchesevent_type_lookup
Interviewer

Your question is Adobe Analytics Pipeline Optimization. Start with the requirements and the three tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.