Microsoft DP-800 SQL AI Developer 1-10

表示モード
画像位置
文字位置
理解度の自動記録
STATUS FILTER

Choose confidence levels to display

Loading...
Q1DP-800
The function that generates an embedding vector from the query string (the blank in DECLARE @qv VECTOR(1536) = ___)

The table-valued function that retrieves the top candidates by approximate nearest neighbor (the blank in FROM ___)

The function that joins the rows matching the full-text condition, with a RANK value (the blank in JOIN ___)

Show answer
Correct answer: AI_GENERATE_EMBEDDINGS / VECTOR_SEARCH / CONTAINSTABLE

For the first blank, which builds an embedding vector from the query string, AI_GENERATE_EMBEDDINGS is used.
The table-valued function that retrieves the top 20 results by approximate nearest neighbor is VECTOR_SEARCH, which matches the TABLE, COLUMN, SIMILAR_TO, TOP_N, and METRIC specifications.
Finally, to join only the rows matching the full-text condition with a RANK value, you use CONTAINSTABLE.
The SEMANTIC functions, VECTOR_DISTANCE, and FREETEXTTABLE do not fit these syntax requirements.
VECTOR_SEARCH (Transact-SQL) (Preview)

Q2DP-800
Show answer
Correct answer: C. CREATE USER [OrderApi-Id] FROM EXTERNAL PROVIDER; ALTER ROLE db_datareader ADD MEMBER [OrderApi-Id]; ALTER ROLE db_datawriter ADD MEMBER [OrderApi-Id];

A managed identity that connects to Azure SQL Database by using Microsoft Entra authentication is created as a user within the target database by running CREATE USER FROM EXTERNAL PROVIDER.
Because read and write permissions are required, you add it to the db_datareader and db_datawriter roles.
CREATE LOGIN creates a login on the logical server side, so it does not suit the requirement of granting permissions within SalesDB.
The options that specify a password or grant sysadmin also fail to meet the requirements.
Securely connect a .NET app to Azure SQL Database by using a managed identity – Azure App Service | Microsoft Learn

Q3DP-800
Show answer
Correct answer: B. https://app1-contoso-001.azurestaticapps.net/api/Todo

In Data API builder, each database object is exposed as an entity in the configuration file, and the default path for a REST endpoint is /api/{entity}.
Here the entity name is Todo and no custom REST path is specified, so the client accesses /api/Todo.
/graphql is the path for GraphQL, and /data-api is not the default DAB REST path.
Therefore, B is correct.
How to invoke REST endpoints – Data API builder

Q4DP-800
Statement Yes No
Each time a change is pushed to the main branch, the unit tests run automatically.
Schema validation occurs during the Build step.
Schema validation occurs during the Deploy step.
Show answer
Correct answer: Statement 1 “Yes” / Statement 2 “Yes” / Statement 3 “No”

The unit-tests job has the condition github.ref == ‘refs/heads/main’, so it runs after build-and-deploy when a push is made to main.
Building a SQL database project validates the relationships between objects and the syntax of the target platform, and produces a .dacpac.
The Deploy step, on the other hand, deploys the artifact by using SqlPackage Publish, so schema validation can be determined to occur in the Build step.
Therefore, statements 1 and 2 are “Yes”, and statement 3 is “No”.
Create and deploy a SQL project – SQL Server | Microsoft Learn

Q5DP-800
Show answer
Correct answer: C. – name: Publish uses: azure/sql-action@v2 with: action: publish path: bin/Debug/db1.dacpac connection-string: ${{ secrets.SQL_CONNECTION_STRING }}

To publish a .dacpac to Azure SQL Database, you use the GitHub Actions azure/sql-action@v2 and specify path and connection-string under with.
Because this is a publish operation, the action is set to publish, not extract.
Since the connection information is referenced from the GitHub repository secrets as required by the question, option C, which uses secrets.SQL_CONNECTION_STRING, is appropriate.
A writes the connection string directly under env, and D is a build rather than a publish, so both are inappropriate.
SQL Projects Automation – SQL Server | Microsoft Learn

Q6DP-800
Show answer
Correct answer: B. No

To reliably resolve Azure SQL Database system objects in an SDK-style SQL project, you normally add Microsoft.SqlServer.Dacpacs.Azure.Master as a PackageReference.
An artifact reference depends on a local master.dacpac present on the build agent, and if it is not at the same path in the CI environment, dotnet build validation may fail.
Therefore, this solution alone does not meet the goal.
So the answer is “No”.
System objects in SQL projects – SQL Server | Microsoft Learn

Q7DP-800
Show answer
Correct answer: C. Create a firewall rule that allows a start IP address and end IP address of 0.0.0.0.

When /health is healthy but only entity queries fail with a connection error, you check the network reachability from the DAB container to Azure SQL.
To let an app inside Azure connect to Azure SQL Database, you create a firewall rule of 0.0.0.0 to 0.0.0.0 on the logical server to allow connections from Azure services.
This is a fix that does not change the container settings or the DAB configuration.
Auto-failover, DBCC, and automatic tuning do not resolve a connection-permission problem.
IP firewall rules – Azure SQL Database and Azure Synapse Analytics | Microsoft Learn

Q8DP-800
Column Data type
OrderId int
CustomerId int
OrderDate datetime2
TotalAmount decimal(18,2)

Drag each option to the matching requirement’s drop zone, or tap to place it. Click a filled zone to send it back. (The same option may be used more than once.)

AS RETURN
DATEADD(day, @OrderDate, GETDATE())
DATEDIFF(day, @OrderDate, GETDATE())
RETURNS INT
RETURNS TABLE
WITH SCHEMABINDING
The declaration of the function’s return value (the line immediately after the parameter definition, before BEGIN)
The expression assigned to @Days (the blank in SELECT @Days = ___)
Show answer
Correct answer: The declaration of the function’s return value (the line immediately after the parameter definition, before BEGIN) → RETURNS INT / The expression assigned to @Days (the blank in SELECT @Days = ___) → DATEDIFF(day, @OrderDate, GETDATE())

Because a scalar UDF returns a single value, the function declaration specifies RETURNS INT.
To calculate the number of days from the order date to the current date and time, DATEDIFF(day, @OrderDate, GETDATE()), which returns the difference, is appropriate rather than DATEADD, which adds to a date.
The return value of DATEDIFF is int, so it fits the design of assigning it to the declared @Days and returning it.
RETURNS TABLE is for table-valued functions and is not used in this question.
DATEDIFF (Transact-SQL) – SQL Server

Q9DP-800
Show answer
Correct answer: B. A RAG pipeline.

A common way to integrate SQL data with an LLM is a RAG pipeline (retrieval-augmented generation), which retrieves relevant information from a database or other source and includes the results in the prompt to generate an answer.
A configuration in which the LLM runs SQL directly is not common from a safety and control standpoint.
Because RAG uses the retrieved grounding data, it can improve the accuracy and freshness of the answer.
Manual CSV export and backup restore are not patterns for LLM integration.
RAG and generative AI – Azure AI Search | Microsoft Learn

Q10DP-800
Show answer
Correct answer: A. Enable change tracking on ToDo and dbo.ToDo.

The Azure SQL trigger for Azure Functions uses SQL change tracking to monitor INSERT, UPDATE, and DELETE on a table.
Therefore, you must enable change tracking on both the target database ToDo and the target table dbo.ToDo.
Approaches that call an HTTP endpoint from CDC or from a DML/DDL trigger are not the prerequisite configuration for an Azure SQL trigger binding.
For the exam, it is important to remember that the Azure SQL trigger uses change tracking.
Azure SQL trigger for Functions