Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Implement a foreign catalog by configuring connections

A worked example

Single answer

A data engineer must run a CREATE CONNECTION ... TYPE SQLSERVER statement from a notebook to register an Azure SQL Database server in Unity Catalog. The connection will later be used to create a foreign catalog. The engineer is not a metastore admin. Firewall and network security group rules already allow traffic on port 1433 from the Azure Databricks workspace to the database server. The exhibit shows four candidate setups for the engineer and the cluster that runs the notebook.

SetupPrivilege held by the engineerCluster runtimeCluster access mode
Setup 1CREATE CONNECTION on the metastore12.2 LTSDedicated
Setup 2CREATE CATALOG on the metastore15.4 LTSStandard
Setup 3CREATE CONNECTION on the metastore14.3 LTSStandard
Setup 4CREATE CONNECTION on the metastore15.4 LTSNo isolation shared

Which setup meets the prerequisites for creating the connection?

Choose one answer
Why

Before a connection can be created, the user must hold the CREATE CONNECTION privilege on the metastore or be a metastore admin. The compute also has to be on Databricks Runtime 13.3 LTS or a later version, using either Standard or Dedicated access mode, and network rules must permit traffic on the database port, which the scenario already confirms. Only Setup 3 satisfies the privilege, runtime and access mode conditions together; each other setup fails exactly one of them.

  • Not correct: Setup 4. The privilege and runtime are acceptable, but the cluster must use either Standard or Dedicated access mode, and No isolation shared is neither of those.
  • Not correct: Setup 1. The privilege and access mode are acceptable, but the cluster must be on Runtime 13.3 LTS or a later version, and 12.2 LTS is older than that.
  • Not correct: Setup 2. The runtime and access mode are acceptable, but registering a connection requires the CREATE CONNECTION privilege on the metastore or metastore admin rights, and the engineer is not a metastore admin.
  • Correct: Setup 3. The engineer holds CREATE CONNECTION on the metastore, and the cluster runs a runtime newer than 13.3 LTS in Standard access mode, so every stated prerequisite is met.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free