exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 7 question 1 discussion

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

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
  • B. GRANT VIEW DEFINITION TO DevUser
  • C. GRANT VIEW DATABASE STATE TO DevUser
  • D. GRANT SELECT TO DevUser
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Luke97
Highly Voted 3 years, 8 months ago
GRANT VIEW DATABASE STATE TO [<user>];
upvoted 14 times
...
learnazureportal
Most Recent 1 month, 4 weeks ago
Selected Answer: B
The correct is B. GRANT VIEW DEFINITION TO DevUser
upvoted 1 times
...
voodoo_sh
6 months, 2 weeks ago
Tested on SQL Server 2017 - no privilege was needed to view the Options properties. Only adding user to the database was enough. Tested on Azure SQL Database - it says "VIEW DATABASE PERFORMANCE STATE" was required. Granted VIEW DATABASE STATE - it worked, could open Properties after that.
upvoted 1 times
...
eric0718
2 years, 3 months ago
Selected Answer: C
Answer is correct
upvoted 3 times
...
Jas_dandiwal
3 years, 5 months ago
answer is correct you need view database state permission
upvoted 2 times
...
Corbiz
3 years, 5 months ago
All wrong. Tested myself on SQL 2019. No privilege is needed to view the Options properties. Only adding user to the database was enough (CREATE USER [DevUser] FOR LOGIN [DevUser])
upvoted 4 times
Raffer
3 years, 4 months ago
I just tested it, and VIEW DATABASE STATE is required. "VIEW DATABASE STATE permission denied in database 'myDatabase'. The user does not have permission to perform this action. (Microsoft SQL Server, Error: 262)"
upvoted 5 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