Weekend Sale - Special 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 75onlydt

DP-800 Questions and Answers

Question # 6

You need to create a table in the database to store the telemetry data. You have the following Transact-SQL code.

Question # 6

Question # 6

Full Access
Question # 7

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.

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.

Full Access
Question # 8

You have an Azure SQL database that contains a table named dbo.ManualChunks. dbo.HonualChunks contains product manuals

A retrieval query already returns the top five matching chunks as nvarchar(max) text.

You need to call an Azure OpenAI REST endpomt for chat completions. The request body must include both the user question and theretiieved chunks.

You write the following Transact-SQL code.

Question # 8

What should you insert at line 22?

A.

FOR XHL AUTO, TYPE, XML SCHEMA,

B.

FOR 3SON AUTO, IMCLUDE_MULL_VAIUES

C.

FOR XHL PATH, INCLUDE_NULL_VAIUES

D.

FOR JSON PATH, WITHOUT_ARRAY_WRAPPER

Full Access
Question # 9

You have an Azure SQL database that contains a table named Rooms. Rooms was created by using the following transact-SQL statement.

Question # 9

You discover that some records in the Rooms table contain NULL values for the Owner field. You need to ensure that all future records have a value for the Owner field. What should you add?

A.

a foreign key

B.

a check constraint

C.

a nonclustered index

D.

a unique constraint

Full Access
Question # 10

You have an Azure SQL database that contains a table named Tickets_Embeddings. Tickets_Embeddings contains a VECTOR(1536) column.

Embeddings are generated by using text-embedding-ada-002 and the /openai/v1/embeddings endpoint.

After a review of the current environment, the following changes are requested:

The AI architect has recommended switching to text-embedding-3-small.

The security team requires authentication by using Microsoft Entra managed identities only. Storing API keys in an application is prohibited.

Which two actions should you include in the solution? Each correct answer presents a part of the solution.

NOTE: Each correct selection is worth one point.

A.

Alter the database tables.

B.

Regenerate all the embeddings.

C.

Add a firewall rule.

D.

Change the primary keys for the tickets.

E.

Change the endpoint.

Full Access
Question # 11

You need to meet the database performance requirements for maintenance data

How should you complete the Transact-SQL code? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Question # 11

Full Access
Question # 12

You have an Azure SQL database that contains a table named dbo.Orders.

You have an application that calls a stored procedure named dbo.usp_tresteOrder to insert rows into dbo.Orders.

When an insert fails, the application receives inconsistent error details.

You need to implement error handling to ensure that any failures inside the procedure abort the transaction and return a consistent error to the caller.

How should you complete the stored procedure? To answer, drag the appropriate values to the correct targets, tach value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Question # 12

Full Access
Question # 13

You have an Azure SQL database that contains the following tables and columns.

Question # 13

Embeddings in the NotesEnbeddings and DescriptionEabeddings tables have been generated from values in the Description and notes columns of the Articles table by using different chunk sizes.

You need to perform approximate nearest neighbor (ANN) queries across both embedding tables. The solution must minimize the impact of using different chunk sizes.

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

NOTE: Each correct selection is worth one point.

Question # 13

Full Access
Question # 14

You have an Azure SQL database named sqldb-ai-prod that stores customer support tickets for a multitenant software as a service (SaaS) application. sqldb-ai-prod contains a table named Tickets. Tickets contains columns named TenantId, TicketId, CustomerEmail, CustomerPhone, and Notes.

You plan to harden data access, since a new support team will use ad hoc reporting tools that connect directly to sqldb-ai-prod.

You need to configure security to meet the following requirements:

• Support agents must see only the rows of their own TenantId column.

• Support agents must see only the domain name portion of the CustomerEmail column.

What should you do for each requirement? To answer, drag the appropriate actions to the correct requirements. Each action may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Question # 14

Full Access
Question # 15

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 # 15

Full Access
Question # 16

You have a SQL database in Microsoft Fabric that uses the default settings for a newly created database and contains a table named Sales.Orders.

You have an application that uses two stored procedures to access Sales.Orders.

While monitoring database activity, you discover the following:

While monitoring database activity, you discover the following:

• sys.dm_exec_requests shows multiple sessions in a suspended state with wait_type = LCK_M_X. All the sessions show the same wait_resource, which maps to Sales.Orders, and the same nonzero blocking_session_id.

• sys.dm_exec_input_buffer(blocking_session_id, NULL) returns a last submitted command of BEGIN TRANSACTION UPDATE Sales.Orders.

• sys.dm_exec_sessions for the blocking session shows status = sleeping and open_transaction_count = 1.

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 # 16

Full Access
Question # 17

You have an Azure SQL database that stores order data. A reporting query aggregates monthly revenue per customer runs frequently.

You need to reduce how long it takes to retrieve the calculated values. The solution must NOT alter any underlying table structure. What should you do?

A.

Create a view by using ORDER BY without TOP. and then create a unique clustered index on the view.

B.

Create a view without using with SCHEMABHIDING, and then create a nonclustered index on the view.

C.

Create a view by using GROUP BV. and then create a unique clustered index on the view.

D.

Create a view by using WITH SCHEHABINDING, include COUNT_BIG(*). and then create a unique clustered index on the view.

Full Access
Question # 18

You are creating a table that will store customer profiles.

You have the following Transact-SQL code.

Question # 18

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 # 18

Full Access
Question # 19

You need to recommend a solution to lesolve the slow dashboard query issue. What should you recommend?

A.

Create a clustered index on Lastupdatedutc.

B.

On Fleetid, create a nonclustered index that includes Lastupdatedutc. inginestatus, and BatteryHealth.

C.

On Lastupdatedutc. create a nonclustered index that includes Fleetid.

D.

On Fleetid, create a filtered index where lastupdatedutc > DATEADD(DAV, -7, SYSuTCOATETIME()).

Full Access