DP-300 Implement a secure environment Practice Question
An Azure SQL Database contains personally identifiable information (PII). You need to mask the PII columns from non-administrative users while allowing administrators to see the actual data. Which feature should you use?
⚠ Common exam trap
Test-takers frequently confuse Dynamic Data Masking with Always Encrypted, thinking both hide data from the database engine, but DDM only masks output while Always Encrypted encrypts data at the client and prevents the server from ever seeing plaintext.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Dynamic Data Masking
Dynamic Data Masking (DDM) is the correct choice because it selectively obscures sensitive PII columns in query results for non-administrative users, while leaving the data unmasked for users with elevated permissions (e.g., db_owner or the UNMASK permission). This is achieved by defining masking rules on specific columns, such as email or phone number, without altering the underlying stored data.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Always Encrypted
Why it's wrong here
Always Encrypted encrypts column data so even administrators holding the column master key cannot read plaintext without it, which contradicts the requirement that administrators see actual values. It is tempting because it protects PII at rest and in transit, which is correct when administrators must never access the data.
- ✗
Transparent Data Encryption (TDE)
Why it's wrong here
TDE encrypts data at rest, so non-administrative users querying the database still see plaintext PII; it provides no column-level masking or role-based redaction. It is tempting because it protects PII from physical media theft, which is the correct choice when the requirement is encryption at rest rather than concealing values from querying users.
- ✓
Dynamic Data Masking
Why this is correct
Dynamic Data Masking applies masking rules at query time, returning masked values to non-administrative users while privileged accounts with UNMASK permission see actual data, satisfying the requirement to hide PII from non-administrators without altering stored values.
- ✗
Row-Level Security
Why it's wrong here
Row-Level Security filters which rows a user can retrieve; it does not obscure column values, so non-administrators still see the PII in permitted rows. It is tempting because it restricts data by user identity, which is correct when the requirement is limiting access to specific rows rather than columns.
Go deeper
Related to this question
Learn chapter
Optimizing Database Query and Index Performance
Key term
Azure SQL Performance Tuning
Azure SQL Performance Tuning is the process of optimizing the speed and efficiency of queries and database operations in Microsoft Azure SQL Database or SQL Managed Instance to reduce latency and improve throughput.
About these practice questions
One of 574 original DP-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DP-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-300 exam.