Courseiva

CCNA Assembling and Deploying Apps Questions

63 questions · Assembling and Deploying Apps · All types, answers revealed

1
MCQmedium

Which component of a Databricks Asset Bundle (DAB) allows you to define different configurations (e.g., instance sizes, variables) for development versus production environments?

A.The 'variables' block at the top level
B.The 'targets' block
C.The 'resources' block
D.The 'include' directive
AnswerB

Targets allow you to define environment-specific overrides for a deployment. You can specify a different workspace, job cluster configuration, or variable values for 'dev', 'staging', and 'prod'. This mechanism ensures the bundle remains portable while allowing the necessary infrastructure adjustments required for each distinct environment's performance and cost profile.

Why this answer

The 'targets' block in the 'databricks.yml' file allows developers to define environment-specific configurations. This enables a single bundle to adapt to different workspaces or compute needs. By using targets, you can ensure that development deployments are lightweight and cost-effective, while production deployments are scaled for high availability and performance, all while keeping the underlying application code identical across all deployment stages.

Exam trap

Candidates often look for 'environment' or 'config' blocks. They fail to identify 'targets' as the specific section in the DAB schema used for environment-specific infrastructure overrides.

2
MCQmedium

A GenAI engineer has a Mosaic AI Agent application packaged as a Databricks Asset Bundle with a serving endpoint defined in the bundle's resources. A teammate recently updated the agent's prompt template in the source files, and the engineer now needs to push that change to the existing production endpoint without recreating it. Which Databricks CLI command should the engineer run from the bundle root?

A.databricks bundle validate --target prod
B.databricks serving-endpoints update --name agent-endpoint
C.databricks bundle run agent_app --target prod
D.databricks bundle deploy --target prod
AnswerD

The Databricks CLI bundle deploy command reads the bundle's databricks.yml, resolves the specified target, and applies the current state of the resources to the workspace, updating the existing serving endpoint definition in place rather than recreating it. Running it with --target prod selects the production target's workspace host, variables, and permissions so the prompt change is deployed to the correct environment.

Why this answer

Deploying a modified Mosaic AI Agent that is defined as a bundle resource requires applying the bundle state to the target workspace, which the Databricks CLI does with bundle deploy. Selecting the production target ensures the correct workspace, variables, and permissions are used, and the existing serving endpoint is updated in place instead of being recreated.

Exam trap

The trap here is assuming a serving-endpoint-specific CLI command updates bundle-managed endpoints, when only the bundle deploy command reconciles the declarative bundle state.

3
MCQhard

An engineer deployed a RAG agent to a Model Serving endpoint and enabled inference tables for payload logging. After a week, reviewers notice that logged requests contain customer email addresses and order identifiers. Compliance requires that raw prompts and responses not be stored in plain text. Which change should the engineer make?

A.Enable payload logging but write inference tables to a workspace-local path outside Unity Catalog.
B.Disable inference tables entirely so no request or response data is persisted.
C.Configure the endpoint to log only the model's token counts and latency, then reconstruct prompts from the application's own logs.
D.Keep inference tables enabled but restrict SELECT on the inference table to a compliance group and apply row filters or column masks on the sensitive columns.
AnswerD

Inference tables are Unity Catalog tables, so column masks and row filters can redact or hide sensitive fields, and GRANT controls who can query them. This keeps observability for authorized reviewers while ensuring raw personal data is not broadly readable, satisfying the compliance requirement without losing monitoring capability.

Why this answer

Because inference tables are Unity Catalog tables, the engineer can apply column masks and row filters to redact or restrict sensitive fields and grant SELECT only to authorized principals. This preserves the observability inference tables provide while preventing plain-text exposure of personal data, which is the precise compliance outcome required.

Exam trap

The trap here is treating inference table logging as all-or-nothing, when Unity Catalog masking and grants let you keep logs while redacting sensitive fields.

4
MCQeasy

When deploying a Python-based application that interacts with Unity Catalog, which step is essential to ensure the code can authenticate securely to external services without hardcoding tokens?

A.Hardcoding tokens as environment variables in the notebook.
B.Using Databricks Secret Scopes to retrieve credentials.
C.Storing tokens in a plain text file inside the bundle.
D.Creating a public access policy for the external service.
AnswerB

Secret scopes are the secure way to store and access sensitive information in Databricks. By using the 'dbutils.secrets.get' function, the code retrieves credentials at runtime from a secure vault. This ensures that application logic remains decoupled from specific security credentials, facilitating safer code promotion across different environments.

Why this answer

Using secret scopes within Databricks is the recommended best practice for handling authentication credentials. Secrets allow code to retrieve sensitive information like API keys or database passwords at runtime, keeping these credentials out of the source code. This is a critical security requirement in any production application, as it prevents accidental exposure of sensitive keys in version control systems and allows for centralized management of authentication lifecycle.

Exam trap

Test-takers often select environment variables or configuration files, ignoring the Databricks security best practice of utilizing Secret Scopes to handle credentials safely.

5
Multi-Selecthard

A financial services company has registered a Mosaic AI Agent application in Unity Catalog and wants to serve it through a Databricks Model Serving endpoint that queries a Delta table containing sensitive customer records. The security team requires that the endpoint access the table using a dedicated service principal with least privilege, and that the agent's LLM calls go through a governed gateway that logs usage. Which TWO configurations should the team apply to meet these requirements? (Choose two.)

Select 2 answers
A.Store the table's credentials in the agent's environment variables and have the agent open a direct JDBC connection to the Delta storage account.
B.Embed the customer records directly into the agent's MLflow model artifact so the endpoint never queries Unity Catalog at runtime.
C.Disable Unity Catalog enforcement on the endpoint so the agent can read the table with the workspace owner's inherited permissions.
D.Grant the serving endpoint's service principal SELECT on the specific customer table and its parent schema, and no broader catalog privileges.
E.Configure a Databricks AI Gateway on the serving endpoint so that requests to the foundation model are routed, authenticated, and logged centrally.
AnswersD, E

Model Serving endpoints execute under a service principal, and Unity Catalog enforces that principal's grants at query time. Granting SELECT only on the specific table and its parent schema satisfies least privilege while still allowing the agent's retriever to read the records it needs. Broader catalog-wide grants would violate the security team's requirement and expose unrelated tables to the endpoint.

Why this answer

The endpoint runs as its own service principal, so Unity Catalog grants on the specific table and schema give the agent exactly the read access it needs without broader exposure. Databricks AI Gateway on the serving endpoint provides governed routing, authentication, and logging of foundation-model calls. Together these two controls satisfy the least-privilege and governed-gateway requirements while keeping the agent's data access auditable.

Exam trap

The trap here is thinking that embedding data in the model artifact or opening a direct connection avoids governance problems, when in fact both bypass Unity Catalog and break the audit and least-privilege requirements.

6
MCQeasy

A data science team has registered a new version of a retrieval-augmented generation (RAG) agent in Unity Catalog as a model named main.genai.support_agent. They need to make this version available as a low-latency REST endpoint with automatic scaling and no cluster management. Which Databricks capability should they use?

A.Databricks SQL warehouses, by registering the agent as a SQL function and querying it from a dashboard.
B.All-purpose interactive clusters, by starting a cluster and calling the model through a notebook.
C.Jobs compute, by scheduling the agent as a nightly batch task and writing predictions to a Delta table.
D.Mosaic AI Model Serving, by creating a serving endpoint that serves the registered Unity Catalog model.
AnswerD

Mosaic AI Model Serving hosts registered Unity Catalog models and agent models behind a REST endpoint with managed, automatic scaling and no cluster management, which is exactly what the team needs for low-latency inference. Creating a serving endpoint that references the registered model version deploys it directly, preserving governance and lineage from Unity Catalog.

Why this answer

Deploying a registered Unity Catalog agent model as a Mosaic AI Model Serving endpoint gives the team a managed REST inference API with automatic scaling and no cluster administration. It preserves Unity Catalog governance and lineage, supports low-latency online serving, and is the intended deployment path for GenAI agents on Databricks. Batch, interactive, and SQL compute cannot provide the same managed serving contract.

Exam trap

The trap here is assuming any Databricks compute (clusters, SQL warehouses, or jobs) can serve a production REST inference endpoint, when only Mosaic AI Model Serving provides that managed contract.

7
MCQeasy

A team has developed a GenAI chatbot using the Databricks Mosaic AI Agent Framework and logged it with MLflow. They now want to expose it as a REST API that their customer support portal can call, with autoscaling and built-in monitoring. Which Databricks capability should they use to host the agent?

A.A Databricks SQL warehouse that exposes the agent through a SQL function the portal calls.
B.An all-purpose interactive cluster that the portal connects to over JDBC to invoke the agent.
C.Databricks Model Serving, deploying the MLflow-logged agent to a serving endpoint.
D.A Databricks job that runs the agent on a schedule and writes responses to a Delta table the portal polls.
AnswerC

Model Serving is the Databricks capability that turns an MLflow-logged model or agent into a REST endpoint with autoscaling, concurrency controls, and integrated monitoring. Deploying the agent there gives the support portal a stable URL and handles capacity automatically. It is the intended path for serving Mosaic AI Agent Framework applications in production.

Why this answer

Mosaic AI Agent Framework applications logged with MLflow are served on Databricks Model Serving, which provides a REST endpoint, autoscaling, concurrency management, and built-in monitoring. That makes it the correct host for a customer support portal that needs to call the chatbot over HTTP. The other options are batch, development, or analytics compute surfaces that cannot serve interactive inference.

Exam trap

The trap here is assuming any Databricks compute can host the agent, when only Model Serving provides the REST endpoint, autoscaling, and serving-grade monitoring required for interactive traffic.

8
MCQhard

An organization wants to implement 'Guardrails' on their model outputs. Which deployment strategy best facilitates this?

A.Hardcode guardrails inside the base model training script.
B.Deploy a wrapper model that processes the output for safety.
C.Instruct users to manually check the output for safety.
D.Disable all logging to prevent guardrails from slowing down.
AnswerB

A wrapper or chain approach allows the model to generate text, which is then passed through an inspection layer for validation. If the output violates safety guidelines, it can be blocked or replaced. This modularity is the standard approach for applying consistent guardrails without impacting core model performance.

Why this answer

The best way to implement guardrails is to build a secondary validation model or use an API-based gatekeeper that intercepts and inspects model outputs before they are returned to the user. Integrating this logic into the inference pipeline within the Databricks environment ensures that all content is screened. This pattern is essential for enterprise deployments where safety, compliance, and preventing hallucinations are top priorities for generative AI applications.

Exam trap

Test-takers often think prompt engineering alone is a sufficient guardrail, failing to realize enterprise apps require programmatic output filtering.

9
MCQhard

A team deploys a RAG agent to a Mosaic AI Model Serving endpoint. During load testing, requests intermittently return HTTP 429 responses even though the endpoint shows healthy replicas. The agent calls an external vector search index and a foundation model endpoint. Which action most directly addresses the 429 responses?

A.Increase the endpoint's provisioned concurrency and configure appropriate rate limits so the agent can handle the incoming request rate.
B.Move the vector search index into the same Unity Catalog schema as the agent model to reduce cross-service latency.
C.Add retry logic with exponential backoff and jitter to the client calling the endpoint.
D.Switch the agent's foundation model calls to a smaller context window to reduce token usage per request.
AnswerA

HTTP 429 indicates the endpoint is rate-limiting requests because the incoming rate exceeds provisioned concurrency or configured limits. Raising provisioned concurrency and tuning rate limits lets the agent absorb the load, which directly addresses the 429s rather than masking them. This aligns capacity with the observed traffic during load testing.

Why this answer

A 429 from a Mosaic AI Model Serving endpoint signals that inbound request rate exceeds the endpoint's provisioned capacity or configured rate limits. Raising provisioned concurrency and setting realistic rate limits aligns capacity with the load-test traffic and directly removes the rate-limiting responses. Client retries, smaller prompts, and index relocation do not increase the endpoint's ability to accept concurrent requests, so they leave the root cause unaddressed.

Exam trap

The trap here is reaching for client-side retries as the fix for 429s, when a sustained 429 pattern points to insufficient endpoint capacity rather than transient failure.

10
Multi-Selecthard

An organization is deploying a GenAI application using Databricks Model Serving. Which TWO steps are required to ensure the deployment environment handles model governance and observability effectively?

Select 2 answers
A.Enable Unity Catalog for the registered model and its versions.
B.Use MLflow to enable inference logging for model endpoints.
C.Hardcode API credentials within the model inference script.
D.Disable automatic scaling to maintain consistent latency.
E.Manually deploy the model via the standard cluster user interface.
AnswersA, B

Unity Catalog acts as the central governance layer for all data and AI assets. Enabling it for registered models provides unified access control, lineage tracking, and auditability, ensuring that only authorized users can deploy or modify models, which is a foundational requirement for robust enterprise AI security and governance.

Why this answer

Effective model governance and observability require integrating Unity Catalog for centralized access control and MLflow for tracking inference payloads. These components allow organizations to monitor model performance, lineage, and bias over time. Mastering these tools ensures that production deployments remain compliant, transparent, and auditable, which is essential for regulated industries using generative AI to make data-driven decisions while minimizing operational risks associated with model drift and unauthorized access.

Exam trap

Candidates often select only one of the two options, missing that governance (Unity Catalog) and observability (MLflow inference logging) are distinct, mandatory requirements for a production-grade deployment.

11
Multi-Selecthard

A team deploys a Mosaic AI Agent application through Databricks Apps and must let the app call a Model Serving endpoint that enforces Unity Catalog permissions on the underlying model. Which TWO configurations are required for the app to authenticate and be authorized to query that endpoint? (Choose two.)

Select 2 answers
A.Grant the app's service principal the appropriate privileges on the serving endpoint and the model it serves.
B.Configure the app to obtain an OAuth token for its service principal and pass it as a bearer token when calling the endpoint.
C.Register the app as a Delta Sharing recipient and share the model with it.
D.Enable public network access on the serving endpoint so the app can reach it without a token.
E.Embed a personal access token for a workspace admin in the app source so the endpoint always resolves an admin identity.
AnswersA, B

Databricks Apps run under a service principal, and Unity Catalog-governed serving endpoints check that identity's privileges. Granting the app's service principal access to the endpoint and the served model is what authorizes the call. Without those grants the app authenticates successfully but receives a permission error, so this is a required authorization step rather than an optional hardening measure.

Why this answer

Querying a Unity Catalog-governed serving endpoint requires both a valid identity and the right privileges. The app must present an OAuth token for its service principal so the request is authenticated, and that service principal must be granted access to the endpoint and the served model so authorization succeeds. Together these let the app call the endpoint without embedding human credentials.

Exam trap

The trap here is treating network exposure or data-sharing features as substitutes for authenticating the app's service principal and granting it endpoint privileges.

12
MCQhard

Refer to the exhibit. What is the most likely cause for this error in a production RAG application?

A.The model is too large for the GPU memory.
B.Network connectivity between Model Serving and the vector store is misconfigured.
C.The model weights are corrupted.
D.The input prompt is too long for the model.
AnswerB

The timeout error explicitly points to a failure in establishing a connection to the vector store. This suggests that the network routing, VPC peering, or security group rules are blocking the communication path, which is a common deployment issue that must be addressed to restore RAG service functionality.

Why this answer

The error indicates a network timeout when connecting to the vector store. This is a common connectivity issue between the serving endpoint and the data source. Investigating network security groups, firewall rules, or DNS resolution issues within the Databricks environment is necessary to resolve it.

Ensuring robust, low-latency connectivity to the retrieval source is fundamental for reliable RAG performance and minimizing application downtime in production.

Exam trap

Candidates often blame the model or the code logic itself. They fail to recognize that RAG-specific errors are usually infrastructure-related, specifically network timeouts when the model attempts to query a vector store.

13
Multi-Selectmedium

A team is preparing a Databricks Asset Bundle that deploys a GenAI application consisting of a job that builds a vector index and a Model Serving endpoint that hosts the agent. Before merging, they want the pipeline to validate and deploy the bundle to a staging workspace automatically. Which TWO bundle capabilities should the pipeline rely on? (Choose two.)

Select 2 answers
A.Run databricks bundle deploy with the staging target to create or update the job, endpoint, and related resources in the staging workspace.
B.Run databricks bundle schema to regenerate the JSON schema and commit it to the repository.
C.Run databricks bundle run to execute the vector index job as part of the merge validation.
D.Run databricks bundle generate to create resource definitions from existing workspace objects before each deployment.
E.Run databricks bundle validate to check the bundle configuration against the target workspace before deployment.
AnswersA, E

bundle deploy applies the resolved configuration to the selected target, creating or updating the declared resources and recording the deployment state. Pointing it at the staging target is how the pipeline promotes the bundle into that workspace.

Why this answer

A bundle pipeline validates the configuration against the target workspace and then deploys it to that target. Validation catches malformed or unresolvable configuration before anything changes, and deployment applies the resolved resources to the staging workspace, which together form the automated promotion path the team wants.

Exam trap

The trap here is confusing bundle run, which executes deployed resources, with bundle deploy, which publishes the bundle definition to a target workspace.

14
MCQmedium

A team has deployed a model that is experiencing high latency. How should they identify if the bottleneck is the model inference or the preprocessing code?

A.Check the cluster cost in the Databricks billing console.
B.Use MLflow Tracing to inspect the execution pipeline.
C.Re-train the model on a larger dataset.
D.Increase the memory limit for the inference cluster.
AnswerB

MLflow Tracing provides detailed visibility into the duration of every step in the request flow, from input preprocessing to model inference and output post-processing. This allows engineers to pinpoint exactly where the latency is occurring, enabling them to optimize the specific components that are causing the performance delays.

Why this answer

Distinguishing between inference time and preprocessing time is vital for performance tuning. By using MLflow's tracing capabilities or custom timing logs, engineers can isolate specific segments of the request pipeline. This granular visibility allows for targeted optimization, such as optimizing the vector search or reducing prompt overhead, rather than blindly attempting to speed up the model itself, which is often significantly more resource-intensive.

Exam trap

Candidates often guess that general platform monitoring metrics are sufficient. They fail to realize that MLflow Tracing is specifically required to break down the request into discrete components like retrieval and generation.

15
MCQmedium

When evaluating an LLM for deployment, what is a crucial 'non-functional' requirement that must be addressed?

A.The model's ability to learn from user feedback automatically.
B.The inference latency and throughput under expected load.
C.The number of parameters in the model architecture.
D.The language in which the model was initially trained.
AnswerB

Latency and throughput are critical non-functional requirements for production AI applications. If an application cannot respond within a timeframe acceptable to the user or handle the expected volume of concurrent requests, it will fail to meet business objectives, regardless of how accurate or intelligent the model is.

Why this answer

Non-functional requirements like latency, throughput, and cost are as important as the model's accuracy. In production, an accurate model that is too slow to provide a response is useless. Similarly, a high-performing model that is prohibitively expensive to run is not viable.

Balancing these factors is essential for ensuring that the generative AI application is both technically feasible and financially sustainable at scale.

Exam trap

Students often focus exclusively on accuracy metrics or benchmark scores, forgetting that operational factors like latency and throughput are essential non-functional requirements.

16
Multi-Selectmedium

An organization is deploying an LLM application using Databricks Asset Bundles (DABs). Which TWO of the following are primary benefits of using DABs for the deployment process?

Select 2 answers
A.Automatic generation of unit tests for Python code.
B.Enables infrastructure-as-code (IaC) for Databricks resources.
C.Simplifies multi-environment deployment configuration.
D.Provides a drag-and-drop interface for building pipelines.
E.Automatically migrates all legacy data to Unity Catalog.
AnswersB, C

DABs allow engineers to define complex Databricks resources like Jobs, Pipelines, and Model Serving endpoints as code. By using YAML files, teams can manage their entire environment configuration in version control, enabling repeatable deployments and standardizing infrastructure across multiple workspaces through automation.

Why this answer

Databricks Asset Bundles streamline the development and deployment lifecycle by treating infrastructure and code as a single unit. They facilitate consistent environments across development, staging, and production by using YAML-based configuration files. This ensures that the deployment process is reproducible, automated via CI/CD pipelines, and manageable through version control, reducing human error and configuration drift in complex ML-driven applications.

Exam trap

Candidates sometimes focus on secondary features like UI ease-of-use, missing the primary architectural benefits of DABs: infrastructure-as-code capabilities and consistent multi-environment management for automated CI/CD pipelines.

17
MCQmedium

Refer to the exhibit. What is the impact of min_instances: 0 on this deployment?

A.The endpoint will be permanently disabled.
B.The endpoint will scale to zero when idle, reducing costs.
C.The endpoint will have higher latency than a fixed instance.
D.The endpoint will be restricted to CPU usage only.
AnswerB

This configuration allows the endpoint to release all compute resources when no requests are being processed. This is a best practice for cost management in AI deployments, as it prevents paying for expensive GPU instances when they are not actively serving traffic, enabling more sustainable and efficient cloud usage.

Why this answer

Setting min_instances to 0 in Databricks Model Serving enables 'scale-to-zero'. This feature is highly effective for cost optimization, as it automatically shuts down the GPU resources when no traffic is present. Upon receiving a new request, the endpoint will automatically scale up, though this may introduce a slight 'cold start' latency.

This trade-off is often acceptable for non-critical or low-traffic services to drastically reduce infrastructure costs.

Exam trap

Candidates often fear that 'min_instances: 0' will cause the model to be deleted or unavailable, failing to realize it is a standard cost-saving feature for serverless endpoints.

18
MCQmedium

You are deploying a RAG application. You need to ensure the model uses the most recent vector data without redeploying the model. What should you use?

A.Fine-tune the model with new data daily.
B.Implement a RAG pattern with a vector database index.
C.Re-register the model in MLflow with every update.
D.Embed all data into the model weights at deployment.
AnswerB

The RAG pattern retrieves relevant context from a vector database and feeds it into the model's prompt. Since the vector store can be updated independently of the model, this provides a scalable way to ensure the application always has access to the latest data without needing to redeploy models.

Why this answer

Decoupling the model logic from the data retrieval mechanism is a best practice. By using a retrieval-augmented generation pattern where the retriever fetches data dynamically from a vector store, the model remains static while the knowledge base evolves. This approach is essential for applications requiring real-time information, as it avoids the expensive and slow process of retraining or fine-tuning the base model whenever the underlying data changes.

Exam trap

Many candidates incorrectly think they need to fine-tune or retrain the foundational LLM whenever data changes, missing the efficiency of dynamic RAG architecture.

19
MCQmedium

Which security configuration is essential when deploying a model that accesses sensitive data stored in Unity Catalog?

A.Grant the endpoint access to the entire Unity Catalog.
B.Use a Service Principal with scoped permissions for the model.
C.Store credentials in plaintext in the model code.
D.Bypass Unity Catalog to use local file system access.
AnswerB

Using a dedicated Service Principal with finely-tuned permissions ensures that the serving endpoint can only access the specific data assets required for its tasks. This aligns with security best practices by minimizing risk and ensuring that the model does not have broad access to sensitive corporate information.

Why this answer

Accessing sensitive data requires strict adherence to the principle of least privilege. Assigning a specific Service Principal to the model serving endpoint ensures that it only has access to the data necessary for inference. This configuration is critical for security, as it limits the potential blast radius if the model endpoint is ever compromised, maintaining data privacy in line with organizational governance policies.

Exam trap

Candidates frequently select broad permissions like 'Workspace Admin' or 'User' roles, failing to recognize that Service Principals must be explicitly scoped to follow the principle of least privilege.

20
MCQmedium

When deploying a Generative AI application, why is it recommended to use a dedicated Serving Endpoint rather than a shared interactive cluster?

A.Shared clusters are cheaper to run for production.
B.Serving endpoints provide better isolation and predictable performance.
C.Shared clusters cannot be used for Python-based models.
D.Serving endpoints automatically train the model on new data.
AnswerB

Serving endpoints ensure that inference requests are not competing with interactive workloads or data science tasks for CPU and GPU resources. This isolation is critical for maintaining predictable, low-latency performance in production, which is a non-negotiable requirement for high-quality generative AI user experiences.

Why this answer

Dedicated serving endpoints provide resource isolation, performance predictability, and standardized API interfaces. Shared clusters are prone to resource contention, inconsistent environment states, and lack the operational features required for reliable production inference. Separating the serving infrastructure from development clusters is a standard architectural pattern that ensures the stability and scalability of AI-driven features in user-facing applications.

Exam trap

Candidates might assume interactive notebook clusters are acceptable for production due to lower initial setup complexity, ignoring scalability and cost.

21
MCQeasy

Which Databricks feature is primary for managing the lifecycle, versioning, and deployment readiness of custom Generative AI models?

A.Unity Catalog Volumes
B.MLflow Model Registry
C.Databricks SQL Warehouse
D.Delta Live Tables
AnswerB

The MLflow Model Registry provides a centralized store for managing the full lifecycle of a model. It allows teams to version models, transition them between lifecycle stages like 'Staging' and 'Production', and maintain a comprehensive history of model development, which is essential for reliable and reproducible deployments in production environments.

Why this answer

MLflow Model Registry is the central feature for managing the lifecycle of models, including versioning and stage transitions. Understanding how to promote a model from 'Staging' to 'Production' is fundamental for ensuring that only tested and verified models reach the end-users. This workflow is critical for maintaining quality and stability in generative AI applications, as it provides a structured process for model evolution and deployment management.

Exam trap

Examinees often guess general MLflow tracking features instead of identifying the MLflow Model Registry as the dedicated tool for lifecycle and deployment readiness.

22
MCQeasy

A data scientist has developed a GenAI application locally and now needs to share it with stakeholders as an interactive web app inside the Databricks workspace. The app must use the workspace's existing authentication and compute. Which Databricks capability should be used?

A.Databricks Apps, which host the application within the workspace and integrate with workspace identity and compute.
B.A Databricks job with a notebook task scheduled to run every five minutes.
C.An MLflow experiment tracking run that logs the application as an artifact.
D.A Databricks notebook with the %run magic command to execute the application logic on demand.
AnswerA

Databricks Apps is the native capability for hosting interactive web applications inside the workspace. It integrates with workspace authentication, so stakeholders use their existing Databricks credentials, and it can access workspace compute and data resources without exposing separate credentials.

Why this answer

Databricks Apps is designed for hosting interactive applications directly in the workspace, using the workspace's identity and compute. This lets stakeholders access the GenAI app through a URL with existing authentication, avoiding the need to build custom hosting or manage separate credentials.

Exam trap

The trap here is confusing interactive development tools like notebooks with app-hosting services, when only Databricks Apps provides a shareable, authenticated web interface.

23
MCQmedium

A team wants its Databricks App to read a secret that stores an external API key used by an agent tool. The secret is managed in a Databricks secret scope. Which approach correctly exposes the secret to the running app without putting the value in source control?

A.Pass the key as a bundle variable in databricks.yml so it is substituted during deployment.
B.Commit the API key into a .env file in the app repository and load it with a dotenv library at startup.
C.Store the key in a Delta table and have the app query the table with its service principal at startup.
D.Reference the secret scope and key in the app configuration's environment variables using the secrets-backed value syntax, then read it from the environment in code.
AnswerD

Databricks Apps can declare environment variables whose values are resolved from a secret scope using the secrets-backed reference syntax. At runtime the platform injects the resolved value into the process environment, so the code reads it like any environment variable and the secret never appears in source or logs. This is the supported way to pass secrets to a deployed app.

Why this answer

The app configuration can declare environment variables whose values are resolved from a Databricks secret scope using the secrets-backed reference syntax. The platform injects the resolved value at runtime, so the key is available to the process without ever being written into source, committed to a repository, or surfaced through deployment output.

Exam trap

The trap here is using bundle variables or a .env file for sensitive values, when secret scope references in the app configuration are the sanctioned mechanism.

24
Multi-Selectmedium

A data team is developing a Mosaic AI Agent application. Which TWO of the following are mandatory for deploying this application using the Databricks Model Serving infrastructure?

Select 2 answers
A.A logged model signature defining input and output schemas
B.A manual provisioning of a dedicated GPU worker pool
C.A requirements.txt or conda environment file
D.A hardcoded API key for external vector store access
E.A pre-configured Kubernetes manifest file
AnswersA, C

A model signature is mandatory for Model Serving to validate incoming JSON payloads. It allows the serving endpoint to automatically enforce data types and structure, preventing malformed requests from reaching the model code. This ensures consistency and simplifies debugging during the inference request-response cycle.

Why this answer

Deploying Mosaic AI Agents requires defining a signature for the model input/output and ensuring the agent code is packaged with its dependencies. These steps are crucial because the Serving environment needs to understand how to route requests and instantiate the environment. Properly defining the signature ensures type safety during inference, while dependency management prevents runtime errors, ensuring the agent operates as expected within the serverless environment.

Exam trap

Candidates often select manual deployment scripts or external orchestration tools, missing the core mandatory package requirements like signatures and environment files.

25
MCQmedium

A machine learning engineer needs to deploy a custom Mosaic AI Model Serving endpoint that requires access to a private internal database. Which mechanism should be used to securely manage the database credentials?

A.Hardcode the credentials as environment variables in the model serving endpoint deployment configuration.
B.Inject the credentials via a public GitHub repository linked to the Databricks Git folder.
C.Reference the credentials using the Databricks Secrets API within the model loading script.
D.Store the credentials in a plain-text file on the Unity Catalog volume attached to the serving endpoint.
AnswerC

The Databricks Secrets API allows code to retrieve sensitive values at runtime without exposing them in cleartext. This approach ensures that the credentials exist only in memory during the model execution phase. It provides a secure, auditable path for applications to authenticate with external services like private databases.

Why this answer

Databricks Secrets provide a centralized, secure way to store and reference sensitive information like database credentials. By using the secret scope, the engineer avoids hardcoding sensitive data into the model code or configuration files. This practice is essential for maintaining a secure MLOps lifecycle, as it prevents credential exposure and allows for granular access control via Databricks access control lists (ACLs) on the secret scope itself.

Exam trap

Test-takers frequently recommend hardcoding database credentials inside model artifacts or environment variables, ignoring secure workspace secret management practices.

26
Multi-Selectmedium

A platform team is preparing to deploy a GenAI chat application built on Mosaic AI Model Serving. They want the deployment to enforce least-privilege access for the application and to keep the serving environment reproducible. Which two practices should they implement? (Choose two.)

Select 2 answers
A.Allow the endpoint to install the latest version of every dependency at startup so the environment always has current patches.
B.Give the application principal workspace admin so it can create endpoints and modify cluster policies as needed during deployment.
C.Pin the model's dependency versions in the logged MLflow environment so the serving environment installs a known, reproducible set of packages.
D.Grant the application's service principal only the endpoint query permission and the minimum Unity Catalog privileges needed to read the model and its dependencies.
E.Disable Unity Catalog for the model and store it in the workspace model registry to simplify permission management.
AnswersC, D

Pinning dependencies in the model's logged environment ensures the serving container installs the same package versions used during development, which makes the deployment reproducible and avoids version drift that can break the agent. This directly supports the reproducibility objective and prevents surprises when the endpoint restarts or scales.

Why this answer

Least privilege is achieved by granting the application principal only endpoint query rights plus the minimum Unity Catalog reads for the model and its data. Reproducibility is achieved by pinning dependency versions in the logged MLflow environment so the serving container installs a known package set. Workspace admin, dropping Unity Catalog, and always-latest installs each trade away security or reproducibility, so they do not meet the two stated goals.

Exam trap

The trap here is equating 'convenient deployment' with broad admin rights or always-latest dependencies, when least privilege and pinned versions are what the scenario actually demands.

27
MCQhard

A Mosaic AI Agent application deployed as a Databricks App intermittently returns stale answers after the team updates the underlying vector index. The app caches a client to the serving endpoint and an index handle at module import time. Which change best resolves the staleness while keeping latency low?

A.Increase the app's compute size so the cached handle is refreshed more frequently by the runtime.
B.Disable caching entirely and rebuild the endpoint client and index handle on every request.
C.Redeploy the app after every index update so the module reinitializes with a fresh handle.
D.Initialize the endpoint client once but resolve the current index version per request, and invalidate the cached handle when the version changes.
AnswerD

Keeping the connection client but resolving the index version per request, with cache invalidation on version change, balances freshness and latency. The expensive client setup happens once, while the index reference is refreshed when the underlying data changes, so answers reflect the latest index without a redeploy. This directly addresses staleness while preserving low per-request overhead.

Why this answer

Staleness comes from caching an index handle at import time, so the fix is to keep the cheap-to-reuse client but resolve the index version per request and invalidate the handle when it changes. This preserves the latency benefit of a persistent client while ensuring answers reflect the latest index, avoiding both constant rebuilds and redeploy-on-every-update.

Exam trap

The trap here is assuming a redeploy or more compute fixes staleness, when the real issue is a long-lived cached handle that is never invalidated.

28
Multi-Selecthard

A team is deploying a GenAI application to a Databricks Model Serving endpoint and wants to ensure the deployment can be rolled back quickly and that traffic is shifted safely during updates. Which TWO practices should the team follow? (Choose two.)

Select 2 answers
A.Disable inference tables on the endpoint to reduce logging overhead during the update.
B.Deploy the new version by deleting the existing endpoint and creating a fresh one with the same name.
C.Set the endpoint's scale-to-zero behavior to always on to avoid cold starts during the update.
D.Configure the endpoint with multiple served entities and use traffic splitting to gradually shift traffic to the new model version.
E.Use Databricks Asset Bundles to define the endpoint configuration and deploy it through a CI/CD pipeline.
AnswersD, E

Model Serving supports multiple served entities on one endpoint with configurable traffic percentages. By routing a small percentage to the new version first, teams can validate behavior and shift traffic gradually, reducing risk and allowing a quick rollback by setting traffic back to the previous version.

Why this answer

Defining endpoints as code with Databricks Asset Bundles enables repeatable deployments and fast rollback by redeploying a prior version. Configuring multiple served entities with traffic splitting allows gradual rollout to the new version, so issues can be detected early and traffic reverted quickly, together providing safe updates and rollback.

Exam trap

The trap here is focusing on cost and latency knobs like scale-to-zero instead of the deployment controls, such as versioned configuration and traffic splitting, that actually enable safe rollback.

29
MCQhard

Refer to the exhibit. An engineer is automating the deployment of a model to an endpoint using the Databricks CLI. Based on the error log provided, what is the most appropriate action to resolve this deployment failure?

A.Upgrade the model serving endpoint to a higher capacity cluster size.
B.Grant the service principal 'USE' and 'READ' permissions on the catalog, schema, and model.
C.Delete the model serving endpoint and recreate it using a personal access token.
D.Restart the Databricks workspace to force an update of the internal permission cache.
AnswerB

Unity Catalog requires explicit grants for service principals to access assets. The error indicates that the service principal lacks the necessary permissions to read the model metadata or download the model artifacts. Granting these specific privileges allows the serving infrastructure to access the model during deployment.

Why this answer

Deployment failures due to 'INSUFFICIENT_PERMISSIONS' often stem from the service principal used by the CI/CD pipeline lacking the necessary grants on the registered model in Unity Catalog. The engineer must ensure the principal has 'USE CATALOG', 'USE SCHEMA', and 'READ' permissions on the model version. Addressing this at the Unity Catalog level is the standard procedure for cross-service authorization in Databricks.

Exam trap

Candidates often try to resolve permission errors by checking workspace-level settings rather than focusing on the specific hierarchical grants (catalog, schema, model) required by Unity Catalog.

30
MCQhard

A team deploys a Mosaic AI Agent application to a Databricks Model Serving endpoint. During load testing they observe that the first request after an idle period takes several seconds, while subsequent requests are fast. They want to eliminate this cold-start penalty for a latency-sensitive customer-facing application while keeping costs reasonable during off-peak hours. Which configuration should they apply?

A.Set the endpoint's minimum provisioned concurrency to a value greater than zero so at least one instance is always warm.
B.Reduce the agent's dependency footprint and re-log the model so the container image is smaller.
C.Enable inference tables on the endpoint to log requests and responses, which keeps the model warm.
D.Increase the endpoint's maximum concurrency per instance so a single warm instance can absorb all traffic.
AnswerA

Provisioned concurrency keeps a specified number of model instances loaded and ready, so requests never wait for a cold container to load the agent and its dependencies. Setting the minimum above zero removes the idle-time cold-start penalty while still allowing the endpoint to scale up under load. This is the intended control for latency-sensitive endpoints that must stay responsive.

Why this answer

Cold starts occur when the endpoint has scaled down and must load a fresh model container on the next request. Provisioned concurrency with a minimum above zero keeps at least one instance warm at all times, removing the first-request latency penalty while still permitting scale-up under load and scale-down to the configured minimum during off-peak hours. Concurrency, inference tables, and image size do not guarantee warm capacity.

Exam trap

The trap here is confusing concurrency limits or observability features with warm capacity, when only provisioned concurrency with a nonzero minimum prevents the endpoint from scaling fully to zero.

31
MCQmedium

A generative AI engineer is packaging a retrieval-augmented generation (RAG) application so it can be deployed as a Databricks App. The app reads the vector index name and the serving endpoint name from environment configuration so the same code can run in dev and prod. Which approach correctly supplies these values at deploy time using Databricks Asset Bundles?

A.Store the values in a notebook widget and have the app prompt the user for them at startup.
B.Declare bundle variables with defaults in databricks.yml, override them per target, and reference them in the app resource configuration.
C.Hard-code the dev and prod values in the app source and select a branch during deployment.
D.Write the values into a Delta table and have the app query that table on every request.
AnswerB

Bundle variables declared in databricks.yml with per-target overrides are the supported mechanism for environment-specific values. Referencing those variables inside the app resource passes the resolved endpoint and index names into the deployed app at deploy time, so the same source is promoted across targets without code edits and each target receives its own values.

Why this answer

Bundle variables with defaults in databricks.yml, overridden per target and referenced in the app resource, let one codebase deploy to dev and prod with different endpoint and index names. The bundle resolves values at deploy time and validates them, so promotion requires no source edits and each target receives the correct configuration without runtime prompts or extra lookups.

Exam trap

The trap here is assuming environment-specific settings must live in application code or be entered at runtime, when the bundle's variable and target mechanism is the intended injection point.

32
MCQmedium

Which workflow best describes the recommended CI/CD process for updating a Databricks Asset Bundle?

A.Make changes directly in the production workspace and export the updated YAML.
B.Update the local YAML, run 'bundle validate', and deploy to the target environment.
C.Use the Databricks UI to update the Job definition and update the YAML manually later.
D.Deploy the bundle to production without validation to speed up the delivery time.
AnswerB

This workflow follows standard DevOps practices: updating the configuration, validating it to ensure schema compliance, and deploying. Using the CLI ensures that the deployment process is repeatable and documented. Validation catches errors before they impact the environment, ensuring a smoother update process in production workspaces.

Why this answer

A robust CI/CD workflow for Databricks Asset Bundles involves validating the configuration, testing in a development workspace, and then deploying to production via an automated process. By validating the bundle before deployment, you catch syntax errors early. This pipeline-driven approach ensures that all changes are tracked in version control, reviewed through pull requests, and deployed consistently, minimizing the risks associated with manual workspace configuration changes.

Exam trap

Candidates often assume manual workspace changes are sufficient or forget the critical step of running 'bundle validate' before deployment, leading to syntax errors that only appear during the actual deployment process.

33
MCQhard

Refer to the exhibit. An engineer wants to perform a canary deployment by routing 10% of traffic to a new version (version 6). How should the JSON traffic configuration be modified?

A.Add a new route for version 6 and set its traffic_percentage to 10, then set version 5 to 90.
B.Set the traffic_percentage of version 6 to 10 and keep version 5 at 100.
C.Remove version 5 and set version 6 to 10.
D.Create a new endpoint entirely for version 6 and switch the DNS record.
AnswerA

This configuration correctly implements a 90/10 traffic split. By splitting the traffic, the engineer can observe the performance of version 6 with real-world data without risking the entire workload. Once validation is complete, the percentages can be adjusted until the new version receives 100% of the traffic.

Why this answer

Canary deployments involve splitting traffic between an established model version and a new candidate. To achieve this, the 'routes' list must include both versions, with the 'traffic_percentage' values summing to 100%. This controlled rollout allows teams to monitor the performance and accuracy of the new model on a small segment of production traffic before committing the full load to the new version.

Exam trap

Candidates frequently forget that traffic percentages must sum to 100%. They often modify the new version's percentage without adjusting the existing version, leading to invalid configuration errors in the deployment.

34
Multi-Selectmedium

An engineer is packaging a custom PyFunc model that wraps an open-source LLM and must deploy it to a Databricks Model Serving endpoint. The endpoint must load the model from Unity Catalog and expose it through a REST API. Which two actions are required to make the deployment succeed? (Choose two.)

Select 2 answers
A.Register the logged model in Unity Catalog and grant the serving identity USE CATALOG, USE SCHEMA, and EXECUTE or SELECT privileges on the model version.
B.Set the endpoint's scale-to-zero configuration to disabled so the model stays in memory permanently.
C.Attach the model to a Databricks cluster that stays running so the endpoint can proxy requests to it.
D.Log the model with mlflow.pyfunc.log_model, including a pip_requirements entry for every runtime dependency the wrapper imports.
E.Convert the PyFunc wrapper to a scikit-learn estimator so the serving container recognizes the flavor.
AnswersA, D

Model Serving resolves the model by its Unity Catalog three-level name, and the endpoint's identity must be able to read that model version. Without the catalog, schema, and model privileges, endpoint creation fails with a permission error even though the artifact itself is valid. Granting these is mandatory for Unity Catalog-based serving.

Why this answer

A successful custom model deployment requires a correctly logged artifact with all dependencies declared, and a Unity Catalog registration with privileges granted to the serving identity. Environment build failures and permission errors are the two dominant causes of endpoint creation failure. Flavor conversion, attached clusters, and scale-to-zero settings are unrelated to whether the deployment itself can complete.

Exam trap

The trap here is focusing on endpoint scaling or compute choices, when deployment success actually hinges on declared dependencies and Unity Catalog permissions.

35
MCQmedium

A Generative AI engineer is packaging a retrieval-augmented generation application for deployment with Databricks Asset Bundles. The bundle must provision a Databricks job that periodically refreshes a Delta table used as the vector index, and the job requires a specific cluster node type that differs between the development and production workspaces. Which approach correctly handles the node type difference while keeping a single bundle definition?

A.Create a separate bundle directory for each environment with entirely duplicated resource files and deploy each one independently.
B.Define the node type in a databricks.yml variable and override its value in a target-specific block for each environment.
C.Use a notebook widget inside the job to read the node type from a table at runtime and restart the cluster with the new value.
D.Hard-code the production node type in the job resource and rely on the development workspace to silently substitute a smaller node type.
AnswerB

Databricks Asset Bundles support variables declared at the top level and overridden per target, so the same job definition can use a development node type and a production node type without duplicating the resource YAML. This is the intended mechanism for environment-specific values.

Why this answer

The bundle should declare a variable for the node type and override it inside each target, because Databricks Asset Bundles resolve variables per target at deploy time. This keeps one authoritative job definition while letting development and production use different compute, and it avoids duplicated YAML that drifts over time.

Exam trap

The trap here is assuming a single bundle cannot express environment differences, which pushes candidates toward duplicating resource files instead of using target-scoped variable overrides.

36
MCQmedium

A team is deploying a GenAI agent built with Mosaic AI Agent Framework. The agent must be exposed as a REST API that automatically scales with traffic and records inference logs to Unity Catalog. Which deployment mechanism meets these requirements with the least operational overhead?

A.Deploy the agent to a Databricks Model Serving endpoint using the agents.deploy() API.
B.Deploy the agent on a single-node cluster with a public IP and expose it via a Flask server.
C.Package the agent as a Python wheel and run it on a Databricks job cluster with a scheduled trigger.
D.Register the agent as a Unity Catalog model and call it directly from a notebook using mlflow.pyfunc.load_model().
AnswerA

The agents.deploy() API in the Mosaic AI Agent Framework is purpose-built to deploy agents to a Model Serving endpoint. It automatically provisions a scalable REST endpoint, enables inference table logging to Unity Catalog, and integrates with the agent's evaluation and monitoring stack, requiring minimal manual configuration.

Why this answer

The agents.deploy() API is the native Mosaic AI Agent Framework mechanism for taking an agent from development to a production Model Serving endpoint. It handles endpoint creation, scaling, and integrates with Unity Catalog inference tables for logging, so it directly satisfies all stated requirements with minimal manual work.

Exam trap

The trap here is assuming any compute that can run Python can serve an agent, when only a Model Serving endpoint provides autoscaling REST access with built-in inference logging.

37
MCQhard

A team is using `databricks.agents.deploy()` to publish a Mosaic AI Agent to a serving endpoint. They must expose an environment-specific Vector Search index name and the endpoint name to the deployment without hardcoding values in the notebook, and the same notebook must run in dev and prod. Which approach should the engineer use?

A.Store the values in a Delta table and have the notebook query that table at deploy time.
B.Read the values from `dbutils.widgets` defined at the top of the notebook and pass them into `databricks.agents.deploy()`.
C.Detect the environment by reading the current workspace URL inside the notebook and branch on it.
D.Hardcode the prod values and use a separate copied notebook for dev with the dev values.
AnswerB

Notebook widgets provide parameterized inputs that a Databricks job or bundle can supply per environment, so the same notebook runs in dev and prod with different index and endpoint names. The values flow into `databricks.agents.deploy()` at runtime without editing code. This is the standard Databricks pattern for environment-parameterized deployments and satisfies the no-hardcoding requirement.

Why this answer

The cleanest way to run one notebook across dev and prod is to parameterize it with notebook widgets, which jobs and Databricks Asset Bundles can populate per target. The values then flow into `databricks.agents.deploy()` so the Vector Search index and endpoint names differ by environment without code changes. Duplicated notebooks, host-string branching, and Delta-table config stores all introduce drift or fragility that the scenario's requirements exclude.

Exam trap

The trap here is reaching for ad hoc environment detection instead of using Databricks' built-in parameterization for deployment targets.

38
MCQeasy

A GenAI engineer has registered a fine-tuned Llama 3 model in Unity Catalog as `prod.ml.models.support_llm` and now needs to expose it as a REST endpoint for a customer-facing chatbot. The team wants Databricks to manage the serving infrastructure, GPU autoscaling, and version upgrades with minimal operational overhead. Which action should the engineer take?

A.Publish the model artifact to a Delta table and query it with a SQL warehouse.
B.Deploy the model to an all-purpose cluster and expose it through a notebook's REST API calls.
C.Register the model in the workspace model registry and call it from a Databricks job schedule.
D.Create a Mosaic AI Model Serving endpoint that serves the Unity Catalog model version.
AnswerD

Mosaic AI Model Serving is the managed path for exposing Unity Catalog-registered models as REST endpoints. It handles GPU provisioning, autoscaling, and workload isolation, and can serve a specific registered model version with automatic scale-to-zero and rolling upgrades. Because the model already lives in Unity Catalog, the engineer only needs to create the endpoint and point it at the model version, satisfying the low-overhead requirement.

Why this answer

Serving a Unity Catalog-registered model through Mosaic AI Model Serving is the standard Databricks pattern for production GenAI endpoints. It provides managed GPU compute, autoscaling, and versioned deployments without the engineer building infrastructure. The other choices either use batch or interactive compute that lacks an inference endpoint, or confuse storage with serving, so none can deliver a low-latency REST API for the chatbot.

Exam trap

The trap here is assuming any Databricks compute that can load the model can also serve it as a production REST endpoint.

39
MCQhard

A team maintains a Mosaic AI Agent application whose endpoint must call an external LLM provider through a secret stored in a Databricks secret scope. During a deployment pipeline run, the endpoint build step fails while resolving the credential, even though the secret scope exists and the notebook test works. Which configuration should the engineer verify first?

A.That the secret scope is replicated into the Unity Catalog metastore attached to the serving endpoint.
B.That the endpoint has been configured with a personal access token embedded directly in the model signature.
C.That the serving endpoint's service principal or the deploying user has READ permission on the secret scope and that the code reads the secret at load time using the correct scope and key.
D.That the secret scope is mounted as a Databricks secret scope in the serving endpoint's environment variables.
AnswerC

Serving endpoints run under a service principal or the deploying identity, and secret access requires explicit READ permission on the scope. If the notebook author had access but the endpoint identity does not, or the scope or key name is wrong in the model code, credential resolution fails during load. Verifying permissions and the exact scope/key names targets the most common cause.

Why this answer

Credential resolution in Model Serving depends on the identity that loads the model having READ access to the secret scope and on the code requesting the correct scope and key. A notebook author with access may succeed while the endpoint identity fails, and a typo in scope or key produces the same symptom. Checking permissions and the retrieval call resolves the failure without restructuring the deployment.

Exam trap

The trap here is assuming a working notebook proves the endpoint identity can read the secret, when serving runs under a different principal with its own ACLs.

40
MCQeasy

Which component of the Databricks platform allows you to bundle together notebooks, model serving configurations, and pipeline definitions for repeatable deployment?

A.Databricks SQL Warehouse.
B.Unity Catalog.
C.Databricks Asset Bundles.
D.MLflow Tracking.
AnswerC

Databricks Asset Bundles (DABs) are specifically engineered to package together code, infrastructure, and configuration into a single deployable unit. They provide a declarative way to define resources, making it easy to version, test, and deploy complex applications using standard CLI commands and CI/CD best practices.

Why this answer

Databricks Asset Bundles (DABs) are the standardized way to manage and deploy project artifacts. By bundling these components, teams can maintain version control over their entire application ecosystem. This approach is fundamental for implementing robust CI/CD pipelines, ensuring that the development, testing, and production environments remain synchronized and predictable throughout the release cycle.

Exam trap

Test-takers frequently choose workspace files or generic Git integration tools instead of Databricks Asset Bundles, missing that DABs are specifically designed to bundle and deploy multi-component projects declaratively.

41
MCQmedium

A machine learning engineer needs to deploy a real-time Model Serving endpoint. Which Databricks construct is required to manage the model's environment, dependencies, and artifacts while ensuring version control for the deployment?

A.Delta Live Tables pipelines
B.MLflow Models within Unity Catalog
C.Databricks Job clusters
D.Workspace-local Model Registry
AnswerB

MLflow Models registered within Unity Catalog provide a centralized repository for model artifacts and metadata. This integration enables Model Serving to access validated model versions, manage environment configurations, and track the full lineage of the model, which is essential for secure and reliable production deployments.

Why this answer

Databricks Model Serving relies on the Unity Catalog Model Registry to manage model versions and artifacts. By using Unity Catalog, organizations ensure governance, lineage, and consistent environment reproduction. This is critical for production deployments as it decouples the model development lifecycle from the serving infrastructure, ensuring that the exact artifact deployed in staging is the one running in production, thereby maintaining model integrity and reproducibility across environments.

Exam trap

Candidates frequently choose raw MLflow runs or workspace artifact paths, failing to realize that production serving mandates version-controlled MLflow Models stored within the Unity Catalog.

42
MCQeasy

A team wants to review what a Databricks Asset Bundle deployment would change in the production workspace before it actually creates or modifies any resources. Which command should the engineer run first?

A.`databricks bundle plan -t prod`
B.`databricks bundle deploy -t prod --dry-run`
C.`databricks bundle validate -t prod`
D.`databricks bundle summary -t prod`
AnswerA

`databricks bundle plan` computes and displays the changes the deployment would make to the target workspace, including resources to create, update, or delete, without actually applying them. Running it with `-t prod` shows the production plan. This is exactly the preview the team needs before committing the deployment, making it the correct first step in a safe release process.

Why this answer

The `databricks bundle plan` command produces a deployment plan that lists the resources the deployment would create, update, or delete in the target workspace, without applying any change. Running it with `-t prod` previews the production deployment. This lets the team review the impact before executing `databricks bundle deploy`, which is the recommended safe release workflow.

Exam trap

The trap here is assuming `databricks bundle deploy` supports a `--dry-run` flag, when the supported way to preview changes is the separate `databricks bundle plan` command.

43
Multi-Selectmedium

When migrating a Databricks Asset Bundle (DAB) project from 'development' to 'production', which TWO actions should an engineer perform?

Select 2 answers
A.Update the target in the databricks.yml file to point to the production host
B.Manually recreate all jobs using the Databricks UI in production
C.Ensure production-level secrets are configured in the target environment
D.Delete all development artifacts from the local machine
E.Convert the bundle project into a standard notebook folder
AnswersA, C

Updating the target is essential to direct the deployment to the correct workspace and environment. The 'target' section in the YAML file defines the configuration for the production environment, including the workspace host, ensuring that deployment artifacts are sent to the production workspace rather than development.

Why this answer

Moving code to production requires updating the target configuration to point to production-grade environments and ensuring that environment variables or secrets are correctly scoped. These actions ensure that the production deployment uses hardened settings—such as different cluster types or access permissions—while maintaining the same logic defined in the bundle. This discipline prevents 'environment drift' and ensures that production workloads remain isolated, secure, and performant according to enterprise standards.

Exam trap

Candidates often assume that copying code manually or just changing cluster sizes is enough, missing that DAB targets and environment-specific secrets must be explicitly re-configured.

44
MCQmedium

When deploying a model endpoint, which Databricks feature provides the capability to review and approve the model before it is promoted to production?

A.Delta Live Tables Quality Checks
B.Unity Catalog Model Status Transitions
C.Databricks Job Task Notifications
D.Git branch protection rules
AnswerB

Model status transitions in Unity Catalog allow teams to manage a model's lifecycle through stages like 'Staging' and 'Production'. This is the standard mechanism to control which models are available for production serving, enabling teams to enforce rigorous evaluation and approval gates before promoting a new model version.

Why this answer

The Unity Catalog Model Registry provides a formal lifecycle management process, including status transitions such as 'Staging', 'Production', and 'Archived'. By using these status labels, organizations can implement a human-in-the-loop approval process where models must pass specific validation criteria—or manual reviews—before they are eligible for the production inference endpoint. This promotes safety, quality, and compliance in machine learning deployments by ensuring only vetted models reach end-users.

Exam trap

Test-takers frequently confuse workspace-level permissions or generic Git pull requests with Unity Catalog's formal model lifecycle stage transitions.

45
Multi-Selectmedium

When deploying a model to Databricks Model Serving, which THREE of the following are best practices to ensure production reliability?

Select 3 answers
A.Deploying the 'latest' alias for all production endpoints.
B.Configuring autoscaling policies based on traffic patterns.
C.Using static credentials embedded directly in the deployment YAML.
D.Pinning to a specific registered model version.
E.Implementing VPC peering or Private Link for secure connectivity.
AnswersB, D, E

Autoscaling ensures that the model serving endpoint can dynamically adjust its compute resources based on request volume. This improves performance during peak traffic and manages costs during idle times, contributing significantly to the overall stability and operational efficiency of the model serving infrastructure.

Why this answer

Production reliability for model serving requires careful attention to environment configuration, scalability, and security. Best practices include using specific model versions to prevent unexpected updates, configuring autoscaling to handle variable traffic, and utilizing private connectivity to keep data transmission secure. These steps minimize downtime and ensure that the serving endpoint behaves predictably under various load conditions, which is critical for enterprise-grade generative AI applications.

Exam trap

Candidates often overlook 'pinning' to a specific model version, which risks production instability if the 'latest' version is updated or changed unexpectedly during the deployment process.

46
MCQeasy

A data science team wants to expose a fine-tuned LLM as a REST API for an internal web application. They have registered the model in Unity Catalog and want Databricks to manage the serving infrastructure, autoscaling, and request routing. Which Databricks capability should they use?

A.A Delta Live Tables pipeline that materializes model outputs into a table the web app polls.
B.Databricks Model Serving, which creates a managed endpoint that autoscales and routes requests to the model.
C.A Databricks job cluster running a notebook that starts a Flask server on the driver.
D.A Databricks SQL warehouse with a custom HTTP connection to the model.
AnswerB

Model Serving provides managed endpoints with autoscaling, load balancing, and a REST API, and it loads models directly from Unity Catalog. It matches every stated requirement: managed infrastructure, autoscaling, request routing, and REST access for the web application without the team operating servers.

Why this answer

Databricks Model Serving is the managed capability that turns registered models into autoscaling REST endpoints with routing and load balancing. The other options either run unmanaged code on clusters, execute SQL, or precompute batch outputs, none of which deliver interactive, managed model inference for a web application.

Exam trap

The trap here is equating any compute that runs model code with a managed serving endpoint, when only Model Serving provides autoscaling REST inference.

47
MCQmedium

A team is deploying a Retrieval-Augmented Generation application as a Mosaic AI Agent using `databricks.agents.deploy()`. The agent must query a Vector Search index and a Delta table in Unity Catalog. During testing, the endpoint returns permission errors when accessing those resources, even though the deploying user has access. Which configuration should the engineer apply to resolve this?

A.Disable Unity Catalog enforcement on the endpoint so it can read resources with the deploying user's identity.
B.Grant the deploying user's personal access token to the endpoint and store it in the model signature.
C.Set the endpoint's environment variable `DATABRICKS_TOKEN` to the workspace owner's token.
D.Attach a serving credential via a Unity Catalog service principal and grant that principal access to the index and table.
AnswerD

Agent endpoints run under a service identity rather than the deploying user's credentials. By configuring a serving credential backed by a Unity Catalog service principal and granting that principal USE CATALOG, SELECT on the table, and access to the Vector Search index, the endpoint can authenticate to those resources at runtime. This is the supported mechanism for agent endpoints to reach governed data securely.

Why this answer

Mosaic AI Agent endpoints execute under a dedicated service identity, not the deploying user's identity, so Unity Catalog resources must explicitly grant that identity access. Configuring a serving credential tied to a service principal and granting it the necessary privileges on the Vector Search index and Delta table lets the agent authenticate at runtime. Token-based workarounds either expire or over-privilege, and Unity Catalog enforcement cannot be disabled.

Exam trap

The trap here is assuming the endpoint inherits the deploying user's permissions, when agent endpoints actually run under a separate service identity.

48
MCQhard

A GenAI team's Mosaic AI Agent application is deployed via a Databricks Asset Bundle and served through a Model Serving endpoint. They need the endpoint to call a Unity Catalog function as a tool during inference, and the function reads from a table the endpoint's service principal cannot currently access. What should the engineer do?

A.Grant the endpoint's service principal the required privileges on the table and on the Unity Catalog function, then redeploy the bundle.
B.Embed the service principal's personal access token in the agent code so the function can authenticate at runtime.
C.Add the function's source table to the endpoint's `auto_capture_config` so the endpoint can read it during inference.
D.Change the endpoint's `workload_type` to `GPU_LARGE` so the endpoint runs with elevated permissions.
AnswerA

When a Model Serving endpoint invokes a Unity Catalog function as a tool, the call executes under the endpoint's identity. The service principal therefore needs EXECUTE on the function and the relevant SELECT or USE privileges on the underlying table. Granting those privileges and redeploying the bundle ensures the endpoint can resolve and execute the function at inference time, which is the correct fix for the access failure.

Why this answer

Unity Catalog functions invoked as tools by a Model Serving endpoint execute under the endpoint's identity, which is a service principal. For the function to read its underlying table, that principal needs EXECUTE on the function plus the appropriate privileges on the table and its parent catalog and schema. Granting those privileges and redeploying the bundle resolves the access failure while keeping credentials out of the code.

Exam trap

The trap here is assuming that serving configuration fields like `workload_type` or `auto_capture_config` influence permissions, when access is governed by Unity Catalog grants to the endpoint's service principal.

49
MCQhard

Refer to the exhibit. An engineer is configuring a canary deployment for a churn prediction model. Based on the provided traffic configuration, what is the expected behavior of the endpoint?

A.The endpoint will error because total traffic must equal 100% for each model version individually.
B.90% of requests are routed to churn_v1 and 10% to churn_v2.
C.The endpoint will only route traffic to churn_v1 after churn_v2 reaches capacity.
D.The endpoint will round-robin requests between v1 and v2 regardless of the weights.
AnswerB

The traffic_config explicitly defines the routing weights for the served models. This split enables a canary release where the new version (v2) receives a small fraction of real-world traffic. This allows for performance benchmarking against the baseline (v1) before committing to a full deployment transition.

Why this answer

The configuration implements a traffic-splitting strategy, directing 90% of requests to 'churn_v1' and 10% to 'churn_v2'. This is a standard pattern for A/B testing or canary releases, allowing teams to validate new models in production with minimal risk. By monitoring the performance of the 10% traffic slice, engineers can decide whether to promote the model, ensuring stability before a full rollout.

Exam trap

Candidates often misread the traffic percentages or assume the configuration implies a different strategy, failing to parse the standard canary deployment logic defined in the endpoint traffic policy.

50
MCQmedium

Which command is used within the Databricks CLI to deploy a project defined by a Databricks Asset Bundle?

A.databricks workspace sync
B.databricks bundle deploy
C.databricks job create
D.databricks deploy project
AnswerB

This is the correct command to deploy resources specified in a Databricks Asset Bundle. It reads the local configuration, prepares the assets, and pushes them to the Databricks workspace defined in the 'target' section of the YAML file, completing the deployment process as specified in the configuration.

Why this answer

The 'databricks bundle deploy' command is the primary interface for deploying resources defined in a Databricks Asset Bundle. It interprets the 'databricks.yml' configuration, validates the resources, and then synchronizes the code and configuration with the targeted Databricks workspace. This CLI-first approach is essential for automating CI/CD pipelines, as it allows developers to trigger deployments programmatically without relying on manual browser-based interactions or fragile API scripts.

Exam trap

Test-takers frequently mix up CLI subcommands like 'bundle validate', 'bundle run', and 'bundle deploy' when asked how to push code to a workspace.

51
MCQhard

Which CI/CD approach for model deployment best minimizes downtime during a model update?

A.Delete the old model and immediately deploy the new version.
B.Use a blue-green deployment pattern.
C.Deploy all updates directly to the production endpoint.
D.Schedule deployments during peak traffic hours.
AnswerB

Blue-green deployment allows for seamless traffic shifting between model versions. By maintaining two separate environments and routing traffic only when the new version is verified as stable, teams can ensure zero downtime during upgrades, which is essential for maintaining a robust, professional production AI service environment.

Why this answer

A blue-green deployment strategy is the gold standard for minimizing downtime. By spinning up a new version of the model (green) alongside the existing one (blue) and switching traffic only after verifying the health of the green endpoint, engineers ensure zero downtime and an immediate rollback path if issues occur. This approach is critical for high-availability AI services where any interruption would negatively impact users.

Exam trap

Candidates often suggest 'redeploying' or 'updating in place', which causes temporary downtime. They overlook that blue-green deployment is the specific pattern designed to avoid this service interruption.

52
MCQhard

An engineer is deploying a RAG application whose retrieval step calls an external vector database over the public internet. The serving endpoint must reach that database, but corporate policy forbids exposing credentials in the model artifact and forbids public egress from the serving environment. Which configuration satisfies both constraints?

A.Have the retrieval function read the credential from a Delta table at query time and rely on the default public internet route for database access.
B.Embed the database credential as an environment variable inside the logged MLflow model so the serving container can read it at startup.
C.Store the database credential in a Databricks secret scope, reference it from the endpoint configuration, and enable network connectivity through a private link or VPC configuration for the serving endpoint.
D.Package the credential into a Python wheel installed as a model dependency and configure the endpoint with serverless compute only.
AnswerC

Secret scopes keep credentials out of the artifact and inject them at runtime, while private connectivity settings for Model Serving allow egress to the external database without traversing the public internet. Together they meet both the credential and network policy requirements.

Why this answer

Credentials belong in a Databricks secret scope so they are injected at runtime rather than stored in the artifact, and reaching a private external service from Model Serving requires explicit private connectivity rather than default public routing. Satisfying both constraints means combining secret injection with a private network path.

Exam trap

The trap here is solving only the credential problem and assuming network egress is automatically handled, when private connectivity to the external database must be configured separately.

53
MCQmedium

When deploying an application using Databricks Asset Bundles (DABs), which file is the primary entry point to define the project structure and configuration?

A.requirements.txt
B.databricks.yml
C.setup.py
D.bundle.json
AnswerB

The databricks.yml file is the core configuration manifest for Databricks Asset Bundles. It contains the definitions for resources such as jobs, pipelines, and models, as well as deployment targets. It drives the 'bundle deploy' command, ensuring the environment is orchestrated exactly as specified in the configuration.

Why this answer

Databricks Asset Bundles use a YAML-based configuration file, typically named 'databricks.yml', to define the project's resources, targets, and settings. This file acts as the single source of truth for the project's lifecycle, enabling consistent deployments across development, staging, and production environments. By using a declarative configuration, teams can version-control their entire infrastructure, ensuring that deployment patterns are standardized and repeatable across the organization.

Exam trap

Candidates occasionally confuse the project structure with individual notebook settings, failing to identify 'databricks.yml' as the central, mandatory file for defining the entire bundle's lifecycle and configuration.

54
MCQmedium

An engineer is preparing to deploy a Mosaic AI Agent application with Databricks Asset Bundles. The bundle defines the agent, the serving endpoint, and a job that refreshes the vector index. The engineer wants the deployment to target a staging workspace and a production workspace with different endpoint names and different Unity Catalog catalog names, without editing files between deployments. Which approach should the engineer use?

A.Hard-code the production endpoint and catalog names and use a post-deployment notebook to rename resources in staging.
B.Define bundle variables for the endpoint name and catalog name, and set their values per target in the bundle's databricks.yml targets section.
C.Maintain two separate bundle projects, one per workspace, and keep them synchronized manually.
D.Store the environment-specific values in a secrets scope and read them at runtime inside the agent code.
AnswerB

Databricks Asset Bundles support variables that can be overridden per target, so the same bundle definition can deploy to staging and production with different endpoint and catalog names. This keeps a single source of truth while allowing environment-specific values, which is exactly what the scenario requires. The engineer selects a target at deploy time and no files are edited.

Why this answer

Databricks Asset Bundles let a single declarative project target multiple workspaces through targets, and variables can be given different values per target. Defining variables for the endpoint and catalog names and overriding them in each target lets the same bundle deploy correctly to staging and production without editing files. This preserves one source of truth and matches the scenario's requirement.

Exam trap

The trap here is reaching for secrets or duplicate projects to handle environment differences, when bundle variables overridden per target are the built-in mechanism for non-sensitive, deployment-time values.

55
MCQmedium

An engineer is packaging a GenAI agent application with Databricks Asset Bundles so that the same bundle deploys to a development and a production workspace. The agent's serving endpoint name must differ per target, and the production endpoint needs more concurrent capacity. Which mechanism in the bundle configuration should the engineer use?

A.Use a post-deployment notebook that calls the serving endpoints API to rename the endpoint and adjust replicas after each bundle deployment.
B.Store the endpoint name and replica count as secrets in a Databricks secret scope and read them at deployment time with the Databricks CLI.
C.Define target-specific variables in databricks.yml and reference them with ${var.endpoint_name} and ${var.min_replicas} in the resource definition.
D.Hard-code the production endpoint name and replica count, then maintain a separate copy of the bundle for development.
AnswerC

Databricks Asset Bundles support variables declared at the bundle level and overridden per target, which is the supported way to vary values such as endpoint names and replica counts across development and production. Referencing them with the ${var.} syntax keeps one resource definition while letting each target supply different values, matching the requirement precisely.

Why this answer

Databricks Asset Bundles let you declare variables and override them per target, so a single resource definition can deploy the agent with different endpoint names and replica counts in development and production. Referencing variables with the ${var.} syntax keeps the bundle DRY while honoring environment differences. Hard-coded values, secret scopes, and post-deployment mutation scripts all fail to provide the clean, declarative per-target configuration the scenario requires.

Exam trap

The trap here is treating secrets or post-deploy scripts as the way to vary resource attributes, when bundle variables with per-target overrides are the purpose-built mechanism.

56
Multi-Selectmedium

Which TWO of the following are benefits of using Databricks Asset Bundles for deploying AI applications?

Select 2 answers
A.Enables automated testing through CI/CD pipeline integration
B.Provides a graphical drag-and-drop interface for deployment
C.Ensures environment consistency across development and production
D.Automatically handles data labeling and cleaning tasks
E.Allows users to bypass Unity Catalog governance
AnswersA, C

Because DABs are command-line driven, they integrate seamlessly with CI/CD tools like GitHub Actions or GitLab CI. This allows teams to automate unit tests, integration tests, and deployment steps, ensuring that only validated code is deployed to production, thereby significantly reducing the likelihood of runtime failures.

Why this answer

Databricks Asset Bundles standardize the deployment process, making it repeatable, version-controlled, and easier to integrate into CI/CD pipelines. This reduces the risk of configuration drift, where the production environment deviates from the development environment due to manual changes in the UI. By treating infrastructure as code, teams can maintain a clear history of changes and improve the reliability and auditability of their AI application releases.

Exam trap

Candidates often select options related to 'data transformation' or 'model training performance' instead of focusing on the DevOps-centric benefits of Bundles like consistency and CI/CD integration.

57
MCQeasy

Which of the following is a primary reason to prefer Databricks Asset Bundles (DABs) over manual workspace deployment?

A.DABs provide better performance for Spark queries.
B.DABs allow for version-controlled and automated deployments.
C.DABs automatically convert your code to SQL.
D.DABs require less memory to run than the standard workspace.
AnswerB

DABs enable infrastructure-as-code, meaning configurations are stored in version control (like Git). This allows for automated deployments via CI/CD, enabling reproducible environments, easier rollbacks, and a clear audit trail of all changes made to the infrastructure, which is a major improvement over manual, ad-hoc workspace changes.

Why this answer

The primary advantage of DABs is the elimination of manual, error-prone configuration. By defining infrastructure as code, teams gain repeatability, version control, and automation. This leads to significantly fewer deployment failures and allows for consistent, auditable environments across development and production.

It is a fundamental shift toward mature MLOps practices, where infrastructure is as controlled and tested as the application code itself.

Exam trap

Candidates tend to think DABs are just a specialized Python library or cluster type, forgetting their core value is automated, version-controlled infrastructure deployment.

58
MCQmedium

An AI engineer is developing a custom Databricks App using Mosaic AI Agent Framework and needs to deploy the application workspace securely. Which deployment artifact and configuration mechanism should the engineer use to define the app dependencies and entry point?

A.A setup.py file placed in the root directory configured to automatically trigger a cluster restart upon deployment.
B.An app.yaml configuration file defining the command, environment variables, and source path alongside the application source code.
C.A Databricks Asset Bundles deployment target pointing to an external Kubernetes cluster hosting the agent code.
D.A standard requirements.txt file executed through a Jupyter notebook scheduled via a workflow job.
AnswerB

The app.yaml file serves as the core manifest for Databricks Apps, enabling developers to specify entry-point commands, required Python versions, and runtime parameters. This file allows the Databricks platform to provision compute and host the application securely within the workspace.

Why this answer

Deploying Databricks Apps requires an app.yaml configuration file and source code bundled together. The app.yaml file specifies the runtime, environment variables, and command-line entry points required to execute the application properly inside the Databricks environment. Defining these parameters correctly ensures the Mosaic AI Agent dependencies are initialized and served without manual intervention.

Exam trap

Candidates often confuse Databricks App deployment with standard notebook deployment, forgetting that an 'app.yaml' file is strictly required to define the entry point and runtime environment.

59
MCQmedium

An engineer is preparing to deploy a Mosaic AI Agent to a Model Serving endpoint. The agent depends on a custom Python library that is not available on PyPI. Which approach ensures the library is available at serving time?

A.Copy the library source into the notebook that defines the agent and rely on the notebook's sys.path.
B.Install the library manually on the driver node of the cluster used to log the model.
C.Add the library to the workspace's global init script so all clusters install it at startup.
D.Include the library as a wheel file in the MLflow model's requirements or artifacts so it is installed in the serving environment.
AnswerD

MLflow models capture their Python dependencies, and Model Serving builds the container using those dependencies. Including the custom wheel as an artifact and referencing it in the model's requirements ensures the library is installed in the serving environment, making it available to the agent at inference time.

Why this answer

Model Serving builds its container from the MLflow model's declared environment, so custom libraries must be packaged as artifacts and referenced in the model's requirements. This ensures the dependency is installed in the serving environment and the agent can import it reliably.

Exam trap

The trap here is assuming that installing a library on a development cluster will carry over to the serving endpoint, when serving environments are built solely from the logged model's dependency specification.

60
MCQhard

An engineer maintains a GenAI application that uses a Databricks Asset Bundle to deploy a Mosaic AI Agent serving endpoint. A new model version has been logged and validated, and the team wants to roll it out to production with the ability to revert quickly if quality regressions appear. Which deployment approach best satisfies this?

A.Keep the existing endpoint unchanged and run the new model version only in notebooks until the team is confident, then deploy it later.
B.Create a new serving endpoint version by updating the endpoint's served model entity to the new model version, then verify quality and roll back by pointing the entity back to the previous version.
C.Deploy the new model version to a second workspace and route production traffic there through a global load balancer.
D.Delete the production endpoint and create a brand-new endpoint with the new model version, then update all clients to the new URL.
AnswerB

Updating the served entity on the existing endpoint switches traffic to the new model version while preserving the endpoint URL and configuration, enabling a fast rollback by reverting the served entity to the prior version. This gives the team a quick, low-risk path to production with a clear revert option if regressions appear.

Why this answer

Updating the served model entity on an existing endpoint moves production traffic to the validated model version while keeping the endpoint URL and configuration stable, so clients are unaffected. If quality regresses, reverting the served entity to the previous version restores prior behavior quickly. Recreating endpoints, notebook-only testing, and cross-workspace routing each introduce downtime, delay, or unnecessary complexity instead of a clean, reversible cutover.

Exam trap

The trap here is assuming a new model version requires a new endpoint, when the served entity on an existing endpoint can be updated and reverted in place.

61
MCQeasy

An engineer has finished building a RAG chatbot and wants to expose it as a Databricks App so business users can reach it through a browser. The app needs a Python web server and a command that starts it. Which artifact in the app's project layout defines the runtime command and dependencies used when the app is deployed?

A.The app.yaml file, which declares the command to run and the environment or dependencies for the app.
B.The MLflow model signature stored with the logged model, which encodes the serving command.
C.The requirements.txt file alone, which both lists dependencies and specifies the server start command.
D.The databricks.yml bundle file, which contains the Python entrypoint and pip requirements for the app.
AnswerA

Databricks Apps use an app.yaml file to define how the app starts and what it needs. It carries the run command, the source path, and environment or dependency references, so the platform knows how to launch the web server on deploy. This is the correct artifact for specifying startup behavior and dependencies in the app project layout.

Why this answer

A Databricks App is launched according to its app.yaml configuration, which specifies the command that starts the web server along with source and dependency information. The bundle file orchestrates deployment, requirements files list packages, and model signatures describe schemas, but only the app configuration tells the platform how to run the application.

Exam trap

The trap here is conflating deployment orchestration files with the app's own runtime configuration, when only the app configuration declares the start command.

62
MCQeasy

Which Databricks feature is specifically designed to allow developers to programmatically manage and version their entire data and AI infrastructure as code?

A.Unity Catalog Volumes
B.Databricks Asset Bundles
C.SQL Warehouses
D.Delta Sharing
AnswerB

Databricks Asset Bundles allow users to define their Databricks resources in code and deploy them using the Databricks CLI. This approach is the standard for infrastructure-as-code in the Databricks ecosystem, providing a unified way to manage complex deployments across different environments with automated CI/CD integration.

Why this answer

Databricks Asset Bundles (DABs) enable developers to package and deploy their projects—including jobs, pipelines, and models—using a declarative, version-controlled approach. This is fundamental for modern MLOps and DataOps workflows, as it replaces manual UI configuration with repeatable, automated deployments. By treating infrastructure as code, teams improve reliability, auditability, and speed when promoting applications from development to production environments.

Exam trap

Candidates often confuse 'Databricks Asset Bundles' with 'Delta Live Tables' or 'Workflows', assuming the latter are the primary tools for infrastructure versioning rather than just data pipeline execution.

63
MCQeasy

What is the primary purpose of the 'bundle validate' command in the Databricks Asset Bundles CLI?

A.To execute the deployment and verify it in the workspace.
B.To check for schema compliance and configuration errors.
C.To format the YAML files according to Databricks standards.
D.To automatically update the bundle version to the latest release.
AnswerB

This command validates the YAML files against the expected schema for DABs. It checks for missing fields, incorrect types, and invalid resource references. By catching these issues early, developers can fix errors locally before the configuration is pushed to the CI/CD pipeline or the target environment.

Why this answer

The 'bundle validate' command performs a schema check and structural analysis on your configuration files. It ensures that the YAML is syntactically correct and that all referenced resources exist or will be created correctly. This step is crucial for preventing common errors before you attempt a deployment, saving time and avoiding partially successful deployments that could leave the environment in an inconsistent state.

Exam trap

Candidates often confuse bundle validate with bundle deploy, thinking that validation actually pushes changes to the remote workspace instead of only checking local syntax and schema.

Ready to test yourself?

Try a timed practice session using only Assembling and Deploying Apps questions.