A. COMPRESS function.
It uses GZIP algorithm and typically is better for compressing text (and JSON) data, compared to columnstore archival compression.
Answer is B. Question is to minimize storage used. A and D will compress data but B will provide best compression. Question also says nothing about performance.
COMPRESS ( expression ) not only applies to Azure SQL DB but also supports the following expressions:
binary(n)
char(n)
nchar(n)
nvarchar(max)
nvarchar(n)
varbinary(max)
varbinary(n)
varchar(max)
varchar(n)
https://learn.microsoft.com/en-us/sql/t-sql/functions/compress-transact-sql?view=sql-server-ver16
https://learn.microsoft.com/en-us/sql/t-sql/functions/compress-transact-sql?view=sql-server-ver16 - so it is the COMPRESS() function, available starting SQL 2016.
Page and row compression DO NOT work on BLOBs, fyi.
Neither is columnstore, it seems.
Selected Answer; D ,
To compress the JSON data in Column1 in the Azure SQL Database named SQLDb1 while minimizing storage usage, the recommended option would be D. columnstore compression.
Columnstore compression is designed specifically for reducing the storage footprint of large datasets. It provides efficient compression algorithms that work well with columnar data storage, enabling significant storage savings. Columnstore compression organizes and compresses the data at the column level, resulting in improved query performance and reduced storage requirements.
In this case, since you have JSON data in Column1, columnstore compression would be an appropriate choice. It will compress the data within the column, optimizing storage usage while maintaining query performance.
D. columnstore compression
To minimize the amount of storage used while compressing Column1, you should use columnstore compression. Columnstore compression is specifically designed for columnar storage and provides high compression ratios for large datasets. It reduces the storage footprint by compressing and encoding the data within each column. This compression technique is well-suited for data warehousing and analytical workloads where the focus is on query performance rather than transactional operations. Therefore, using columnstore compression is the most appropriate option in this scenario.
To compress Column1, which contains JSON data, you should use the COMPRESS() function. This function can be used to compress data stored in an NVARCHAR(MAX) column1. So the correct answer is A. the COMPRESS() function.
Correct Answer: C
ALTER TABLE dbo.Table1 REBUILD PARTITION = ALL
WITH (DATA_COMPRESSION = ROW);
GO
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.DP-300 Exam Questions
Log in to ExamTopics
Sign in:
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.
voodoo_sh
2 months, 2 weeks agoOga_DBA
4 months, 4 weeks agoa387354
11 months, 2 weeks agoBen999
1 year agoigorclapa
1 year, 7 months agoSamBalbij
1 year, 5 months agotestdumps2017
1 year, 8 months agoduzee
1 year, 9 months agoduzee
1 year, 9 months agoOBIJUAN88
1 year, 12 months agoU_C
2 years agoHSQL
2 years, 1 month ago