ExamGecko
Home Home / Microsoft / DP-300

Microsoft DP-300 Practice Test - Questions Answers, Page 4

Question list
Search
Search

List of questions

Search

Related questions











You have an Azure Data Factory pipeline that is triggered hourly.

The pipeline has had 100% success for the past seven days.

The pipeline execution fails, and two retries that occur 15 minutes apart also fail. The third failure returns the following error.

What is a possible cause of the error?

A.
From 06:00 to 07:00 on January 10, 2021, there was no data in wwi/BIKES/CARBON.
A.
From 06:00 to 07:00 on January 10, 2021, there was no data in wwi/BIKES/CARBON.
Answers
B.
The parameter used to generate year=2021/month=01/day=10/hour=06 was incorrect.
B.
The parameter used to generate year=2021/month=01/day=10/hour=06 was incorrect.
Answers
C.
From 06:00 to 07:00 on January 10, 2021, the file format of data in wwi/BIKES/CARBON was incorrect.
C.
From 06:00 to 07:00 on January 10, 2021, the file format of data in wwi/BIKES/CARBON was incorrect.
Answers
D.
The pipeline was triggered too early.
D.
The pipeline was triggered too early.
Answers
Suggested answer: B

HOTSPOT

You are designing an enterprise data warehouse in Azure Synapse Analytics that will store website traffic analytics in a star schema.

You plan to have a fact table for website visits. The table will be approximately 5 GB.

You need to recommend which distribution type and index type to use for the table. The solution must provide the fastest query performance.

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

NOTE: Each correct selection is worth one point.


Question 32
Correct answer: Question 32

Explanation:

Box 1: Hash

Consider using a hash-distributed table when:

The table size on disk is more than 2 GB.

The table has frequent insert, update, and delete operations.

Box 2: Clustered columnstore

Clustered columnstore tables offer both the highest level of data compression and the best overall query performance.

Reference:

https://docs.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-distribute

https://docs.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-index

HOTSPOT

You have an Azure SQL database.

You are reviewing a slow performing query as shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.

NOTE: Each correct selection is worth one point.


Question 33
Correct answer: Question 33

Explanation:

Reference:

https://docs.microsoft.com/en-us/sql/relational-databases/performance/live-query-statistics?view=sql-server-ver15

You have an Azure SQL managed instance.

You need to gather the last execution of a query plan and its runtime statistics. The solution must minimize the impact on currently running queries.

What should you do?

A.
Generate an estimated execution plan.
A.
Generate an estimated execution plan.
Answers
B.
Generate an actual execution plan.
B.
Generate an actual execution plan.
Answers
C.
Run sys.dm_exec_query_plan_stats.
C.
Run sys.dm_exec_query_plan_stats.
Answers
D.
Generate Live Query Statistics.
D.
Generate Live Query Statistics.
Answers
Suggested answer: C

Explanation:

Reference:

https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-query-plan-stats-transact-sql?view=sql-server-ver15

HOTSPOT

You have an Azure SQL database named db1 on a server named server1.

You use Query Performance Insight to monitor db1.

You need to modify the Query Store configuration to ensure that performance monitoring data is available as soon as possible.

Which configuration setting should you modify and which value should you configure? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 35
Correct answer: Question 35

You have an Azure SQL Database managed instance.

The instance starts experiencing performance issues.

You need to identify which query is causing the issue and retrieve the execution plan for the query. The solution must minimize administrative effort.

What should you use?

A.
SQL Profiler
A.
SQL Profiler
Answers
B.
Extended Events
B.
Extended Events
Answers
C.
Query Store
C.
Query Store
Answers
D.
dynamic management views
D.
dynamic management views
Answers
Suggested answer: D

You have an Azure SQL database named DB1.

You need to display the estimated execution plan of a query by using the query editor in the Azure portal.

What should you do first?

A.
Run the SET SHOWPLAN_ALL Transact-SQL statement.
A.
Run the SET SHOWPLAN_ALL Transact-SQL statement.
Answers
B.
For DB1, set QUERY_CAPTURE_MODE of Query Store to All.
B.
For DB1, set QUERY_CAPTURE_MODE of Query Store to All.
Answers
C.
Run the SET FORCEPLAN Transact-SQL statement.
C.
Run the SET FORCEPLAN Transact-SQL statement.
Answers
D.
Enable Query Store for DB1.
D.
Enable Query Store for DB1.
Answers
Suggested answer: A

Explanation:

Reference:

https://docs.microsoft.com/en-us/sql/t-sql/statements/set-showplan-all-transact-sql?view=sql-server-ver15

HOTSPOT

You have an Azure SQL database.

You have a query and the associated execution plan as shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.

NOTE: Each correct selection is worth one point.


Question 38
Correct answer: Question 38

Explanation:

Box 1: Key Lookup

The Key Lookup cost is 99% so that is the performance bottleneck.

Box 2: nonclustered index

The key lookup on the clustered index is used because the nonclustered index does not include the required columns to resolve the query. If you add the required columns to the nonclustered index, the key lookup will not be required.

You have an Azure SQL database named DB3.

You need to provide a user named DevUser with the ability to view the properties of DB3 from Microsoft SQL Server Management Studio (SSMS) as shown in the exhibit. (Click the Exhibit tab.)

Which Transact-SQL command should you run?

A.
GRANT SHOWPLAN TO DevUser
A.
GRANT SHOWPLAN TO DevUser
Answers
B.
GRANT VIEW DEFINITION TO DevUser
B.
GRANT VIEW DEFINITION TO DevUser
Answers
C.
GRANT VIEW DATABASE STATE TO DevUser
C.
GRANT VIEW DATABASE STATE TO DevUser
Answers
D.
GRANT SELECT TO DevUser
D.
GRANT SELECT TO DevUser
Answers
Suggested answer: C

Explanation:

The exhibits displays Database [State] properties.

To query a dynamic management view or function requires SELECT permission on object and VIEW SERVER STATE or VIEW DATABASE STATE permission.

Reference: https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-properties-options-page

You have the following Transact-SQL query.

Which column returned by the query represents the free space in each file?

A.
ColumnA
A.
ColumnA
Answers
B.
ColumnB
B.
ColumnB
Answers
C.
ColumnC
C.
ColumnC
Answers
D.
ColumnD
D.
ColumnD
Answers
Suggested answer: C

Explanation:

Example:

Free space for the file in the below query result set will be returned by the FreeSpaceMB column.

SELECT DB_NAME() AS DbName,

name AS FileName,

type_desc,

size/128.0 AS CurrentSizeMB,

size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS INT)/128.0 AS FreeSpaceMB

FROM sys.database_files

WHERE type IN (0,1);

Reference:

https://www.sqlshack.com/how-to-determine-free-space-and-file-size-for-sql-server-databases/

Total 338 questions
Go to page: of 34