Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the Microsoft Microsoft Certified: SQL AI Developer DP-800 Questions and answers with CertsForce

Viewing page 1 out of 2 pages
Viewing questions 1-10 out of questions
Questions # 1:

You have an Azure SQL database That contains a table named dbo.Products, dbo.Products contains three columns named Embedding Category, and Price. The Embedding column is defined as VECTOR(1536).

You use Ai_GENERME_EMBEDOINGS and VECTOR_SEARCH to support semantic search and apply additional filters on two columns named Category and Price.

You plan to change the embedding model from text-embedding-ada-002 to text-embedding-3-smalL Existing rows already contain embeddings in the Embedding column.

You need to implement the model change. Applications must be able to use VECTOR_SEARCH without runtime errors.

What should you do first?

Options:

A.

Regenerate embeddings for the existing rows.


B.

Normalize the vector lengths before storing new embeddings.


C.

Convert the Embedding column to nvacchar(mex).


D.

Create a vector index on dbo.Products.Embedding.


Expert Solution
Questions # 2:

You have an Azure SQL database named SalesDB

You have a Data API builder (DAB) instance that exposes the following entities in SalesDB

• A table entity named Order mapped to a table named dbo. Orders

• A stored procedure entity named FinalizeOrder mapped to a stored procedure named dbo.usp_FinalizeOrder

The DAB runtime configuration includes the following permissions.

Question # 2

Client requests include a Microsoft Entra access token. The client also sends HTTP header x-MS-APl-ROlE: operations for both REST and GraphQL requests.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

Question # 2


Expert Solution
Questions # 3:

Your development team uses GitHub Copilot Chat in Microsoft SQL Server Management Studio (SSMS) to generate and run Transact-SQL queries against an Azure SQL database named DB1 DB1 contains tables that store sensitive customer data.

You need to ensure that any Transact SQL queries that run from GitHub Copilot Chat In SSMS are restricted by the same permissions as the developer ' s database login.

What prevents the GitHub Copilot Chat-run queries from accessing data beyond the developer ' s access?

Options:

A.

GitHub Copilot Chat runs queries in a read-only sandbox that is isolated from production database permissions.


B.

GitHub Copilot Chat runs queries by using the developer ' s database identity and permissions.


C.

GitHub Copilot Chat filters query results on (he client side to remove rows the developer is unauthorized to see.


D.

GitHub Copilot Chat uses different row-level security (RLS) policies than the developer.


Expert Solution
Questions # 4:

You have a database named db1. The schema is stored in a Git repository as an SDK-style SQL database project The repository Contains the following GitHub Action workflow.

Question # 4

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Question # 4


Expert Solution
Questions # 5:

Vou have a Microsoft Fabric workspace named Workspace1 that contains a SQL database named SalesDB and an API for GraphQL tern named SalesApi.

You have a Microsoft Entra group named SqlUsers.

From Workspace1, you assign permission to SalesApi as shown in the following exhibit.

Question # 5

The connection to SalesDB has the connectivity option configured as shown in the following exhibit.

Question # 5

SqlUsers has the Viewer role for Workspace1.

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Question # 5


Expert Solution
Questions # 6:

You have an Azure subscription. The subscription contains an Azure SQL database named SalesDB and an Azure App Service app named sales-api. sales-api uses virtual network integration to a subnet named vnet-prod/subnet-app and reads from SalesDB

You need to configure authentication and network access to meet the following requirements:

• Ensure that sales-api connects to SalesDB by using passwordless authentication.

• Ensure that all the database traffic remains within the subscription.

The solution must minimize administrative effort

What should you configure? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 6


Expert Solution
Questions # 7:

You have a SQL database in Microsoft Fabric that contains a column named Payload. pay load stores customer data in JSON documents that have the following format.

Question # 7

Data analysis shows that some customers have subaddressing in their email address, for example, user1+promo@contoso.com.

You need to return a normalized email value that removes the subaddressing, for example, user! + promo@contoso.com must be normalized to userl@contoso.com.

Which Transact SQL expression should you use?

Options:

A.

REGEXP_REPLACE(JSON_VALUE(Payload, ' $.customer_email ' ), ' \+.*$ ' , ' ' )


B.

REGEXP_SUBSTR(JSON_VALUE(Payload, ' $.customer_email ' ), ' ^[^+]+@.*$ ' )


C.

REGEXP_REPLACE(JSON_VALUE(Payload, ' $.customer_email ' ), ' \+.*@ ' , ' @ ' )


D.

REGEXP_REPLACE(JSON_VALUE(Payload, ' $.customer_email ' ), ' \+.* ' , ' ' )


Expert Solution
Questions # 8:

You have an Azure SQL database.

You deploy Data API builder (DAB) to Azure Container Apps by using the mcr.nicrosoft.com/azure-databases/data-api-builder:latest image.

You have the following Container Apps secrets:

• MSSQL_COMNECTiON_STRrNG that maps to the SQL connection string

• DAB_C0HFT6_BASE64 that maps to the DAB configuration

You need to initialize the DAB configuration to read the SQL connection string.

Which command should you run?

Options:

A.

dab init --database-type mssql --connection-string " secretref:DAB_CONFIG_BASE64 " --host-mode Production --config dab-config.json


B.

dab init --database-type mssql --connection-string " @env( ' MSSQL_CONNECTION_STRING ' ) " --host-mode Production --config dab-config.json


C.

dab init --database-type mssql --connection-string " secretref:mssql-connection-string " --host-mode Production --config dab-config.json


D.

dab init --database-type mssql --connection-string " @env( ' DAB_CONFIG_BASE64 ' ) " --host-mode Production --config dab-config.json


Expert Solution
Questions # 9:

Vou have a SQL database in Microsoft Fabric that contains a nvarchar(max) column named MessageText. An ID is always contained within the first paragraph of MessageText.

You need to write a Transact SQL query that uses REGEXP_SUBSTR to extract the ID from MessageText.

What should you include in the query?

Options:

A.

Apply STRING_ESCAPE(MessageText, " json’ > before calling REGEXP_SUBSTR.


B.

Cast Messagelext to nvarchar(4000) before calling REGEXP SUBSIR.


C.

Add a collate Lati1_General_CS_AS clause to MessageText before calling regexp_SUBSTR.


D.

Run TRV_CONVERT(varchar(Bax), MessageText) before calling REGEXP_SUBSTR.


Expert Solution
Questions # 10:

You need to recommend a solution that will resolve the ingestion pipeline failure issues. Which two actions should you recommend? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Options:

A.

Enable snapshot isolation on the database.


B.

Use a trigger to automatically rewrite malformed JSON.


C.

Add foreign key constraints on the table.


D.

Create a unique index on a hash of the payload.


E.

Add a check constraint that validates the JSON structure.


Expert Solution
Viewing page 1 out of 2 pages
Viewing questions 1-10 out of questions