Databricks vs Apache Spark for HIPAA and healthcare

Databricks fits teams that want a vendor BAA and a managed control plane, provided they meet its PHI configuration rules. Apache Spark fits teams that keep compute in their own environment and can carry every Security Rule obligation themselves.

On this page

Databricks vs Apache Spark for HIPAA: which side fits your PHI workload

Databricks fits when the organization wants a vendor that signs a business associate agreement (BAA) and runs a managed control plane under documented PHI settings. Apache Spark fits when compute must stay in the organization's own environment and the team can carry every Security Rule obligation itself. This page covers only the HIPAA angle, and the general comparison is on its own page. The decision turns on three questions: who signs and operates the platform, where electronic PHI sits in each architecture, and whether the team can produce the documentation an assessor asks for. No platform makes an organization compliant on its own. Under 45 CFR Part 164 Subpart C, covered entities and business associates own the Security Rule duties for electronic PHI, whichever platform they choose.

On the Databricks side, the BAA is the first gate. Under the AWS HIPAA documentation, enabling HIPAA controls through the compliance security profile means you agree to Databricks' BAA unless a separate one is in place, and an active BAA is required before any PHI is processed. The organization must also enable the compliance security profile on every PHI workspace, use customer-managed keys or the notebook results storage feature, avoid unsupported preview features, and sign a BAA with AWS. Confirm the compute plane in writing. Classic compute runs in your cloud account, while serverless compute runs in the Databricks account, so ask whether serverless workloads fall under the same PHI settings and where each workspace's storage bucket sits. Databricks HIPAA on AWS

With Apache Spark, no vendor signs a BAA, because Spark is open source software and the organization running it carries every HIPAA obligation itself. Treat the defaults as a gap list to close. The Spark security documentation says authentication is not enabled by default and that no deployment type is secure by default. Encryption needs explicit attention: spark.io.encryption.enabled defaults to false, and it covers temporary shuffle files, spills and cached blocks on local disk but does not cover output data that applications write. Have the team document how it handles each addressable implementation specification under 45 CFR 164.306(d), including the reason for any decision not to adopt one and any equivalent measure, before PHI arrives. Confirm with your assessor which evidence they expect for a self-run cluster before you commit to this side. Spark security documentation

Where PHI sits in a Databricks workspace and in a self-hosted Spark cluster

The diagram starts with the Databricks control plane in Databricks' account, which hands jobs and configuration to compute. Classic compute runs in your cloud account, serverless compute runs in Databricks' account, and both read and write Delta tables. Those tables are Parquet files plus a transaction log in your S3 workspace storage bucket. Confirm BAA coverage at each marked point: the Databricks BAA for the control and serverless planes, and the AWS BAA for the bucket and classic compute. The self-hosted side has no vendor in the data path, so the cluster, storage and network are yours to secure. Any hosting provider you use needs its own BAA confirmed.

Trust boundaries and data handoffs for both models, with BAA checkpoints marked.

What the HIPAA Security Rule asks of a lakehouse holding PHI

The HIPAA Security Rule is codified at 45 CFR Part 164 Subpart C and applies to covered entities and business associates for electronic protected health information (ePHI). A lakehouse holding PHI is therefore one system inside the organization's compliance program, and the organization answers for how it is configured, operated and documented. No platform makes a lakehouse HIPAA compliant on its own. Start with scope: list every system that creates, receives, maintains or transmits ePHI, including tables, notebooks, jobs, logs and backups, then map each one to the Rule's standards. Before anyone describes Databricks or Apache Spark as certified, read the HHS FAQ on certification and ask each vendor to confirm in writing what its documents cover.

Appendix A to Subpart C lists 18 standards across administrative (164.308), physical (164.310) and technical (164.312) safeguards, with 36 implementation specifications: 14 required and 22 addressable. Sections 164.314 and 164.316 add organizational and documentation standards. For a lakehouse, the administrative work covers risk analysis, workforce access and contingency planning, the technical work covers access control, audit controls, integrity and transmission security, and the physical work covers the cloud accounts and facilities where storage and compute run. On Databricks, classic compute runs in your own cloud account while serverless compute runs in the vendor's account, so confirm which plane each PHI workload uses before mapping controls. Apache Spark is open source, so no vendor signs a BAA for it, and its authentication is not enabled by default. Every safeguard is yours to configure.

Addressable specifications are where most of the judgment sits. For each one, the organization must assess whether it is reasonable and appropriate for its environment (45 CFR 164.306(d)). If it is not, the organization documents why and implements an equivalent alternative measure where that is reasonable and appropriate. Illustrative example: a team running Spark on its own cluster decides local spill encryption is needed, sets spark.io.encryption.enabled (default false), and records that this setting does not cover output data written by applications, so a separate control applies there. Keep one decision record per addressable specification and per workload, with the reviewer, the date and the supporting evidence, so the file still matches the system at audit time.

How each side meets HIPAA requirements as documented

This table compares what Databricks on AWS and self-run Apache Spark document for the HIPAA controls that touch PHI, row by row. Read the Databricks column as the vendor's documented position and the Spark column as the settings you own. The main takeaway is that Databricks documents conditions you must meet, while Spark documents defaults you must change, and each cell states what to confirm before go-live.

Requirement areaDatabricks on AWSApache Spark (self-run)
BAA and who signs itEnabling the compliance security profile means agreeing to Databricks' BAA unless a separate one exists. Also sign an AWS BAA.No vendor signs a BAA for Spark. Your organization carries the HIPAA obligations and must confirm its own agreements.
PHI workspace configurationEnable the compliance security profile on every PHI workspace. Confirm the setting for each workspace in your account.Self-managed configuration is entirely your responsibility. Define, harden and document settings for each PHI cluster, job and workspace.
Encryption of stored dataCustomer-managed keys or the notebook results storage feature, per Databricks' HIPAA requirements. Confirm which applies to your workspace.The Spark encryption setting does not cover output data. Confirm encryption for output storage with your storage platform.
Encryption of temporary dataConfirm with Databricks how temporary files, spills and caches are encrypted on your compute type.spark.io.encryption.enabled defaults to false. It covers shuffle files, spills and cached blocks on local disk. It does not cover output data written by applications.
Authentication and access controlConfirm SSO, provisioning and workspace permission settings with Databricks against your access model.Spark authentication is not enabled by default. No deployment type is secure by default, so you configure it.
Audit loggingConfirm which audit events are emitted for PHI workspaces and where they are delivered, and how long they are kept.Spark's event logs and application logs are not a compliance audit trail by default. Design and retain your own audit logging.
Data location and compute planesControl plane is managed in Databricks' account. Classic compute runs in your cloud account; serverless compute runs in Databricks' account.Compute and storage run wherever you deploy them, under your control. Confirm the region and network boundary for every PHI path.
RegionsFeature table lists 18 AWS regions, including eu-central-1, eu-west-1 and us-gov-west-1. Availability varies by feature.Region choice is yours; check your cloud provider's service coverage for each region you use.
Preview features and release linesDatabricks says to avoid unsupported preview features in PHI workspaces. Check each feature's status before enabling it.Spark's versioning policy says 3.5.x extended LTS ends November 2027 with security fixes only. Plan upgrades before then.

Who covers what: vendor duties and the duties that stay with your team

Databricks manages its control plane, but you still sign the BAA, enable the compliance security profile, and set workspace storage and access. Apache Spark leaves every duty with your team because no vendor signs a BAA for it. DeployOpen prepares these controls and evidence, and does not certify them.

Databricks' BAA and its trigger

Databricks ties its business associate agreement to the compliance security profile. Enabling HIPAA controls through that profile means you agree to Databricks' BAA unless a separate one is already in place, and an active BAA is required before any PHI is processed. Have legal review the signing path before the first PHI workload, and file the executed agreement with your HIPAA records.

Databricks HIPAA docs

Databricks BAA coverage per compute plane

Databricks runs its control plane of backend services in the Databricks account. Classic compute runs in your own cloud account, while serverless compute runs in the Databricks account. Sign the BAA with AWS, then confirm in writing that it covers each compute plane your PHI workloads use. Check the feature availability table, which lists 18 AWS regions and varies by feature, before you fix a region.

Databricks PHI workspace settings

Enable the compliance security profile on every workspace that holds PHI, including test copies with PHI in them. Choose customer-managed keys or the notebook results storage feature, and keep unsupported preview features out of PHI workflows. Classic workspaces require a customer-provided S3 bucket for system data, the default Unity Catalog catalog and legacy DBFS content, so control who can reach that bucket and confirm its access settings.

Spark has no vendor BAA

Apache Spark is open source software, so no vendor signs a BAA for it. Your organization carries the HIPAA obligations for the platform, and the Security Rule applies to covered entities and business associates for electronic PHI. Confirm the BAA position of every hosting provider, cloud account and add-on service that touches the cluster, because each of those contracts is yours to negotiate.

Spark access, encryption and networks

Spark's 4.3.0 security documentation says authentication is not enabled by default and that no deployment type is secure by default, so you must enable and test it. Setting spark.io.encryption.enabled covers temporary shuffle files, spills and cached blocks on local disk, but it defaults to false and does not cover output data your applications write. Encrypt that output storage yourself, and map every network path between drivers, executors, storage and users.

Spark security docs

Spark versions, logging and risk analysis

Pick a supported release line and plan upgrades around it. Feature releases move to a quarterly cadence starting with 4.3.0, and the 3.5.x extended LTS receives security fixes only. Keep cluster and application logs in a store you control, then complete a documented risk analysis under the Security Rule's administrative safeguards. For each addressable specification you do not implement, record why and the equivalent measure you use.

The HIPAA evidence an assessor asks for and how each side produces it

On the Databricks side, most of the evidence is vendor agreements and workspace settings. Databricks supplies the agreement, trust materials and platform settings, but the team must collect, date and file them. Start with the contract. Enabling HIPAA controls through the compliance security profile means you agree to Databricks' BAA unless a separate one is in place, and an active BAA is required before any PHI is processed.

  • Signed BAA and effective terms: Keep the executed agreement with its effective dates, and confirm which agreement covers each PHI workspace. The vendor guidance also requires an agreement with AWS, so file that alongside it.
  • Security profile per PHI workspace: Capture proof that the compliance security profile is on for every workspace that holds PHI, including workspaces created later.
  • CMK or notebook results storage: Record which option each workspace uses, where the keys or results sit, and who can change the setting.
  • Preview features in use: List every preview feature enabled in PHI workspaces and confirm each one is supported for PHI use. The guidance says to avoid unsupported preview features.
  • Regions used: The HIPAA page lists 18 AWS regions in its feature table, and availability varies by feature, so map each feature you rely on to the regions where its data sits.
  • Trust page materials: Download what you can share from the compliance trust page, and confirm with Databricks which reports apply to your plan.

Check the BAA scope against your data flow diagram before the assessor does, because any PHI workspace or region outside the documented scope is a gap the team must close.

Why a signed BAA does not settle the HIPAA question on Databricks

A signed BAA with Databricks settles the vendor relationship and little else. It sets out how Databricks handles protected health information on your behalf, but the HIPAA Security Rule still applies to your organization as the covered entity or business associate holding the data (45 CFR 164.302). You keep ownership of your risk analysis, your access decisions, your data retention rules, your incident handling and the configuration of each PHI workspace. The contract cannot make those decisions for you. Before any PHI lands in a workspace, a compliance lead should be able to name who approved its access model, which retention period applies to its Delta tables, and who runs the incident process if something goes wrong.

The BAA also has a trigger that teams should plan around. Databricks' AWS HIPAA documentation says that enabling HIPAA controls through the compliance security profile means you agree to Databricks' BAA unless a separate one is already in place, and that an active BAA is required before PHI is processed. The same documentation asks you to enable the compliance security profile on every PHI workspace, to use customer-managed keys or the notebook results storage feature, and to avoid unsupported preview features. Before the first PHI load, confirm in writing with Databricks that the agreement is active for your account, then check each PHI workspace against that list. Databricks HIPAA on AWS

The serverless compute plane needs its own answer. Databricks documents a control plane managed in its account, a classic compute plane that runs in your cloud account, and a serverless compute plane that runs in the Databricks account. Classic compute keeps processing in infrastructure you already administer, but serverless moves it outside your account, so how the BAA applies to that plane must be confirmed in writing before any PHI runs there. Ask which of your workloads would use serverless, where its intermediate data is stored, and which of your obligations the BAA covers on that plane. Apache Spark has a different starting point: no vendor signs a BAA for open-source software, so your organization carries the obligations, and the cloud host and any managed service around the cluster each need their own agreement and assessment.

Configuring Databricks or self-hosted Spark for a PHI workload

These steps set up a PHI workload on Databricks or self-hosted Apache Spark, in the order your team carries them out. Step 1 applies to both platforms, steps 2 to 5 apply to Databricks, and steps 6 to 8 apply to self-hosted Spark. Each step is an action your team takes that leaves evidence for an assessor, and none of them produces a certificate.

  1. Confirm the BAA route and covered plan

    Before any PHI enters the platform, the compliance lead confirms who signs what. On Databricks, the AWS HIPAA documentation says enabling HIPAA controls through the compliance security profile means you agree to Databricks' BAA unless a separate one is in place, and an active BAA is required before PHI is processed. Ask which plan and tier the BAA covers, and get the agreement in writing. Apache Spark has no vendor to sign a BAA, so the organization running it carries the HIPAA obligations. Done when the signed agreement or written position is filed with the assessor's evidence.

  2. Choose a region and check feature coverage

    Open the feature-availability table on the Databricks HIPAA page on AWS, which lists 18 AWS regions, including eu-central-1, eu-west-1 and us-gov-west-1. Availability varies by feature, so list every feature the PHI workload needs, such as particular compute options or governance capabilities, and confirm each one in the chosen region. If a required feature is missing there, return to the design before any PHI is loaded. For self-hosted Spark, the region question becomes where your own clusters and storage sit, which the team should confirm against its data residency terms. Done when a sign-off lists each required feature, its region and the date it was checked.

  3. Create a dedicated PHI workspace

    Create a workspace used only for PHI, separate from development and analytics workspaces, and enable the compliance security profile on it. The Databricks HIPAA documentation requires this on every PHI workspace. The platform team makes the change using the account settings it controls. Limit the workspace's users and groups to people in scope for PHI, and record the workspace ID in the evidence file. Done when the workspace settings show the compliance security profile enabled and an export or screenshot of those settings is filed.

  4. Configure customer-managed keys or notebook results storage

    Choose between customer-managed keys and the notebook results storage feature, since the Databricks HIPAA documentation names both as options. Confirm with Databricks exactly what each option covers for your workloads, who administers the keys or storage, and how changes are logged. Also make sure no unsupported preview features are switched on in the PHI workspace, and record that check. Test the chosen option on sample data before any PHI is loaded. Done when the configuration is enabled, the test is documented and the preview-feature review is filed in the evidence set.

  5. Set up customer-owned S3 workspace storage

    Classic Databricks workspaces require a customer-provided S3 bucket as workspace storage. That bucket holds workspace system data, the default Unity Catalog workspace catalog and any legacy DBFS content. Create it in your own AWS account, apply the encryption and access policies your security team approves, and block public access. Delta Lake is the default table format, and its data and metadata sit in cloud object storage as Parquet files plus a transaction log, so the storage controls apply to table data as well. Done when the bucket policy and encryption settings are reviewed and the bucket is attached to the PHI workspace.

  6. Pin a supported Spark release line

    For self-hosted Spark, choose a release line that still receives fixes and record the exact version in your build or deployment configuration. The Spark downloads page lists 4.2.0 (July 14, 2026), maintenance releases 4.1.3 and 4.0.4 (July 15, 2026) and 3.5.9 (July 16, 2026). Spark's versioning policy maintains major and feature release branches for 6 months and makes the last release in each major line an LTS maintained for 18 months. The 3.5.x extended LTS ends in November 2027 and receives security fixes only. Done when the version is pinned in every environment and the pin is recorded in the evidence file.

  7. Enable authentication and restrict network paths

    The Spark security documentation says authentication is not enabled by default and that no deployment type is secure by default, so the platform team must turn it on and verify it. Restrict which hosts can reach the masters, workers and web interfaces using network rules your security team owns, and disable any interface the workload does not need. Test each path with a connection attempt from outside the allowed range. Done when authentication is confirmed on every node and the network test results are saved in the evidence file.

  8. Decide output encryption and route logs

    Decide how output data will be encrypted, because spark.io.encryption.enabled (default false) covers temporary shuffle files, spills and cached blocks on local disk, and does not cover output data written by applications. Choose and implement an encryption approach for the storage where outputs land, using controls your team owns. Route Spark logs to a store the team controls, with access limits and retention set by policy. Record every setting, its owner and its value in the evidence file for the assessor. Done when output encryption and log routing are tested and the settings register is complete.

What buyers ask before hiring help for a HIPAA data platform

How does the cost of Databricks compare with free Apache Spark?

Apache Spark has no license fee, while Databricks is billed by usage, so the cost question is which bills you pay and what staff time they replace. Spark is licensed under the Apache License 2.0, so its cost sits in infrastructure, your engineers' time and assessment work. Databricks bills pay-as-you-go per second in Databricks Units (DBUs), a normalized unit of processing power, with no up-front costs, and committed-use contracts offer discounts. Storage and networking are billed by your cloud provider, so they appear on a separate invoice. Ongoing costs recur with cluster hours, the number of PHI workspaces and the environments you keep. Ask for a quote that separates Databricks charges, cloud charges and DeployOpen's fixed-scope work, and marks which lines recur.

How long does a HIPAA data platform implementation take?

Timelines depend on scope, so ask for one in the written scope before work starts, and treat any date given earlier as a planning guess. The main drivers are the number of Databricks workspaces, the regions you need, the policies you already run and the data sources that feed the platform. Illustratively, one workspace in one region with documented policies is a shorter job than several workspaces across regions with unfamiliar identity rules. Each data source adds intake, classification and access review work, so list every source early. Ask the proposal to show the phases, the points where your team signs off and what changes if a source or policy differs from what you described.

What does my team need to provide before implementation starts?

Expect to name one accountable owner, and to give the implementer access to the BAA, the cloud accounts and a data flow owner who can explain where PHI moves. The named owner makes scope, risk and sign-off decisions, so pick someone with authority over the platform budget and the compliance program. The BAA sets the legal ground for PHI processing, so confirm with your counsel which services it covers. Cloud account access should follow least privilege, with roles scoped to the accounts and regions in the written scope. The data flow owner maps sources, transformations and consumers, which feeds access reviews and the evidence trail. Confirm these roles in the scope before work starts and record who approves each change.

Can our own engineers set up Databricks or Spark for PHI?

Yes, if your team already has the skills to run the platform and to document the HIPAA program around it. Running either option means administering clusters, identity integration, logging, backups, upgrades and change control, and each produces evidence an assessor may ask to see. Spark is the sharper case: its security documentation says authentication and other features are not enabled by default and that no deployment type is secure by default, so your team must configure them on purpose. Documentation covers the risk analysis, policies, workforce training records, access reviews and incident procedures. If one gap is hard to close in-house, a fixed-scope engagement can cover that part while your team keeps running the platform. Ask any provider, including DeployOpen, what it will hand over and how your staff will be trained to operate the result.

Does hiring a consultant make our platform HIPAA compliant?

No. A consultant can prepare systems, controls and evidence, but DeployOpen does not issue audit reports, attestations or certifications, and HIPAA has no certification that a platform can earn. Compliance is an ongoing obligation of the covered entity or business associate that handles electronic protected health information. The Security Rule asks you to assess risk, apply safeguards across administrative, physical and technical areas, and document your decisions, including how an addressable specification was handled by an equivalent measure when it was not adopted as written. The HHS FAQ on certifying compliance explains this position. Ask any provider which evidence it prepares and which parts an assessor or your legal team must confirm.

Does Apache Spark need a business associate agreement?

No vendor signs a business associate agreement (BAA) for Apache Spark, because it is open source software, so your organization carries the HIPAA obligations for any deployment you run. Databricks is a commercial service, so its terms differ. Its AWS HIPAA guidance says that enabling HIPAA controls through the compliance security profile means you agree to Databricks' BAA unless a separate one is in place, and an active BAA is required before any PHI is processed. You also need a BAA with AWS for the cloud account underneath. The same page lists 18 AWS regions, but availability varies by feature, so confirm each feature and region you plan to use before you sign off the design.

Does spark.io.encryption.enabled protect PHI that jobs write out?

No. The spark.io.encryption.enabled setting, which defaults to false, encrypts temporary shuffle files, spills and cached blocks on local disk, but it does not cover output data that applications write. Treat every output path as a PHI location to check, including tables, checkpoints, logs and exported files. On Databricks, the HIPAA guidance asks for customer-managed keys or the notebook results storage feature on PHI workspaces, so check separately how keys cover your storage. Verify the running configuration before you assume it is correct. Illustratively, run a test job on fake patient records to see where data lands, and keep the result as evidence for your assessor.

What does DeployOpen quote for a HIPAA data platform?

DeployOpen publishes no price list, so a quote follows the written scope, which is fixed for most engagements and agreed in writing before work starts. The scope sets the deliverables, timelines, what your team provides and what is excluded. Quote drivers include the number of workspaces, regions and data sources, the security testing and evidence work you request, and whether you want ongoing support, upgrades or continuous testing, which are offered as retainers. Ask for each deliverable by name, the assumptions behind it, your team's responsibilities, the exclusions and how a change to scope is priced. Separate one-time build work from recurring retainers so your budget shows both.

How DeployOpen helps prepare controls and evidence for either path

For Databricks vs Apache Spark for HIPAA and healthcare, DeployOpen scopes the Security Rule controls each path needs, builds or reviews the configuration, and documents the evidence an assessor will request. Because Apache Spark has no vendor BAA, the work centers on hardening and evidence you own, while Databricks work centers on configuration review under its BAA terms. DeployOpen prepares controls and evidence but does not issue audit reports or certifications.

How we scope

  • The written scope names which Security Rule standards apply, such as the technical safeguards in 45 CFR 164.312.
  • For Databricks, scope confirms BAA status, which workspaces hold PHI, and the compliance security profile on each.
  • For Apache Spark, scope assigns a named owner for each safeguard, because no vendor signs a BAA for Spark.

How we build

  • For Spark, we enable and test authentication and network controls, since Spark does not turn them on by default.
  • We set spark.io.encryption.enabled where local disk holds shuffle or spill data, then cover application output with separate storage controls.
  • For Databricks, we review classic compute plane placement, the workspace storage bucket and customer-managed key settings against documented requirements.

How we hand over

  • A control map links each in-scope Security Rule standard to the setting, policy or owner that meets it.
  • Each addressable specification gets a written assessment, with the reason and any equivalent measure under 45 CFR 164.306(d).
  • The evidence set covers access reviews, audit log samples, backup restore tests and, for Databricks, the AWS BAA.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so controls can be rechecked after each change.
  • Plan retesting before the Spark 3.5.x extended LTS ends in November 2027, when only security fixes continue.
  • DeployOpen prepares evidence for your assessor but does not issue audit reports, attestations or certifications.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.