exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 25 discussion

Actual exam question from Microsoft's DP-203
Question #: 25
Topic #: 1
[All DP-203 Questions]

You build a data warehouse in an Azure Synapse Analytics dedicated SQL pool.
Analysts write a complex SELECT query that contains multiple JOIN and CASE statements to transform data for use in inventory reports. The inventory reports will use the data and additional WHERE parameters depending on the report. The reports will be produced once daily.
You need to implement a solution to make the dataset available for the reports. The solution must minimize query times.
What should you implement?

  • A. an ordered clustered columnstore index
  • B. a materialized view
  • C. result set caching
  • D. a replicated table
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ANath
Highly Voted 3 years, 2 months ago
B is correct. Materialized view and result set caching These two features in dedicated SQL pool are used for query performance tuning. Result set caching is used for getting high concurrency and fast response from repetitive queries against static data. To use the cached result, the form of the cache requesting query must match with the query that produced the cache. In addition, the cached result must apply to the entire query. Materialized views allow data changes in the base tables. Data in materialized views can be applied to a piece of a query. This support allows the same materialized views to be used by different queries that share some computation for faster performance.
upvoted 27 times
...
Canary_2021
Highly Voted 3 years, 4 months ago
Selected Answer: B
B is the correct answer. A materialized view is a database object that contains the results of a query. A materialized view is not simply a window on the base table. It is actually a separate object holding data in itself. So query data against a materialized view with different filters should be quick. Difference Between View and Materialized View: https://techdifferences.com/difference-between-view-and-materialized-view.html
upvoted 14 times
...
20b1837
Most Recent 1 month, 2 weeks ago
Selected Answer: A
B is incorrect. A materialized view MUST contains one of the following a select that contains an aggregate function and/or a Group by clause. See the below article https://learn.microsoft.com/en-us/sql/t-sql/statements/create-materialized-view-as-select-transact-sql?toc=%2Fazure%2Fsynapse-analytics%2Fsql-data-warehouse%2Ftoc.json&bc=%2Fazure%2Fsynapse-analytics%2Fsql-data-warehouse%2Fbreadcrumb%2Ftoc.json&view=azure-sqldw-latest&preserve-view=true
upvoted 1 times
...
hypersam
4 months ago
Selected Answer: B
also why C is incorrect: "When cached results are used: There is an exact match between the new query and the previous query that generated the result set cache." but in our case we need additional WHERE clause https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/performance-tuning-result-set-caching#when-cached-results-are-used
upvoted 1 times
...
EmnCours
5 months, 1 week ago
Selected Answer: B
Correct Answer: B
upvoted 1 times
...
ff5037f
6 months, 1 week ago
Selected Answer: B
As materalized views stores data. we can write once and can read from it mutiple times
upvoted 1 times
...
ELJORDAN23
1 year, 3 months ago
Selected Answer: B
Got this question on my exam on january 17, B is correct
upvoted 3 times
...
Joanna0
1 year, 3 months ago
Selected Answer: B
Materialized Views: Create materialized views that store the results of the complex SELECT queries. Materialized views are precomputed views stored as tables, and they can significantly reduce query times by avoiding the need to recompute the results every time the query is executed.
upvoted 2 times
...
ll94
1 year, 4 months ago
A. an ordered clustered columnstore index => this will impact the where clause so it is a valid option B. a materialized => can't be used since there is no aggregation C. result set caching => We don't know if the output query respects the limitation (10 gb ) so no D. a replicated table => sizes of lookups tables not mentioned so even if it is a possible solution it's not a suggested approach
upvoted 1 times
...
phydev
1 year, 6 months ago
Selected Answer: B
Was on my exam today (31.10.2023).
upvoted 4 times
...
kkk5566
1 year, 8 months ago
Selected Answer: B
Materialized view
upvoted 1 times
...
norbitek
2 years, 3 months ago
There is no information that this query aggregates data. "SELECT list in the materialized view definition needs to meet at least one of these two criteria: The SELECT list contains an aggregate function. GROUP BY is used in the Materialized view definition and all columns in GROUP BY are included in the SELECT list. Up to 32 columns can be used in the GROUP BY clause." I'm not sure that B is correct answer. Unfortunately I cannot see better answer
upvoted 3 times
ck8.kakade
9 months, 1 week ago
A properly designed materialized view provides : Reduce the execution time for complex queries with JOINs and aggregate functions. The more complex the query, the higher the potential for execution-time saving. The most benefit is gained when a query's computation cost is high and the resulting data set is small. So the right answer is B
upvoted 1 times
...
...
Deepshikha1228
2 years, 9 months ago
B is correct
upvoted 2 times
...
SKN0865
2 years, 10 months ago
B is correct acc to: https://docs.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/performance-tuning-materialized-views https://docs.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/performance-tuning-materialized-views
upvoted 1 times
...
SandipSingha
2 years, 12 months ago
B materialized view
upvoted 2 times
...
Egocentric
3 years ago
B is correct without a doubt
upvoted 2 times
...
DingDongSingSong
3 years, 1 month ago
Why isn't the answer "A" when the query may have additional WHERE parameters depending on the report. That mean's the query isn't static and will change depending on the report. A clustered columstore index would provide a bettery query performance in case of a complex query where query isn't static.
upvoted 1 times
uzairahm
2 years, 10 months ago
I was thinking on the same level initially but there are multiple tables informed and apply column store indexes an all tables would not ensure good results materialized view would store the results of complex calculations and it would be faster to just query those results i believe even if extra where clauses are applied
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago