cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

[FGAC_ON_DEDICATED_COMPUTE_FAILED] Fine-grained access control (FGAC) on dedicated compute failed

dans-vander
New Contributor II

Hi everyone,

Starting this thread to check if anyone else has seen a similar issue, and sharing the solution because in our case, it was a detail we hadn't noticed it in the documentation.

https://docs.databricks.com/aws/en/compute/single-user-fgac

Problem

Starting on August 26, we began experiencing issues with some jobs/pipelines (running on dedicated "single user" mode) that consumed data from the system table (system.audit.access, with the error below:

dansvander_0-1789651121627.png

After upgrading DBR (Databricks Runtime) version to DBR 15.4 LTS+ (for read queries), the error message switch to this one:

[FGAC_ON_DEDICATED_COMPUTE_FAILED] Fine-grained access control (FGAC) on dedicated compute failed due the following exception: PERMISSION_DENIED: PERMISSION_DENIED: Cannot access Spark Connect. (requestId=cc5287db-4c51-49c8-8ed6-6eeab6a66032)

Cause

Query text will be masked by default in the query history system table, the Query History API, audit logs, and the List Queries API starting August 26, 2026

You are receiving this notice because you have one or more workspaces that read query text from the query history system table, the Query History API, audit logs, or the List Queries API.

As more customers run Databricks for mission-critical and transactional workloads, we are raising the default security posture for every account. Query text often contains PII, including names, email addresses, and account numbers embedded in filter conditions, alongside table names and business logic. It was already possible to protect this before, but it required setup. We are making that protection the default.

Starting August 26, 2026, query text will be masked by default and visible only to account administrators and members of the databricks_pii_access group who also have access to the underlying table or API. This keeps your data secure from inadvertent sharing and prevents agentic systems from gaining unintended access to it.

Resolution

- Keep the dedicated cluster, but make sure it's on DBR 15.4 LTS+ (for read queries) .

Even when using the runtime mentioned in the documentation, we continued to encounter errors; that was when we discovered that Serverless for Jobs/Notebooks needs to be enabled for the workspace so that the FGAC operation would work for jobs in Dedicated ("Single User") security mode:

  1. Since the mask is delegated to serverless, the workspace needs the serverless-compute path available for the FGAC hop to complete. Note: this is Serverless compute for jobs/notebooks/workflows (workspace admin setting), not the "Can use" permission on a serverless SQL warehouse. Those are different settings; the one FGAC needs is the jobs/workflows serverless entitlement.
  2. Standard clusters (Shared) evaluate FGAC natively, with no delegation hop, so the masked system tables read fine. Trade-off: Standard mode doesn't support a few low-level APIs, so the job needs a small code change to drop direct SparkContext/RDD usage and in-code SparkConf/spark.conf mutations (use the DataFrame/SQL APIs and set Spark configs at the cluster level instead).

- How to Enable it?

Account Console

The feature you need is Serverless compute for jobs/notebooks/workflows, enabled at the account level by an account admin (Trade-off is that enables for all workspace in the account, so, you need to assess the risks and potential cost impacts.):

  • Login in to https://accounts.azuredatabricks.net/
  • Account Console → Settings → Feature enablement → "Serverless compute" → enable (accepting the serverless terms if prompted).

Workspace Console

I found this option in the "Previews" section at workspace level and enabled it:

dansvander_1-1789652090146.png

dansvander_2-1789652099168.png

 

Did you run into a similar issue? What did you think of this new feature?
How are you managing or limiting Serverless costs for jobs and workflows?

 

Regards,

Danilo Van der Linden

2 REPLIES 2

slowder
Contributor

Your point about the delegation hop is a critical detail. It means that even if you want to keep workloads on dedicated classic compute, you still have to enable the serverless path workspace-wide just to handle policy evaluation.

We didn’t hit this one, and that’s down to timing. We turned serverless on while it was still in beta. We adopt new Databricks features as early as we can so we can see where they hold up and where they fall down. The cost of finding a requirement like this early is much lower than finding it mid-migration.

On serverless versus classic, I’d treat it as a per-workload calculation, not a switch. (Disclosure: I work at Blueprint. This isn’t a pitch; I’m just describing what we ran into.)

The system tables get you partway. system.billing.usage joined to system.billing.list_prices gives you DBUs and list-price dollars per job run. system.lakeflow.job_run_timeline gives you the runs themselves, but be careful: a run spans several period slices, and the result state is only populated on the last one. system.compute.node_timeline gives you CPU and memory utilization per minute for classic compute, which is how you see idle and over-provisioned clusters.

There are three gaps.

  1. Billing has DBUs but not the cloud VM cost, and on classic compute the VM is often a large share of the bill.
  2. node_timeline only keeps a short window, and it doesn’t cover serverless.
  3. Cluster start-up time isn’t cleanly separable from run time, so the “short job, start-up dominates” case is hard to prove from the tables alone.

This is where Blueprint’s Lakehouse Optimizer (LHO) came in. We built it because extracting what we needed to give real classic-versus-serverless guidance was genuinely complex: utilization, VM-level cost, run history and incidents, kept past the retention window. I’ll admit LHO now sees only a small slice of our spend, because most of it has moved to serverless and AI products. For that, system tables are the right source, and LHO and billing agree on the totals within about 1%.

Roughly: frequent short jobs where start-up dominates tend to favor serverless. Long, steady, well-utilized ETL on spot instances can still be cheaper on classic. Both are hypotheses to test against your own run data.

How are you currently measuring idle time and VM cost on your classic clusters?

Patterns travel. Practices depend. Build it governed, ship it boring.
— Shannon Lowder, Blueprint Technologies | https://bpcs.com/blog | https://shannonlowder.com

saurabh18cs
Honored Contributor III

Hi @dans-vander  By default Databricks Serverless generic compute cannot reach any of private Azure resources. To enable connectivity a private endpoint is needed. Unfortunately setup does not have unlimited private endpoints that can be used with the Databricks Serverless and there are limitations. It is because of this that it should be considered if Serverless compute is really needed for what your team is trying to accomplish in Databricks. You can use the following information to decide if you really need Serverless compute:

  1. Serverless Compute for Notebooks
  • Description: Instant, managed compute for interactive notebook (Py-thon/SQL) workflows.
  • Serverless Required: Yes
  • Docs: Serverless compute for notebooks
    Visit URL.
  1. Serverless Compute for Jobs/Workflows (Lakeflow Jobs)
  • Description: Managed execution for automated, orchestrated jobs; formerly known as "jobs clusters."
  • Serverless Required: Yes
  • Docs: Run your Lakeflow Jobs with serverless compute for workflows
  1. Serverless Lakeflow Declarative Pipelines (formerly DLT)
  • Description: Declarative, resilient ETL pipelines on serverless infrastructure.
  • Serverless Required: Yes
  • Docs: Configure a serverless pipeline
  1. Serverless SQL Warehouses
  • Description: Next-generation, fully-managed SQL analytics engine for BI, AI, and ad hoc analysis.
  • Serverless Required: Yes
  • Docs: Enable serverless SQL warehouses
  1. Serverless GPU Compute
  • Description: Managed and ephemeral GPU resources for developing, training, and deploying machine learning/deep learning workloads.
  • Serverless Required: Yes
  • Docs: Serverless GPU compute
  1. Serverless Networking Features (Firewall, Private Link, NCC)
  • Description: Private connectivity from serverless workloads to Azure re-sources (e.g., ADLS), plus network egress/firewall controls.
  • Serverless Required: Yes (applies to network/isolation for serverless only)
  • Docs:
    i. Configure private connectivity to Azure resources
    ii. Configure a firewall for serverless compute access
  1. Serverless Budget Policies (Cost Attribution/Tagging)
  • Description: Budget enforcement and tagging for workloads that run exclu-sively on serverless compute.
  • Serverless Required: Yes (for usage, budget, and tag policies on serverless SKUs)
  • Azure Docs: Attribute usage with serverless budget policies
  1. Mosaic AI Model Serving (Real-Time Inference Endpoints)
  • Description: Deploy, host, and scale low-latency inference endpoints for both classic ML and generative AI models.
  • Serverless Required: Yes (all endpoints run on serverless infrastructure)
  • Azure Docs: Deploy models using Mosaic AI Model Serving
  1. Predictive Optimization
  • Description: Automated, AI-powered maintenance and optimization (OPTIMIZE, VACUUM, ANALYZE) for Unity Catalog managed tables.
  • Serverless Required: Yes (background work runs on managed serverless compute)
  • Azure Docs: Predictive optimization for Unity Catalog managed tables
  1. Mosaic AI Model Training (Forecasting, Deep Learning, Fine-Tuning)
  • Description: Serverless managed compute, including GPU acceleration, for training and fine-tuning ML and GenAI models.
  • Serverless Required: Yes (for serverless GPU workloads)
  • Azure Docs: Serverless GPU compute
  1. Agent Bricks (Mosaic AI Agent Bricks)
  • Description: Low-code, auto-optimized AI agent systems for information ex-traction, custom LLM tasks, RAG, multi-agent orchestration, etc.
  • Serverless Required: Yes (Account/workspace must have serverless enabled, not available in Europe at the time of writing).
  • Azure Docs:
    i. Agent Bricks
    ii. Agent Bricks: Information Extraction
    iii. Agent Bricks: Knowledge Assistant
    iv. Agent Bricks: Custom LLM
    v. Agent Bricks: Multi-Agent Supervisor
  1. Agentic Model/Agent Evaluation and Monitoring (Mosaic AI Agent Evaluation)
  • Description: Evaluate, benchmark, and monitor agentic apps using MLflow/Agent Evaluation—requires serverless compute to scale evaluation jobs.
  • Serverless Required: Yes (for serverless monitoring, evaluation, and optimiza-tion workloads)
  • Azure Docs: Mosaic AI Agent Evaluation

https://learn.microsoft.com/en-us/azure/databricks/resources/limits

thanks