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
Start free
Serverless vs Dedicated Synapse Pools
00:00
5 left

Serverless vs Dedicated Synapse Pools

HardSQL · PostgreSQL

Problem

How would you decide between serverless and dedicated SQL pools in Azure Synapse, and what tradeoffs matter most?

Use the supplied workload and pool-option data to produce a SQL-based comparison. Estimate monthly costs for both choices and select the more appropriate pool using scan volume, active hours, and peak concurrency.

Output

  1. One row per workload with workload_name, serverless_monthly_cost, dedicated_monthly_cost, recommended_pool, and decision_reason
  2. Include all workloads, including rows with missing optional attributes
  3. Sort by workload_name ascending

Schema

workload_profiles
ColumnTypeDescription
workload_idPKINTUnique workload identifier
workload_nameVARCHAR(100)Workload name
workload_typeVARCHAR(40)Workload classification
monthly_scan_gbDECIMAL(12,2)Estimated data scanned monthly
monthly_active_hoursDECIMAL(10,2)Estimated monthly active hours
peak_concurrencyINTMaximum concurrent workload count
pool_options
ColumnTypeDescription
option_idPKINTUnique pool option identifier
option_nameVARCHAR(80)Named pricing option
pool_typeVARCHAR(20)Serverless or dedicated
regionVARCHAR(40)Azure region
cost_per_gbDECIMAL(10,4)Illustrative serverless cost per scanned GB
hourly_costDECIMAL(10,2)Illustrative dedicated hourly cost
Tablesworkload_profilespool_options
Interviewer

Whenever you're ready, walk me through your approach or go straight to the code. The requirements and the two tables are in the Question tab.

Sign up free to run or submit. Log in
CodePostgreSQL
Sign up free to run your code. Your draft is saved.Run with a free accountLog inLn 1
Run your query to see results here.