exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 6 question 31 discussion

Actual exam question from Microsoft's DP-300
Question #: 31
Topic #: 6
[All DP-300 Questions]

You have an Azure SOI database named SQLDb1 that contains the resources shown in the following table.



Column1 contains JSON data.

You need to compress Column1. The solution must minimize the amount of storage used.

What should you use?

  • A. the COMPRESS() function
  • B. columnstore archive compression
  • C. row compression
  • D. columnstore compression
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
voodoo_sh
2 months, 2 weeks ago
Selected Answer: A
A. COMPRESS function. It uses GZIP algorithm and typically is better for compressing text (and JSON) data, compared to columnstore archival compression.
upvoted 1 times
...
Oga_DBA
4 months, 4 weeks ago
Selected Answer: B
the COMPRESS() function is not available in Azure Sql database
upvoted 1 times
...
a387354
11 months, 2 weeks ago
A. over B or D as columnstore compression is not available for nvarchar(max) datatypes.
upvoted 2 times
...
Ben999
1 year ago
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.
upvoted 1 times
...
igorclapa
1 year, 7 months ago
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
upvoted 1 times
SamBalbij
1 year, 5 months ago
Output of Compress function is varbinary(max), the column is nvarchar(max), it is incompatible.
upvoted 1 times
...
...
testdumps2017
1 year, 8 months ago
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.
upvoted 1 times
...
duzee
1 year, 9 months ago
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.
upvoted 1 times
...
duzee
1 year, 9 months ago
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.
upvoted 1 times
...
OBIJUAN88
1 year, 12 months ago
Selected Answer: A
https://learn.microsoft.com/es-es/sql/t-sql/functions/compress-transact-sql?view=sql-server-ver16
upvoted 3 times
...
U_C
2 years ago
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.
upvoted 3 times
...
HSQL
2 years, 1 month ago
Correct Answer: C ALTER TABLE dbo.Table1 REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = ROW); GO
upvoted 4 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