Courseiva

CCNA Dp300 Secure Environment Questions

50 of 200 questions · Page 3/3 · Dp300 Secure Environment topic · Answers revealed

151
MCQeasy

Your Azure SQL Database contains sensitive financial data. You need to audit all data modifications (INSERT, UPDATE, DELETE) and store the audit logs in a central Azure Storage account for compliance. What should you configure?

A.Enable auditing on the database and set the audit log destination to an Azure Storage account.
B.Configure diagnostic settings to stream query store data to an event hub.
C.Enable Microsoft Defender for SQL and configure security alerts to be sent to a storage account.
D.Enable SQL Vulnerability Assessment and export the results to a storage account.
AnswerA

Auditing captures data modifications and can be stored in storage.

Why this answer

Azure SQL Database's built-in auditing feature can be configured to capture all data modifications (INSERT, UPDATE, DELETE) and write audit logs directly to an Azure Storage account. This meets the compliance requirement for centralized, durable storage of audit records without additional services or complex pipelines.

Exam trap

The trap here is confusing security monitoring tools (Defender for SQL, Vulnerability Assessment) or performance diagnostics (query store) with the specific auditing feature required for capturing data modification logs for compliance.

How to eliminate wrong answers

Option B is wrong because diagnostic settings streaming query store data to an event hub captures performance and query metrics, not data modification audit logs; it is designed for real-time monitoring, not compliance auditing. Option C is wrong because Microsoft Defender for SQL provides security alerts and threat detection, not granular audit logs of INSERT/UPDATE/DELETE operations; its alerts are sent to security teams, not stored as a compliance audit trail. Option D is wrong because SQL Vulnerability Assessment scans for security misconfigurations and exports assessment results, not data modification audit logs; it is a security posture tool, not an auditing solution.

152
MCQmedium

You have an Azure SQL Database that uses a firewall rule allowing access from a specific range of IP addresses. A developer reports that they cannot connect from a new IP address that falls outside the allowed range. You need to temporarily allow the developer's IP address for 24 hours without affecting existing rules. What should you do?

A.Configure a point-to-site VPN connection for the developer.
B.Add a new firewall rule at the server level that allows the developer's IP address.
C.Update the existing firewall rule to include the developer's IP address.
D.Modify the database-level firewall rule to include the developer's IP.
AnswerB

New rule allows the specific IP without affecting existing rules.

Why this answer

Azure SQL Database firewall rules are configured at the server level (the logical server) to control inbound access. Adding a new server-level firewall rule for the developer's specific IP address allows temporary access without modifying or removing the existing range-based rule. This approach is the standard method for granting time-limited access to a single IP while preserving all other firewall configurations.

Exam trap

The trap here is that candidates confuse server-level firewall rules with database-level firewall rules, incorrectly assuming that database-level rules exist in Azure SQL Database (they do not), or they think updating the existing range is acceptable, missing the requirement to leave existing rules unchanged.

How to eliminate wrong answers

Option A is wrong because a point-to-site VPN connection is an over-engineered solution that introduces unnecessary complexity and latency; it is not designed for simple IP-based access control to Azure SQL Database and would require additional networking components (e.g., VPN gateway, certificates). Option C is wrong because updating the existing firewall rule to include the developer's IP would expand the allowed IP range permanently, which contradicts the requirement to temporarily allow access for only 24 hours without affecting existing rules. Option D is wrong because database-level firewall rules are a legacy feature and are not supported for Azure SQL Database; all firewall rules must be configured at the server level or via virtual network rules.

153
MCQmedium

You have an Azure SQL Database with Always Encrypted enabled for sensitive columns. You need to grant a developer the ability to encrypt data using a column master key stored in Azure Key Vault. What permissions must be assigned to the developer's Microsoft Entra identity in the key vault?

A.Get, Decrypt, and Unwrap Key.
B.Get, Wrap Key, and Unwrap Key.
C.Get and Decrypt.
D.Get, Sign, and Verify.
AnswerB

Wrap Key is needed to encrypt, and Unwrap Key is needed to decrypt. Get is required to retrieve the key metadata.

Why this answer

To encrypt data with Always Encrypted, the client driver must retrieve the column encryption key (which is stored encrypted) and unwrap it using the column master key. It may also need to wrap newly generated column encryption keys during key rotation or initial setup. Therefore, the developer's Microsoft Entra identity requires Get, Unwrap Key, and Wrap Key permissions on the column master key in Azure Key Vault.

Option B correctly includes all three.

Exam trap

The trap is that candidates often assume only Wrap Key is needed for encryption, but in Always Encrypted, the client driver must also unwrap the existing column encryption key from its encrypted form to use it for encrypting data. Both Unwrap Key and Wrap Key are required operations during encryption tasks.

How to eliminate wrong answers

Option A is wrong because it includes Decrypt and Unwrap Key, which are required for decryption, not encryption; granting these would over-permission the developer for the stated task. Option C is wrong because it only provides Get and Decrypt, missing the Wrap Key permission necessary to encrypt a column encryption key. Option D is wrong because Sign and Verify are used for digital signatures and key attestation, not for encrypting data with Always Encrypted.

154
MCQmedium

You have an Azure SQL Database that needs to be accessed by an application with a static public IP address. You want to allow only that IP address to connect. What should you configure?

A.Create a virtual network rule for the database.
B.Create a private endpoint for the database.
C.Create a server-level firewall rule with the application's IP.
D.Create a database-level firewall rule with the application's IP.
AnswerC

Server-level firewall rules allow specific IP addresses.

Why this answer

A server-level firewall rule explicitly allows inbound connections from a specific client IP address to the Azure SQL Database logical server. Since the application has a static public IP, configuring a server-level firewall rule with that IP is the simplest and most direct method to restrict access to only that address, while still using the public endpoint.

Exam trap

The trap here is that candidates often confuse database-level firewall rules (Option D) as the correct answer, not realizing that server-level rules are the standard for IP-based access and that database-level rules require contained database users, which is an additional prerequisite not mentioned in the scenario.

How to eliminate wrong answers

Option A is wrong because a virtual network rule allows traffic from a specific Azure virtual network subnet, not from a static public IP address; it requires the client to be inside that VNet. Option B is wrong because a private endpoint assigns the database a private IP within a VNet, which is used for private connectivity and does not filter by a specific public IP; it also requires the client to be in the same or peered VNet. Option D is wrong because a database-level firewall rule is scoped to a single database and is supported only for contained database users, but the question does not specify that the application uses contained database authentication; server-level rules are the standard for IP-based access control and apply to all databases on the server.

155
MCQeasy

You need to ensure that Azure SQL Database can only be accessed from a specific virtual network in Azure. Which configuration should you apply?

A.Add the public IP address range of the VNet to the firewall rules
B.Configure a virtual network service endpoint and add a firewall rule for the VNet subnet
C.Create a private endpoint and disable public network access
D.Set 'Deny public network access' to Yes
AnswerB

Service endpoints allow VNet traffic to be identified and permitted via firewall rules.

Why this answer

Configuring a virtual network service endpoint for Azure SQL Database and then adding a firewall rule for the specific VNet subnet restricts access to traffic originating from that subnet only. This ensures that the database is not reachable over the public internet, but only from the designated virtual network, meeting the requirement precisely.

Exam trap

The trap here is that candidates often confuse service endpoints (which filter by VNet subnet identity) with firewall IP rules (which filter by public IP address), leading them to incorrectly select Option A or assume that denying public access alone (Option D) is sufficient.

How to eliminate wrong answers

Option A is wrong because adding the public IP address range of the VNet to the firewall rules does not restrict access to the VNet; VNet IP ranges are private and not routable over the internet, so this would not filter traffic by VNet origin. Option C is wrong because creating a private endpoint and disabling public network access provides a private IP address for the database within the VNet, but it does not restrict access to a specific VNet—it allows access from any network that can reach the private endpoint, including peered VNets or on-premises via VPN. Option D is wrong because setting 'Deny public network access' to Yes blocks all public internet traffic but does not by itself allow access from a specific VNet; it must be combined with a private endpoint or service endpoint to grant access.

156
MCQeasy

Refer to the exhibit. You are configuring Azure SQL Database Transparent Data Encryption (TDE) with customer-managed keys (CMK) stored in Azure Key Vault. The deployment uses a user-assigned managed identity. However, after deployment, the TDE status shows 'Inaccessible'. What is the most likely cause?

A.The key specified in the URI does not exist
B.The user-assigned managed identity is not assigned to the SQL Database server
C.The Key Vault firewall is enabled and does not allow Azure services
D.The managed identity lacks 'Get', 'Wrap Key', and 'Unwrap Key' permissions on the Key Vault key
AnswerD

These permissions are required for TDE with CMK.

Why this answer

When using customer-managed keys (CMK) for TDE in Azure SQL Database, the managed identity assigned to the logical server must have 'Get', 'Wrap Key', and 'Unwrap Key' permissions on the key in Azure Key Vault. Without these specific permissions, the SQL Database service cannot retrieve or use the key to encrypt or decrypt the database encryption key, resulting in an 'Inaccessible' TDE status.

Exam trap

The trap here is that candidates often assume the issue is with the Key Vault firewall or the identity assignment, but the most common post-deployment cause of 'Inaccessible' TDE is missing cryptographic permissions on the managed identity, not network or identity existence issues.

How to eliminate wrong answers

Option A is wrong because if the key specified in the URI did not exist, the deployment would typically fail during configuration, not result in an 'Inaccessible' status after deployment. Option B is wrong because the user-assigned managed identity must be assigned to the logical SQL server, not the SQL Database server (which is a common misconception); the identity is assigned at the server level, and if it were missing, the deployment would likely fail earlier. Option C is wrong because the Key Vault firewall, when enabled, can block access even if 'Allow trusted Microsoft services' is not configured, but the most common and direct cause of 'Inaccessible' status after a successful deployment is missing key permissions on the managed identity.

157
MCQmedium

You are configuring Azure SQL Database firewall rules for a new application. The application runs on Azure VMs in the same region. To minimize latency and security risk, which approach should you use?

A.Add a firewall rule allowing all Azure IP addresses.
B.Configure a virtual network service endpoint and a virtual network firewall rule.
C.Add a firewall rule for each VM's public IP address.
D.Add a firewall rule allowing all Azure services to access the database.
AnswerB

Service endpoints provide secure, low-latency connectivity from the VNet to Azure SQL.

Why this answer

Using a virtual network service endpoint and a virtual network firewall rule allows Azure SQL Database to accept traffic only from the specific subnet hosting the application VMs, without exposing the database to the public internet. This minimizes latency by keeping traffic within the Azure backbone network and reduces the security risk by eliminating broad IP-based rules.

Exam trap

The trap here is that candidates often confuse 'allowing Azure services' (a broad, insecure setting) with the more secure virtual network service endpoint approach, or they mistakenly think adding individual VM public IPs is sufficient for security and latency.

How to eliminate wrong answers

Option A is wrong because allowing all Azure IP addresses opens the database to any Azure service in any region, vastly increasing the attack surface and violating the principle of least privilege. Option C is wrong because assigning a firewall rule for each VM's public IP address is impractical for dynamic IPs, does not leverage Azure's private network, and still exposes the database to internet-based traffic. Option D is wrong because 'allowing all Azure services' is a legacy setting that permits traffic from any Azure service (e.g., Azure Functions, Logic Apps) without subnet-level control, creating unnecessary exposure.

158
MCQmedium

Your Azure SQL Managed Instance is configured to allow connections only from a specific virtual network. You need to ensure that clients from on-premises can connect using a point-to-site VPN. What additional configuration is required?

A.Configure a point-to-site VPN connection on the virtual network gateway and ensure the gateway subnet is in the same VNet as the managed instance.
B.Configure a private endpoint for the managed instance.
C.Deploy Azure Bastion in the same VNet.
D.Add the on-premises public IP address to the managed instance firewall rules.
AnswerA

Point-to-site VPN allows on-premises clients to connect to the VNet, reaching the managed instance.

Why this answer

A point-to-site VPN connection on the virtual network gateway allows individual on-premises clients to securely connect to the Azure VNet over SSTP or IKEv2. Since the managed instance is deployed inside a subnet of that VNet and its endpoint is restricted to the VNet, the VPN tunnel provides the necessary network path for on-premises clients to reach the instance without exposing it to the public internet.

Exam trap

The trap here is that candidates confuse the point-to-site VPN requirement with the need for a private endpoint, not realizing that SQL Managed Instance is already natively integrated into the VNet and does not require an additional private endpoint for private connectivity.

How to eliminate wrong answers

Option B is wrong because a private endpoint is used for Azure PaaS services (like SQL Database or SQL Managed Instance) to provide a private IP address within a VNet, but SQL Managed Instance already has a native VNet-deployed endpoint; adding a private endpoint is redundant and not required for point-to-site VPN connectivity. Option C is wrong because Azure Bastion provides secure RDP/SSH access to VMs inside a VNet via the Azure portal, not client-to-service connectivity for database clients. Option D is wrong because the managed instance does not use server-level firewall rules like Azure SQL Database; its network security is enforced entirely through VNet integration and NSG rules, so adding a public IP address to firewall rules is not applicable.

159
MCQeasy

You need to ensure that only specific Azure services can access your Azure SQL Database server. You want to allow traffic from Azure services but block all other traffic. What should you configure?

A.Set the firewall rule 'Allow Azure Services and resources to access this server' to ON and remove all other IP rules.
B.Set the firewall rule 'Allow Azure Services and resources to access this server' to OFF and add a rule for 0.0.0.0.
C.Set firewall rules to deny all IP addresses.
D.Set the firewall rule 'Allow Azure Services and resources to access this server' to ON and add a rule for 0.0.0.0.
AnswerA

This allows only Azure services.

Why this answer

Setting the 'Allow Azure Services and resources to access this server' firewall rule to ON enables a special rule that permits traffic from all Azure datacenter IP ranges, while removing all other IP rules ensures no other external traffic can reach the server. This configuration meets the requirement to allow only Azure services and block all other traffic, as the Azure services rule is a blanket allow for Azure-originated connections without needing specific IP addresses.

Exam trap

The trap here is confusing the 'Allow Azure Services' rule with a generic 0.0.0.0 rule, leading candidates to think they need to add 0.0.0.0 to allow Azure traffic, when in fact the Azure services rule is a distinct mechanism that does not require explicit IP entries.

How to eliminate wrong answers

Option B is wrong because setting the rule to OFF and adding a rule for 0.0.0.0 does not allow Azure services; the 0.0.0.0 rule is typically used to allow all IPs, which contradicts the requirement to block non-Azure traffic. Option C is wrong because denying all IP addresses would block all traffic, including Azure services, failing to meet the requirement to allow Azure services. Option D is wrong because adding a rule for 0.0.0.0 alongside the Azure services rule would allow all IP addresses (including non-Azure traffic), which violates the requirement to block all other traffic.

160
Multi-Selectmedium

Your company uses Azure SQL Database and needs to comply with GDPR. You must implement data classification and protection. Which TWO actions should you take? (Choose two.)

Select 2 answers
A.Configure sensitivity labels using Microsoft Purview Information Protection.
B.Implement Always Encrypted for all columns containing personal data.
C.Install the Azure Information Protection client on all client machines.
D.Enable Microsoft Defender XDR for the database server.
E.Use SQL Data Discovery & Classification in the Azure portal to classify columns containing personal data.
AnswersA, E

Sensitivity labels can be applied to classified columns and are integrated with Microsoft Purview Information Protection.

Why this answer

Microsoft Purview Information Protection provides sensitivity labels that can be applied to columns in Azure SQL Database to classify and protect personal data, meeting GDPR requirements. These labels enforce encryption, access restrictions, and visual markings, integrating with Azure SQL's data classification capabilities.

Exam trap

The trap here is confusing data classification (labeling and identifying sensitive data) with data encryption (Always Encrypted) or threat detection (Defender XDR), leading candidates to pick security features that do not fulfill the GDPR requirement for classification and labeling.

161
Multi-Selectmedium

Which THREE are valid methods to authenticate to Azure SQL Database using Microsoft Entra ID?

Select 3 answers
A.User-assigned managed identity without a contained database user
B.Microsoft Entra ID password authentication
C.Integrated Windows authentication (Kerberos)
D.Azure CLI authentication
E.Service principal authentication
AnswersB, C, E

Supports username/password authentication via Entra ID.

Why this answer

Microsoft Entra ID password authentication allows users to authenticate to Azure SQL Database using their Entra ID credentials directly, without requiring Windows domain join or integrated authentication. This method uses the Entra ID access token flow, where the user provides their username and password to obtain a token from the Microsoft Entra ID endpoint, which is then used to connect to the database. It is a straightforward, cloud-native authentication method supported for contained database users mapped to Entra ID identities.

Exam trap

The trap here is that candidates often confuse authentication methods with authentication tools or prerequisites, mistakenly thinking that a managed identity can authenticate without a contained database user or that Azure CLI is a direct authentication method for SQL Database rather than a token acquisition tool.

162
MCQmedium

Your organization uses Azure SQL Database with Microsoft Entra ID authentication. You need to ensure that a specific user can only read data from the Sales schema. The user should not be able to modify any data. What should you do?

A.Create a contained user mapped to the Microsoft Entra identity, then grant SELECT on the Sales schema to the user, and deny SELECT on all other schemas.
B.Create a contained user mapped to the Microsoft Entra identity and add the user to the db_datareader role.
C.Create a contained user mapped to the Microsoft Entra identity and add the user to the db_denydatawriter role.
D.Create a contained user mapped to the Microsoft Entra identity and add the user to the db_datareader role, then deny SELECT on all schemas except Sales.
AnswerA

This explicitly grants SELECT on Sales schema and denies on others, achieving the requirement.

Why this answer

It creates a contained database user mapped to the Microsoft Entra identity, then explicitly grants SELECT on the Sales schema. This ensures the user can read data only from that schema. Denying SELECT on all other schemas removes any implicit permissions (such as those from the public role) and enforces the least-privilege principle.

This approach is schema-level permission control, which is more granular than fixed database roles.

Exam trap

The trap here is that candidates often assume fixed database roles like db_datareader or db_denydatawriter are sufficient, but they either grant too much access or fail to grant the required read access, whereas schema-level permissions with explicit DENY provide precise control.

How to eliminate wrong answers

Option B is wrong because adding the user to the db_datareader role grants SELECT on all tables and views in the entire database, not just the Sales schema, violating the requirement to restrict access to only the Sales schema. Option C is wrong because the db_denydatawriter role only prevents INSERT, UPDATE, DELETE, and MERGE operations but does not grant any read access; the user would have no permission to read data from the Sales schema. Option D is wrong because adding the user to db_datareader first grants SELECT on all objects, and then denying SELECT on all schemas except Sales would create a conflict: the deny overrides the grant (deny takes precedence in SQL Server permission precedence), effectively blocking read access to the Sales schema as well.

163
Multi-Selectmedium

You are designing a secure environment for Azure SQL Database. Which TWO of the following are recommended practices for network security?

Select 2 answers
A.Enable the 'Allow Azure services and resources to access this server' firewall setting.
B.Use VNet service endpoints instead of Private Link to reduce costs.
C.Use Azure Private Link to connect to the database from a virtual network.
D.Disable public network access on the SQL server.
E.Add firewall rules that allow all IP addresses from your organization's IP range.
AnswersC, D

Private Link provides a private IP address within the VNet, eliminating exposure to the internet.

Why this answer

Options C and D are correct. Azure Private Link (C) ensures traffic between the virtual network and Azure SQL Database stays within the Microsoft backbone network, avoiding the public internet. Disabling public network access (D) at the server level blocks all internet traffic, enhancing security.

Option A is incorrect because enabling 'Allow Azure services...' is a broad rule that permits traffic from any Azure service, which may be insecure. Option B is incorrect because VNet service endpoints are legacy and less secure compared to Private Link. Option E is incorrect because allowing a large IP range increases the attack surface.

164
MCQmedium

Your company is migrating an on-premises SQL Server database to Azure SQL Managed Instance. You need to ensure that the database is protected by Microsoft Defender for Cloud (formerly Azure Security Center) with advanced threat protection. What should you enable?

A.Deploy Microsoft Sentinel and connect the SQL Managed Instance
B.Enable Microsoft Defender for Cloud on the subscription or resource
C.Configure Microsoft Purview Data Map
D.Enable Azure SQL Database auditing
AnswerB

Defender for Cloud includes advanced threat protection for SQL.

Why this answer

Microsoft Defender for Cloud provides advanced threat protection for Azure SQL Managed Instance at the subscription or resource level. Enabling it on the subscription or the specific resource activates threat detection capabilities, including alerts for SQL injection, brute-force attacks, and anomalous access patterns, without requiring additional services.

Exam trap

The trap here is that candidates often confuse auditing (which logs events) with threat protection (which actively detects and alerts on suspicious activity), leading them to select auditing as the answer, or they mistakenly think Microsoft Sentinel is required to enable threat detection when it is actually an optional SIEM integration.

How to eliminate wrong answers

Option A is wrong because Microsoft Sentinel is a SIEM (Security Information and Event Management) solution that ingests security logs from various sources, including Defender for Cloud, but it does not directly enable advanced threat protection for SQL Managed Instance; it is an additional layer for centralized security monitoring, not the mechanism to enable threat protection. Option C is wrong because Microsoft Purview Data Map is a data governance and cataloging service for managing data lineage, classification, and discovery, not a security tool for threat detection or protection against database attacks. Option D is wrong because enabling Azure SQL Database auditing captures and logs database events for compliance and forensic analysis, but it does not provide real-time threat detection or advanced protection against malicious activities like SQL injection or anomalous access patterns.

165
MCQeasy

You need to audit all successful and failed login attempts to an Azure SQL Database. Which feature should you enable?

A.Azure SQL Auditing
B.Advanced Threat Protection
C.Transparent Data Encryption (TDE)
D.SQL Vulnerability Assessment
AnswerA

Auditing tracks database events and writes them to an audit log.

Why this answer

Azure SQL Auditing is the correct feature because it tracks database events, including both successful and failed login attempts, and writes them to an audit log in your Azure Storage account, Log Analytics workspace, or Event Hubs. This allows you to monitor and review authentication activity for compliance and security analysis. Other features like Advanced Threat Protection, TDE, and Vulnerability Assessment do not capture login event logs.

Exam trap

The trap here is that candidates often confuse Advanced Threat Protection's alerting on suspicious logins with the comprehensive logging of all login attempts provided by Azure SQL Auditing, leading them to select ATP instead.

How to eliminate wrong answers

Option B (Advanced Threat Protection) is wrong because it detects anomalous activities indicating potential threats (e.g., SQL injection, brute force attacks) but does not provide a configurable audit log of all successful and failed login attempts; it alerts on suspicious patterns rather than recording every login event. Option C (Transparent Data Encryption) is wrong because it encrypts the database at rest and in transit but has no capability to log authentication events; it protects data confidentiality, not audit trails. Option D (SQL Vulnerability Assessment) is wrong because it scans for security misconfigurations and vulnerabilities (e.g., missing firewall rules, weak passwords) but does not capture or store login attempt logs; it is a periodic assessment tool, not an ongoing audit mechanism.

166
MCQhard

You are the database administrator for a healthcare organization that uses Azure SQL Database. You need to implement column-level encryption for sensitive patient data (e.g., Social Security numbers) using Always Encrypted. The application connecting to the database is a .NET application running on Azure Virtual Machines. The application should be able to perform parameterized queries on encrypted columns without revealing the plaintext to the database. Which configuration is essential for this setup?

A.Use Always Encrypted with secure enclaves and configure the enclave attestation URL.
B.Store the column master key in Azure Key Vault and configure the application to retrieve it.
C.Implement dynamic data masking on the columns containing Social Security numbers.
D.Enable Transparent Data Encryption (TDE) on the database.
AnswerA

Secure enclaves enable rich computations on encrypted data, meeting the requirement.

Why this answer

The scenario requires the application to perform parameterized queries on encrypted columns without revealing plaintext to the database. Always Encrypted with secure enclaves allows rich computations (e.g., equality, pattern matching) on encrypted data inside a hardware-based enclave, and the enclave attestation URL is essential to verify the enclave's integrity. Without the enclave, Always Encrypted only supports equality comparisons and cannot handle parameterized queries that require operations like LIKE or range checks on encrypted columns.

Exam trap

The trap here is that candidates often confuse Always Encrypted without enclaves (which only supports equality) with Always Encrypted with enclaves (which supports richer queries), and they may incorrectly choose key management (Option B) as the essential configuration instead of the enclave attestation URL.

How to eliminate wrong answers

Option B is wrong because storing the column master key in Azure Key Vault is a best practice for key management but is not the essential configuration for enabling parameterized queries on encrypted columns; the key retrieval is handled by the client driver, not by the database or enclave setup. Option C is wrong because dynamic data masking only hides data from unauthorized users at the query result level but does not encrypt the data at rest or prevent the database engine from seeing plaintext, which fails the requirement that the database never sees plaintext. Option D is wrong because Transparent Data Encryption (TDE) encrypts the database at rest (storage-level) but does not protect data from being visible to the database engine during query processing, so it cannot prevent the database from seeing plaintext Social Security numbers.

167
Multi-Selectmedium

Which TWO actions are required to enable Microsoft Entra ID authentication for an Azure SQL Database?

Select 2 answers
A.Enable SQL Server authentication only.
B.Set an Microsoft Entra ID admin for the Azure SQL Server.
C.Create contained database users mapped to Microsoft Entra ID identities.
D.Assign the SQL Server Contributor role to the Entra ID users.
E.Enable Azure AD integration on the SQL server.
AnswersB, C

An Entra ID admin must be set to allow Entra ID authentication.

Why this answer

To enable Entra ID authentication, you must set an Entra ID admin for the SQL server and create contained database users mapped to Entra ID identities. Enabling Azure AD (Entra ID) integration is automatic. Assigning Azure RBAC roles is for management plane, not database authentication.

The SQL Server authentication mode is always enabled.

168
MCQeasy

Your Azure SQL Database is protected by a failover group. You need to ensure that during a failover to the secondary region, only authenticated applications can connect. What should you configure?

A.Set up a private endpoint for each region and update connection strings manually.
B.Deploy an Always On availability group listener.
C.Use the failover group listener endpoint with Microsoft Entra ID authentication.
D.Configure geo-replication and use the secondary server's public endpoint.
AnswerC

The listener ensures continuous connectivity with authentication.

Why this answer

The failover group listener endpoint provides a DNS name that automatically points to the current primary region. By configuring Microsoft Entra ID authentication on the logical server, you ensure that only authenticated applications (using Microsoft Entra tokens) can connect, even after a failover. This eliminates reliance on SQL authentication passwords, which could be compromised or misconfigured across regions.

Exam trap

The trap here is that candidates confuse the failover group listener with a simple DNS alias, forgetting that it also integrates with Microsoft Entra ID to enforce authentication, not just connectivity.

How to eliminate wrong answers

Option A is wrong because private endpoints are per-region and require manual connection string updates after failover, which does not automatically ensure only authenticated applications connect. Option B is wrong because an Always On availability group listener is a SQL Server on-premises or IaaS feature, not applicable to Azure SQL Database failover groups. Option D is wrong because geo-replication with a public endpoint does not enforce authentication requirements; it exposes the secondary server to public network access without the automatic failover and authentication control provided by a failover group listener.

169
Multi-Selectmedium

You are responsible for securing Azure SQL Managed Instance. You need to ensure that only encrypted connections are allowed and that all client connections use the latest TLS protocol. Which TWO configurations should you implement?

Select 2 answers
A.Set the 'Minimal TLS Version' to 1.2.
B.Configure a firewall rule to allow only specific IP addresses.
C.Enable Microsoft Defender for SQL.
D.Enable 'Force SSL' on the server.
E.Enable Transparent Data Encryption (TDE).
AnswersA, D

Forces clients to use TLS 1.2 or higher.

Why this answer

Options A and D are correct. Setting 'Minimal TLS Version' to 1.2 ensures that only encrypted connections using TLS 1.2 or higher are accepted, enforcing the latest protocol. Enabling 'Force SSL' ensures that all client connections are encrypted.

Option B is incorrect because firewall rules control network access, not encryption. Option C is incorrect because Microsoft Defender for SQL provides security threat detection, not encryption enforcement. Option E is incorrect because Transparent Data Encryption (TDE) encrypts data at rest, not in transit.

170
MCQhard

You are designing a secure environment for Azure SQL Managed Instance. The company requires that all database backups be encrypted using customer-managed keys stored in Azure Key Vault. Which combination of actions should you take?

A.Configure Always Encrypted with keys stored in Key Vault.
B.Enable Transparent Data Encryption (TDE) with a customer-managed key in Azure Key Vault.
C.Use Azure Storage Service Encryption to encrypt the backup files.
D.Enable backup encryption using a certificate stored in the managed instance.
AnswerB

Correct: TDE with customer-managed key encrypts backups.

Why this answer

Transparent Data Encryption (TDE) with customer-managed keys in Azure Key Vault allows you to encrypt the database backup files using a key that you control. When TDE is enabled and configured with a customer-managed key (CMK) stored in Azure Key Vault, Azure SQL Managed Instance automatically encrypts backups with the same TDE protector key, meeting the requirement for customer-managed backup encryption.

Exam trap

The trap here is that candidates often confuse Always Encrypted (which protects specific columns) with TDE (which encrypts the entire database and its backups), or they assume that Azure Storage Service Encryption (SSE) can be used to meet customer-managed key requirements, when in fact SSE uses platform-managed keys by default and does not apply to backup files in the same way as TDE with CMK.

How to eliminate wrong answers

Option A is wrong because Always Encrypted is a client-side encryption technology that protects sensitive data in transit and at rest within the database, but it does not encrypt the entire database backup files; backup encryption is handled separately by TDE. Option C is wrong because Azure Storage Service Encryption (SSE) encrypts data at rest in Azure Blob Storage using platform-managed keys, not customer-managed keys, and it applies to the storage layer, not to the backup files themselves in a way that satisfies the requirement for customer-managed key control. Option D is wrong because backup encryption using a certificate stored in the managed instance would use a service-managed certificate, not a customer-managed key from Azure Key Vault, and this approach is deprecated in favor of TDE with CMK.

171
MCQhard

Refer to the exhibit. You are configuring a backup retention policy for an Azure SQL Database via ARM template. You need to ensure that point-in-time restore (PITR) is available for the maximum supported period. What is the issue with the current configuration?

A.The retentionDays value is set below the minimum requirement
B.The retentionDays value exceeds the maximum supported retention period
C.The diffBackupIntervalInHours value is not a supported value
D.The backup policy does not specify a geo-redundant storage option
AnswerB

Maximum PITR retention is 35 days; 40 days is not supported.

Why this answer

The exhibit shows retentionDays set to 40 days, but the maximum supported retention period for point-in-time restore (PITR) in Azure SQL Database is 35 days. Therefore, the configuration is invalid because it exceeds the maximum. Option A is incorrect because the minimum retention is 7 days, so 40 days is above the minimum.

Option C is incorrect: diffBackupIntervalInHours of 12 is a supported value (12 or 24). Option D is incorrect because geo-redundant storage is not required for PITR; it is a separate backup option.

172
MCQmedium

You are responsible for an Azure SQL Database that stores customer personally identifiable information (PII). You need to ensure that users with the 'CustomerService' role can see only the last four digits of Social Security numbers. Which feature should you use?

A.Row-Level Security
B.Column-level security with DENY permission on the column
C.Dynamic Data Masking with a partial mask function
D.Always Encrypted with deterministic encryption
AnswerC

Masks the column to show only last four digits.

Why this answer

Dynamic Data Masking (DDM) with a partial mask function is the correct choice because it allows you to obfuscate sensitive data at query time without altering the underlying storage. For a Social Security number, you can apply a mask like 'partial(0, "XXX-XX-", 4)' to expose only the last four digits to users in the 'CustomerService' role, while the full value remains intact in the database.

Exam trap

The trap here is that candidates often confuse Dynamic Data Masking with column-level permissions or Always Encrypted, mistakenly thinking that hiding the column entirely or encrypting it meets the requirement of showing a partial value, when in fact DDM is the only feature designed to expose a masked version of data without altering the underlying storage or access permissions.

How to eliminate wrong answers

Option A is wrong because Row-Level Security (RLS) restricts which rows a user can read based on a predicate function, but it does not mask or redact individual column values; it would either show the entire row or hide it entirely. Option B is wrong because column-level security with DENY permission prevents users from seeing the column at all, which is too restrictive—the requirement is to see a masked version, not to hide the column completely. Option D is wrong because Always Encrypted with deterministic encryption encrypts data at rest and in transit, but it does not provide a way to expose only a portion of the data; clients with access to the column encryption key see the full plaintext, and those without see only ciphertext, not a partial mask.

173
MCQmedium

You are troubleshooting a connection issue from Azure SQL Database to Azure Storage using a managed identity. The above credential was created. What is missing from this configuration?

A.The credential is missing the SECRET parameter.
B.The credential should be a server-level credential.
C.The credential lacks a valid identity.
D.The credential needs to include the storage account name.
AnswerA

Correct: For managed identity, SECRET must be specified, even if empty string.

Why this answer

The credential is missing the SECRET parameter because when using a managed identity to access Azure Storage from Azure SQL Database, the credential must specify the identity's client ID or object ID as the SECRET. Without this, the credential cannot authenticate to the storage account, causing the connection to fail. The SECRET parameter is required to map the managed identity to the credential for Azure AD authentication.

Exam trap

The trap here is that candidates often assume the SECRET parameter is optional or only needed for passwords, but in managed identity scenarios, it is mandatory to specify the identity's client ID as the SECRET to enable token-based authentication.

How to eliminate wrong answers

Option B is wrong because server-level credentials are used for SQL Server authentication or external data sources like Azure Blob Storage, but the issue here is not about scope; the credential type is correct for a database-scoped credential, and the missing SECRET is the problem. Option C is wrong because the credential does have a valid identity (the managed identity is specified via the IDENTITY parameter), but the SECRET parameter is missing to complete the authentication. Option D is wrong because the storage account name is not required in the credential; it is specified in the external data source definition, not in the credential itself.

174
Multi-Selecthard

You are configuring security for an Azure SQL Managed Instance. The instance will host a critical application that requires always encrypted with secure enclaves. Which TWO actions must you take to support this feature? (Choose two.)

Select 2 answers
A.Select the Intel Software Guard Extensions (Intel SGX) enclave type.
B.Configure the column master key to be stored in Azure Key Vault.
C.Configure a column master key that is enclave-enabled.
D.Enable the enclave attestation policy on the managed instance.
E.Enable Virtualization-Based Security (VBS) enclave type.
AnswersA, C

Intel SGX is the required enclave type for Always Encrypted with secure enclaves on SQL Managed Instance.

Why this answer

Always Encrypted with secure enclaves on Azure SQL Managed Instance requires the Intel Software Guard Extensions (Intel SGX) enclave type. Intel SGX is the only supported enclave technology for this feature on managed instances, providing a trusted execution environment that protects sensitive data in memory during cryptographic operations.

Exam trap

The trap here is that candidates often confuse the requirement for an enclave-enabled column master key (option C) with the need to store the key in Azure Key Vault (option B), but the key location is not a prerequisite for enclave support.

175
Multi-Selecthard

You are designing a secure Azure SQL Database environment for a financial services application. You need to meet the following requirements: - All network traffic to the database must be private and not traverse the public internet. - Only specific Azure resources in a virtual network should be able to connect. - The solution must minimize administrative overhead. Which TWO configurations should you implement? (Choose two.)

Select 2 answers
A.Deploy Azure Bastion in the virtual network for secure connectivity.
B.Add a firewall rule to allow all Azure services to access the server.
C.Enable service endpoints for Azure SQL Database on the virtual network subnets.
D.Configure the server firewall to deny all public network access.
E.Create a private endpoint for Azure SQL Database in the virtual network.
AnswersD, E

Denying public access ensures that only connections through the private endpoint are allowed.

Why this answer

Configuring the server firewall to deny all public network access ensures that no traffic can reach the database over the public internet, which is required for private connectivity. Option E is correct because creating a private endpoint for Azure SQL Database in the virtual network assigns a private IP address from the VNet, allowing traffic to stay entirely within the Microsoft backbone network and never traverse the public internet. Together, these two configurations enforce private-only access and meet the requirement for specific Azure resources in the VNet to connect.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both provide the same level of private connectivity, but service endpoints still use the public endpoint of the database and do not prevent traffic from potentially being routed over the internet if the Microsoft backbone is not used end-to-end.

176
MCQeasy

You need to audit all schema changes in an Azure SQL Database and store the audit logs in a storage account for long-term retention. What should you enable?

A.Azure SQL Auditing with storage account destination.
B.Advanced Threat Protection with email alerts.
C.Query Store with 'Data Flush Interval' set to 1 minute.
D.SQL Vulnerability Assessment with recurring scans.
AnswerA

Auditing logs DDL operations and can write to storage.

Why this answer

Azure SQL Auditing with a storage account destination is the correct choice because it tracks database events, including schema changes (DDL operations), and writes audit logs to Azure Blob Storage for long-term retention. This meets the requirement to audit all schema changes and store logs durably, as storage accounts provide configurable retention policies.

Exam trap

The trap here is that candidates confuse Azure SQL Auditing with other security features like Advanced Threat Protection or Vulnerability Assessment, assuming they all capture schema changes, but only Auditing provides granular event logging with a storage destination for long-term retention.

How to eliminate wrong answers

Option B is wrong because Advanced Threat Protection (ATP) detects anomalous activities (e.g., SQL injection, brute-force attacks) and sends email alerts, but it does not log schema changes or provide long-term audit storage. Option C is wrong because Query Store captures query performance data (execution plans, runtime statistics) with a configurable data flush interval, not schema change events or audit logs. Option D is wrong because SQL Vulnerability Assessment performs periodic scans to identify security misconfigurations and vulnerabilities, but it does not audit schema changes or store logs in a storage account.

177
MCQmedium

You are a database administrator for a multinational corporation that uses Azure SQL Managed Instance to host multiple databases for different business units. The security policy requires that all connections to the managed instance must use encrypted connections (TLS 1.2 or higher). Additionally, the company wants to minimize the attack surface by restricting network access. You need to configure the managed instance to enforce encrypted connections and block all public internet traffic. What should you do?

A.Set the 'Minimal TLS Version' property to 1.2 and set 'Public data endpoint' to 'Disabled'
B.Enable a private endpoint and set the 'Minimal TLS Version' property to 1.0
C.Disable the public endpoint and enable a service endpoint for the virtual network
D.Configure a server-level firewall rule to allow only specific IP addresses and set the 'Minimal TLS Version' property to 1.2
AnswerA

This enforces TLS 1.2 or higher and blocks public internet traffic.

Why this answer

Setting the 'Minimal TLS Version' property to 1.2 enforces that all connections use TLS 1.2 or higher, meeting the encryption requirement. Disabling the 'Public data endpoint' blocks all public internet traffic, ensuring that only traffic from within the virtual network can reach the managed instance. This combination directly satisfies both security policy goals without relying on additional components like private endpoints or firewall rules.

Exam trap

The trap here is that candidates often confuse disabling the public endpoint with using a private endpoint or firewall rules, failing to realize that both the TLS version enforcement and public endpoint disablement are required to fully meet the security policy.

How to eliminate wrong answers

Option B is wrong because setting 'Minimal TLS Version' to 1.0 allows connections using TLS 1.0, which is not compliant with the requirement for TLS 1.2 or higher, and enabling a private endpoint alone does not block public internet traffic unless the public endpoint is also disabled. Option C is wrong because disabling the public endpoint and enabling a service endpoint does not enforce TLS 1.2; service endpoints only secure traffic to Azure services within the virtual network but do not control the TLS version used. Option D is wrong because configuring a server-level firewall rule to allow only specific IP addresses still leaves the public endpoint enabled, which exposes the managed instance to the internet and does not minimize the attack surface as required.

178
MCQeasy

You are a database administrator for a retail company that uses Azure SQL Database. The security team wants to prevent SQL injection attacks by ensuring that all application queries use parameterized statements. Which built-in Azure feature should you enable to help detect and alert on potential SQL injection attempts?

A.Enable auditing on the database
B.Enable data discovery and classification
C.Enable Microsoft Defender for SQL
D.Enable SQL vulnerability assessment
AnswerC

Microsoft Defender for SQL includes threat detection for SQL injection and anomalous activity.

Why this answer

Microsoft Defender for SQL includes advanced threat detection capabilities that continuously monitor database activity for anomalous patterns, including SQL injection attempts. When enabled, it analyzes query execution patterns and can alert on suspicious queries that deviate from parameterized statement usage, directly addressing the security team's requirement to detect and alert on potential SQL injection attacks.

Exam trap

The trap here is that candidates confuse passive auditing or assessment features (which log or scan for vulnerabilities) with active threat detection that monitors and alerts on real-time attack patterns like SQL injection.

How to eliminate wrong answers

Option A is wrong because auditing records database events for compliance and forensic analysis but does not actively detect or alert on SQL injection patterns in real time. Option B is wrong because data discovery and classification identifies sensitive columns and recommends classification labels, but it has no mechanism to analyze query patterns or detect injection attempts. Option D is wrong because SQL vulnerability assessment scans for misconfigurations and missing patches, not for active injection attempts or anomalous query behavior.

179
MCQeasy

You are designing a secure environment for Azure SQL Database. Which authentication method provides the strongest security and supports multi-factor authentication?

A.Certificate-based authentication
B.Azure Active Directory authentication
C.SQL authentication with strong passwords
D.Windows authentication
AnswerB

Azure AD authentication supports MFA and conditional access.

Why this answer

Azure Active Directory (Azure AD) authentication is the recommended method for Azure SQL Database because it supports multi-factor authentication (MFA), conditional access policies, and identity-driven security. It eliminates the need for password management and leverages Azure AD's built-in security features, providing the strongest security posture for cloud-native environments.

Exam trap

The trap here is that candidates often assume Windows authentication (Option D) is available in Azure SQL Database because of their on-premises experience, but Azure SQL Database does not support Windows authentication—only Azure AD authentication provides integrated identity management and MFA.

How to eliminate wrong answers

Option A is wrong because certificate-based authentication is not a native authentication method for Azure SQL Database; it can be used only as part of Azure AD authentication or for specific scenarios like service principals, not as a standalone method. Option C is wrong because SQL authentication with strong passwords still relies on a static credential stored in the database, making it vulnerable to brute-force attacks and lacking MFA support. Option D is wrong because Windows authentication is not supported for Azure SQL Database; it is only available for on-premises SQL Server or Azure SQL Managed Instance when integrated with Active Directory.

180
MCQhard

Your company is migrating on-premises SQL Server databases to Azure SQL Managed Instance. You need to ensure that database backups are encrypted at rest using customer-managed keys stored in Azure Key Vault. You also need to allow the backup service to access the keys. What should you configure?

A.Use Always Encrypted with column master key stored in Azure Key Vault.
B.Configure Azure Backup for SQL Server in Azure VM and use Backup Center to manage encryption.
C.Enable Transparent Data Encryption (TDE) with customer-managed keys and grant the managed instance's system-assigned managed identity 'get', 'wrapKey', and 'unwrapKey' permissions on the key vault.
D.Configure server-level firewall rules to allow Azure services to access the server.
AnswerC

This allows the managed instance to use the customer-managed key for TDE, which encrypts backups.

Why this answer

Transparent Data Encryption (TDE) with customer-managed keys (CMK) in Azure SQL Managed Instance encrypts database backups at rest. To allow the Azure backup service to access the key for backup encryption, the managed instance's system-assigned managed identity must be granted 'get', 'wrapKey', and 'unwrapKey' permissions on the Azure Key Vault where the CMK is stored. This ensures that backups are encrypted using the customer-controlled key, meeting the requirement for encryption at rest with customer-managed keys.

Exam trap

The trap here is that candidates confuse Always Encrypted (which protects column data) with TDE (which protects the entire database and backups), leading them to select Option A instead of the correct TDE-based solution.

How to eliminate wrong answers

Option A is wrong because Always Encrypted protects column data in transit and at rest on the client side, not database backups; it does not encrypt backups or involve the backup service. Option B is wrong because Azure Backup for SQL Server in Azure VM is for SQL Server on Azure VMs, not Azure SQL Managed Instance, and Backup Center is a management interface, not a mechanism to encrypt backups with customer-managed keys. Option D is wrong because server-level firewall rules control network access, not encryption of backups; they do not address key management or backup encryption requirements.

181
MCQhard

You are a database administrator for a technology company that uses Azure SQL Database to support a multi-tenant SaaS application. Each tenant has its own database. The security team requires that users from one tenant should never be able to access data from another tenant, even if a user's credentials are compromised. You need to implement a solution that enforces tenant isolation at the database level. The solution must be transparent to the application and must not require application code changes. What should you do?

A.Use Always Encrypted to encrypt each tenant's data with a separate column encryption key
B.Create a contained database user for each tenant in their respective database and ensure that cross-database queries are not allowed by configuring server-level firewall rules to block access between databases
C.Implement elastic queries to query across all tenant databases and use a view to filter by tenant ID
D.Create a linked server between all tenant databases and use a security policy to restrict access
AnswerB

Correct. Contained database users per tenant in their own database, combined with firewall rules that block cross-database queries, ensure that each user can only access their own tenant's database.

Why this answer

Each tenant has its own database, and by creating contained database users specific to each tenant and preventing cross-database access through firewall rules or private endpoints, you enforce tenant isolation. Even if credentials are compromised, the attacker can only access the single tenant's database. Option A is incorrect because Always Encrypted protects data at rest and in transit but does not restrict which data a user can query; it does not prevent cross-tenant access.

Option C is incorrect because elastic queries are designed to query across databases, which would allow cross-tenant access if not carefully restricted. Option D is incorrect because a linked server enables cross-database queries, increasing the risk of cross-tenant access.

182
Multi-Selecthard

Your organization has an Azure SQL Database server. You need to ensure that only applications running on Azure virtual machines in a specific virtual network can connect to the database. Which THREE actions should you take?

Select 3 answers
A.Add a service endpoint for Azure SQL Database to the virtual network.
B.Add a virtual network rule for the specific subnet of the VMs.
C.Set the 'Allow Azure Services and resources to access this server' setting to OFF.
D.Remove all existing firewall rules that allow public IP ranges.
E.Set the 'Allow Azure Services and resources to access this server' setting to ON.
AnswersB, C, D

Correct: This allows traffic from that subnet.

Why this answer

Adding a virtual network rule for the specific subnet of the VMs allows Azure SQL Database to accept traffic only from that subnet when a service endpoint is enabled. This restricts access to the database to only those applications running on Azure VMs within the specified virtual network, ensuring network-level isolation.

Exam trap

The trap here is that candidates often confuse enabling a service endpoint (Option A) with actually restricting access, forgetting that a virtual network rule is required to explicitly allow traffic from the specific subnet.

183
Multi-Selectmedium

You are a database administrator for a bank that uses Azure SQL Database to store transaction data. The compliance team requires that you implement a solution to encrypt data at rest and in transit. Additionally, the solution must allow the database to be restored to any point in time within the last 35 days. Which TWO actions should you take?

Select 2 answers
A.Enable Microsoft Defender for SQL
B.Implement dynamic data masking on sensitive columns
C.Enable Always Encrypted for all columns containing sensitive data
D.Enable transparent data encryption (TDE) on the database
E.Configure the point-in-time restore (PITR) retention period to 35 days
AnswersD, E

TDE encrypts data at rest, including backups and transaction log files.

Why this answer

Transparent Data Encryption (TDE) encrypts the database at rest, including backups and transaction log files, which satisfies the compliance requirement for data at rest. TDE is a built-in feature of Azure SQL Database that requires no application changes and is enabled at the database level.

Exam trap

The trap here is that candidates often confuse dynamic data masking or Always Encrypted with encryption at rest, failing to recognize that TDE is the primary Azure SQL Database feature for encrypting the entire database at rest, while PITR retention is a separate backup configuration that must be explicitly set to meet the 35-day requirement.

184
MCQmedium

Refer to the exhibit. You are reviewing the firewall rule JSON for an Azure SQL Server. What does this rule allow?

A.No traffic; this rule blocks all incoming connections.
B.All traffic from any IP address.
C.Traffic from IP address 0.0.0.0.
D.Traffic from Azure services.
AnswerA

0.0.0.0 to 0.0.0.0 is an explicit deny rule.

Why this answer

This rule is a firewall rule with start IP address '0.0.0.0' and end IP address '0.0.0.0', which in Azure SQL Server firewall configuration explicitly blocks all incoming traffic. The IP range 0.0.0.0 to 0.0.0.0 is a special reserved range that denies any connection attempts, regardless of source IP. This is the default behavior when no other allow rules exist, effectively creating a deny-all rule.

Exam trap

The trap here is that candidates confuse the '0.0.0.0' IP address with 'allow all' (as in 0.0.0.0/0 in networking) or with the 'Allow Azure Services' feature, not realizing that in Azure SQL firewall, a rule with start and end both set to 0.0.0.0 explicitly blocks all traffic.

How to eliminate wrong answers

Option B is wrong because the rule specifies a single IP address (0.0.0.0) rather than the range 0.0.0.0 to 255.255.255.255, which would be required to allow all traffic. Option C is wrong because traffic from IP address 0.0.0.0 is not a valid source IP for actual network traffic; 0.0.0.0 is reserved for 'any' or 'default route' and cannot be a source address in practice. Option D is wrong because allowing traffic from Azure services requires a special rule with start IP '0.0.0.0' and end IP '0.0.0.0' but with the 'Allow Azure Services' flag enabled (or using the service tag), which is not indicated in the JSON; the rule shown is a standard IP-based rule that blocks all traffic.

185
Multi-Selecteasy

Which TWO of the following are valid methods to secure data in transit for Azure SQL Database?

Select 2 answers
A.Enable Always Encrypted on sensitive columns.
B.Deploy Azure Firewall in front of the database.
C.Configure the server to enforce TLS 1.2 by setting minimal TLS version.
D.Use an Azure Virtual Network (VNet) with a VPN gateway for client connections.
E.Apply a Network Security Group (NSG) to the subnet.
AnswersC, D

Enforcing TLS 1.2 ensures encryption in transit.

Why this answer

Azure SQL Database allows you to enforce a minimum TLS version, such as TLS 1.2, which ensures that all client connections use at least that protocol version. This directly secures data in transit by preventing downgrade attacks and blocking older, less secure TLS versions like TLS 1.0 or 1.1.

Exam trap

The trap here is that candidates often confuse data-in-transit security with network access controls (like firewalls or NSGs) or client-side encryption (like Always Encrypted), failing to recognize that enforcing TLS 1.2 is the direct method to secure the communication channel itself.

186
Multi-Selecthard

Which THREE security features are available in Azure SQL Database to protect data at rest?

Select 3 answers
A.Transparent Data Encryption (TDE) with customer-managed keys
B.Dynamic Data Masking
C.Transparent Data Encryption (TDE) with service-managed keys
D.Row-Level Security
E.Always Encrypted with secure enclaves
AnswersA, C, E

Encrypts data at rest with customer-controlled keys.

Why this answer

Transparent Data Encryption (TDE) with customer-managed keys (Option A) protects data at rest by encrypting the database files and backups using a key stored in Azure Key Vault, giving the customer full control over key rotation and revocation. TDE with service-managed keys (Option C) also encrypts data at rest but uses a key managed by Azure, which is simpler but offers less control. Always Encrypted with secure enclaves (Option E) protects sensitive data at rest by encrypting columns with keys that are never revealed to the database engine, and the secure enclave allows computations on encrypted data, ensuring data remains encrypted even during processing.

Exam trap

The trap here is that candidates often confuse Dynamic Data Masking or Row-Level Security with encryption at rest, but these features do not encrypt stored data; they only control data visibility or output masking, which is a common misconception tested in DP-300.

187
MCQmedium

You have an Azure SQL Database that is accessed by a web application. The application uses a service principal (Microsoft Entra application) to connect. You need to rotate the client secret for the service principal without downtime. What should you do?

A.Store the client secret in Azure Key Vault, configure the application to retrieve the secret from Key Vault, and implement a secret rotation policy.
B.Create a new client secret, update the application configuration, and then delete the old secret.
C.Switch to using a client certificate instead of a client secret.
D.Use a system-assigned managed identity for the web application.
AnswerA

Key Vault enables seamless rotation without application changes.

Why this answer

It enables zero-downtime secret rotation by decoupling the application from a single secret value. By storing the client secret in Azure Key Vault and configuring the application to retrieve it dynamically, you can rotate the secret in Key Vault without changing the application's configuration or restarting it. The application always fetches the latest version of the secret, so rotation is transparent and does not interrupt connectivity.

Exam trap

The trap here is that candidates assume updating the application configuration directly (Option B) is sufficient, but they overlook the risk of downtime during the configuration change window and the lack of atomicity in secret replacement.

How to eliminate wrong answers

Option B is wrong because updating the application configuration to use a new secret and then deleting the old one introduces a window where the application might be using a stale cached secret or fail to connect if the configuration change is not atomic. Option C is wrong because switching to a client certificate does not inherently eliminate downtime; certificate rotation still requires careful planning and could cause outages if not managed properly. Option D is wrong because a system-assigned managed identity cannot be used for an Azure SQL Database that requires a service principal (Microsoft Entra application) connection; managed identities are tied to Azure resources and do not support the same authentication flow as a service principal with a client secret.

188
MCQeasy

Your organization requires that all changes to sensitive data in an Azure SQL Database be logged for compliance. You need to capture who changed what data and when, and store the logs in a Log Analytics workspace for analysis. What should you configure?

A.Enable change tracking on the database.
B.Enable Microsoft Defender for Cloud on the server.
C.Configure server-level auditing to send logs to a Log Analytics workspace.
D.Enable Transparent Data Encryption (TDE) with customer-managed keys.
AnswerC

Auditing captures detailed information about database events, including who made changes, and can be sent to Log Analytics.

Why this answer

Server-level auditing in Azure SQL Database can be configured to send audit logs directly to a Log Analytics workspace, capturing detailed information about data changes including who made the change, what was changed, and when. This meets the compliance requirement for logging sensitive data changes and enables analysis using Log Analytics queries.

Exam trap

The trap here is that candidates confuse change tracking (which only detects row changes) with auditing (which captures who, what, and when), or they think security tools like Defender for Cloud provide granular data change logging.

How to eliminate wrong answers

Option A is wrong because change tracking only identifies which rows changed and the fact of a change, but does not capture who made the change or the old/new values, and it does not send logs to Log Analytics. Option B is wrong because Microsoft Defender for Cloud provides security alerts and vulnerability assessments, not granular data change auditing with user identity and timestamp logging. Option D is wrong because Transparent Data Encryption (TDE) with customer-managed keys encrypts data at rest but does not log data changes or provide audit trails.

189
MCQhard

You are reviewing an Azure RBAC role assignment for an Azure SQL Database. The role assignment shown in the exhibit is intended to allow a user to read data from the database. However, the user reports they cannot connect to the database. What is the most likely reason?

A.The RBAC role does not grant data plane access; the user must be mapped to a database user and granted database-level permissions.
B.The principal is incorrectly specified; it should be a security group.
C.The scope is too broad; it should be at the server level.
D.The action 'Microsoft.Sql/servers/databases/read' is not valid; it should be 'Microsoft.Sql/servers/databases/dataReader'.
AnswerA

RBAC roles like Contributor or Reader only grant control plane access. Data plane access requires database user mapping and permissions.

Why this answer

Azure RBAC roles control management plane operations (e.g., creating or deleting resources) but do not grant access to the data plane (e.g., reading or writing data in a database). To read data from an Azure SQL Database, the user must be mapped to a database user (via a contained database user or an Azure AD user) and granted database-level permissions such as db_datareader. The RBAC role assignment shown only provides the 'Microsoft.Sql/servers/databases/read' action, which allows reading database metadata (like tags or properties) but not connecting to the database or querying tables.

Exam trap

The trap here is that candidates confuse Azure RBAC roles (management plane) with SQL database-level permissions (data plane), assuming that a role with 'read' in the name allows reading data from tables.

How to eliminate wrong answers

Option B is wrong because the principal type (user, group, or service principal) does not affect data plane access; the core issue is that RBAC does not grant data plane permissions at all. Option C is wrong because expanding the scope to the server level still only grants management plane actions (e.g., listing databases) and does not enable database connectivity or data reading. Option D is wrong because 'Microsoft.Sql/servers/databases/dataReader' is not a valid RBAC action; RBAC actions are management plane operations, and data reader access is granted via SQL-level permissions (e.g., db_datareader role) or Azure AD authentication with contained database users.

190
Multi-Selectmedium

Your organization uses Azure SQL Managed Instance and needs to implement a defense-in-depth strategy. Which THREE security controls should you implement? (Choose three.)

Select 3 answers
A.Enable advanced threat protection using Microsoft Defender for Cloud.
B.Implement server-level auditing to capture database events.
C.Create columnstore indexes on large tables to improve query performance.
D.Configure network security groups (NSGs) on the subnet to restrict inbound traffic to the managed instance.
E.Create application roles in each database to manage permissions.
AnswersA, B, D

Defender for Cloud provides threat detection and alerts for suspicious activities.

Why this answer

Enabling advanced threat protection via Microsoft Defender for Cloud provides continuous monitoring for suspicious activities, such as SQL injection or brute-force attacks, and generates security alerts that integrate with Azure Sentinel or SIEM solutions. This is a critical layer in a defense-in-depth strategy, as it detects and responds to threats at the database level.

Exam trap

The trap here is that candidates often confuse performance tuning features (like columnstore indexes) or routine permission management (like application roles) with distinct security controls, failing to recognize that defense-in-depth requires separate, layered protections across network, monitoring, and auditing domains.

191
MCQmedium

Your Azure SQL Database uses Always Encrypted to protect sensitive columns. You need to allow a reporting application to query encrypted columns without having access to the column encryption key. What should you configure?

A.Rotate the column master key to a hardware security module (HSM).
B.Remove the Always Encrypted configuration from the columns.
C.Enable Always Encrypted with secure enclaves (Intel SGX) and create an enclave-enabled key.
D.Provide the application with the column master key and column encryption key.
AnswerC

Enclaves allow computations on encrypted data within the enclave.

Why this answer

Enabling Always Encrypted with secure enclaves (Intel SGX) allows the reporting application to perform computations on encrypted columns (e.g., equality, pattern matching) without ever exposing the column encryption key to the application. The enclave decrypts the data inside a trusted execution environment, so the application only sees the results of queries, not the raw encryption keys. This meets the requirement of querying encrypted columns without key access.

Exam trap

The trap here is that candidates may think rotating the master key to an HSM (Option A) solves the key access problem, but HSMs only protect the master key storage, not the application's need for the column encryption key to decrypt data.

How to eliminate wrong answers

Option A is wrong because rotating the column master key to an HSM does not change the application's need for the column encryption key; it only changes where the master key is stored, not the access model. Option B is wrong because removing Always Encrypted entirely would expose sensitive data in plaintext, violating the security requirement. Option D is wrong because providing the application with both the column master key and column encryption key would grant it full decryption capability, which directly contradicts the requirement to prevent key access.

192
MCQeasy

You run the Azure CLI command shown in the exhibit for an Azure SQL Database named SalesDB. The output shows that the security alert policy is disabled. You need to enable Microsoft Defender for SQL, including vulnerability assessments, for this database. What should you do?

A.Run 'az sql db update --name SalesDB --resource-group rg-sales --server sql-sales --enable-defender-for-sql true'.
B.Run 'az sql db threat-policy update --name SalesDB --resource-group rg-sales --server sql-sales --state Enabled'.
C.Run 'az sql server update --name sql-sales --resource-group rg-sales --enable-defender-for-sql true'.
D.Configure a server firewall rule to allow Azure services.
AnswerC

Enables Defender for SQL at the server level.

Why this answer

Enabling Microsoft Defender for SQL, including vulnerability assessments, is a server-level configuration in Azure SQL. The command 'az sql server update --enable-defender-for-sql true' activates Defender for SQL on the server, which automatically applies to all databases on that server, including SalesDB. The exhibit shows a database-level security alert policy is disabled, but the required feature is enabled at the server scope, not per-database.

Exam trap

The trap here is that candidates confuse the database-level threat detection policy (legacy) with the server-level Microsoft Defender for SQL (modern), and mistakenly try to enable it per database using 'az sql db' commands instead of the correct server-level command.

How to eliminate wrong answers

Option A is wrong because 'az sql db update' does not support the '--enable-defender-for-sql' parameter; this parameter is only available at the server level. Option B is wrong because 'az sql db threat-policy update' configures the legacy threat detection policy, not Microsoft Defender for SQL, which is a newer, more comprehensive security package that includes vulnerability assessments. Option D is wrong because configuring a server firewall rule to allow Azure services only controls network access, not the security alert or vulnerability assessment features.

193
MCQeasy

Your organization uses Azure SQL Database and wants to restrict access to only specific on-premises IP addresses. The database has a public endpoint. Which security feature should you configure?

A.Enable 'Allow Azure services and resources to access this server' in the firewall settings.
B.Enable Always Encrypted with secure enclaves.
C.Set firewall rules to allow specific on-premises IP ranges.
D.Create a virtual network service endpoint for SQL.
E.Configure a private endpoint for the database.
AnswerC

Correct. Firewall rules for on-premises IP ranges allow specific on-premises clients to connect.

Why this answer

To restrict access to specific on-premises IP addresses, you should configure firewall rules to allow those IP ranges. Setting a firewall rule ensures that only traffic from allowed IP addresses can reach the database. Option C directly addresses this requirement.

Exam trap

Candidates might consider enabling 'Allow Azure services' or using virtual network endpoints, but those are for Azure service access or private network integration, not for restricting on-premises IPs.

How to eliminate wrong answers

Option B is wrong because Always Encrypted with secure enclaves is a data encryption feature that protects sensitive data at rest and in use, but it does not control network-level access or firewall rules; it addresses data confidentiality, not connectivity restrictions. Option D is wrong because creating a virtual network service endpoint for SQL allows traffic from a specific Azure virtual network to bypass the public endpoint, but it does not restrict access to only specific Azure services and on-premises IPs; it requires additional network rules and does not inherently block all other traffic. Option E is wrong because configuring a private endpoint for the database provides a private IP address within a virtual network, eliminating public endpoint exposure, but it does not allow on-premises IP access unless combined with a VPN or ExpressRoute; it also does not selectively permit specific Azure services without additional configuration.

194
MCQmedium

Your company uses Azure SQL Database and needs to restrict access to a specific column containing credit card numbers. Only users with the 'CreditCardViewer' role should see the full number; others should see only the last four digits. Which feature should you implement?

A.Always Encrypted
B.Row-Level Security
C.Column-level security with GRANT
D.Dynamic Data Masking
AnswerD

Masks sensitive data in query results for unauthorized users.

Why this answer

Dynamic Data Masking (DDM) is the correct choice because it allows you to obfuscate sensitive data in query results without changing the underlying database. You can define a mask on the credit card column that shows only the last four digits to users without the 'CreditCardViewer' role, while users with that role can be granted the UNMASK permission to see the full value.

Exam trap

The trap here is that candidates often confuse Dynamic Data Masking with Column-Level Security (GRANT), not realizing that GRANT cannot partially reveal data—it only provides all-or-nothing column access, whereas DDM is designed specifically for partial obfuscation based on permissions.

How to eliminate wrong answers

Option A is wrong because Always Encrypt encrypts data at the client side, preventing the database engine from seeing plaintext values, which would block the ability to selectively show the last four digits based on a database role. Option B is wrong because Row-Level Security controls access to entire rows based on a predicate function, not to individual columns or partial data within a column. Option C is wrong because column-level security with GRANT can restrict access to an entire column, but it cannot partially mask the data—it either allows full visibility or no visibility, not a masked view showing only the last four digits.

195
MCQeasy

Your company is migrating on-premises SQL Server databases to Azure SQL Database. As part of security compliance, you must ensure that all data at rest is encrypted using customer-managed keys stored in Azure Key Vault. Which Azure SQL Database feature should you enable?

A.Dynamic Data Masking
B.Always Encrypted
C.Row-Level Security
D.Transparent Data Encryption with customer-managed keys in Azure Key Vault
AnswerD

TDE with CMK encrypts the database at rest using keys stored in Key Vault.

Why this answer

Transparent Data Encryption (TDE) with customer-managed keys in Azure Key Vault is the correct feature because it encrypts SQL Server, Azure SQL Database, and Azure Synapse data files at rest using a customer-controlled key stored in Azure Key Vault. This meets the compliance requirement for encrypting all data at rest with customer-managed keys, as TDE performs real-time I/O encryption and decryption of the database, backups, and transaction log files without requiring application changes.

Exam trap

The trap here is that candidates often confuse 'Always Encrypted' (which protects sensitive columns from DBAs) with 'Transparent Data Encryption' (which encrypts the entire database at rest), leading them to select Always Encrypted when the requirement is for full data-at-rest encryption with customer-managed keys.

How to eliminate wrong answers

Option A is wrong because Dynamic Data Masking obfuscates sensitive data in query results to prevent unauthorized viewing, but it does not encrypt data at rest and does not use customer-managed keys. Option B is wrong because Always Encrypted encrypts data in transit and at rest at the client-side, protecting data from the database administrator, but it is not designed for encrypting the entire database at rest and does not use Azure Key Vault for customer-managed TDE keys. Option C is wrong because Row-Level Security controls access to rows in a table based on user identity or context, but it does not provide any encryption of data at rest.

196
MCQeasy

You are a database administrator for a hospital that uses Azure SQL Database to store patient records. The hospital's security policy requires that all database access be authenticated using Microsoft Entra ID (formerly Azure AD). You have already created a Microsoft Entra ID user for yourself and granted you the 'db_owner' role. You now need to create a new Microsoft Entra ID user for a nurse who needs read-only access to the database. What should you do first?

A.In the Azure portal, add the nurse as a server-level Microsoft Entra admin
B.Create a SQL login for the nurse on the logical server and then create a user in the database mapped to that login
C.Connect to the master database using SQL authentication and run 'CREATE USER [nurse@hospital.onmicrosoft.com] FROM EXTERNAL PROVIDER'
D.Connect to the database using your Microsoft Entra account and run 'CREATE USER [nurse@hospital.onmicrosoft.com] FROM EXTERNAL PROVIDER'
AnswerD

This creates a contained database user for the nurse in the database.

Why this answer

The nurse must be created as a contained database user mapped to Microsoft Entra ID. Since the hospital uses Azure SQL Database and requires Microsoft Entra authentication, you must connect to the user database (not master) using your Microsoft Entra account (which has db_owner privileges) and run 'CREATE USER [nurse@hospital.onmicrosoft.com] FROM EXTERNAL PROVIDER'. This creates a database user that authenticates via Microsoft Entra ID without requiring a server-level login, aligning with the security policy.

Exam trap

The trap here is that candidates mistakenly think they need to create a login in the master database first (as in SQL Server or Azure SQL Managed Instance), but Azure SQL Database uses contained database users for Microsoft Entra authentication, so the 'CREATE USER ... FROM EXTERNAL PROVIDER' must be run directly in the user database by a Microsoft Entra-authenticated user.

How to eliminate wrong answers

Option A is wrong because adding the nurse as a server-level Microsoft Entra admin grants full administrative privileges over the logical server, far exceeding the required read-only access and violating the principle of least privilege. Option B is wrong because Azure SQL Database does not support SQL logins for Microsoft Entra users; you cannot create a SQL login mapped to a Microsoft Entra identity, and the approach of creating a SQL login and then a database user is for SQL authentication, not Microsoft Entra authentication. Option C is wrong because connecting to the master database with SQL authentication is not possible if the policy requires Microsoft Entra authentication, and 'CREATE USER ...

FROM EXTERNAL PROVIDER' must be run in the user database, not master, and must be executed by a Microsoft Entra-authenticated principal.

197
Multi-Selecteasy

You are configuring authentication for Azure SQL Database. Which TWO of the following are supported authentication methods?

Select 2 answers
A.Windows authentication using Kerberos.
B.Microsoft Entra ID authentication with a service principal.
C.OAuth 2.0 token authentication.
D.SQL authentication with a username and password.
E.Certificate-based authentication for SQL logins.
AnswersB, D

Service principals in Microsoft Entra ID can authenticate to Azure SQL Database.

Why this answer

Microsoft Entra ID authentication with a service principal is supported in Azure SQL Database. A service principal is an identity created for use with applications, hosted services, and automated tools to access Azure resources, and it can authenticate to Azure SQL Database using Microsoft Entra ID (formerly Azure AD) tokens. This method enables secure, non-interactive authentication for applications and automation scenarios.

Exam trap

The trap here is that candidates often confuse supported authentication methods for Azure SQL Database with those available for on-premises SQL Server, mistakenly selecting Windows authentication or certificate-based SQL logins, which are not supported in Azure SQL Database.

198
MCQmedium

A company manages an Azure SQL Database that stores sensitive customer data. The security team mandates that all connections to the database use Azure Active Directory (Azure AD) authentication and that no SQL authentication logins exist. You are tasked with implementing this requirement. What should you do first?

A.Set the server's 'Public network access' to 'Disabled'.
B.Remove the server admin login from the master database.
C.Set an Azure Active Directory admin for the Azure SQL Database server.
D.Deny the CONNECT permission to all SQL authentication logins.
AnswerC

An Azure AD admin must be set before disabling SQL authentication.

Why this answer

Before you can enforce Azure AD-only authentication, you must first designate an Azure AD admin for the Azure SQL Database server. This admin is the only identity that can manage Azure AD users and permissions in the database, and once set, you can then remove or disable SQL authentication logins. Without an Azure AD admin, there is no way to authenticate or manage Azure AD principals within the database, making the transition impossible.

Exam trap

The trap here is that candidates often confuse disabling network access or removing permissions with actually changing the authentication model, but the first required step is always to establish an Azure AD admin to enable Azure AD authentication at the server level.

How to eliminate wrong answers

Option A is wrong because disabling public network access restricts network connectivity but does not affect authentication methods; SQL authentication logins would still exist and could be used if network access were re-enabled. Option B is wrong because removing the server admin login from the master database would break all administrative access before an Azure AD admin is established, potentially locking you out of the server entirely. Option D is wrong because denying CONNECT permission to SQL authentication logins does not remove the logins themselves; they remain in the database and could be re-granted permissions, and this action does not enforce Azure AD-only authentication as a policy.

199
Multi-Selecthard

Which THREE of the following are best practices for managing keys in Azure Key Vault for use with Azure SQL Database TDE?

Select 3 answers
A.Enable soft-delete and purge protection on the Key Vault.
B.Rotate the keys periodically.
C.Grant the server managed identity 'get', 'wrapKey', and 'unwrapKey' permissions.
D.Store the Key Vault in the same resource group as the SQL server.
E.Disable Key Vault auditing to reduce costs.
AnswersA, B, C

Prevents accidental key loss.

Why this answer

Enabling soft-delete and purge protection on the Key Vault is a best practice because soft-delete retains deleted keys for a configurable retention period (default 90 days), allowing recovery if a key is accidentally deleted. Purge protection prevents permanent deletion of keys even after the soft-delete retention period expires, which is critical for TDE because if the key is permanently lost, the encrypted database becomes inaccessible. Together, these features ensure that the TDE protector key is never irrevocably lost, maintaining database recoverability and compliance.

Exam trap

The trap here is that candidates often think placing the Key Vault in the same resource group simplifies management, but Microsoft explicitly recommends a separate resource group to avoid accidental deletion of the vault when the SQL server is deprovisioned.

200
MCQmedium

You are configuring Microsoft Defender for SQL for Azure SQL Database. You need to ensure that alerts are sent to the security operations team via email and also integrated with Microsoft Sentinel. What should you configure?

A.In Microsoft Sentinel, connect the Azure SQL Database data source using the built-in connector.
B.Use Azure Logic Apps to forward Defender for SQL alerts to Sentinel.
C.Configure a diagnostic setting on the SQL server to stream logs to a Log Analytics workspace used by Sentinel.
D.Configure the alert rule in Defender for SQL to send email to the security team.
AnswerA

Sentinel has a built-in connector for Azure SQL Database that pulls alerts from Defender for SQL.

Why this answer

Microsoft Sentinel provides a built-in connector for Azure SQL Database that ingests security alerts from Microsoft Defender for SQL, satisfying the Sentinel integration requirement. The email notification requirement is addressed separately by configuring alert rules within Defender for SQL to send emails to the security operations team. Option A enables the Sentinel integration, while email notifications are a complementary configuration within Defender for SQL, not part of Option A itself.

Exam trap

The trap here is that candidates often confuse diagnostic settings (which stream performance and query logs) with the dedicated Sentinel connector (which ingests security alerts), leading them to choose Option C, or they overcomplicate the solution by selecting Logic Apps (Option B) when a native connector already exists.

How to eliminate wrong answers

Option B is wrong because Azure Logic Apps are not required; Sentinel already has a native connector for Azure SQL Database that directly pulls Defender for SQL alerts, making Logic Apps an unnecessary extra step that adds complexity and cost. Option C is wrong because diagnostic settings stream telemetry logs (such as SQLInsights, QueryStoreRuntimeStatistics) to a Log Analytics workspace, but they do not capture Defender for SQL security alerts; those alerts are ingested via the dedicated Sentinel connector, not through diagnostic logs. Option D is wrong because configuring the alert rule in Defender for SQL to send email only addresses the email notification requirement; it does not integrate with Microsoft Sentinel, leaving the security operations team without centralized alert management and automated incident response capabilities.

← PreviousPage 3 of 3 · 200 questions total

Ready to test yourself?

Try a timed practice session using only Dp300 Secure Environment questions.