Governance & security in Azure data services
Data governance and security is about controlling who can see what, protecting data at rest and in transit, and proving compliance. DP-900 tests whether you know which Azure feature solves which problem.
Authentication vs authorisation
- Authentication (AuthN) proves who you are - Azure Active Directory (Microsoft Entra ID) is the main identity provider for Azure data services.
- Authorisation (AuthZ) decides what you can do once verified - handled through Azure role-based access control (RBAC).
- SQL-based services also support SQL authentication (username and password) as an alternative to Entra ID.
Azure RBAC
- RBAC assigns roles (like Reader, Contributor, Owner, or service-specific roles such as SQL DB Contributor) to users, groups, or service principals at a scope: management group, subscription, resource group, or resource.
- Roles are additive - there is no explicit deny by default, though Azure now supports deny assignments for exceptions.
- Principle of least privilege: always grant the minimum role needed.
Encryption
- Encryption at rest protects data on disk - Azure Storage and Azure SQL Database use Transparent Data Encryption (TDE) by default, with AES 256-bit encryption.
- Encryption in transit protects data moving over networks - enforced using TLS (Transport Layer Security), typically TLS 1.2 minimum.
- Always Encrypted (SQL feature) keeps sensitive columns encrypted even from database administrators, using client-side keys.
- Transparent Data Encryption keys can be Microsoft-managed or customer-managed (stored in Azure Key Vault) for extra control.
Network security
- Firewalls restrict access by IP address range - Azure SQL Database has a server-level and database-level firewall.
- Virtual network (VNet) service endpoints and Private Link let resources connect over Microsoft's private backbone rather than the public internet, reducing exposure.
- Private Link assigns a private IP address from your VNet directly to the PaaS resource.
Auditing and monitoring
- Azure SQL Auditing tracks database events (logins, queries, schema changes) and writes them to a storage account, Log Analytics workspace, or Event Hub.
- Microsoft Defender for Cloud (formerly Advanced Threat Protection) detects anomalous activity like SQL injection attempts or unusual access patterns.
- Dynamic Data Masking hides sensitive data (like full credit card numbers) from non-privileged users in query results without changing the stored data - it is not a security boundary on its own.
Common mistakes
- Confusing authentication (identity) with authorisation (permissions) - these are two separate steps.
- Thinking Dynamic Data Masking encrypts data - it does not; it only obscures display output.
- Assuming TDE protects data in transit - it only protects data at rest.
- Forgetting that RBAC in Azure is scope-based and inherits downward from higher scopes.
- Mixing up Always Encrypted (column-level, client-side keys) with TDE (whole database, transparent to apps).</br>
What is the difference between authentication and authorisation?
Authentication verifies who you are (identity); authorisation determines what you are allowed to do (permissions).
tap to reveal
What does Azure RBAC stand for and what does it control?
Role-Based Access Control - it grants roles to users, groups or service principals at a defined scope to control permissions.
tap to reveal
At what scopes can Azure RBAC roles be assigned?
Management group, subscription, resource group, or individual resource - permissions inherit downward.
tap to reveal
What encrypts Azure SQL Database and Storage data at rest by default?
Transparent Data Encryption (TDE), using AES 256-bit encryption.
tap to reveal
What protocol secures Azure data in transit, and what is the minimum version?
TLS (Transport Layer Security), minimum TLS 1.2.
tap to reveal
What is Always Encrypted and how does it differ from TDE?
A SQL feature that encrypts specific columns using client-side keys so even DBAs cannot read them; TDE encrypts the whole database transparently instead.
tap to reveal
Does Dynamic Data Masking encrypt data?
No - it only hides or obscures sensitive data in query results for non-privileged users; the stored data is unchanged and unencrypted by this feature.
tap to reveal
What controls which IP addresses can reach an Azure SQL Database?
Server-level and database-level firewalls that allow specific IP address ranges.
tap to reveal
What does Azure Private Link provide for a PaaS data service?
A private IP address from your virtual network, so traffic never traverses the public internet.
tap to reveal
What Azure service detects threats like SQL injection attempts against data services?
Microsoft Defender for Cloud (formerly Advanced Threat Protection).
tap to reveal
Where can Azure SQL Auditing send its logs?
A storage account, a Log Analytics workspace, or an Event Hub.
tap to reveal
What is the principle of least privilege?
Grant a user or service only the minimum permissions/role required to perform its task, nothing more.
tap to reveal
Where can customer-managed TDE encryption keys be stored?
In Azure Key Vault, giving the customer control over key rotation and revocation.
tap to reveal
What identity provider is primarily used for authentication to Azure data services?
Azure Active Directory, now called Microsoft Entra ID.
tap to reveal
Besides Entra ID, what other authentication method do SQL-based Azure services support?
SQL authentication - a username and password managed within the database service itself.
tap to reveal