Courseiva

CCNA Plan and implement data platform resources Questions

75 of 99 questions · Page 1/2 · Plan and implement data platform resources · Answers revealed

1
MCQeasy

You are managing an Azure SQL Database that hosts a customer relationship management (CRM) application. The database has a table named 'Contacts' with columns: ContactID (int, primary key), Name (nvarchar(100)), Email (nvarchar(200)), Phone (nvarchar(20)), and CreditLimit (decimal(18,2)). The compliance team requires that the CreditLimit column be encrypted so that only authorized users can view it. The application must be able to search for exact matches on CreditLimit values. You need to implement encryption without changing the application code significantly. Which encryption method should you use?

A.Always Encrypted with randomized encryption
B.Always Encrypted with deterministic encryption
C.Transparent Data Encryption
D.Dynamic Data Masking
AnswerB

Deterministic encryption produces the same ciphertext for identical plaintext, enabling equality searches on CreditLimit through the Always Encrypted-enabled driver. Randomised encryption would block exact-match queries, and application code changes stay minimal since the driver handles encryption transparently.

Why this answer

Always Encrypted with deterministic encryption is correct because it encrypts the CreditLimit column at the client driver level, ensuring data remains encrypted at rest and in transit, while still allowing exact-match searches (e.g., WHERE CreditLimit = 5000) since deterministic encryption always produces the same ciphertext for a given plaintext. This meets the compliance requirement without requiring significant application code changes, as the Azure SQL Database driver handles encryption and decryption transparently for authorized users.

Exam trap

The trap here is that candidates confuse Dynamic Data Masking with encryption, thinking masking satisfies compliance requirements, but masking is a presentation-layer feature that does not protect data from privileged users or direct database access.

How to eliminate wrong answers

Option A is wrong because randomized encryption produces different ciphertext for the same plaintext each time, which prevents equality searches (e.g., WHERE CreditLimit = 5000) and thus fails the application requirement for exact-match queries. Option C is wrong because Transparent Data Encryption (TDE) encrypts the entire database at rest but does not provide column-level granularity or restrict access to specific columns; it protects against physical theft of files, not unauthorized viewing by database users. Option D is wrong because Dynamic Data Masking obfuscates data at query results but does not encrypt the underlying data; it can be bypassed by users with direct access to the database or through inference attacks, failing the compliance requirement for encryption.

2
MCQmedium

You manage an Azure SQL Database that supports a critical web application. The database is currently configured with the General Purpose service tier and locally redundant backup storage. The compliance team requires that all backups be stored in a paired Azure region to ensure availability during a regional outage. You need to change the backup storage redundancy without affecting the database availability. What should you do?

A.Modify the database's backup storage redundancy setting to geo-redundant backup storage.
B.Configure active geo-replication to a secondary region and fail over the database.
C.Enable long-term retention (LTR) policies to copy backups to a separate storage account in the paired region.
D.Create a new database in the paired region and migrate all data by using transactional replication.
AnswerA

Azure SQL Database allows you to change the backup storage redundancy setting for a database to geo-redundant storage, which replicates backups to a paired region. This change can be made without taking the database offline and directly meets the compliance requirement. It is the supported method to alter where backups are stored.

Why this answer

Changing the backup storage redundancy setting to geo-redundant backup storage replicates backups to a paired Azure region. This operation is performed at the database or server level and does not require downtime. It directly fulfills the compliance requirement without adding unnecessary replication or migration steps.

Exam trap

The trap here is confusing disaster recovery features like active geo-replication with backup storage redundancy, which are separate mechanisms.

3
MCQhard

You are troubleshooting a performance issue on Azure SQL Database. The database uses the General Purpose tier with 100 DTUs. Users report intermittent slowdowns during peak hours. Query Store shows frequent waits for RESOURCE_SEMAPHORE. What is the most likely cause?

A.There is a blocking chain due to unoptimized queries.
B.The disk IOPS limit is being reached, causing queuing.
C.The DTU limit is being reached, causing CPU throttling.
D.The database is experiencing memory pressure due to concurrent queries exceeding available memory.
AnswerD

RESOURCE_SEMAPHORE waits occur when queries cannot obtain a memory grant because concurrent queries have consumed the available workspace memory. At 100 DTUs the General Purpose tier caps memory, so peak-hour concurrency triggers the intermittent slowdowns.

Why this answer

RESOURCE_SEMAPHORE waits indicate that queries are waiting for memory grants to execute. In Azure SQL Database General Purpose tier with 100 DTUs, memory is shared between the buffer pool and query execution. During peak hours, concurrent queries can exhaust the available memory, forcing queries to wait for memory grants.

This is a classic sign of memory pressure, not CPU or IO throttling.

Exam trap

The trap here is that candidates often confuse DTU throttling (which affects CPU and IO) with memory pressure, but RESOURCE_SEMAPHORE is a memory-specific wait type that is not directly tied to DTU limits.

How to eliminate wrong answers

Option A is wrong because blocking chains typically manifest as LCK_M_* waits, not RESOURCE_SEMAPHORE waits. Option B is wrong because disk IOPS limits cause PAGEIOLATCH_* waits, not RESOURCE_SEMAPHORE waits. Option C is wrong because DTU limits being reached cause CPU throttling, which appears as SOS_SCHEDULER_YIELD waits, not RESOURCE_SEMAPHORE waits.

4
MCQhard

You are deploying an Azure SQL Database using PowerShell as shown in the exhibit. The database will be used by a development team that works intermittently. You need to ensure the database is cost-effective while being available on demand. What is the purpose of the AutoPauseDelayInMinutes parameter?

A.It configures the database to pause during a disaster recovery scenario.
B.It controls the automatic pausing of the database after a period of inactivity to save costs.
C.It sets the maximum duration for which the database can be paused.
D.It determines how long the database takes to resume after a pause.
AnswerB

AutoPauseDelayInMinutes sets the inactivity period before serverless compute auto-pauses, so the intermittently used development database stops incurring compute charges while remaining available on demand. This directly satisfies the cost-effectiveness requirement without deleting or reprovisioning the database.

Why this answer

The AutoPauseDelayInMinutes parameter is used with Azure SQL Database serverless compute tier. It specifies the number of minutes of inactivity (no CPU usage or active sessions) after which the database automatically pauses, stopping compute billing while storage remains billed. This makes the database cost-effective for intermittent development workloads because it eliminates compute costs during idle periods and automatically resumes on the first connection.

Exam trap

The trap here is that candidates confuse the auto-pause feature with a manual pause/resume operation or with a scheduled shutdown, and they incorrectly assume AutoPauseDelayInMinutes controls resume speed or maximum pause duration, when in fact it only defines the inactivity threshold before automatic pausing occurs.

How to eliminate wrong answers

Option A is wrong because AutoPauseDelayInMinutes does not relate to disaster recovery; disaster recovery is handled by geo-replication, failover groups, or backup/restore, not by pausing. Option C is wrong because the parameter does not set a maximum pause duration; the database remains paused indefinitely until a connection or activity triggers an automatic resume, and there is no configurable maximum pause time. Option D is wrong because the resume time after a pause is not controlled by AutoPauseDelayInMinutes; resume latency is determined by the underlying serverless infrastructure (typically 30-60 seconds) and is not configurable via this parameter.

5
MCQmedium

You are deploying an Azure SQL Database and need to ensure that the database files are encrypted at rest using a key that you manage in Azure Key Vault. You also need to ensure that the key is automatically rotated. What should you configure?

A.Enable Transparent Data Encryption (TDE) with service-managed keys.
B.Enable Dynamic Data Masking with Azure Key Vault integration.
C.Enable Transparent Data Encryption (TDE) with customer-managed keys in Azure Key Vault.
D.Enable Always Encrypted with column master keys in Azure Key Vault.
AnswerC

TDE with customer-managed keys allows you to use your own key stored in Azure Key Vault. You can configure automatic key rotation by setting up a key rotation policy in Key Vault and enabling the TDE protector to automatically use the latest key version. This meets both encryption and key management requirements.

Why this answer

TDE with customer-managed keys in Azure Key Vault allows you to control the encryption key and manage its lifecycle. You can configure automatic key rotation by setting a rotation policy in Key Vault and enabling the TDE protector to use the latest key version. This satisfies both the encryption at rest and key management requirements.

Exam trap

The trap here is confusing Always Encrypted with TDE; Always Encrypted protects data in use but does not encrypt the entire database at rest.

6
MCQmedium

You are deploying an Azure SQL Managed Instance to host several databases migrated from an on-premises SQL Server. The instance must be placed in a dedicated subnet within an Azure virtual network to allow communication with other Azure resources and on-premises systems over a site-to-site VPN. You need to configure the network environment. What should you do?

A.Create a subnet and deploy a private endpoint for the SQL Managed Instance, then configure private DNS zones for name resolution.
B.Create a subnet and assign a public IP address to the SQL Managed Instance, then configure firewall rules to restrict access.
C.Create a subnet and configure a service endpoint for Microsoft.Sql, then attach a route table with a default route to the internet.
D.Create a subnet delegated to Microsoft.Sql/managedInstances and associate a network security group (NSG) that allows traffic on the required ports.
AnswerD

Azure SQL Managed Instance requires a dedicated subnet delegated to Microsoft.Sql/managedInstances. The delegation allows Azure to inject instance resources into the subnet. An NSG is required to control traffic, and specific ports must be open for management and connectivity. This configuration enables communication with other Azure resources and on-premises systems via VPN.

Why this answer

Azure SQL Managed Instance must be deployed into a dedicated subnet delegated to Microsoft.Sql/managedInstances. The subnet requires a network security group to control traffic and may require a route table with specific routes. This setup enables secure communication with other Azure resources and on-premises networks over VPN or ExpressRoute, fulfilling the networking requirements.

Exam trap

The trap here is confusing SQL Managed Instance networking with Azure SQL Database, where service endpoints or private endpoints are used; SQL Managed Instance requires a delegated subnet.

7
MCQhard

You are planning the deployment of an Azure SQL Managed Instance to support a lift-and-shift migration of an on-premises SQL Server 2019 workload. The workload requires the ability to run cross-database queries, use SQL Server Agent, and support Service Broker. You need to choose a service tier that provides the highest availability and lowest latency for I/O-intensive operations. The budget allows for premium storage performance. Which service tier should you select?

A.Hyperscale
B.Business Critical
C.General Purpose
D.Premium
AnswerB

The Business Critical service tier in Azure SQL Managed Instance uses locally attached SSD storage and includes a built-in secondary replica for high availability. This provides the lowest I/O latency and highest availability, making it suitable for I/O-intensive workloads. It also supports all the required features such as cross-database queries, SQL Server Agent, and Service Broker.

Why this answer

The Business Critical service tier in Azure SQL Managed Instance is designed for high-performance, low-latency workloads. It uses locally attached SSD storage and maintains a secondary replica for failover, ensuring high availability. It supports all necessary SQL Server features like cross-database queries, SQL Server Agent, and Service Broker, making it the correct choice for this scenario.

Exam trap

The trap here is assuming that Hyperscale is available for Azure SQL Managed Instance, when it is exclusive to Azure SQL Database.

8
MCQmedium

You are migrating an on-premises SQL Server 2012 database to Azure SQL Managed Instance. The database is 5 TB and uses Transparent Data Encryption (TDE) with a certificate stored in the local machine store. What is the best approach to migrate while preserving TDE?

A.Use Azure Data Studio to import the certificate directly from the local machine store during migration.
B.Disable TDE on the source database, migrate the backup, then enable TDE on the target.
C.Back up the certificate and private key to a .pfx file, restore the .pfx to the target managed instance, then restore the database backup.
D.Create a master key in the target managed instance and then restore the database; the certificate will be imported automatically.
AnswerC

Exporting the TDE certificate and private key to a .pfx, restoring it to the managed instance, then restoring the backup preserves encryption because the instance holds the same protector. This satisfies the stem's requirement to migrate while preserving TDE.

Why this answer

TDE in SQL Server relies on a certificate (or asymmetric key) that must be present in the target instance to decrypt the database backup. By backing up the certificate and private key to a .pfx file and restoring it to Azure SQL Managed Instance, you ensure the target has the necessary encryption keys to read the backup. Azure SQL Managed Instance supports restoring TDE-protected backups only if the corresponding certificate is first restored into the master database.

Exam trap

The trap here is that candidates assume TDE certificates are automatically transferred or that disabling TDE is a safe shortcut, but in reality, the certificate must be explicitly backed up and restored to the target before the database restore can succeed.

How to eliminate wrong answers

Option A is wrong because Azure Data Studio cannot import a certificate directly from the local machine store during migration; TDE certificates must be manually backed up and restored to the target instance. Option B is wrong because disabling TDE on the source database would decrypt all data, which is unnecessary and risks exposing sensitive data during migration; TDE should remain enabled to maintain encryption at rest. Option D is wrong because creating a master key in the target does not automatically import the certificate; the certificate must be explicitly backed up from the source and restored to the target before the database restore.

9
MCQhard

You are deploying a new Azure SQL Database for an application that will store sensitive financial data. The compliance team requires that the database be configured to automatically detect and alert on anomalous access patterns, and that all queries be logged for auditing. Which services should you enable?

A.Azure Purview and vulnerability assessment
B.Microsoft Sentinel and SQL Auditing
C.Azure Defender for SQL and SQL Auditing
D.SQL Server auditing and vulnerability assessment
AnswerC

Azure Defender for SQL provides threat detection and anomalous access alerts, while SQL Auditing writes query activity to a storage, Log Analytics, or Event Hub target. Together they satisfy both the detection-and-alert and query-logging compliance requirements.

Why this answer

Azure Defender for SQL provides anomaly detection and alerts for suspicious access patterns (e.g., SQL injection, brute force), while SQL Auditing captures all queries and events for compliance logging. Together, they meet the requirements for automatic detection and full query auditing without additional services.

Exam trap

The trap here is that candidates confuse Azure Defender for SQL with vulnerability assessment or Microsoft Sentinel, assuming a SIEM is required for detection, when Azure Defender for SQL already provides built-in anomaly detection for Azure SQL Database.

How to eliminate wrong answers

Option A is wrong because Azure Purview is a data governance and catalog service, not a security monitoring tool, and vulnerability assessment alone does not provide real-time anomaly detection or query logging. Option B is wrong because Microsoft Sentinel is a SIEM that ingests logs but does not natively perform database-level anomaly detection or replace SQL Auditing for query logging; it would require additional configuration and cost. Option D is wrong because SQL Server auditing (on-premises style) is not directly available in Azure SQL Database—Azure SQL uses SQL Auditing—and vulnerability assessment does not detect anomalous access patterns or provide alerts.

10
Multi-Selecthard

Your company is migrating several on-premises SQL Server databases to Azure. The databases range from 50 GB to 2 TB and have varying performance requirements. You need to decide which Azure SQL deployment options to use. The requirements include: - Minimal application changes. - Support for SQL Server Agent jobs. - Ability to scale storage independently from compute. - Native support for cross-database queries. Which TWO options meet these requirements? (Choose two.)

Select 2 answers
A.Azure SQL Database (single database)
B.Azure SQL Database elastic pool
C.Azure Synapse Analytics (dedicated SQL pool)
D.SQL Server on Azure Virtual Machine
E.Azure SQL Managed Instance
AnswersD, E

SQL Server on Azure Virtual Machine provides full SQL Server engine, including native SQL Server Agent, cross-database queries, and independent scaling of compute (via VM size) and storage (via managed disks). Minimal application changes needed. Correct.

Why this answer

SQL Server on Azure Virtual Machine (D) and Azure SQL Managed Instance (E) provide full SQL Server engine compatibility, native SQL Server Agent, cross-database queries, independent storage scaling, and minimal application changes. Azure SQL Database elastic pool (B) does not support SQL Server Agent natively (Azure Elastic Jobs is not SQL Server Agent) and its cross-database query support via elastic query is not as seamless as native; thus it does not meet all requirements. Option A (single database) lacks SQL Server Agent and cross-database queries.

Option C (Azure Synapse) is not designed for OLTP and lacks SQL Server Agent and cross-database query support. Therefore, the two correct options are D and E.

Exam trap

Candidates may see a 'Choose two' instruction and assume there are exactly two correct options, but this question tests knowledge of which Azure SQL options actually satisfy all the given requirements. Only two of the five options meet every requirement, so selecting any third option would be incorrect.

11
MCQeasy

You are a database administrator for a company that uses Azure SQL Database. The company wants to reduce the cost of storing backups. You need to configure the backup storage redundancy to the most cost-effective option while ensuring data durability within a single region. What should you do?

A.Configure zone-redundant backup storage.
B.Configure geo-redundant backup storage.
C.Configure locally redundant backup storage.
D.Configure read-access geo-redundant backup storage.
AnswerC

Locally redundant backup storage replicates backups three times within a single region, providing durability within that region at a lower cost than geo-redundant or zone-redundant options. This meets the requirement for cost-effectiveness and single-region durability. It is the default and most economical choice for backup storage redundancy.

Why this answer

Locally redundant backup storage is the most cost-effective option that provides durability within a single region. It replicates backups three times within the same region, ensuring data redundancy without the added cost of cross-region replication. Geo-redundant and zone-redundant options offer higher durability but at a higher price.

Exam trap

The trap here is assuming that higher redundancy always means better, without considering the cost requirement and the need for only single-region durability.

12
MCQmedium

You are deploying a new Azure SQL Database for an internal HR application. The database will store employee records and must be encrypted at rest using a key that your organization rotates every 90 days. The key must be stored in Azure Key Vault and must not be accessible to Microsoft. You need to configure Transparent Data Encryption (TDE) to meet these requirements. What should you do first?

A.Enable TDE with a service-managed key on the Azure SQL logical server.
B.Create a database master key (DMK) in the master database and encrypt it with a password.
C.Create an Azure Key Vault, generate a key, and grant the Azure SQL logical server's managed identity access to the key.
D.Configure a firewall rule to allow the application to connect to the database.
AnswerC

To use customer-managed keys for TDE, you must first create an Azure Key Vault, generate or import a key, and then grant the logical server's managed identity permissions to access that key. This establishes the trust relationship needed before you can configure the database to use the key for encryption. Without this step, the server cannot retrieve the key to encrypt or decrypt the database.

Why this answer

The requirement is to use a customer-managed key stored in Azure Key Vault for TDE, ensuring Microsoft cannot access the key. The first step is to create the Key Vault and key, then grant the Azure SQL logical server's managed identity access to that key. This enables the server to use the key for TDE.

Only after this trust is established can you configure the database to use the key. Other options either use service-managed keys or address unrelated security aspects.

Exam trap

The trap here is assuming that enabling TDE on the server automatically uses a customer-managed key, when in fact you must first set up Key Vault and grant the managed identity access before TDE can use it.

13
MCQmedium

You are configuring a new Azure SQL Database. The application that will use the database requires read-only access to the database from an Azure App Service. You need to ensure that the application connects securely without embedding credentials in code, and that access is limited to the minimum required permissions. What should you do?

A.Enable Microsoft Entra authentication for the Azure SQL Database, create a contained database user mapped to the App Service's managed identity, and grant the user the db_datareader role.
B.Enable Microsoft Entra authentication and create a contained database user mapped to the App Service's managed identity, then grant the user the db_owner role.
C.Create a contained database user with a strong password and store the credentials in Azure Key Vault. Configure the App Service to retrieve the credentials from Key Vault.
D.Enable SQL authentication and create a login with a strong password, then configure the App Service connection string to use this login.
AnswerA

Using Microsoft Entra authentication with a managed identity eliminates the need for credentials in code. The App Service's system-assigned managed identity is used to authenticate to the database. Creating a contained database user for that identity and granting db_datareader role provides read-only access with minimum permissions, meeting all requirements.

Why this answer

Enabling Microsoft Entra authentication and creating a contained database user for the App Service's managed identity eliminates credential management. Assigning the db_datareader role grants read-only access, adhering to the principle of least privilege. This approach is secure, requires no credentials in code, and limits permissions to what the application needs.

Exam trap

The trap here is choosing a solution that uses credentials stored in Key Vault or granting excessive permissions like db_owner; the key is to use managed identity with least privilege.

14
MCQmedium

You are configuring an Azure SQL Database elastic pool for a SaaS application. The pool will host 50 databases with varying workloads. You need to minimize cost while ensuring performance meets baseline requirements. Which tier and configuration should you choose?

A.Hyperscale tier with 4 vCores
B.Provisioned tier with General Purpose and 2 vCores
C.Serverless tier with General Purpose and auto-pause enabled
D.DTU-based elastic pool with 200 DTUs
AnswerD

A DTU-based elastic pool with 200 DTUs (eDTUs) is the correct choice because it gives 50 small-to-medium databases a shared pool of compute and storage resources, letting them absorb bursts by using spare capacity from quiet databases. The DTU purchasing model bundles compute, storage, and backup into a simple, cost-effective unit; 200 DTUs typically sustains around 200 MB/s of I/O and enough CPU/GPU resources (approximately 4 vCore-equivalent) for variable workloads. Because you pay only for the pool's aggregate DTUs, not per-database DTUs, this is the most economical way to serve 50 databases with fluctuating demand.

Why this answer

A DTU-based elastic pool offers a cost-effective solution for hosting 50 databases with varying workloads. DTU pools provide a shared resource model (eDTUs) that automatically balances capacity across databases, minimizing cost while meeting baseline performance requirements. Serverless tier (Option C) is not supported for elastic pools, making it invalid.

Hyperscale (Option A) is designed for large, highly scalable databases and is overkill and costly. Provisioned vCore-based pool (Option B) with 2 vCores may be insufficient for 50 databases and is generally more expensive than DTU-based pools for variable workloads.

Exam trap

The key trap is that many candidates assume Serverless tier is available for elastic pools, but it is only available for single databases. For elastic pools, DTU-based or vCore-based (Provisioned) tiers are the options, and DTU-based is often more cost-effective for mixed workloads.

How to eliminate wrong answers

Option A is wrong because the Hyperscale tier is designed for very large databases (up to 100 TB) with high throughput and rapid scaling, which is over-provisioned and unnecessarily expensive for 50 databases with varying workloads that only need baseline performance. Option B is wrong because the Provisioned tier with General Purpose and 2 vCores incurs continuous compute charges even when databases are idle, leading to higher costs compared to serverless for intermittent or variable workloads. Option D is wrong because a DTU-based elastic pool with 200 DTUs uses a fixed resource model that cannot scale down to zero during inactivity, and DTU pools are generally less cost-efficient than vCore-based serverless for workloads with significant idle periods.

15
MCQhard

Your team is migrating an on-premises SQL Server 2019 database to Azure SQL Managed Instance. The database uses Service Broker for cross-database messaging. The compliance requirement mandates that the migration must be performed with minimal downtime and that the target must support the Service Broker feature. What migration strategy should you recommend?

A.Perform a native backup and restore to Azure SQL Managed Instance
B.Use the Data Migration Assistant (DMA) to migrate to Azure SQL Database
C.Use Azure Database Migration Service (DMS) with offline migration to Azure SQL Database
D.Use Azure Database Migration Service (DMS) with online migration to Azure SQL Managed Instance
AnswerD

Azure Database Migration Service online migration keeps the source SQL Server 2019 database available whilst continuously replicating changes to Azure SQL Managed Instance, cutting cutover downtime to a brief final sync. SQL Managed Instance supports Service Broker, satisfying the compliance constraint that the target retain cross-database messaging.

Why this answer

Azure SQL Managed Instance fully supports Service Broker, and the Azure Database Migration Service (DMS) with online migration mode enables minimal downtime by continuously replicating changes from the source SQL Server to the target Managed Instance until a cutover. This satisfies both the Service Broker feature requirement and the compliance mandate for minimal downtime.

Exam trap

The trap here is that candidates may confuse Azure SQL Database with Azure SQL Managed Instance regarding Service Broker support, or assume that any offline migration method can achieve minimal downtime, but the key differentiator is that only online migration to SQL Managed Instance meets both the feature and downtime requirements.

How to eliminate wrong answers

Option A is wrong because a native backup and restore to Azure SQL Managed Instance is an offline method that requires the source database to be taken offline during the backup and restore process, causing significant downtime, and does not support minimal downtime. Option B is wrong because the Data Migration Assistant (DMA) can assess and migrate to Azure SQL Database, but Azure SQL Database does not support Service Broker for cross-database messaging, so it fails the feature requirement. Option C is wrong because using DMS with offline migration to Azure SQL Database also targets Azure SQL Database, which lacks Service Broker support, and offline migration inherently involves downtime, violating the minimal downtime requirement.

16
MCQeasy

You have an Azure SQL Database that is used by a development team. The team works only during business hours and the database can be unavailable outside those hours. You need to minimize compute cost while allowing the database to automatically pause when it is idle and resume when a connection is made. What should you configure?

A.Set the database to the Hyperscale service tier with one read-scale replica.
B.Set the database to the General Purpose service tier with the Serverless compute tier and configure the auto-pause delay.
C.Set the database to the General Purpose service tier with the Provisioned compute tier.
D.Set the database to the Business Critical service tier with zone redundancy enabled.
AnswerB

The Serverless compute tier automatically pauses the database after a configured idle period and resumes it when a new connection arrives. This directly matches the requirement to minimize cost for a database that is used only during business hours. General Purpose with Serverless also allows a minimum and maximum vCore range so that compute scales with demand while idle time is not billed.

Why this answer

The Serverless compute tier is the only Azure SQL Database option that automatically pauses compute after an idle period and resumes on the next connection. Configuring it on the General Purpose service tier lets the development team pay only for the compute used during business hours. The auto-pause delay controls how long the database waits before suspending, directly reducing cost for an intermittently used database.

Exam trap

The trap here is confusing the Hyperscale service tier with the Serverless compute tier, assuming that a modern scalable tier automatically pauses, when only Serverless supports auto-pause.

17
MCQmedium

You are designing a disaster recovery plan for an Azure SQL Database that uses the Business Critical tier. The database is deployed in the West US region. You need to ensure that if the entire West US region becomes unavailable, the database can be failed over to a secondary region with minimal data loss. What should you implement?

A.Configure active geo-replication to East US
B.Configure an auto-failover group with a readable secondary in East US
C.Enable zone redundancy for the database
D.Configure geo-restore from the West US database
AnswerB

Auto-failover group with a readable secondary uses asynchronous replication but provides automatic failover. You can configure a grace period to minimize data loss, making it the best option for minimal data loss and automatic recovery.

Why this answer

Auto-failover groups with a readable secondary in East US provide automatic and manual failover capabilities. For Business Critical tier, the secondary is readable and uses asynchronous replication, typically achieving an RPO of 5 seconds or less. This meets the requirement for minimal data loss.

Active geo-replication also uses asynchronous replication with similar RPO but requires manual failover and does not support automatic failover. Zone redundancy protects against within-region failures, not regional outages. Geo-restore has a higher RPO and requires manual recovery.

Exam trap

Candidates often choose active geo-replication, thinking it offers lower RPO because it is a dedicated replication feature. However, both active geo-replication and auto-failover groups use asynchronous replication with similar RPO (typically less than 5 seconds). The key advantage of auto-failover groups is automatic failover and the ability to group multiple databases, making them more suitable for region-level disaster recovery with minimal data loss.

How to eliminate wrong answers

Option B is wrong because auto-failover groups use asynchronous replication with a default RPO of up to 5 seconds, but they are designed for automatic failover, not manual failover with minimal data loss; the question emphasizes 'failed over' (manual action) and 'minimal data loss,' which active geo-replication achieves more precisely. Option C is wrong because zone redundancy protects against failures within a single Azure region (e.g., a datacenter failure), not against a full regional outage, and it does not provide a secondary region for failover. Option D is wrong because geo-restore is a point-in-time restore from geo-replicated backups, which can have an RPO of up to 1 hour and an RTO of up to 12 hours, resulting in significant data loss and longer recovery time, not minimal data loss.

18
MCQeasy

You are planning to deploy a new Azure SQL Database. The database will store sensitive financial data and must be encrypted at rest using a key that your organization manages and rotates independently. You need to implement this encryption with minimal administrative overhead. What should you do?

A.Configure Always Encrypted with column encryption keys stored in Azure Key Vault.
B.Enable Transparent Data Encryption (TDE) with customer-managed keys stored in Azure Key Vault.
C.Enable Azure Disk Encryption on the underlying virtual machines hosting the database.
D.Enable Transparent Data Encryption (TDE) with service-managed keys.
AnswerB

TDE with customer-managed keys allows you to use your own key stored in Azure Key Vault, giving you full control over key lifecycle, including rotation and revocation. It encrypts data at rest and is the standard method for meeting regulatory requirements for independent key management. This approach also integrates with Azure Key Vault for centralized key management.

Why this answer

Transparent Data Encryption with customer-managed keys in Azure Key Vault provides encryption at rest while allowing your organization to manage and rotate the encryption key. This meets the requirement for independent key management with minimal overhead, as Azure SQL Database handles the encryption and decryption transparently.

Exam trap

The trap here is confusing Always Encrypted, which protects specific columns and requires application changes, with TDE, which encrypts the entire database at rest.

19
MCQeasy

Your company is deploying a new application that uses an Azure SQL Database. The security policy requires that all connections use Microsoft Entra ID authentication and that no SQL authentication users are created. Which server-level setting should you enforce?

A.Set the database to use contained database authentication.
B.Configure a server-level firewall rule to allow only Entra ID IPs.
C.Enable 'Azure AD-only authentication' on the Azure SQL logical server.
D.Set the Entra ID admin for the server and disable SQL authentication.
AnswerC

Azure AD-only authentication disables SQL authentication at the logical server level, so only Microsoft Entra ID principals can connect. This enforces the policy that no SQL authentication users are created, meeting the stem's authentication constraint.

Why this answer

Enabling 'Azure AD-only authentication' on the Azure SQL logical server enforces that all connections must use Microsoft Entra ID authentication and blocks any SQL authentication attempts, even if SQL logins exist. This setting directly meets the security policy requirement that no SQL authentication users are created and all connections use Entra ID.

Exam trap

The trap here is that candidates often assume setting the Entra ID admin and disabling SQL authentication manually is sufficient, but the 'Azure AD-only authentication' property is a separate, explicit enforcement mechanism that must be enabled to fully block SQL authentication at the server level.

How to eliminate wrong answers

Option A is wrong because setting the database to use contained database authentication allows contained database users to authenticate with SQL authentication, which would violate the policy that no SQL authentication users are created. Option B is wrong because configuring a server-level firewall rule to allow only Entra ID IPs does not enforce authentication method; it only restricts network access by IP address, and Entra ID authentication is not tied to specific IPs. Option D is wrong because setting the Entra ID admin and disabling SQL authentication via the portal or T-SQL is not a server-level setting that fully enforces the policy; the 'Azure AD-only authentication' property must be explicitly enabled to block all SQL authentication attempts, including those from the server admin.

20
MCQeasy

You are deploying a new Azure SQL Database for a line-of-business application. The application's usage pattern is unpredictable, with long idle periods overnight and short bursts of heavy activity during business hours. Cost optimization is a priority, and the database can tolerate a brief reconnection delay when scaling. You need to select a purchasing model and service tier that minimizes cost while automatically adjusting compute resources. What should you do?

A.Deploy the database by using the DTU purchasing model with the Standard service tier and configure elastic pool auto-scaling.
B.Deploy the database by using the vCore purchasing model with the Hyperscale service tier and enable read-scale replicas.
C.Deploy the database by using the vCore purchasing model with the General Purpose service tier and configure the serverless compute tier.
D.Deploy the database by using the vCore purchasing model with the Business Critical service tier and configure auto-scaling.
AnswerC

The vCore model with General Purpose service tier supports the serverless compute tier, which automatically scales compute based on workload demand and can pause the database during inactive periods, billing only for storage. This directly addresses unpredictable usage and cost optimization, while accepting a brief reconnection delay when resuming from a paused state, exactly as the scenario permits.

Why this answer

The serverless compute tier in the vCore purchasing model automatically scales compute resources based on workload activity and can pause the database during idle times, charging only for storage. This matches the need to minimize cost for unpredictable usage and tolerates the brief reconnection delay upon resuming. Other tiers either lack auto-scaling or are not cost-effective for this pattern.

Exam trap

The trap here is assuming that any vCore service tier supports automatic scaling, when in fact only the serverless compute tier provides that behavior.

21
MCQmedium

You are deploying Azure SQL Database for a multi-tenant SaaS application. Each tenant has its own database. You need to ensure that tenant data is isolated and that performance is predictable. Cost efficiency is important. Which deployment model should you use?

A.Deploy a single Azure SQL Database per tenant
B.Use Azure SQL Managed Instance with multiple databases
C.Use a single large database with row-level security
D.Use an elastic pool with one database per tenant
AnswerD

An elastic pool shares provisioned eDTUs or vCores across many single-tenant databases, so each tenant keeps its own database for isolation while aggregate resources absorb unpredictable per-tenant load spikes. This satisfies the predictable-performance and cost-efficiency constraints, since you pay for pooled capacity rather than peak provisioning per database.

Why this answer

An elastic pool allows you to provision a shared set of resources (eDTUs or vCores) that is distributed across multiple databases, each representing a tenant. This provides logical isolation of tenant data (each tenant has its own database) while pooling resources to handle variable workloads cost-effectively. The elastic pool model is specifically designed for SaaS multi-tenant scenarios where predictable performance is achieved through resource governance, and cost efficiency comes from sharing resources among databases that do not all peak simultaneously.

Exam trap

The trap here is that candidates often confuse 'tenant isolation' with 'dedicated resources' and choose Option A, missing that elastic pools provide logical isolation (separate databases) with shared, cost-efficient resources, which is the exact requirement for predictable performance and cost efficiency in multi-tenant SaaS.

How to eliminate wrong answers

Option A is wrong because deploying a single Azure SQL Database per tenant without pooling leads to over-provisioning and higher costs, as each database requires its own DTU/vCore allocation regardless of actual usage, and does not leverage shared resource benefits for variable workloads. Option B is wrong because Azure SQL Managed Instance is designed for lift-and-shift migrations of existing SQL Server workloads with instance-level features, not for multi-tenant SaaS isolation; it lacks the elastic pool resource-sharing model and is more expensive per database. Option C is wrong because using a single large database with row-level security (RLS) violates tenant data isolation at the database level (a single database is a shared failure domain), and performance is unpredictable as all tenants compete for the same resources without per-tenant resource governance, making it unsuitable for predictable performance and cost efficiency.

22
MCQmedium

You are deploying an Azure SQL Database for a new application. The database must be encrypted at rest using Transparent Data Encryption (TDE) with a customer-managed key stored in Azure Key Vault. You need to ensure that the key is automatically rotated every 90 days and that the database remains accessible if the key is rotated. What should you configure?

A.Use Always Encrypted with a column master key stored in Azure Key Vault and configure automatic rotation.
B.Enable TDE with a service-managed key and configure automatic key rotation in the Azure portal.
C.Create an Azure Key Vault, generate a key, and configure the SQL server's TDE protector to use that key. Then set up a key rotation policy in Key Vault.
D.Store the key in Azure Key Vault and manually update the TDE protector every 90 days using PowerShell scripts.
AnswerC

To use a customer-managed key for TDE, you store the key in Azure Key Vault and set it as the TDE protector for the logical server. Key Vault supports rotation policies that automatically generate new key versions, and Azure SQL Database automatically uses the latest version if configured to do so, ensuring continuous access.

Why this answer

Configuring TDE with a customer-managed key in Azure Key Vault and setting a rotation policy in Key Vault enables automatic key rotation. Azure SQL Database automatically uses the latest key version when the key is rotated, provided the server is configured to use the latest version. This meets the 90-day rotation and continuous access requirements.

Exam trap

The trap here is confusing TDE with Always Encrypted or assuming that manual key updates are sufficient, when the requirement explicitly calls for automatic rotation.

23
MCQeasy

You are configuring security for an Azure SQL Database. You need to ensure that only traffic from a specific virtual network and a specific set of public IP addresses can connect to the database. Which two features should you enable?

A.Microsoft Entra ID authentication and firewall rules
B.VNet service endpoints and firewall rules
C.Advanced Threat Protection and VNet service endpoints
D.Private endpoint and VNet service endpoints
AnswerB

VNet service endpoints restrict connectivity to the specified subnet, while firewall rules permit the named public IP addresses. Together they satisfy the requirement that only that virtual network and those public IPs can reach the Azure SQL Database.

Why this answer

To restrict access to an Azure SQL Database to traffic from a specific virtual network and a specific set of public IP addresses, you need to combine VNet service endpoints with firewall rules. VNet service endpoints allow you to restrict inbound traffic from a specific subnet in a virtual network, while firewall rules (IP-based) allow you to specify allowed public IP address ranges. Together, they provide a layered network security approach that meets the requirement.

Exam trap

The trap here is that candidates often confuse network-level controls (firewall rules, service endpoints) with identity/security monitoring features (Entra ID, ATP), leading them to pick options that address authentication or threat detection instead of network access restrictions.

How to eliminate wrong answers

Option A is wrong because Microsoft Entra ID authentication controls identity and access (who can connect), not network-level traffic filtering (where traffic originates). Option C is wrong because Advanced Threat Protection is a security monitoring and threat detection service, not a network access control mechanism. Option D is wrong because Private endpoint and VNet service endpoints are both network-level features, but private endpoint uses a private IP address from your VNet and does not support allowing a specific set of public IP addresses; it only allows traffic from the VNet, not from public IPs.

24
Multi-Selecteasy

Which TWO benefits does the Hyperscale service tier of Azure SQL Database provide?

Select 2 answers
A.Built-in in-memory OLTP support.
B.Zone-redundant configuration by default.
C.Up to 100 TB of database storage.
D.Fast provisioning of additional read replicas.
E.Zero data loss in all scenarios.
AnswersC, D

Hyperscale's architecture separates compute from a log-based storage layer that scales to 100 TB, far exceeding the 4 TB limit of General Purpose and Business Critical. This satisfies the large-storage benefit the question asks about.

Why this answer

Option C is correct because the Hyperscale service tier is designed to scale storage up to 100 TB (and beyond in some configurations), far exceeding the limits of General Purpose and Business Critical tiers, which is a core benefit of its architecture that separates compute from storage. Option D is correct because Hyperscale uses a page-server and log-service architecture that allows additional read replicas to be provisioned quickly and independently of the primary compute, enabling rapid scale-out for read workloads. Option A is incorrect because built-in in-memory OLTP is a feature of the Business Critical tier, not Hyperscale.

Option B is incorrect because zone-redundant configuration is not enabled by default in Hyperscale; it is an optional configuration choice. Option E is incorrect because no Azure SQL tier guarantees zero data loss in all scenarios; Hyperscale provides high durability but not an absolute zero-data-loss guarantee across every failure scenario.

Exam trap

The trap here is that candidates often confuse the Hyperscale tier's storage limit with the Business Critical tier's in-memory OLTP or zone-redundancy features, leading them to select options that are technically correct for other tiers but not for Hyperscale.

25
Multi-Selectmedium

You are designing a backup strategy for an Azure SQL Database. The database is in the General Purpose service tier and is used for a critical application. You need to ensure that you can restore the database to any point in time within the last 30 days, and you need to retain backups for 10 years for compliance. (Choose two.)

Select 2 answers
A.Enable geo-replication for the database.
B.Configure automatic backups to a storage account using SQL Server Agent.
C.Configure the backup storage redundancy to locally-redundant storage (LRS).
D.Set the point-in-time restore retention policy to 30 days.
E.Configure long-term retention (LTR) with a retention period of 10 years.
AnswersD, E

Azure SQL Database automatically retains backups for point-in-time restore (PITR) for a default of 7 days, but you can configure it up to 35 days. Setting the PITR retention policy to 30 days ensures you can restore to any point within the last 30 days, directly meeting that requirement. This is a necessary configuration for the specified recovery window.

Why this answer

To meet the requirements, you need to set the point-in-time restore retention to 30 days and configure long-term retention (LTR) for 10 years. PITR retention can be configured up to 35 days, so 30 days is achievable. LTR allows retention up to 10 years.

Backup storage redundancy and geo-replication do not affect retention periods, and SQL Server Agent is not available in Azure SQL Database. Therefore, the correct actions are configuring PITR to 30 days and LTR to 10 years.

Exam trap

The trap here is assuming that geo-replication or backup redundancy extends retention, when retention is controlled by separate PITR and LTR policies.

26
MCQeasy

You are a database administrator for a healthcare organization. You need to deploy a new Azure SQL Database that stores protected health information (PHI). The database must be encrypted at rest using a customer-managed key in Azure Key Vault. Additionally, you need to ensure that backups are also encrypted with the same key. Which configuration should you use?

A.Use column-level encryption with a certificate
B.Enable Transparent Data Encryption (TDE) using a customer-managed key from Azure Key Vault
C.Enable Transparent Data Encryption with a service-managed key
D.Enable Always Encrypted with keys stored in Azure Key Vault
AnswerB

Transparent Data Encryption with a customer-managed key in Azure Key Vault encrypts the database, its backups, and transaction logs at rest using the same asymmetric key. This directly satisfies the requirement that backups remain encrypted under the identical customer-managed key, unlike service-managed keys or Always Encrypted, which protects only specific columns.

Why this answer

Transparent Data Encryption (TDE) with a customer-managed key from Azure Key Vault is the correct choice because it encrypts the database at rest, including data files and log files, using a key that you control and manage in Azure Key Vault. This meets the requirement for encrypting protected health information (PHI) at rest with a customer-managed key, and TDE automatically ensures that backups are encrypted with the same database encryption key (DEK), which is protected by the customer-managed key.

Exam trap

The trap here is that candidates often confuse Always Encrypted (which encrypts data at the column level and requires application changes) with TDE (which encrypts the entire database at rest transparently), or they mistakenly think that service-managed keys satisfy a customer-managed key requirement.

How to eliminate wrong answers

Option A is wrong because column-level encryption with a certificate encrypts individual columns, not the entire database at rest, and does not automatically encrypt backups with the same key; it also requires application changes and does not meet the requirement for at-rest encryption of the whole database and backups. Option C is wrong because Transparent Data Encryption with a service-managed key uses a key managed by Microsoft, not a customer-managed key, so it fails the requirement for a customer-managed key in Azure Key Vault. Option D is wrong because Always Encrypted encrypts data in transit and at rest at the column level, but it does not encrypt the entire database or backups automatically; it also requires client-side key management and application changes, and does not fulfill the requirement for at-rest encryption of backups with the same key.

27
MCQeasy

You are deploying a new Azure SQL Database for a small internal inventory application. The workload is steady, with predictable usage during business hours, and the application team requires a fixed monthly cost with no risk of unexpected overage charges. You need to choose a purchasing model and service tier that meets these requirements. What should you do?

A.Deploy the database by using the vCore purchasing model with the General Purpose service tier and configure auto-scaling.
B.Deploy the database by using the DTU purchasing model with a Standard service tier.
C.Deploy the database by using the DTU purchasing model with the Premium service tier.
D.Deploy the database by using the vCore purchasing model with the Business Critical service tier.
AnswerB

The DTU purchasing model offers fixed, predictable pricing per DTU tier, and the Standard tier is designed for steady, moderate workloads like a small internal application. It provides a simple fixed monthly cost with no risk of unexpected overages, matching the requirement exactly.

Why this answer

The DTU purchasing model with the Standard service tier provides a fixed monthly cost and is designed for steady, moderate workloads, which matches the small internal inventory application. The vCore model, whether Business Critical or General Purpose with auto-scaling, introduces variable costs that do not meet the fixed-cost requirement, and the Premium DTU tier is unnecessarily costly.

Exam trap

The trap here is assuming that auto-scaling always saves money or that a higher service tier is required for reliability, when the key requirement is a fixed, predictable monthly cost.

28
MCQhard

You are deploying an Azure SQL Database and need to ensure that the database files are encrypted at rest using a key that your organization manages and can revoke. The key must be stored in Azure Key Vault and rotated regularly. You also need to ensure that the database remains accessible during key rotation. What should you do?

A.Enable Transparent Data Encryption (TDE) with a customer-managed key stored in Azure Key Vault and configure the key version to be auto-rotated.
B.Enable Transparent Data Encryption (TDE) with a service-managed key and configure automatic key rotation.
C.Enable Always Encrypted with a column master key stored in Azure Key Vault and configure key rotation.
D.Enable Transparent Data Encryption (TDE) with a customer-managed key stored in Azure Key Vault and manually update the key version in the database configuration after each rotation.
AnswerA

TDE with a customer-managed key in Azure Key Vault allows your organization to manage and revoke the key. Configuring auto-rotation ensures the key is rotated regularly without downtime, as Azure SQL Database automatically uses the new key version. This meets all requirements: encryption at rest, organizational control, revocability, and continuous availability.

Why this answer

Transparent Data Encryption with a customer-managed key in Azure Key Vault allows the organization to own, manage, and revoke the encryption key. Configuring auto-rotation ensures that the key is rotated regularly without manual intervention, and the database remains accessible because Azure SQL Database automatically switches to the new key version. This satisfies all the stated requirements.

Exam trap

The trap here is confusing TDE with Always Encrypted or assuming that manual key updates are required; auto-rotation is designed to handle key version changes seamlessly.

29
MCQmedium

A healthcare company is required to encrypt all patient data at rest and in transit. They are deploying Azure SQL Database. Which combination of features should they implement to meet this requirement?

A.Transparent data encryption (TDE) and TLS 1.2
B.Dynamic data masking and row-level security
C.Azure Active Directory authentication and firewall rules
D.Always Encrypted and transparent data encryption (TDE)
AnswerA

Transparent data encryption performs real-time encryption and decryption of the database, backups, and transaction logs at rest without application changes, while TLS 1.2 secures data in transit between clients and the server. Together they satisfy the healthcare company's dual requirement for Azure SQL Database.

Why this answer

Transparent Data Encryption (TDE) encrypts data at rest by performing real-time I/O encryption and decryption of the database, data files, and transaction logs, while TLS 1.2 encrypts data in transit between the client and Azure SQL Database. Together, they satisfy the requirement to encrypt all patient data both at rest and in transit.

Exam trap

The trap here is that candidates often confuse Always Encrypted with a complete encryption solution for both at rest and in transit, but it only encrypts specific columns and does not encrypt the entire transport channel, leaving the connection vulnerable without TLS.

How to eliminate wrong answers

Option B is wrong because Dynamic Data Masking (DDM) and Row-Level Security (RLS) control data visibility and access at the row level, but they do not encrypt data at rest or in transit. Option C is wrong because Azure Active Directory authentication and firewall rules manage identity and network access, but they provide no encryption of data at rest or in transit. Option D is wrong because Always Encrypted protects sensitive data in transit and at rest with client-side encryption, but when combined with TDE, it does not address the in-transit requirement for the entire connection (TLS is needed for the transport layer); moreover, Always Encrypted is not a replacement for TLS and is often overkill for the stated requirement, which is fully met by TDE + TLS 1.2.

30
MCQmedium

You are configuring Azure SQL Database for a new e-commerce application that must support high read throughput for product catalog queries. The application uses Entity Framework Core and requires that read-only queries be offloaded to a secondary replica to reduce load on the primary. Which feature should you enable?

A.Enable read scale-out and configure the application to use read-only intent.
B.Enable Query Performance Insights and create indexes for frequent queries.
C.Configure Active Geo-Replication with a readable secondary in a different region.
D.Enable automatic tuning to force parameterization of queries.
AnswerA

Read scale-out provisions a read-only secondary replica, and routing connections with ApplicationIntent=ReadOnly directs Entity Framework Core catalog queries there, offloading the primary. This satisfies the high read throughput requirement without manual replication, since Microsoft Entra ID authentication and the existing connection string remain unchanged.

Why this answer

Read scale-out in Azure SQL Database allows you to offload read-only workloads to a readable secondary replica by setting the application connection string's `ApplicationIntent=ReadOnly`. This reduces load on the primary replica, which is essential for high read throughput in an e-commerce catalog scenario. Entity Framework Core can use this by specifying `ReadOnly` in the connection string or via a custom interceptor.

Exam trap

The trap here is that candidates often confuse read scale-out with Active Geo-Replication, assuming that any readable secondary must be in a different region, but read scale-out works within the same region and is specifically designed for read-only workload offloading.

How to eliminate wrong answers

Option B is wrong because Query Performance Insights is a diagnostic tool for identifying query performance issues, not a feature to offload read traffic to a secondary replica. Option C is wrong because Active Geo-Replication with a readable secondary is designed for disaster recovery and regional read scaling, not for offloading read-only queries within the same region to reduce primary load; it also introduces replication lag and cross-region latency. Option D is wrong because automatic tuning with forced parameterization optimizes query plans by parameterizing non-parameterized queries, but it does not redirect read traffic to a secondary replica.

31
MCQhard

Your Azure SQL Managed Instance is experiencing performance degradation. You suspect a query plan regression caused by parameter-sensitive plan issues. Which feature should you use to identify and resolve the issue?

A.Intelligent Insights
B.Automatic tuning
C.Query Store with Query Store Hints
D.Database Advisor
AnswerC

Query Store captures execution plans and runtime statistics, exposing regressed plans for a specific query. Query Store Hints then force a known-good plan without code changes, directly resolving parameter-sensitive plan regression on the Managed Instance.

Why this answer

Query Store with Query Store Hints is the correct feature because it allows you to identify parameter-sensitive plan regression by analyzing historical execution plans stored in Query Store, and then force a specific plan using a hint without changing application code. This directly addresses the root cause of parameter-sensitive plan issues, where different parameter values lead to suboptimal cached plans.

Exam trap

The trap here is that candidates often confuse Intelligent Insights or Automatic tuning as the solution for plan regression, but these features do not provide the ability to manually force a specific plan, which is required for parameter-sensitive plan issues where you need to pin a known good plan.

How to eliminate wrong answers

Option A is wrong because Intelligent Insights is a diagnostic feature that provides proactive health monitoring and root-cause analysis for Azure SQL databases, but it does not allow you to force or hint a specific query plan to resolve parameter-sensitive plan regression. Option B is wrong because Automatic tuning can automatically adjust query plans based on performance, but it does not provide the granular, manual control needed to identify and force a specific plan for parameter-sensitive issues; it may also change plans automatically without your explicit approval. Option D is wrong because Database Advisor provides recommendations for index creation, query performance, and schema changes, but it does not offer the ability to view historical execution plans or apply query hints to fix plan regression.

32
Matchingmedium

Match each Azure SQL Database service tier to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Suitable for small databases with low performance requirements

Balanced performance for most production workloads

High performance and low latency for mission-critical workloads

Highly scalable storage and compute for large databases

Auto-scaling compute based on workload demand

Why these pairings

These are the main service tiers in Azure SQL Database, each designed for different performance and scalability needs.

33
MCQmedium

You are deploying a new Azure SQL Database for a line-of-business application. The application's workload is unpredictable, with periods of near-zero activity overnight and heavy transactional bursts during business hours. You need to choose a purchasing model and service tier that minimizes cost while automatically scaling compute resources based on demand. What should you do?

A.Deploy the database using the vCore purchasing model with the Serverless compute tier and set the minimum and maximum vCores.
B.Deploy the database using the DTU purchasing model with the Standard service tier.
C.Deploy the database using the vCore purchasing model with the General Purpose service tier and configure auto-scaling.
D.Deploy the database using the vCore purchasing model with the Business Critical service tier and enable geo-replication.
AnswerA

The Serverless compute tier automatically scales compute based on workload demand and can pause during inactive periods, billing only for storage while paused. By setting minimum and maximum vCores, you control cost boundaries while allowing automatic scaling during bursts. This directly meets the requirement to minimize cost while handling unpredictable activity, making it the appropriate choice for this scenario.

Why this answer

The Serverless compute tier in the vCore purchasing model is designed for databases with intermittent, unpredictable usage. It automatically scales compute up during active periods and down or pauses during inactivity, billing only for resources consumed. Setting minimum and maximum vCores provides cost control while enabling automatic scaling.

This aligns with the need to minimize cost while handling variable demand, unlike fixed DTU or provisioned vCore tiers.

Exam trap

The trap here is assuming that any vCore-based tier supports automatic scaling, when in fact only the Serverless compute tier provides that capability.

34
MCQhard

You are configuring an Azure SQL Database to support a mission-critical application. The database is in the Business Critical service tier and uses zone redundancy. You need to ensure that the database remains available even if an entire Azure region becomes unavailable. The solution must minimize data loss and provide automatic failover. What should you do?

A.Configure an auto-failover group with a secondary database in a paired Azure region.
B.Enable active geo-replication for the database to a secondary region.
C.Enable geo-backup and configure a long-term retention policy.
D.Configure a failover group with a secondary database in the same region but in a different availability zone.
AnswerA

Auto-failover groups provide automatic failover to a secondary region and allow you to group multiple databases for failover. They support read-write and read-only listener endpoints, and you can set a grace period. This meets the requirement for automatic failover and minimal data loss, as replication is asynchronous but typically low latency. It is the recommended solution for regional disaster recovery.

Why this answer

Auto-failover groups provide automatic failover to a secondary region, minimizing downtime and data loss. They support multiple databases and provide listener endpoints for seamless connection redirection. This is the appropriate solution for regional disaster recovery with automatic failover.

Exam trap

The trap here is confusing active geo-replication, which requires manual failover, with auto-failover groups, which automate the failover process.

35
MCQmedium

You are analyzing the SQL script in the exhibit. This script is used to query data stored in Azure Blob Storage from Azure SQL Database. What is the primary purpose of the database scoped credential?

A.To store the shared access signature token for accessing the blob storage.
B.To define the file format of the external data.
C.To specify the schema of the external table.
D.To provide the location of the external data source.
AnswerA

The database scoped credential holds the shared access signature token that authenticates SQL Database against the blob endpoint. Without it, the external data source cannot authorise reads, so it satisfies the requirement for querying blob-stored data securely.

Why this answer

The database scoped credential in this context securely stores the Shared Access Signature (SAS) token required to authenticate and authorize access to Azure Blob Storage. When creating an external data source with the CREDENTIAL option, SQL Database uses this credential to pass the SAS token to the storage endpoint, enabling read operations for PolyBase or external table queries.

Exam trap

The trap here is that candidates confuse the credential's role with the external data source's LOCATION or the external table's schema, but the credential is strictly an authentication mechanism, not a metadata or location definition.

How to eliminate wrong answers

Option B is wrong because defining the file format of external data is the role of an external file format object (CREATE EXTERNAL FILE FORMAT), not a credential. Option C is wrong because specifying the schema of the external table is done via the CREATE EXTERNAL TABLE statement with column definitions, not a credential. Option D is wrong because providing the location of the external data source is the purpose of the CREATE EXTERNAL DATA SOURCE statement (which includes the LOCATION parameter), while the credential only supplies authentication secrets.

36
MCQmedium

Your company is migrating an on-premises SQL Server database to Azure SQL Managed Instance. The database uses a SQL Server Agent job that runs a PowerShell script to process files. You need to ensure the job continues to run after migration with minimal changes. What should you do?

A.Migrate the database to Azure SQL Managed Instance and recreate the job using SQL Server Agent.
B.Migrate the database to Azure SQL Managed Instance and configure an Azure Automation runbook to run the script.
C.Migrate the database to Azure SQL Managed Instance and use Elastic Jobs to run the PowerShell script.
D.Migrate the database to Azure SQL Database and use Elastic Jobs to run the PowerShell script.
AnswerA

Azure SQL Managed Instance includes SQL Server Agent, so recreating the job there preserves the PowerShell step with minimal changes. Migrating to single database would require replacing the agent with Elastic Jobs or Azure Automation.

Why this answer

Azure SQL Managed Instance supports SQL Server Agent, including jobs that run PowerShell scripts via CmdExec or PowerShell job steps. By migrating the database and recreating the job with the same script, you preserve the existing automation with minimal changes. This is the only option that keeps the job execution environment identical to the on-premises setup.

Exam trap

The trap here is that candidates assume Azure SQL Database is a suitable target because it is the most common PaaS offering, but they overlook that SQL Managed Instance is required to retain SQL Server Agent and PowerShell job step support, which Azure SQL Database lacks entirely.

How to eliminate wrong answers

Option B is wrong because Azure Automation runbooks require additional configuration, credential management, and do not integrate directly with SQL Managed Instance's native job scheduling; this introduces unnecessary complexity and deviates from the minimal-change requirement. Option C is wrong because Elastic Jobs are designed for Azure SQL Database and SQL Managed Instance, but they execute T-SQL scripts, not PowerShell scripts, and would require rewriting the job logic. Option D is wrong because Azure SQL Database does not support SQL Server Agent or PowerShell job steps; migrating to Azure SQL Database would lose this functionality entirely, and Elastic Jobs still cannot run PowerShell scripts.

37
Multi-Selecteasy

Which TWO are valid ways to secure access to an Azure SQL Database?

Select 2 answers
A.Use IPsec VPN from on-premises
B.Configure a Virtual Network service endpoint
C.Configure a Private Endpoint
D.Join the database to an on-premises Active Directory domain
E.Disable all firewall rules and rely only on authentication
AnswersB, C

A Virtual Network service endpoint extends the Azure virtual network's identity to Azure SQL Database, letting you restrict the server's firewall to specific subnets. This satisfies the stem's requirement for a valid access-securing method, since it removes public internet exposure for traffic originating inside that subnet.

Why this answer

Option B is correct because a Virtual Network service endpoint extends the Azure VNet identity to Azure SQL Database, allowing you to restrict the logical SQL server's firewall so that only subnets in that VNet can reach the database over the Azure backbone, removing public internet exposure. Option C is correct because a Private Endpoint creates a private IP address for the Azure SQL Database inside your VNet via Azure Private Link, so traffic stays on the Microsoft private network and the public endpoint can be disabled entirely. Option A is not valid because IPsec VPN secures connectivity to a VNet or on-premises network but does not by itself control or secure access to Azure SQL Database's firewall/endpoint.

Option D is not valid because Azure SQL Database cannot be domain-joined to an on-premises Active Directory; it supports Azure AD authentication (and AD DS via Azure AD DS), not a direct domain join. Option E is not valid because disabling all firewall rules would expose the database publicly and relying only on authentication does not secure network access, which is the point of the question.

Exam trap

The trap here is that candidates often confuse 'securing access' with 'authentication methods' and incorrectly assume that disabling firewall rules and relying solely on authentication (Option E) is valid, or they think an on-premises AD domain join (Option D) applies to Azure SQL Database, when in fact Azure SQL only supports Azure AD authentication and network-level controls like service endpoints or private endpoints are required for secure access.

38
MCQeasy

Your company is deploying a new application that will use Azure SQL Database. You need to ensure that all connections to the database use Microsoft Entra ID authentication. Which step is required to enable this?

A.Configure an Entra ID administrator for the Azure SQL logical server.
B.Enable the Azure SQL Database firewall to allow only Entra ID IP addresses.
C.Create a contained database user mapped to an Entra ID identity.
D.Set the database to read-only mode.
AnswerA

Configuring a Microsoft Entra ID administrator for the Azure SQL logical server is mandatory before Entra authentication can be enabled. This server-level assignment creates the security principal that authorises token-based connections, satisfying the requirement that all database connections use Microsoft Entra ID rather than SQL logins.

Why this answer

To enforce Microsoft Entra ID authentication for all connections to Azure SQL Database, you must first configure an Entra ID administrator at the logical server level. This step establishes the server’s trust relationship with the Entra ID tenant, enabling token-based authentication using OAuth 2.0. Without this administrator, Entra ID authentication cannot be used, and only SQL authentication would be available.

Exam trap

The trap here is that candidates often confuse the server-level Entra ID administrator configuration (a prerequisite) with the creation of contained database users (a downstream step), leading them to select Option C as the first required step.

How to eliminate wrong answers

Option B is wrong because the Azure SQL Database firewall controls network access by IP address or virtual network rules, not authentication methods; it cannot restrict authentication to Entra ID only. Option C is wrong because creating a contained database user mapped to an Entra ID identity is a step taken after the server-level Entra ID administrator is configured, not the prerequisite to enable Entra ID authentication. Option D is wrong because setting the database to read-only mode prevents write operations but does not enforce any authentication method; it is unrelated to authentication configuration.

39
MCQeasy

You need to create an Azure SQL Database that will be used by a new application. The database must support JSON data storage and querying. Which data type should you use to store JSON documents?

A.TEXT
B.NVARCHAR
C.XML
D.VARCHAR
AnswerB

NVARCHAR stores JSON documents as text, and Azure SQL Database's built-in JSON functions — JSON_VALUE, JSON_QUERY and OPENJSON — parse and query that text without a native JSON type. This satisfies the requirement to store and query JSON data, unlike XML or other types.

Why this answer

B is correct because Azure SQL Database uses the NVARCHAR data type to store JSON documents as text. JSON is stored as a string in NVARCHAR columns, which supports Unicode characters and allows the use of built-in JSON functions like JSON_VALUE, JSON_QUERY, OPENJSON, and ISJSON for validation and querying. NVARCHAR(MAX) is recommended for large or variable-length JSON documents.

Exam trap

The trap here is that candidates often assume JSON requires a special data type like XML or a binary format, but Azure SQL Database stores JSON as plain text in NVARCHAR, leveraging the same string-based approach used for other semi-structured data.

How to eliminate wrong answers

Option A is wrong because TEXT is a deprecated data type in SQL Server and Azure SQL Database, and it does not support the JSON functions or Unicode characters needed for modern JSON processing. Option C is wrong because XML is designed for XML data and its associated XQuery functions, not for JSON; using XML would require conversion and lacks native JSON support. Option D is wrong because VARCHAR is a non-Unicode data type that cannot properly store JSON containing Unicode characters, and it is not optimized for the JSON functions in Azure SQL Database.

40
MCQmedium

You are deploying an Azure SQL Managed Instance for a legacy application that requires SQL Server Agent jobs and cross-database queries. The instance must be able to access an on-premises file share for backup and restore operations. You need to configure network connectivity so that the managed instance can communicate with the on-premises network. What should you implement?

A.Enable a public endpoint on the managed instance and allow access from the on-premises public IP address.
B.Configure a site-to-site VPN or ExpressRoute between the on-premises network and the Azure virtual network that hosts the managed instance.
C.Create a VNet peering between the managed instance subnet and the on-premises network.
D.Configure an Azure Private Link endpoint for the managed instance and connect it to the on-premises network.
AnswerB

Azure SQL Managed Instance is deployed inside an Azure virtual network subnet and requires network connectivity to on-premises resources. A site-to-site VPN or ExpressRoute provides the necessary private connection. This allows the managed instance to access on-premises file shares and other resources securely without exposing them to the public internet.

Why this answer

Azure SQL Managed Instance is deployed in a virtual network subnet and requires a site-to-site VPN or ExpressRoute to communicate with on-premises resources. This provides a private, secure connection that allows the managed instance to access on-premises file shares for backup and restore. Public endpoints, VNet peering, and Private Link do not provide the necessary outbound connectivity to on-premises networks.

Exam trap

The trap here is confusing inbound connectivity to the managed instance with outbound connectivity from the managed instance to on-premises resources, leading to the selection of a public endpoint or Private Link instead of a VPN or ExpressRoute.

41
Multi-Selecthard

You are configuring an Azure SQL Database to meet a compliance requirement that mandates encryption of data at rest with customer-managed keys and the ability to audit all access to the database. You need to implement the necessary features. Which two actions should you perform? (Choose two.)

Select 2 answers
A.Implement dynamic data masking on all sensitive columns.
B.Configure Always Encrypted with column master keys in Azure Key Vault.
C.Enable transparent data encryption (TDE) with a customer-managed key stored in Azure Key Vault.
D.Enable Advanced Threat Protection on the Azure SQL Database.
E.Configure SQL auditing to write audit logs to an Azure Storage account or Log Analytics workspace.
AnswersC, E

TDE with a customer-managed key in Azure Key Vault satisfies the encryption at rest requirement. It allows you to control the encryption key and meet compliance mandates. This is a direct action to encrypt the database at rest using your own key, which is essential for the scenario.

Why this answer

To meet encryption at rest with customer-managed keys, enable TDE with a customer-managed key in Azure Key Vault. To audit all access, configure SQL auditing to a storage account or Log Analytics. Advanced Threat Protection is for threat detection, dynamic data masking is for masking, and Always Encrypted is for column-level encryption, not full database encryption at rest.

Exam trap

The trap here is confusing Always Encrypted with TDE for encryption at rest; Always Encrypted only protects specific columns and does not encrypt the entire database.

42
MCQhard

You are deploying an Azure SQL Managed Instance to support a lift-and-shift migration of an on-premises SQL Server database. The application requires the ability to restore a database from a backup taken on an on-premises SQL Server 2019 instance. The backup file is stored in an Azure Storage account. You need to restore the database to the managed instance. What should you do first?

A.Import the backup file into an Azure SQL Database using the SqlPackage utility.
B.Use the RESTORE DATABASE statement with the FROM URL clause pointing to the backup file in Azure Storage.
C.Configure Azure Backup to back up the on-premises SQL Server and restore directly to the managed instance.
D.Use the Data Migration Assistant to migrate the database schema and data to the managed instance.
AnswerB

Azure SQL Managed Instance supports native RESTORE DATABASE from a backup file stored in Azure Blob Storage using the FROM URL clause. This is the primary method for restoring on-premises backups to a managed instance, provided the backup is a full backup and the storage account is accessible with a SAS token or managed identity.

Why this answer

Azure SQL Managed Instance supports the RESTORE DATABASE statement with the FROM URL clause, allowing you to restore a native SQL Server backup stored in Azure Blob Storage. This is the correct first step to restore the on-premises backup. Other tools like SqlPackage or DMA do not support native backup restoration.

Exam trap

The trap here is assuming that any migration tool can restore a native backup, when only the RESTORE DATABASE ... FROM URL command is designed for that purpose on Managed Instance.

43
MCQhard

You have an Azure SQL Database with Query Store enabled. You notice that a critical stored procedure has regressed in performance. You need to force a previous, better-performing execution plan for that query. What should you do?

A.Disable and re-enable Query Store to reset the plans.
B.Execute sys.sp_query_store_set_hints to add a query hint.
C.Use sys.dm_db_tuning_recommendations to apply a plan.
D.Execute sys.sp_query_store_force_plan with the query_id and plan_id.
AnswerD

Query Store persists multiple plans per query, and sys.sp_query_store_force_plan pins the specified plan_id to the query_id, forcing the optimiser to reuse the previously better-performing plan without altering the stored procedure or clearing the plan cache.

Why this answer

`sys.sp_query_store_force_plan` is the dedicated system stored procedure in Azure SQL Database that forces the Query Store to use a specific execution plan for a given query. When a stored procedure's performance regresses, you identify the query_id and plan_id of the better-performing plan from Query Store views and execute this procedure to pin that plan, overriding the optimizer's choice.

Exam trap

The trap here is that candidates confuse the DMV for recommendations (`sys.dm_db_tuning_recommendations`) with the actual stored procedure to enforce a plan, or they think resetting Query Store is a valid troubleshooting step when it actually destroys historical data.

How to eliminate wrong answers

Option A is wrong because disabling and re-enabling Query Store would clear all historical plan data and force statistics, losing the ability to identify and force a previous good plan, which is counterproductive. Option B is wrong because `sys.sp_query_store_set_hints` is used to add query-level hints (e.g., `RECOMPILE`, `MAXDOP`) to influence future plan generation, not to force an existing historical plan. Option C is wrong because `sys.dm_db_tuning_recommendations` is a dynamic management view that surfaces automated tuning recommendations (e.g., create/drop indexes, force plan), but applying a plan force requires executing `sys.sp_query_store_force_plan` directly; the DMV itself does not apply changes.

44
Multi-Selectmedium

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

Select 2 answers
A.Create contained database users mapped to Microsoft Entra ID identities
B.Assign a Microsoft Entra ID user or group as the Azure SQL Database admin
C.Set the database's authentication mode to 'Azure AD Only Authentication'
D.Deploy the database in Azure SQL Managed Instance
E.Register the application in Microsoft Entra ID
AnswersA, B

This is for granting access, not enabling authentication.

Why this answer

To enable Microsoft Entra ID authentication for an Azure SQL Database, you must first assign a Microsoft Entra ID user or group as the Azure SQL Database admin (Option B). After the admin is assigned, you create contained database users mapped to Microsoft Entra ID identities in the database (Option A) so those identities can authenticate. Setting the database's authentication mode to 'Azure AD Only Authentication' (Option C) is optional and enforces that only Microsoft Entra ID identities can connect; it is not required to enable Microsoft Entra ID authentication.

Azure SQL Managed Instance (Option D) and registering an application in Microsoft Entra ID (Option E) are not required.

Exam trap

Candidates often select only the admin assignment or mistakenly choose Azure AD Only mode. Enabling Microsoft Entra ID authentication requires both assigning an Entra ID admin and then creating contained database users mapped to Entra ID identities. Azure AD Only mode is an optional hardening step.

45
MCQmedium

Your company is deploying a multi-tenant application using Azure SQL Database. Each tenant gets its own database. You need to manage resources efficiently while ensuring performance isolation between tenants. The number of tenants fluctuates, and you want to minimize cost. What is the best strategy?

A.Deploy each tenant's database as a single database with reserved capacity
B.Use a single Hyperscale database with schema per tenant
C.Use a single Azure SQL Managed Instance with multiple databases
D.Use an elastic pool and add databases as needed
AnswerD

Elastic pools share provisioned eDTUs or vCores across databases, so fluctuating tenant counts consume pooled resources rather than per-database minimums. This satisfies cost minimisation while performance isolation is maintained because each tenant retains its own database.

Why this answer

Elastic pools are designed for multi-tenant SaaS scenarios where each tenant has its own database but usage patterns are unpredictable. They provide performance isolation through per-database resource limits (e.g., min/max DTUs or vCores) while sharing a fixed pool of resources, which minimizes cost by allowing idle databases to borrow from others. This matches the requirement of fluctuating tenant counts and cost efficiency.

Exam trap

The trap here is that candidates confuse 'performance isolation' with 'dedicated resources' and choose single databases (Option A), not realizing that elastic pools provide isolation via per-database resource caps while sharing a common pool for cost efficiency.

How to eliminate wrong answers

Option A is wrong because deploying each tenant's database as a single database with reserved capacity locks in fixed resources per database, leading to over-provisioning and higher costs when tenant activity fluctuates. Option B is wrong because a single Hyperscale database with schema per tenant breaks performance isolation — a noisy tenant can consume shared resources (e.g., log throughput or page server I/O) and impact others, plus Hyperscale is optimized for large, single databases, not multi-tenant isolation. Option C is wrong because Azure SQL Managed Instance is a single-instance deployment with shared resources across all databases; it lacks the per-database resource governance and elastic scaling of an elastic pool, and it is more expensive for many small databases.

46
MCQhard

You are planning to deploy an Azure SQL Managed Instance to host several databases migrated from an on-premises SQL Server. The instance must support cross-database queries, SQL Server Agent jobs, and Service Broker. You need to ensure that the instance can handle the expected IOPS and throughput requirements. Which configuration should you implement?

A.Deploy the instance in the Business Critical service tier with local SSD storage.
B.Deploy the instance in the General Purpose service tier with standard storage.
C.Deploy the instance in the General Purpose service tier and enable the In-Memory OLTP feature.
D.Deploy the instance in the Business Critical service tier and configure geo-replication for read scale-out.
AnswerA

The Business Critical service tier in Azure SQL Managed Instance uses local SSD storage and provides the lowest latency and highest IOPS and throughput. It also includes a built-in read-only replica for offloading reporting. It fully supports cross-database queries, SQL Server Agent, and Service Broker. This tier is designed for high-performance and high-availability requirements, making it the best fit for the described workload.

Why this answer

The Business Critical service tier in Azure SQL Managed Instance uses local SSD storage, delivering the lowest latency and highest IOPS and throughput. It also supports cross-database queries, SQL Server Agent, and Service Broker, which are required. The General Purpose tier uses remote storage and may not meet high-performance demands.

In-Memory OLTP alone does not overcome storage limitations, and geo-replication is for disaster recovery, not local performance. Therefore, Business Critical with local SSD is the correct choice.

Exam trap

The trap here is assuming that enabling In-Memory OLTP in the General Purpose tier will provide the same performance as the Business Critical tier, when the storage layer is the limiting factor.

47
MCQhard

Your company is migrating an on-premises SQL Server database to Azure SQL Managed Instance. The database uses SQL Server Agent jobs, Service Broker, and cross-database queries within the same instance. Which PaaS option should you choose?

A.Azure SQL Managed Instance
B.Azure SQL Database
C.SQL Server on Azure Virtual Machine
D.Azure SQL Database with elastic query
AnswerA

Azure SQL Managed Instance supports SQL Server Agent, Service Broker and cross-database queries within the same instance, so the workload migrates as PaaS with minimal code change, unlike Azure SQL Database which lacks these instance-scoped features.

Why this answer

Azure SQL Managed Instance is the correct choice because it provides near 100% compatibility with on-premises SQL Server, including support for SQL Server Agent jobs, Service Broker, and cross-database queries within the same instance. These features are not available in Azure SQL Database, which is a PaaS offering with a more restricted surface area. SQL Server on Azure VM is IaaS and requires manual management, while elastic query in Azure SQL Database only supports cross-database queries across different databases, not the full Service Broker or Agent functionality.

Exam trap

The trap here is that candidates often confuse Azure SQL Database with Azure SQL Managed Instance, assuming that all PaaS SQL offerings support the same features, but Azure SQL Database deliberately omits instance-scoped features like Agent and Service Broker to maintain a multi-tenant architecture.

How to eliminate wrong answers

Option B is wrong because Azure SQL Database does not support SQL Server Agent jobs, Service Broker, or cross-database queries within the same instance; it uses elastic jobs and has limited cross-database query capabilities via elastic query. Option C is wrong because SQL Server on Azure Virtual Machine is an IaaS solution, not a PaaS option, and requires you to manage the underlying OS and SQL Server instance, including high availability and backups. Option D is wrong because Azure SQL Database with elastic query only enables cross-database queries across different databases in the same logical server, but it still lacks SQL Server Agent and Service Broker support, and is not a separate PaaS offering.

48
MCQmedium

You are designing a new Azure SQL Database for a critical OLTP workload. The database will be used by a global application with users in North America, Europe, and Asia. The primary requirement is low-latency reads for all regions. You need to choose a deployment option that supports geo-distributed reads and provides a single write endpoint. Which option should you select?

A.Azure SQL Database with active geo-replication
B.Azure SQL Managed Instance with failover groups
C.Azure SQL Database with failover groups
D.Azure SQL Database Hyperscale with geo-replication
AnswerC

Failover groups only support one readable secondary region.

Why this answer

Azure SQL Database failover groups (Option C) is the correct choice. A failover group provides a single read-write listener endpoint that automatically directs writes to the current primary, while also exposing a read-only listener endpoint that load-balances connections across geo-replicated readable secondaries in other regions. This directly satisfies the requirements for a single write endpoint and low-latency geo-distributed reads.

Active geo-replication (Option A) supports readable secondaries but does not provide a single write endpoint. Azure SQL Managed Instance failover groups (Option B) also provide these capabilities, but the scenario specifies Azure SQL Database, not Managed Instance. Hyperscale with geo-replication (Option D) is not required to meet these requirements; Hyperscale is primarily a scalability and performance tier, and geo-replication alone does not provide a single write endpoint.

Exam trap

Candidates often assume that a specialized tier such as Hyperscale is required for geo-distributed reads, or they confuse active geo-replication with failover groups. The key distinction is that failover groups provide a single read-write listener endpoint plus a read-only listener for geo-distributed reads, whereas active geo-replication requires connections to individual server endpoints and does not provide a single write endpoint.

How to eliminate wrong answers

Option A is wrong because active geo-replication for Azure SQL Database supports readable secondaries but does not provide automatic failover groups with a listener endpoint, making it less suitable for a global application requiring managed failover and low-latency reads. Option B is wrong because Azure SQL Managed Instance with failover groups supports geo-replication but is not optimized for the Hyperscale distributed storage architecture that provides the fastest read scale-out for global OLTP workloads. Option C is wrong because Azure SQL Database with failover groups (non-Hyperscale) uses the standard tier, which has limited storage and performance scaling compared to Hyperscale, and does not offer the same level of read replica distribution for global low-latency reads.

49
MCQmedium

You are planning to migrate an on-premises SQL Server 2019 database to Azure SQL Managed Instance. The database uses cross-database queries and SQL Server Agent jobs. You need to ensure that the migration supports these features with minimal changes. What should you do first?

A.Deploy an Azure SQL Managed Instance and restore a backup of the on-premises database directly.
B.Run Data Migration Assistant (DMA) to assess the database for compatibility issues with Azure SQL Managed Instance.
C.Use the Azure Database Migration Service (DMS) to perform an online migration without prior assessment.
D.Configure transactional replication from the on-premises SQL Server to Azure SQL Managed Instance.
AnswerB

Data Migration Assistant (DMA) assesses on-premises SQL Server databases for compatibility with Azure SQL Managed Instance and identifies unsupported features. It provides detailed reports on cross-database queries, SQL Server Agent jobs, and other components, helping you plan the migration. Running DMA first ensures you understand any necessary changes before migrating, minimizing surprises.

Why this answer

Data Migration Assistant (DMA) is the recommended tool to assess on-premises SQL Server databases for compatibility with Azure SQL Managed Instance. It identifies unsupported features such as certain cross-database queries and SQL Server Agent job steps, allowing you to plan remediation. Azure DMS is for migration, transactional replication is an alternative but not an assessment, and direct restore does not evaluate compatibility.

Exam trap

The trap here is assuming that Azure Database Migration Service can assess compatibility; it only migrates, so you must use DMA for assessment first.

50
MCQmedium

You are deploying an Azure SQL Database for a new line-of-business application. The database must remain fully available during planned maintenance windows and provide a secondary copy in a different Azure region for disaster recovery. You need to configure the deployment to meet these requirements with minimal administrative effort. What should you implement?

A.Configure an auto-failover group that includes the primary Azure SQL Database and a secondary database in a paired region.
B.Enable active geo-replication for the Azure SQL Database and configure the application to connect to the secondary database manually during failover.
C.Create a zone-redundant Azure SQL Database and rely on the built-in high availability within the primary region.
D.Deploy the Azure SQL Database with the Business Critical service tier and configure long-term retention backups to a different region.
AnswerA

Auto-failover groups provide a read-write listener endpoint and a read-only listener endpoint, enabling seamless failover to a secondary region during planned or unplanned outages. They also support planned failover for maintenance, keeping the application available. This directly meets the requirements with minimal administrative effort because the failover policy and listener endpoints are managed by Azure.

Why this answer

Auto-failover groups are designed to provide disaster recovery and high availability across regions with minimal administrative overhead. They include a read-write listener and a read-only listener, enabling applications to reconnect automatically after failover. Planned failover can be initiated for maintenance, keeping the database available.

Active geo-replication lacks automatic failover and listener endpoints, zone redundancy only covers a single region, and Business Critical tier does not provide cross-region replication.

Exam trap

The trap here is assuming that zone redundancy or Business Critical tier alone provides cross-region disaster recovery, when they only protect against local failures.

51
Multi-Selecthard

Which THREE of the following are required steps to configure a failover group for an Azure SQL Database with a readable secondary in a different region?

Select 3 answers
A.Create a server-level firewall rule on the secondary server to allow client IPs.
B.Add the primary database to the failover group.
C.Configure a grace period of at least 1 hour.
D.Create a secondary server in the target region with the same administrative login.
E.Set the failover group's read/write failover policy to 'Automatic' or 'Manual'.
AnswersB, D, E

A failover group is a container that holds the databases to be replicated and failed over. Adding the primary database to the group initiates geo-replication to the paired secondary server, so this step is mandatory before the group can serve read/write traffic.

Why this answer

Option B is correct because a failover group is defined over databases, so the primary database must be added to the failover group (via New-AzSqlDatabaseFailoverGroup or the portal) to be replicated and made failover-eligible. Option D is correct because you must first provision a secondary Azure SQL logical server in the target region, and it must use the same administrator login and password as the primary server so the contained database users and logins resolve after failover. Option E is correct because the failover group requires a read/write failover policy to be set to either Automatic or Manual, which determines whether Azure initiates failover automatically or only on manual trigger.

Option A is not required because failover group configuration does not mandate a server-level firewall rule on the secondary server; firewall rules are managed separately and the secondary is typically accessed through the failover group listener. Option C is not required because the grace period is a configurable value (default 1 hour) that can be set to other durations, and it is not a mandatory step to create the failover group.

Exam trap

The trap here is that candidates may think creating firewall rules on the secondary server is required for failover group setup, but those rules are only needed for direct client connections to the secondary, not for the replication or failover process itself.

52
MCQmedium

You are deploying an Azure SQL Database for a new line-of-business application. The application's usage pattern is unpredictable, with long idle periods and occasional bursts of heavy read/write activity. You need to minimize compute cost while ensuring the database automatically scales compute resources based on workload demand. The database must remain online during scaling operations. What should you do?

A.Configure the database with the General Purpose service tier and the Serverless compute tier, setting an appropriate auto-pause delay.
B.Configure the database with the Basic service tier and set a maximum database size of 2 GB.
C.Configure the database with the Hyperscale service tier and enable read-scale out.
D.Configure the database with the Business Critical service tier and enable zone redundancy.
AnswerA

The Serverless compute tier automatically scales vCores based on workload and can pause the database during idle periods, reducing cost. Setting an auto-pause delay allows the database to go offline after inactivity, and it resumes automatically on the next connection. This matches the requirement to minimize cost while handling bursts and staying online during scaling.

Why this answer

The Serverless compute tier in Azure SQL Database is designed for intermittent, unpredictable workloads. It automatically scales compute based on demand and can pause during inactivity, reducing cost. Configuring an appropriate auto-pause delay ensures the database pauses when idle and resumes on the next connection, keeping the database available during scaling without manual intervention.

Exam trap

The trap here is assuming that high-availability features like zone redundancy or read-scale out provide automatic cost-saving compute scaling, when they address resilience or read performance instead.

53
MCQmedium

You need to migrate an on-premises SQL Server 2019 database to Azure SQL Database with minimal downtime. The database is 500 GB and uses some features not supported in Azure SQL Database, such as FileTables. What is the best migration strategy?

A.Set up log shipping to an Azure SQL Database
B.Perform an offline migration using Azure Database Migration Service
C.Export a BACPAC file from the source and import it to Azure SQL Database
D.Use Azure Database Migration Service with online mode after removing FileTables
AnswerD

Azure Database Migration Service online mode replicates ongoing transaction log changes while the 500 GB database copies, satisfying the minimal-downtime constraint. Removing FileTables first resolves the unsupported-feature blocker, since Azure SQL Database cannot host them. Offline modes or backup restores would incur hours of write downtime instead.

Why this answer

Azure Database Migration Service (DMS) with online mode supports minimal-downtime migrations by continuously replicating ongoing changes from the source SQL Server to Azure SQL Database. However, FileTables are not supported in Azure SQL Database, so they must be removed from the source database before migration. This approach ensures near-zero downtime while addressing the unsupported feature.

Exam trap

The trap here is that candidates may assume log shipping (Option A) is viable for Azure SQL Database, but log shipping is not supported for Azure SQL Database as it requires SQL Server Agent and file-level restore operations, which are not available in that PaaS offering.

How to eliminate wrong answers

Option A is wrong because log shipping is not supported to Azure SQL Database; it only works between on-premises SQL Server instances or to SQL Server on Azure VMs, not to Azure SQL Database. Option B is wrong because an offline migration using Azure Database Migration Service would require taking the source database offline, causing significant downtime, which contradicts the requirement for minimal downtime. Option C is wrong because exporting a BACPAC file and importing it to Azure SQL Database is an offline process that does not support ongoing replication, leading to downtime, and it also does not handle unsupported features like FileTables automatically.

54
MCQeasy

You are planning to deploy a new Azure SQL Database for an internal HR application. The application is used only during business hours on weekdays and can tolerate a brief outage if the database needs to be scaled. To minimize cost, you need the database to automatically scale compute resources based on workload demand and allow the database to be paused when not in use. Which purchasing model and service tier should you choose?

A.DTU-based purchasing model with the Standard service tier
B.vCore-based purchasing model with the Business Critical service tier and provisioned compute
C.vCore-based purchasing model with the General Purpose service tier and serverless compute
D.DTU-based purchasing model with the Basic service tier
AnswerC

The vCore-based General Purpose tier with serverless compute automatically scales compute based on workload and can pause the database during inactivity, billing only for storage while paused. This directly satisfies the need to minimize cost by scaling automatically and pausing when not in use, while still providing the necessary compute for the HR application.

Why this answer

The vCore-based General Purpose tier with serverless compute is designed for intermittent, unpredictable workloads. It automatically scales compute within a configured range and pauses the database when inactive, reducing cost. The other options use provisioned compute or DTU-based models that do not support auto-scaling or auto-pausing, so they cannot meet the cost-saving requirements.

Exam trap

The trap here is assuming that any low-cost tier supports auto-pause and auto-scaling, when in fact only the serverless compute tier in the vCore model provides those capabilities.

55
MCQhard

You are a database administrator for a financial services company that uses Azure SQL Database. The company must ensure that all database backups are encrypted with a customer-managed key stored in Azure Key Vault. You need to configure the database to meet this requirement. What should you do first?

A.Create an Azure Key Vault and generate or import a key.
B.Enable transparent data encryption (TDE) with a service-managed key.
C.Configure Azure SQL Database auditing to log all access to the database.
D.Enable Advanced Threat Protection on the Azure SQL server.
AnswerA

Before you can use a customer-managed key for TDE, you must have a key in Azure Key Vault. This involves creating a key vault, generating or importing a key, and granting the Azure SQL logical server access to the vault. This is the foundational step to enable TDE with customer-managed keys, ensuring compliance with the requirement.

Why this answer

To use a customer-managed key for TDE, the key must exist in Azure Key Vault and the Azure SQL logical server must be granted permissions to access it. Creating the key vault and key is the necessary first step before enabling TDE with that key. Other options are security features but do not directly enable customer-managed key encryption.

Exam trap

The trap here is confusing security features like auditing or Advanced Threat Protection with encryption key management, which are separate concerns.

56
MCQmedium

You are deploying an Azure SQL Database that will be used by a global application. You need to ensure that read-intensive workloads are offloaded from the primary database to improve performance. Which feature should you enable?

A.Read scale-out.
B.Automatic tuning.
C.Connection pooling.
D.Active geo-replication.
AnswerA

Read scale-out uses the built-in read-only replica, routing read-intensive connections to it via the ApplicationIntent=ReadOnly parameter, so the primary replica handles writes only. This directly satisfies the stem's requirement to offload read workloads and improve performance, without extra cost or configuration on Business Critical or Hyperscale tiers.

Why this answer

Read scale-out (A) is the correct feature because it allows you to offload read-only workloads to a read-only replica of the Azure SQL Database. By enabling the 'Read scale-out' property, the database automatically routes connections with `ApplicationIntent=ReadOnly` to a secondary replica, freeing the primary from read-intensive queries and improving overall performance for write operations.

Exam trap

The trap here is that candidates often confuse Active geo-replication with read scale-out, but the key distinction is that read scale-out is a single-database feature within the same region that transparently routes read-only connections, whereas geo-replication requires explicit connection string changes and is designed for cross-region disaster recovery.

How to eliminate wrong answers

Option B is wrong because Automatic tuning is a feature that uses AI to optimize query performance (e.g., index creation, plan forcing), but it does not offload read workloads to a separate replica. Option C is wrong because Connection pooling is a client-side technique that reuses database connections to reduce latency, but it does not redirect read traffic to a secondary database. Option D is wrong because Active geo-replication creates readable secondary replicas in different regions for disaster recovery and geo-distributed reads, but it requires manual connection string changes or application logic to route read traffic, unlike the transparent, built-in read scale-out feature.

57
Multi-Selectmedium

You are deploying an Azure SQL Database and need to enforce that all connections to the database use encrypted channels and that the server presents a specific certificate that the client validates. You also need to ensure that the database cannot be accessed from the public internet except through a private endpoint. Which two actions should you perform? (Choose two.)

Select 2 answers
A.Enable Transparent Data Encryption (TDE) with a customer-managed key stored in Azure Key Vault.
B.Enable Always Encrypted with secure enclaves for the columns that contain sensitive data.
C.Set the Encrypt connection setting to mandatory in the connection string and use TrustServerCertificate=False with a trusted root certificate.
D.Configure an Azure SQL Database firewall rule that allows only the application's public IP address.
E.Configure the Azure SQL Database server to use a private endpoint and disable public network access.
AnswersC, E

Requiring encryption in the connection string forces the client to use TLS, and setting TrustServerCertificate to false makes the client validate the server certificate against a trusted root. This satisfies the requirement that connections use encrypted channels and that the client validates a specific certificate. It works with both public and private endpoints but is essential for certificate validation.

Why this answer

A private endpoint with public network access disabled ensures the logical server is reachable only through a private IP address inside a virtual network, removing exposure to the public internet. Requiring encryption in the connection string and setting TrustServerCertificate to false forces TLS and makes the client validate the server certificate against a trusted root. Together these actions satisfy both the private connectivity and certificate-validation requirements.

Exam trap

The trap here is assuming that Transparent Data Encryption protects data in transit, when TDE only encrypts data at rest and has no effect on the TLS channel or certificate validation.

58
MCQhard

Your company has an Azure SQL Managed Instance that hosts multiple databases. You need to implement a solution to automatically detect and alert on potential SQL injection attacks. The solution must integrate with Microsoft Sentinel for incident response. What should you configure?

A.Enable Microsoft Purview Data Map for the Managed Instance
B.Configure Microsoft Defender XDR for SQL
C.Use Microsoft Intune to manage SQL security policies
D.Enable Microsoft Defender for SQL on the Managed Instance
AnswerD

Microsoft Defender for SQL performs threat detection and advanced threat protection, raising alerts for anomalous activity such as SQL injection. Its alerts flow into Microsoft Defender for Cloud and can be streamed to Microsoft Sentinel for incident response.

Why this answer

Microsoft Defender for SQL on Azure SQL Managed Instance provides built-in SQL injection detection and alerting, which can be integrated directly with Microsoft Sentinel for automated incident response and investigation. This is the correct solution because it offers native vulnerability assessment and threat detection tailored to SQL databases, meeting the requirement for both detection and Sentinel integration.

Exam trap

The trap here is that candidates may confuse Microsoft Defender XDR (a broader security suite) with Microsoft Defender for SQL (the specific service for SQL threat detection), leading them to select Option B instead of the correct D.

How to eliminate wrong answers

Option A is wrong because Microsoft Purview Data Map is a data governance and cataloging service, not a security detection or alerting tool for SQL injection. Option B is wrong because Microsoft Defender XDR (Extended Detection and Response) is a unified security platform for endpoints, identities, and cloud apps, but it does not directly provide SQL injection detection for Azure SQL Managed Instance; that capability is part of Defender for SQL. Option C is wrong because Microsoft Intune is a mobile device management (MDM) and mobile application management (MAM) service, not a tool for configuring SQL security policies or detecting SQL injection attacks.

59
MCQmedium

You are monitoring an Azure SQL Database and notice a pattern of high CPU usage during business hours. You need to identify the queries consuming the most CPU over the last 24 hours. Which dynamic management view should you query?

A.sys.dm_exec_requests
B.sys.dm_exec_sessions
C.sys.dm_exec_query_stats
D.sys.dm_os_performance_counters
AnswerC

sys.dm_exec_query_stats aggregates cumulative CPU time per cached query plan, letting you rank statements by total worker time across the 24-hour window. Unlike sys.dm_exec_requests, which shows only currently executing queries, it retains historical totals, directly satisfying the requirement to identify the highest-CPU queries during business hours.

Why this answer

sys.dm_exec_query_stats (Option C) is the correct DMV because it returns aggregate performance statistics for cached query plans, including total CPU time (total_worker_time), execution count, and last execution time. By querying this view and ordering by total_worker_time descending, you can identify the queries that have consumed the most CPU over the last 24 hours, directly addressing the pattern of high CPU usage during business hours.

Exam trap

The trap here is that candidates confuse sys.dm_exec_requests (current activity) with sys.dm_exec_query_stats (historical aggregated stats), leading them to choose Option A because they think 'requests' implies all recent queries, but it only shows currently running queries.

How to eliminate wrong answers

Option A is wrong because sys.dm_exec_requests shows currently executing requests at the moment of querying, not historical CPU consumption over the last 24 hours. Option B is wrong because sys.dm_exec_sessions provides session-level information such as login time and host details, but does not contain per-query CPU usage statistics. Option D is wrong because sys.dm_os_performance_counters returns operating system performance counter values (e.g., CPU utilization percentage), not the specific queries responsible for high CPU usage.

60
Drag & Dropmedium

Drag and drop the steps to configure geo-replication for an Azure SQL Database in the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Geo-replication requires a secondary server in another region, then configuring the secondary database, initiating replication, and verifying the link. Failover is a separate step.

61
MCQmedium

You are managing an Azure SQL Database that experiences periods of high CPU usage. You need to identify the top resource-consuming queries and their execution plans to optimize performance. You want to use a built-in feature that provides historical query performance data with minimal configuration. What should you use?

A.Dynamic management views (DMVs) such as sys.dm_exec_query_stats
B.Azure SQL Analytics
C.Automatic tuning
D.Query Store
AnswerD

Query Store automatically captures query execution history, including execution plans, runtime statistics, and wait categories. It is built into Azure SQL Database and requires minimal configuration—just enabling it on the database. It allows you to identify top resource-consuming queries and analyze plan changes over time, making it ideal for performance tuning.

Why this answer

Query Store is a built-in feature that captures query execution history, plans, and runtime statistics. It requires minimal setup and provides the historical data needed to identify top CPU-consuming queries and analyze their execution plans, making it the best choice for performance tuning.

Exam trap

The trap here is thinking that DMVs provide historical data, when they only show current cached statistics and lose history on restart.

62
MCQmedium

You manage an Azure SQL Database that is experiencing performance degradation during peak hours. You suspect that the current pricing tier is insufficient. You need to increase performance with minimal downtime. Which action should you take?

A.Use the Azure portal to scale up the DTU or vCore service tier.
B.Create a new database on a higher tier and copy data manually.
C.Enable read scale-out to offload read workloads.
D.Implement horizontal sharding across multiple databases.
AnswerA

Scaling up the DTU or vCore service tier through the Azure portal satisfies the minimal-downtime constraint because Azure SQL Database performs this as an online operation, briefly failing over to the new compute level while the database remains available. This directly addresses the insufficient pricing tier causing peak-hour degradation.

Why this answer

Scaling up the DTU or vCore service tier in the Azure portal is a dynamic scaling operation that typically completes within minutes and does not require application downtime. Azure SQL Database supports online scaling, meaning the database remains available during the transition, with only a brief connection failover at the end. This directly addresses the need to increase performance during peak hours with minimal disruption.

Exam trap

The trap here is that candidates might confuse scaling up (vertical scaling) with scaling out (horizontal scaling) or offloading reads, and choose a more complex or disruptive option instead of the straightforward, supported online scaling operation.

How to eliminate wrong answers

Option B is wrong because manually creating a new database and copying data introduces significant downtime and complexity, and is not necessary when Azure SQL Database supports online scaling. Option C is wrong because enabling read scale-out only offloads read-only workloads to a readable secondary replica; it does not increase the compute or storage capacity of the primary database to handle peak-hour performance degradation. Option D is wrong because horizontal sharding is a design pattern for distributing data across multiple databases to handle massive scale, not a quick operational fix for a single database experiencing performance issues during peak hours.

63
MCQeasy

You need to ensure that all queries executed against an Azure SQL Database are audited and logged to a Log Analytics workspace for security analysis. Which feature should you enable?

A.SQL Vulnerability Assessment
B.Advanced Threat Protection
C.Microsoft Defender for Cloud
D.Azure SQL Auditing
AnswerD

Azure SQL Auditing writes query events to a Log Analytics workspace, satisfying the requirement to audit and log all queries for security analysis. It captures statement-level activity directly, unlike metrics or Query Store, which record performance data rather than a security audit trail.

Why this answer

Azure SQL Auditing is the feature specifically designed to track database events and write them to an audit log destination, including a Log Analytics workspace. This enables security analysis by capturing all queries executed against the database, which can then be queried and analyzed within the workspace. The other options focus on vulnerability scanning, threat detection, or security posture management, not on recording query execution logs.

Exam trap

The trap here is that candidates often confuse 'threat detection' (Advanced Threat Protection) or 'security posture management' (Microsoft Defender for Cloud) with the specific need for a full query audit log, but only Azure SQL Auditing provides the granular, configurable logging of all executed queries to a Log Analytics workspace.

How to eliminate wrong answers

Option A is wrong because SQL Vulnerability Assessment is a service that scans for potential database vulnerabilities and misconfigurations, not a feature that logs query execution. Option B is wrong because Advanced Threat Protection detects anomalous activities and potential threats, but it does not provide a full audit trail of all queries. Option C is wrong because Microsoft Defender for Cloud is a unified security management platform that provides security recommendations and threat protection across cloud workloads, but it does not itself enable per-query auditing to a Log Analytics workspace.

64
MCQhard

You are evaluating the configuration of an Azure SQL Database as shown in the exhibit. You need to ensure that the database remains available during a zonal failure without data loss. Which feature contributes to this requirement?

A.General Purpose service tier.
B.Read scale-out.
C.Geo-redundant backup storage.
D.Zone redundancy enabled on Business Critical tier.
AnswerD

Zone redundancy on the Business Critical tier places the primary and secondary replicas across separate availability zones, so a zonal failure triggers failover to a synchronously committed replica with zero data loss. This satisfies the availability requirement during a zonal failure.

Why this answer

Zone redundancy on the Business Critical tier ensures that database replicas are placed in different availability zones within the same Azure region. During a zonal failure, the service automatically fails over to a synchronous replica in another zone, guaranteeing zero data loss because all transactions are synchronously committed across replicas. This directly meets the requirement of remaining available without data loss during a zonal outage.

Exam trap

The trap here is that candidates often confuse zone redundancy (which protects within a region) with geo-redundancy (which protects across regions), or assume that any service tier with high availability features (like General Purpose) can guarantee zero data loss during a zonal failure, when only the Business Critical tier with zone redundancy provides synchronous replication and automatic failover without data loss.

How to eliminate wrong answers

Option A is wrong because the General Purpose service tier uses remote storage and asynchronous replication, which cannot guarantee zero data loss during a zonal failure; it relies on page blob replication that may lose recent writes. Option B is wrong because Read scale-out provides a read-only replica for offloading read workloads, but it does not protect against zonal failures or ensure availability with zero data loss for write operations. Option C is wrong because Geo-redundant backup storage (RA-GRS) protects against regional disasters by storing backups in a paired region, but it does not provide real-time failover or zero data loss during a zonal failure within the primary region.

65
MCQeasy

You are responsible for cost optimization of a non-production Azure SQL Database that is used for development testing. The database is only active during business hours (9 AM to 5 PM) on weekdays. Which compute tier and configuration would minimize cost while ensuring the database is available during working hours?

A.Use the serverless compute tier with auto-pause enabled and a 1-hour auto-pause delay.
B.Use the Hyperscale tier with a minimum of 1 vCore and disable auto-pause.
C.Use the provisioned General Purpose tier with 2 vCores and disable auto-pause.
D.Use the provisioned Business Critical tier with 1 vCore and enable auto-pause.
AnswerA

Serverless compute with auto-pause bills only for active usage, so the database pauses after the one-hour delay and resumes automatically on the next connection. This satisfies the weekday 9-to-5 availability constraint while eliminating compute charges during inactive evenings and weekends, minimising cost for this non-production workload.

Why this answer

The serverless compute tier with auto-pause enabled and a 1-hour auto-pause delay is the most cost-effective choice for a non-production database used only during business hours. Serverless automatically pauses the database after 1 hour of inactivity (e.g., overnight and weekends), charging only for compute during active periods and storage at all times. This aligns perfectly with the 9 AM–5 PM weekday usage pattern, minimizing cost while ensuring the database is available when needed.

Exam trap

The trap here is that candidates may assume any tier with auto-pause enabled is sufficient, but they overlook that the underlying tier (e.g., Business Critical or Hyperscale) has a much higher base cost and is not designed for cost-optimized dev/test scenarios, making serverless the only truly cost-effective choice for intermittent usage.

How to eliminate wrong answers

Option B is wrong because the Hyperscale tier is designed for large, high-throughput production workloads with rapid scaling and read scale-out, not for cost optimization of a small dev/test database; it incurs higher base costs even at 1 vCore and disabling auto-pause means compute runs 24/7. Option C is wrong because the provisioned General Purpose tier with 2 vCores and auto-pause disabled runs compute continuously, incurring charges for idle hours overnight and weekends, which is wasteful for a non-production database. Option D is wrong because the Business Critical tier is a premium tier with high availability and local SSD storage, intended for mission-critical workloads; even with 1 vCore and auto-pause enabled, it is significantly more expensive than serverless and over-provisioned for development testing.

66
MCQmedium

You are configuring Azure SQL Database for a new application. The security policy requires that all connections use Microsoft Entra authentication and that the database blocks IP addresses from outside your corporate network. You also need to ensure that the application can connect without storing credentials in code. Which combination of features should you implement?

A.Always Encrypted, VNet service endpoints, and SQL authentication
B.Microsoft Entra authentication, firewall rules, and managed identity
C.Transparent Data Encryption, IP firewall rules, and connection strings
D.Azure Defender for SQL, firewall rules, and service principal
AnswerB

Managed identity lets the application obtain Microsoft Entra tokens without embedded credentials, satisfying the no-stored-secrets constraint. Firewall rules restrict access to corporate IP ranges, blocking external addresses, while Microsoft Entra authentication replaces SQL logins entirely. Together these three features meet every stated requirement.

Why this answer

It satisfies all three requirements: Microsoft Entra authentication enforces identity-based access, firewall rules block IP addresses outside the corporate network, and a managed identity allows the application to connect without storing credentials in code by using a system-assigned or user-assigned identity to obtain an access token from Microsoft Entra ID.

Exam trap

The trap here is that candidates often confuse managed identity with a service principal, not realizing that a service principal still requires a secret or certificate to be stored, whereas a managed identity eliminates credential storage entirely.

How to eliminate wrong answers

Option A is wrong because Always Encrypted protects data at rest and in transit but does not enforce authentication or IP-based blocking, and SQL authentication does not meet the Microsoft Entra authentication requirement. Option C is wrong because Transparent Data Encryption (TDE) encrypts data at rest but does not control authentication or credentialless connections, and connection strings typically contain credentials. Option D is wrong because Azure Defender for SQL provides security monitoring and threat detection, not authentication or credentialless connectivity, and a service principal still requires credential management (e.g., client secret or certificate) unless combined with managed identity.

67
Multi-Selecteasy

Which TWO actions are required to implement transparent data encryption (TDE) with customer-managed keys for an Azure SQL Database?

Select 2 answers
A.Create an Azure Key Vault and a key.
B.Assign the key to the Azure SQL logical server and enable TDE.
C.Set the backup encryption level to 'Encrypted'.
D.Create a server certificate in the database.
E.Configure column encryption keys in the database.
AnswersA, B

Customer-managed TDE requires an Azure Key Vault holding the asymmetric key that wraps the database encryption protector. Creating the vault and key is the prerequisite step before the SQL logical server can reference it, satisfying the stem's customer-managed key constraint.

Why this answer

Option A is correct because implementing TDE with customer-managed keys (BYOK) requires an Azure Key Vault (or Managed HSM) to hold the asymmetric RSA key that protects the database encryption key; the vault must be created and the key generated before it can be referenced. Option B is correct because the key must be assigned to the Azure SQL logical server (via the server's TDE protector, e.g., Set-AzSqlServerTransparentDataEncryptionProtector or the portal's Transparent data encryption blade) and TDE then enabled so the server uses that customer-managed key as the protector for its databases. Option C is not required because backup encryption in Azure SQL is automatic and tied to TDE; there is no separate 'Encrypted' backup encryption level setting to configure.

Option D is not required because server certificates are a SQL Server on-premises/IaaS mechanism, not how Azure SQL Database BYOK is implemented. Option E is not required because column encryption keys belong to Always Encrypted, a different feature from TDE.

Exam trap

The trap here is that candidates confuse TDE with Always Encrypted or on-premises certificate-based TDE, leading them to select options about column encryption keys or server certificates, which are not part of Azure SQL Database TDE implementation.

68
MCQeasy

You need to deploy an Azure SQL Database that automatically scales compute resources based on workload demand, with minimal administrative overhead. The database should scale between a minimum and maximum number of vCores. Which purchasing model and service tier should you use?

A.DTU-based purchasing model with the Basic service tier.
B.vCore-based purchasing model with the Provisioned compute tier.
C.DTU-based purchasing model with the Standard service tier.
D.vCore-based purchasing model with the Serverless compute tier.
AnswerD

The vCore-based Serverless tier automatically scales compute resources based on workload demand and allows you to set a minimum and maximum number of vCores. It also pauses during idle periods to reduce cost. This model provides minimal administrative overhead because scaling is handled automatically by the platform.

Why this answer

The vCore-based Serverless compute tier is designed for automatic scaling and minimal administration. It scales compute based on workload and can pause during inactivity, making it ideal for applications with unpredictable or intermittent usage. It allows setting a minimum and maximum vCore range, providing control over cost and performance.

Exam trap

The trap here is confusing the Provisioned tier with automatic scaling; Provisioned requires manual scaling, while Serverless scales automatically.

69
Multi-Selectmedium

You are designing a security strategy for Azure SQL Database. You need to ensure that database access is secured using Microsoft Entra ID (formerly Azure Active Directory) authentication. Which THREE actions should you take? (Choose THREE.)

Select 3 answers
A.Create a Microsoft Entra ID administrator for the Azure SQL logical server.
B.Disable SQL Server authentication after migrating to Entra ID.
C.Configure applications to use Microsoft Entra ID with MFA.
D.Enable Transparent Data Encryption (TDE).
E.Create a contained database user mapped to a Microsoft Entra ID principal.
AnswersA, C, E

Creating a Microsoft Entra ID administrator for the logical server establishes the identity that can manage Entra-authenticated access. Without this server-level administrator, database users cannot be mapped to Microsoft Entra ID principals, so it is a required action.

Why this answer

Option A is correct because every Azure SQL logical server must have a Microsoft Entra ID administrator provisioned (via the server's Microsoft Entra admin setting) before Entra authentication can be used to manage and connect to the database. Option C is correct because applications should authenticate using Microsoft Entra ID with MFA, leveraging token-based authentication (for example, Microsoft.Data.SqlClient with Authentication=Active Directory Interactive/Password or managed identity) to enforce strong, centralized identity controls. Option E is correct because contained database users mapped to Microsoft Entra ID principals (CREATE USER ...

FROM EXTERNAL PROVIDER) allow Entra logins to access the database without requiring server-level logins, which is the recommended pattern for Entra-authenticated database access. Option B is not required: disabling SQL authentication is optional and not mandatory for enabling Entra ID authentication, and it can break existing tooling or break-glass scenarios. Option D is not relevant here because TDE provides encryption at rest for data files and does not implement Entra ID authentication for database access.

Exam trap

The trap here is that candidates often confuse enabling Entra ID authentication with disabling SQL Server authentication (Option B) or with enabling TDE (Option D), both of which are independent security controls not required for Entra ID-based access.

70
MCQeasy

You are deploying Azure SQL Database for a new application. You need to ensure that connections from Azure services use a private IP address and do not traverse the public internet. What should you configure?

A.Enable Virtual Network service endpoints for Azure SQL Database
B.Use Azure Private Link for Azure SQL Database
C.Configure the Azure SQL Database firewall to allow Azure services
D.Deploy Azure SQL Database inside a virtual network
AnswerB

Azure Private Link creates a private endpoint with a private IP address inside your virtual network, so connections from Azure services reach Azure SQL Database over the Microsoft backbone rather than the public internet, satisfying the private IP requirement.

Why this answer

Azure Private Link creates a private endpoint in a virtual network, mapping the Azure SQL Database logical server to a private IP address within that VNet. Traffic from Azure services (e.g., VMs, App Service) to the database uses Microsoft's backbone network via the private endpoint, never traversing the public internet. This meets the requirement for private, non-internet-routed connectivity.

Exam trap

The trap here is that candidates confuse Virtual Network service endpoints (which still use the public endpoint and do not provide a private IP) with Private Link (which provides a true private IP), or incorrectly assume Azure SQL Database can be deployed inside a VNet like a managed instance.

How to eliminate wrong answers

Option A is wrong because Virtual Network service endpoints provide a direct route from the VNet to Azure SQL Database over the Azure backbone, but the connection still uses the public endpoint of the database (the logical server's FQDN resolves to a public IP). Traffic does not traverse the internet, but it does not use a private IP address from the VNet; the source traffic is source-NATed to the VNet's public IP. Option C is wrong because configuring the firewall to 'Allow Azure Services' permits connections from any Azure service (e.g., Azure Data Factory, Azure Functions) using the service's public IP range, not a private IP address, and traffic may still traverse the internet.

Option D is wrong because Azure SQL Database is a Platform-as-a-Service (PaaS) offering that cannot be directly deployed inside a virtual network; it can only be integrated via Private Link or service endpoints, not placed inside a VNet like an IaaS VM.

71
MCQeasy

A DBA needs to create a new Azure SQL Database and wants to ensure that the database automatically fails over to a secondary region without manual intervention. The recovery point objective (RPO) is 5 seconds. What should the DBA configure?

A.Active geo-replication with failover group
B.Standard geo-replication
C.Local redundancy with automatic failover
D.Read-scale out
AnswerA

Active geo-replication with a failover group is correct because it links an Azure SQL Database to a secondary in a different region and automatically fails over the primary and secondary endpoints when the failover group's health policy detects an outage, within a configurable grace period. The asynchronous replication maintains an RPO of up to 5 seconds, and the failover group manages the DNS endpoint so applications are redirected to the new primary without manual intervention or code changes. Note that the replication is asynchronous, not synchronous, meaning the 5-second RPO is a lag target rather than a zero-data-loss guarantee.

Why this answer

Active geo-replication with a failover group is the correct choice because it provides automatic, customer-managed failover to a secondary region with an RPO of 5 seconds. The failover group orchestrates the failover of multiple databases simultaneously and supports automatic failover policies, meeting the requirement for zero manual intervention. Standard geo-replication does not support automatic failover, and other options do not provide cross-region disaster recovery.

Exam trap

The trap here is that candidates often confuse 'standard geo-replication' with 'active geo-replication with failover group,' assuming both support automatic failover, but only the latter provides the automatic, policy-driven failover required for zero manual intervention.

How to eliminate wrong answers

Option B is wrong because standard geo-replication requires manual initiation of failover and does not support automatic failover, failing the 'without manual intervention' requirement. Option C is wrong because local redundancy with automatic failover refers to zone-redundant configurations within a single region, not cross-region failover, and cannot meet the RPO of 5 seconds for regional disasters. Option D is wrong because read-scale out is a feature for offloading read-only workloads to a replica in the same region, not for disaster recovery or automatic failover to a secondary region.

72
MCQmedium

You are deploying Azure SQL Database for a multi-tenant SaaS application. Each tenant has its own database, and you need to ensure that resource usage is isolated and predictable. You also need to manage performance at the tenant level. Which Azure SQL Database offering should you choose?

A.Azure SQL Database elastic pools with per-database min/max DTU or vCore settings.
B.Azure SQL Database serverless compute tier.
C.Azure SQL Database single databases with DTU-based tier.
D.Azure SQL Managed Instance with multiple databases.
AnswerA

Elastic pools share resources across tenant databases while per-database min/max DTU or vCore settings guarantee each tenant a reserved floor and a capped ceiling, delivering the isolation and predictability the stem demands. Performance tuning then happens at tenant level, satisfying the manageability constraint.

Why this answer

Azure SQL Database elastic pools with per-database min/max DTU or vCore settings are the correct choice because they provide resource isolation and predictable performance at the tenant level. Elastic pools allow you to allocate a shared pool of resources across multiple databases while setting per-database minimum and maximum limits, ensuring that no single tenant can consume excessive resources and that each tenant gets a guaranteed baseline. This directly addresses the multi-tenant SaaS requirement for isolated and predictable resource usage.

Exam trap

The trap here is that candidates often confuse elastic pools with serverless or single databases, thinking that serverless provides isolation or that single databases are the only way to guarantee performance, but they miss the key requirement for per-tenant resource control and cost efficiency that elastic pools uniquely offer.

How to eliminate wrong answers

Option B (Azure SQL Database serverless compute tier) is wrong because it is designed for intermittent, unpredictable workloads with auto-scaling and auto-pausing, which does not provide the predictable, isolated resource guarantees needed for multi-tenant SaaS with per-tenant performance management. Option C (Azure SQL Database single databases with DTU-based tier) is wrong because each database is isolated with fixed resources, but it lacks the ability to manage performance at the tenant level across a pool; you would need to over-provision for each tenant, leading to inefficiency and higher costs. Option D (Azure SQL Managed Instance with multiple databases) is wrong because it is a fully managed instance of SQL Server with shared resources across databases, offering no per-database resource isolation or min/max settings, making it unsuitable for predictable tenant-level performance isolation.

73
MCQmedium

You manage an Azure SQL Database that is used by a reporting application. The application runs large analytical queries during business hours and you need to isolate these read-only workloads from the primary database to avoid performance impact. You want to use the built-in read-only replica without changing the application connection string to a different server. What should you configure?

A.Configure an elastic query to distribute the analytical queries across shards.
B.Create a geo-secondary database and point the reporting application to the secondary server.
C.Create a readable secondary by enabling Active Geo-Replication and use the same connection string.
D.Enable read scale-out on the database and set ApplicationIntent=ReadOnly in the connection string.
AnswerD

Read scale-out in Azure SQL Database provides a built-in read-only replica that can be used by setting ApplicationIntent=ReadOnly in the connection string. The connection still points to the same logical server, and the gateway routes the session to a read-only replica. This isolates analytical queries from the primary without requiring a separate server or database.

Why this answer

Read scale-out in Azure SQL Database provides a built-in read-only replica that can be accessed by setting ApplicationIntent=ReadOnly in the connection string. The connection continues to use the same logical server name, so the application does not need to be reconfigured to point to a different server. This allows analytical queries to run on a separate replica, reducing contention on the primary database.

Exam trap

The trap here is confusing read scale-out with geo-replication, assuming that any read-only replica requires a different server name and connection string, when read scale-out uses the same logical server with an ApplicationIntent hint.

74
MCQeasy

You need to migrate an on-premises SQL Server 2017 database to Azure SQL Database. The database contains a table with a column of data type geography and uses cross-database queries. You must determine the appropriate target platform. What should you do?

A.Migrate to Azure SQL Database elastic pool.
B.Migrate to Azure SQL Managed Instance.
C.Migrate to Azure SQL Database with geo-replication enabled.
D.Migrate to Azure SQL Database single database.
AnswerB

Azure SQL Managed Instance supports cross-database queries within the same instance and supports the geography data type. It provides near-100% compatibility with on-premises SQL Server, making it the ideal target for databases that use cross-database queries and spatial data types. This minimizes migration effort and preserves application functionality without code changes.

Why this answer

Azure SQL Managed Instance supports cross-database queries within the same instance and maintains high compatibility with on-premises SQL Server, including support for the geography data type. Azure SQL Database single database and elastic pools do not support cross-database queries, and geo-replication is for disaster recovery, not query compatibility. Therefore, SQL Managed Instance is the correct migration target.

Exam trap

The trap here is assuming that Azure SQL Database elastic pool supports cross-database queries because it groups multiple databases, but it does not.

75
MCQmedium

A company is planning to migrate their on-premises SQL Server databases to Azure SQL Managed Instance. They have a database that uses SQL Server Agent jobs with proxies and also uses cross-database queries extensively. What is the main consideration for this migration?

A.Migrate to Azure SQL Managed Instance as it supports SQL Agent and cross-database queries within the same instance.
B.Migrate to SQL Server on Azure Virtual Machines for full control.
C.Migrate to Azure SQL Database elastic query to handle cross-database queries.
D.Migrate to Azure SQL Database instead to reduce costs.
AnswerA

Azure SQL Managed Instance preserves SQL Server Agent, including proxies, and supports cross-database queries within the same instance, unlike Azure SQL Database. This makes it the viable target for a database depending on both features.

Why this answer

Azure SQL Managed Instance is the correct target because it provides full support for SQL Server Agent, including proxies, and enables cross-database queries within the same instance. Unlike Azure SQL Database, Managed Instance maintains instance-level scope, allowing queries that reference other databases in the same instance without requiring external data sources or elastic queries.

Exam trap

The trap here is that candidates may assume Azure SQL Database is always the cheaper or simpler option, overlooking that it lacks SQL Agent proxies and native cross-database query support, which are critical for this migration.

How to eliminate wrong answers

Option B is wrong because migrating to SQL Server on Azure Virtual Machines, while offering full control, is unnecessary when Managed Instance already supports the required features and reduces management overhead. Option C is wrong because Azure SQL Database elastic query is designed for querying remote databases across different servers or instances, not for native cross-database queries within the same instance, and it does not support SQL Agent proxies. Option D is wrong because Azure SQL Database does not support SQL Server Agent proxies and has limited cross-database query capabilities (only within elastic pools using elastic query), making it unsuitable for this workload.

Page 1 of 2 · 99 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Plan and implement data platform resources questions.