Pre-Winter Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free Microsoft DP-800 Practice Exam with Questions & Answers | Set: 2

Questions 11

You have an Azure SQL database that has Query Store enabled

Query Performance Insight shows that one stored procedure has the longest runtime. The procedure runs the following parameterized query.

DP-800 Question 11

The dbo.orders table has approximately 120 million rows. Customer-id is highly selective, and orderOate is used for range filtering and sorting.

Vou have the following indexes:

• Clustered index: PK_Orders on (Orderld)

• Nonclustered index: lx_0rders_order-Date on (OrderDate) with no included columns

An actual execution plan captured from Query Store for slow runs shows the following:

• An index seek on ixordersorderDate followed by a Key Lookup (Clustered) on PKOrders for customerid, status, and TotalAnount

• A sort operator before top (50), because the results are ordered by orderDate DESC

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

DP-800 Question 11

Options:
Microsoft DP-800 Premium Access
Questions 12

You have an Azure SQL database named ProductsDB.

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

The container app has the following configurations:

Secrets: mssql-connection-string, dab-config-base64

Environment variables:

MSSQL_CONNECTION_STRING=secretref:mssql-connection-string

DAB_CONFIG_BASE64=secretref:dab-config-base64

Ingress: External on port 5000

Users report that the /health endpoint returns a healthy response, but all requests that query an entity named Products fail and generate a connection error.

You confirm that the SQL login in the connection string is correct and the database exists.

You need to ensure that the container app can establish connections to the Azure SQL logical server without changing the container app deployment settings or the DAB configuration file.

What should you do on the Azure SQL logical server?

Options:
A.

Create a firewall rule that allows a start and end IP address of 0.0.0.0.

B.

Enable FORCE_LAST_GOOD_PLAN automatic tuning for ProductsDB.

C.

Create an auto-failover group for ProductsDB.

D.

Run DBCC CHECKDB on ProductsDB.

Questions 13

Your company has an ecommerce catalog in a Microsoft SQL Server 202b database named SalesDB SalesDB contains a table named products, products contains the following columns:

• product.id (int)

• product_name (nvarchar(200))

• description (nvarchar(max))

• category (nvarchar(50))

• brand (nvarchar(W))

• price (decimal)

• sku (nvarchar(40))

The description fields ate updated dairy by a content pipeline, and price can change multiple times per day. You want customers to be able to submit natural language queries and apply structured filters for brand and price. You plan to store embeddings in a new VECTOR(1536) column and use VECTOR_SEARCH(... METRIC=’ cosine ' ...).

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

NOTE: Each correct selection is worth one point.

DP-800 Question 13

Options:
Questions 14

You have an Azure SQL database named SalesDB on a logical server named sales-sql01.

You have an Azure App Service web app named OrderApi that connects to SalesDB by using SQL authentication.

You enable a user-assigned managed identity named OrderApi-Id for OrderApi.

You need to configure OrderApi to connect to SalesDB by using Microsoft Entra authentication. The managed identity must have read and write permissions to SalesDB.

Which Transact-SQL statements should you run in SalesDB?

Options:
A.

CREATE LOGIN [OrderApi-Id] FROM EXTERNAL PROVIDER;

ALTER ROLE db_datareader ADD MEMBER [OrderApi-Id];

ALTER ROLE db_datawriter ADD MEMBER [OrderApi-Id];

B.

CREATE USER [OrderApi-Id] WITH PASSWORD = ' P@ssw0rd! ' ;

ALTER ROLE db_datareader ADD MEMBER [OrderApi-Id];

ALTER ROLE db_datawriter ADD MEMBER [OrderApi-Id];

C.

CREATE USER [OrderApi-Id] FROM EXTERNAL PROVIDER;

ALTER ROLE db_datareader ADD MEMBER [OrderApi-Id];

ALTER ROLE db_datawriter ADD MEMBER [OrderApi-Id];

D.

CREATE LOGIN [OrderApi-Id] WITH PASSWORD = ' P@ssw0rd! ' ;

ALTER SERVER ROLE sysadmin ADD MEMBER [OrderApi-Id];

Questions 15

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

Options:
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()).

Questions 16

You need to recommend a solution for the development team to retrieve the live metadata. The solution must meet the development requirements.

What should you include in the recommendation?

Options:
A.

Export the database schema as a .dacpac file and load the schema into a GitHub Copilot context window.

B.

Add the schema to a GitHub Copilot instruction file.

C.

Use an MCP server

D.

Include the database project in the code repository.

Questions 17

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

DP-800 Question 17

DP-800 Question 17

Options:
Questions 18

You need to generate embeddings to resolve the issues identified by the analysts. Which column should you use?

Options:
A.

vehicleLocation

B.

incidentDescrlption

C.

incidentType

D.

SeverityScore