You have an Azure SQL database.You deploy Data API builder (DAB) to Azure Container Apps by using the mcr.microsoft.com/azure-databases/data-api-builder:latest image.You have the following Container Apps secrets:-MSSQL_CONNECTION_STRING that maps to the SQL connection string-DAB_CONFIG_BASE64 that maps to the DAB configurationYou need to initialize the DAB configuration to read the SQL connection string.Which command should you run?
Answer(s): B
To initialize the Data API builder (DAB) configuration to read the SQL connection string from your Container Apps secret, use the following dab init command:dab init --database-type mssql --connection-string "@env('MSSQL_CONNECTION_STRING')"Why this command works --database-type mssql: Specifies that you are connecting to an Azure SQL or SQL Server database.@env('MSSQL_CONNECTION_STRING'): This is the built-in DAB function that tells the runtime to substitute the value of the specified environment variable at load time. Since your Container Apps secret is mapped to MSSQL_CONNECTION_STRING, DAB will resolve it automatically when the container starts.--connection-string: This flag sets the data source connection. By using the @env() syntax here, you ensure the secret remains out of the static configuration file.
You 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?
Answer(s): A
To extract an ID (e.g., alphanumeric) from the first paragraph of an nvarchar(max) column in Microsoft Fabric using STRING_ESCAPE, use STRING_SPLIT or CHARINDEX to isolate the first paragraph, apply STRING_ESCAPE, and a regex pattern.Note: T-SQL does not natively support a REGEXP_SUBSTR function like Oracle/Snowflake. The solution below uses STRING_ESCAPE followed by pattern matching via PATINDEX and SUBSTRING to extract a typical alphanumeric ID.
You have an Azure SQL database that contains database-level Data Definition Language (DDL) triggers, including a trigger named ddl_Audit.You need to prevent ddl_Audit from firing during the next deployment. The trigger object must remain in place.Which Transact-SQL statement should you use?
Answer(s): D
The DISABLE TRIGGER Transact-SQL statement is the correct and appropriate solution for this scenario.Solution Breakdown To prevent a specific database-level DDL trigger from firing without removing the object, you can use the following syntax:DISABLE TRIGGER [TriggerName] ON DATABASE;Key Considerations Object Retention: A disabled trigger remains in the database as an object and is visible in catalog views like sys.triggers, but it will not execute when its programmed events occur.Reactivation: You can re-enable the trigger after your deployment is complete using the ENABLE TRIGGER statement.Permissions: To execute this command on a database-scoped DDL trigger in Azure SQL, you must have at least ALTER ANY DATABASE DDL TRIGGER permission.
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 thatstore 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?
GitHub Copilot Chat in SSMS acts as an extension of the user, meaning it does not have its own separate service account or elevated privileges.It operates within the security context of your active connection. If your database login is restricted by Role-Based Access Control (RBAC), Row-Level Security (RLS), or specific DENY permissions on sensitive tables, Copilot cannot bypass those hurdles to fetch or manipulate data you couldn't otherwise access manually.
You have an Azure SQL database named AdventureWorksDB that contains a table named dbo.Employee.You have a C# Azure Functions app that uses an HTTP-triggered function with an Azure SQL input binding to query dbo.Employee.You are adding a second function that will react to row changes in dbo.Employee and write structured logs.You need to configure AdventureWorksDB and the app to meet the following requirements:-Changes to dbo.Employee must trigger the new function within five seconds.-Each invocation must process no more than 100 changes.Which two database configurations should you perform? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.
Answer(s): C,D
To use an Azure SQL trigger in an Azure Functions app, you must perform the following two database configurations:Enable change tracking on the database: You must turn on change tracking at the database level to allow the system to monitor for row-level modifications.Enable change tracking on the table: You must specifically enable change tracking for the table that the second function is monitoring. These configurations are mandatory for the Azure SQL trigger to detect inserts, updates, and deletes.Incorrect: Configuring Timing and Batching While the database setup enables the tracking mechanism, the specific performance requirements (triggering within five seconds and processing no more than 100 changes) are managed through application settings in the Azure Function app, rather than database-side configurations: Sql_Trigger_MaxBatchSize: Set this to 100 to ensure each invocation processes no more than 100 changes.Sql_Trigger_PollingIntervalMs: Set this to 5000 (5,000 milliseconds) or less to ensure changes are detected and triggered within five seconds.
DRAG DROP (Drag and Drop is not supported)You have a Microsoft SQL Server 2025 database that contains a table named dbo.CustomerMessages. dbo.CustomerMessages contains two columns named MessageID (int) and MessageRaw (nvarchar (max)).MessageRaw can contain a phone number in multiple formats, and some rows do NOT contain a phone number.You need to write a single SELECT query that meets the following requirements:-The query must return MessageID, RawNumber, DigitsOnly, and PhoneStatus.-RawNumber must contain the first substring that matches a phone-number pattern, or NULL if no match exists.-DigitsOnly must remove all non-digit characters from RawNumber, or return NULL.-PhoneStatus must return valid when a phone number exists in MessageRaw, otherwise return Missing.How should you complete the Transact-SQL query? 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.Select and Place:
Box 1: REGEXP_SUBSTR( RawNumber must contain the first substring that matches a phone-number pattern, or NULL if no match exists.The best Transact-SQL statement to extract the first substring matching a regular expression is the newly introduced REGEXP_SUBSTR function. This function specifically returns the portion of a string that matches a given pattern, or NULL if no match is found. To satisfy your requirement using the provided pattern, the query would be: SELECT REGEXP_SUBSTR(PhoneNumberColumn, '\d{3}[)\-\s]*\d{3}[ \-\s]*\d{4}') FROM YourTableName; Use code with caution.Why this is the best choice: Native Support: Prior to SQL Server 2025, performing regex extraction required complex workarounds like CLR assemblies or nested string functions.Automatic NULL Handling: If the pattern does not exist within the string, REGEXP_SUBSTR naturally returns NULL.Default Behavior: By default, the function retrieves the first occurrence (position 1, occurrence 1), though these can be customized using optional parameters if needed. Pattern Correction: Note that standard regex syntax uses curly braces {} for quantifiers (e.g., \d{3}) rather than parentheses (). Box 2: REGEXP_REPLACE( REGEXP_SUBSTR( DigitsOnly must remove all non-digit characters from RawNumber, or return NULL.The solution to extract only digits from the RawNumber column in Microsoft SQL Server 2025 using a single T-SQL query is: SELECT REGEXP_REPLACE( REGEXP_SUBSTR(RawNumber, '\d{3}[)\-\s]*\d{3}[ \-\s]*\d{4}'), '\D', '' ) AS CleanedNumber FROM YourTableName;1. Extract valid phone patternThe inner function, REGEXP_SUBSTR(RawNumber, '\d{3}[)\-\s]*\d{3}[ \-\s]*\d{4}'), searches the RawNumber string for a specific pattern matching a standard 10-digit phone number. Pattern: It looks for 3 digits, followed by optional separators like closing parentheses, hyphens, or spaces, followed by another 3 digits, more optional separators, and finally 4 digits. Result: If a match is found, it returns that specific substring. If no match exists, it returns NULL. 2. Strip non-digit characters The outer function, REGEXP_REPLACE(..., '\D', ''), takes the substring extracted in the previous step and cleans it. Pattern: The \D regular expression matches any character that is not a digit (0-9). Replacement: It replaces every non-digit character with an empty string (''), effectively removing them. Result: The final output is a string containing only the 10 digits of the phone number. 3. Handle null values Because REGEXP_SUBSTR returns NULL if the pattern isn't found, the entire expression will result in NULL for any row that doesn't contain a validly formatted 10-digit number. This ensures you only get cleaned data for entries that meet your specified criteriaBox 3: REGEXP_LIKE( PhoneStatus must return valid when a phone number exists in MessageRaw, otherwise return Missing.With the introduction of native regular expression support in SQL Server 2025, the best approach to validate the phone number column using the provided regex pattern is by utilizing the REGEXP_LIKE function within a CASE expression. SELECT PhoneNumberColumn, CASE WHEN REGEXP_LIKE(PhoneNumberColumn, '\d{3}[)\-\s]*\d{3}[ \-\s]*\d{4}') THEN 'Valid' ELSE 'Missing' END AS ValidationStatus FROM YourTableName;Details: REGEXP_LIKE(column, pattern): This function directly checks if the nvarchar column matches the specified regular expression.Regex Correction: The provided regex '\d(3)[)\-\s]*\d(3)[ \-\s]*\d(4)" requires a slight adjustment to \d{3} (curly braces) for standard quantifier syntax in many regex engines, though the logic remains the same (3 digits, separators, 3 digits, separators, 4 digits).CASE WHEN...: Evaluates the regex match and returns 'Valid' if true, 'Missing' otherwise.
You have an Azure SQL database that contains a table named Rooms. Rooms was created by using the following Transact-SQL statement.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 CHECK constraint is one way to do it.If you use a CHECK constraint (e.g., CHECK (ColumnName IS NOT NULL)), the database will indeed reject new NULL entries. However, the column's metadata will still technically allow NULLs, which can sometimes affect how external tools or APIs interact with your schema.
DRAG DROP (Drag and Drop is not supported)You have a SQL database in Microsoft Fabric that contains a table named WebSite.Logs. WebSite.Logs stores application telemetry data. WebSite.Logs contains a nvarchar (max) column named log that stores JSON documents.You have a daily report that filters by the $.severity JSON property and returns LogId, LogDateTime, and log. The report frequently causes full table scans.You need to modify WebSite.Logs to support efficient filtering by $.severity and avoid key lookups for the columns returned by the report.How should you complete the Transact-SQL code to avoid full table scans? 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.Select and Place:
Box 1: AS JSON_VALUE([log], 'severity') PERSISTED To optimize the query and avoid both full table scans and key lookups, you should add a computed column for the JSON property and then include it in a non-clustered index that includes the other two required columns. The most appropriate ADD statement to define the JSON property as a persistent, indexable column is:ALTER TABLE [YourTableName] ADD [JsonPropertyColumnName] AS JSON_VALUE([JsonColumnName], '$.YourPropertyPath') PERSISTED; Use code with caution.Why this works: JSON_VALUE: Extracts the specific scalar value from the JSON document.PERSISTED: Stores the value physically in the table, which is a prerequisite for creating certain types of indexes and ensures the calculation isn't repeated during every read.Indexing: Once added, you can create a Non-Clustered Index on this new column and use the INCLUDE clause for the other two columns. This creates a "covering index," allowing the engine to satisfy the report entirely from the index without hitting the base table (avoiding the key lookup).Box 2: INCLUDE (LogID, LogDateTime, [log]) To optimize the query, the non-clustered index should include the persisted JSON property column in the index key for filtering, and the two columns returned by the report in the INCLUDE clause. This strategy enables an index seek and covers the query, avoiding costly key lookups. Recommended Non-Clustered Index Structure: Index Key: The new computed column holding the persisted JSON property.Included Columns: The two columns specified in the report's SELECT list. Why this works: PERSISTED: Acts like a regular column, allowing direct indexing.Covering Index: By including the result columns, the query engine retrieves all necessary data directly from the index leaf nodes, eliminating key lookups.Efficiency: Prevents full table scans, reducing I/O and increasing query speed.
Share your comments for Microsoft DP-800 exam with other users:
pls share teh dump
question 44 answer is user risk
please post the questions for preparation
thanks for the questions
please reopen it now ..its really urgent
these practice exam questions were exactly what i needed. the variety of questions and the realistic exam-like environment they created helped me assess my strengths and weaknesses. i felt more confident and well-prepared on exam day, and i owe it to this exam dumps!
thank u it very instructuf
its helpful?
is this dump still valid???
question 205 answer is b
question 39, should be answer b, directions stated is being sudneted from /21 to a /23. a /23 has 512 ips so 510 hosts. and can make 4 subnets out of the /21
beautiful test engine software and very helpful. questions are same as in the real exam. i passed my paper.
the questions are exactly the same in real exam. just make sure not to answer all them correct or else they suspect you are cheating.
question: 78 the right answer i think is d not a
very helpful
i am writing this exam tomorrow and have dumps
can i have the icdl excel exam
please upload it
hye when will post again the past year question for this h13-311_v3 part since i have to for my test tommorow…thank you very much
on question 22, option b-once per session is also valid.
this website is very helpful
its my first time exam
correct answers are device configuration-enable the automatic installation of webview2 runtime. & policy management- prevent users from submitting feedback.
is this dump still valid? today is 9-july-2023
i need this exam.. please upload these are really helpful
please upload the oracle 1z0-1059-22 dumps
very good questions
nice, first step to exams
is this valid for chfiv9 as well... as i am reker 3rd time...
great exam for people taking 220-1101
this is very helpfull for me
just started preparing for the exam
these are the type of questions i need.
does this actually work? are they the exam questions and answers word for word?
Keeping this site free takes real effort. We constantly battle automated scraping and unauthorized content copying. A quick account helps us protect the community and keep the site free.
To continue studying for your DP-800, please sign in or create a free account.