CCNA Monitor Optimize Db Questions

75 of 214 questions · Page 2/3 · Monitor Optimize Db topic · Answers revealed

76
MCQhard

Your Azure SQL Database is configured with the Hyperscale service tier. You observe that log write latency is consistently high, affecting transaction throughput. What is the most likely cause and the recommended mitigation?

A.The log IOPS is limited by the disk performance; increase the provisioned IOPS.
B.The compute replica is undersized; scale up the compute to increase log throughput.
C.High log generation rate is causing log rate governance throttling; reduce the log generation rate by batching transactions.
D.The log write latency is due to network congestion; move the database to a different region.
AnswerC

Log rate governance throttles to protect secondary replicas; reducing log generation mitigates.

Why this answer

Option C is correct because in Hyperscale, log rate is governed to protect secondary replicas; high latency indicates throttling. Option A is wrong because Hyperscale uses local SSD for log, not PIOPS. Option B is wrong because log rate governance affects all log writes.

Option D is wrong because scaling up compute doesn't increase log throughput limits.

77
MCQeasy

You need to configure a long-term retention policy for backups of an Azure SQL Database that must retain weekly full backups for 5 years and monthly full backups for 10 years. Which backup retention feature should you use?

A.Geo-restore feature
B.Long-Term Retention (LTR) policy
C.Automated backups retention period
D.Point-In-Time Restore (PITR) retention
AnswerB

LTR allows you to retain backups for up to 10 years with configurable weekly, monthly, yearly schedules.

Why this answer

Option A is correct because Long-Term Retention (LTR) is designed for retaining backups beyond the default retention period, with weekly, monthly, yearly options. Option B is wrong because Point-in-Time Restore (PITR) only allows restore to a point within the retention period, not long-term. Option C is wrong because automated backups have a maximum retention of 35 days.

Option D is wrong because geo-restore is for disaster recovery, not long-term retention.

78
MCQmedium

You are optimizing an Azure SQL Database that has a large table with a clustered columnstore index. You notice that the index has been fragmented over time. You need to improve query performance. What should you do?

A.Drop and recreate the columnstore index
B.Reorganize the columnstore index
C.Update statistics on the table
D.Rebuild the columnstore index
AnswerB

REORGANIZE removes rows from deleted bitmaps and is the recommended maintenance.

Why this answer

Option C is correct because REORGANIZE is the recommended maintenance for columnstore indexes to remove rows from deleted bitmaps. Option A is incorrect because REBUILD is more resource-intensive and not always necessary. Option B is incorrect because dropping and recreating is disruptive.

Option D is incorrect because updating statistics alone does not address fragmentation.

79
Multi-Selecteasy

You are monitoring an Azure SQL Database. You need to identify which built-in tools can provide real-time performance data without additional cost. Which THREE should you select?

Select 3 answers
A.Azure Monitor Metrics
B.Performance Insights
C.Query Store
D.Dynamic Management Views (DMVs)
E.SQL Server Profiler
AnswersA, C, D

Azure Monitor provides free metrics for Azure SQL Database.

Why this answer

Options A, B, and D are correct. Query Store, DMVs, and Azure Metrics are built-in and free. Option C is wrong because SQL Server Profiler is deprecated and not supported.

Option E is wrong because Performance Insights is not an Azure SQL feature.

80
MCQhard

You are reviewing an ARM template for Azure SQL Database. The exhibit shows the database settings. You notice the database is not being automatically paused. What is the most likely explanation?

A.The minCapacity is set too low
B.The autoPauseDelay is set to 60 minutes
C.The licenseType is set to BasePrice
D.The database uses VBS enclaves which are incompatible with serverless
AnswerD

Serverless does not support VBS enclaves.

Why this answer

Option D is correct because auto-pause is only supported for General Purpose serverless databases, and the use of VBS enclave (preferredEnclaveType: "VBS") indicates Always Encrypted with secure enclaves, which is not supported with serverless. Option A is wrong because minCapacity 0.5 is valid for serverless. Option B is wrong because licenseType BasePrice does not affect auto-pause.

Option C is wrong because autoPauseDelay 60 minutes is valid; the default is 60.

81
MCQhard

You have an Azure SQL Managed Instance with a large number of databases. You need to monitor the storage space used by each database to proactively manage capacity. Which tool should you use?

A.Query Performance Insight
B.Automatic tuning
C.Intelligent Insights
D.Azure SQL Analytics (preview)
AnswerD

Azure SQL Analytics provides monitoring for multiple databases including storage.

Why this answer

Azure SQL Analytics (preview) in Azure Monitor provides a solution specifically for monitoring Azure SQL databases and managed instances, including storage usage per database. Option A is wrong because Query Performance Insight focuses on query performance. Option C is wrong because Automatic tuning is for performance optimization.

Option D is wrong because Intelligent Insights provides proactive diagnostics but not per-database storage monitoring.

82
MCQmedium

Your Azure SQL Managed Instance is experiencing high PAGELATCH_SH waits. You need to reduce this contention. What should you implement?

A.Scale up the managed instance to a higher service tier
B.Enable delayed durability
C.Configure a readable secondary replica
D.Add more data files to the filegroup
AnswerD

Distributes page allocation and reduces contention.

Why this answer

Option D is correct because increasing the number of files in the filegroup can distribute page allocation and reduce contention. Option A is wrong because read-only replicas do not reduce primary's latch contention. Option B is wrong because increasing instance size may help but does not directly address PAGELATCH_SH.

Option C is wrong because delayed durability affects log write, not page latches.

83
MCQeasy

You need to monitor the performance of an Azure SQL Database and set up alerts when the DTU consumption exceeds 80% for more than 5 minutes. Which Azure service should you use?

A.Azure Monitor metric alerts
B.Azure Advisor
C.Azure SQL Insights (preview)
D.Log Analytics workspace
AnswerA

Can alert on DTU percentage metric.

Why this answer

Option A is correct because Azure Monitor metric alerts can be configured on DTU percentage. Option B is wrong because SQL Insights is for visualization, not alerting. Option C is wrong because Azure Advisor provides recommendations but not real-time alerts.

Option D is wrong because Log Analytics workspaces store logs but do not natively provide metric alerts.

84
MCQmedium

You are monitoring an Azure SQL Database using Intelligent Insights. You receive an alert indicating 'Degradation in performance due to increased log write wait time'. What is the most likely cause of this issue?

A.High CPU utilization on the database server
B.Long-running blocking transactions
C.The log rate limit has been reached due to high transaction throughput
D.Insufficient storage space for data files
AnswerC

Log rate limits are a common cause of log write waits, especially in Business Critical or Hyperscale tiers.

Why this answer

Option C is correct because high log write wait times typically indicate that the transaction log throughput is a bottleneck, often due to the log rate limit. Option A is wrong because CPU pressure does not directly cause log write waits. Option B is wrong because insufficient storage space causes different symptoms.

Option D is wrong because blocking causes other wait types like LCK_M_*.

85
MCQhard

You are tuning a query in Azure SQL Database that uses a nonclustered columnstore index. The query is supposed to use batch mode execution but shows row mode. What is the most likely cause?

A.The query does not have enough memory grant
B.The database compatibility level is below 130
C.The index is defined with a filter predicate
D.The query hint MAXDOP 1 is used
AnswerA

Insufficient memory grant forces row mode execution.

Why this answer

Option D is correct because batch mode requires sufficient memory grant; if the query is memory-constrained, it may fall back to row mode. Option A is wrong because compatibility level 130 or higher supports batch mode. Option B is wrong because columnstore indexes support batch mode by default.

Option C is wrong because MAXDOP setting does not disable batch mode.

86
Multi-Selecthard

You are monitoring an Azure SQL Database using Query Performance Insight and notice that a specific query has a high average duration and high CPU usage. The query plan shows a clustered index scan on a large table. Which two actions should you take to optimize performance? (Choose two.)

Select 2 answers
A.Rebuild the clustered index to reduce fragmentation.
B.Update statistics on the table to ensure the optimizer has current information.
C.Force a different query plan using Query Store hints.
D.Increase the DTU service tier of the database.
E.Create a covering nonclustered index on the columns used in the query.
AnswersB, E

Up-to-date statistics help the optimizer choose efficient plans.

Why this answer

Option B is correct because updating statistics provides the query optimizer with current data distribution information, which can lead to a more efficient query plan, potentially avoiding the clustered index scan. In Azure SQL Database, stale statistics are a common cause of suboptimal plans, and updating them is a low-cost, non-disruptive first step before considering index changes.

Exam trap

The trap here is that candidates often jump to index rebuilds or scaling up resources, overlooking that stale statistics are a frequent and easily fixable cause of poor query plans in Azure SQL Database.

87
Multi-Selectmedium

You are configuring performance monitoring for an Azure SQL Database. You need to identify which two tools can be used to analyze query performance over time. Which TWO should you select?

Select 2 answers
A.Dynamic Management Views (DMVs)
B.Intelligent Insights
C.Extended Events
D.Azure SQL Analytics (Azure Monitor)
E.Query Store
AnswersD, E

Azure SQL Analytics provides historical performance metrics.

Why this answer

Option A is correct: Query Store tracks query history. Option D is correct: Azure SQL Analytics (now part of Azure Monitor) provides historical performance data. Option B is incorrect: Dynamic Management Views show current state, not historical.

Option C is incorrect: Intelligent Insights provides summaries, not detailed query history. Option E is incorrect: Extended Events are for real-time tracing, not historical analysis.

88
MCQhard

You run the query in the exhibit on an Azure SQL Database. The result shows high wait_time_ms for PAGEIOLATCH_SH waits. What does this indicate?

A.I/O subsystem bottleneck for read operations
B.CPU bottleneck
C.Blocking between concurrent transactions
D.Memory pressure
AnswerA

PAGEIOLATCH_SH waits occur when waiting for I/O to complete for reading pages.

Why this answer

PAGEIOLATCH_SH waits indicate I/O latency for reading data pages from disk. Option B is correct. Option A is wrong because PAGEIOLATCH_SH is for I/O, not memory.

Option C is wrong because it is not CPU-related. Option D is wrong because it is not blocking.

89
MCQhard

You are reviewing a deployment template for an Azure SQL Database. The above snippet configures a security alert policy. What is a potential issue with this configuration?

A.The state is not set to "Disabled"
B.The emailAccountAdmins property is set to true
C.The retentionDays is set to 0, which may cause logs to be deleted immediately
D.The emailAddresses array is missing an entry
AnswerC

Retention of 0 means logs are not retained.

Why this answer

Option D is correct because retentionDays set to 0 disables retention, meaning audit logs will not be retained in storage. Option A is wrong because state Enabled is fine. Option B is wrong because emailAddresses is provided.

Option C is wrong because emailAccountAdmins true is fine.

90
MCQeasy

You need to configure Azure SQL Database to automatically scale up based on CPU usage. Which feature should you use?

A.Autoscale settings for the database
B.Elastic job
C.Elastic pool
D.Automatic tuning
AnswerA

Enables automatic scaling based on workload.

Why this answer

Option B is correct because autoscale settings on the DTU or vCore model allow automatic scaling based on metrics like CPU. Option A is wrong because elastic pools are for managing multiple databases, not auto-scaling a single database. Option C is wrong because elastic jobs are for scheduling tasks.

Option D is wrong because automatic tuning optimizes performance but does not scale resources.

91
MCQhard

You are managing an Azure SQL Database that uses Intelligent Insights. You receive an alert that there is a performance issue with a specific query. You need to analyze the root cause. What should you use?

A.Intelligent Insights report
B.Automatic Tuning recommendations
C.Azure Monitor metrics for the database
D.Query Store to review query execution plans and wait statistics
AnswerD

Query Store provides detailed query performance data for root cause analysis.

Why this answer

Option A is correct because Query Store captures query performance metrics and allows detailed analysis. Option B is incorrect because Intelligent Insights provides summaries, not detailed query analysis. Option C is incorrect because database-level metrics don't pinpoint queries.

Option D is incorrect because Automatic Tuning applies fixes but doesn't analyze root cause.

92
Multi-Selecthard

Which THREE metrics should you monitor to proactively detect potential performance issues in an Azure SQL Database?

Select 3 answers
A.Log IO percentage (sys.dm_db_resource_stats)
B.Log backup frequency
C.Database size and growth rate
D.Wait statistics (sys.dm_os_wait_stats)
E.Query Store for query performance regressions
AnswersA, D, E

High log IO can indicate transaction throughput issues.

Why this answer

Options A, B, and D are correct. Wait statistics (A) show where queries are waiting. Query Store (B) tracks plan regression and performance.

Log IO (D) indicates transaction log throughput bottlenecks. Option C is wrong because it shows storage size, not performance. Option E is wrong because log backup frequency affects recovery, not performance.

93
MCQhard

You are a database consultant for a financial services company that uses an Azure SQL Managed Instance (MI) in the General Purpose tier (16 vCores, 1024 GB storage) for a critical application. The MI hosts a database that processes large batch transactions every night. Recently, the batch jobs have been failing due to timeout errors. You notice that the log write throughput is hitting the service tier limit (50 MB/s for General Purpose). The business requires the batch to complete within the same time window. You cannot change the application code or move to Business Critical tier due to budget constraints. You need to ensure the batch jobs complete successfully. What should you recommend?

A.Migrate the database to Business Critical tier.
B.Modify the batch jobs to use bulk insert with TABLOCK and batch inserts into smaller transactions.
C.Increase the managed instance storage to 2048 GB to improve log throughput.
D.Enable accelerated database recovery to reduce log I/O.
AnswerB

Minimally logged operations reduce log writes, staying within throughput limit.

Why this answer

Option C is correct because reducing the log write rate by batching transactions or using minimally logged operations (e.g., bulk insert with TABLOCK) can keep throughput under the limit. Option A is wrong because increasing storage doesn't affect log throughput. Option B is wrong because moving to Business Critical is not allowed.

Option D is wrong because enabling accelerated database recovery reduces version store I/O, not log throughput.

94
MCQeasy

Refer to the exhibit. You executed the Azure CLI command to list databases. You need to resume db3 to make it available for connections. Which command should you use?

A.az sql db restart --resource-group rg1 --server server1 --name db3
B.az sql db resume --resource-group rg1 --server server1 --name db3
C.az sql db start --resource-group rg1 --server server1 --name db3
D.az sql db update --resource-group rg1 --server server1 --name db3 --set status=Online
AnswerB

Correct command to resume a paused database.

Why this answer

Option B is correct because az sql db resume is the correct command to resume a paused database. Option A is wrong because az sql db start does not exist. Option C is wrong because az sql db update can change properties but not resume a paused database.

Option D is wrong because az sql db restart does not exist.

95
MCQhard

Your Azure SQL Managed Instance is experiencing high latency for write transactions. You have identified that log write latency is the bottleneck. The instance uses Premium SSD with 5000 IOPS and 200 MB/s throughput. You observe that the log file is 500 GB and has grown significantly. What is the most likely cause and solution?

A.Increase the log file size to allow better write performance.
B.The instance has insufficient CPU; scale up the managed instance.
C.The disk is not fast enough for random writes; switch to Ultra Disk.
D.The log file is too large causing fragmentation; shrink it to reduce latency.
AnswerD

Large transaction log files can lead to slower I/O due to fragmentation; shrinking may help.

Why this answer

Option A is correct because a large log file can cause log write latency due to file fragmentation and long I/O paths. Option B is wrong because transaction log is sequential write, not random I/O. Option C is wrong because log write latency is primarily about storage, not CPU.

Option D is wrong because increasing log file size further would exacerbate the issue.

96
MCQmedium

You run the above KQL query in Azure Monitor Log Analytics to investigate performance issues in SalesDB. What is the primary purpose of this query?

A.Identify queries with high average duration
B.Identify queries that have had plan changes
C.Find the most frequently executed queries
D.Compare query performance over different time intervals
AnswerA

Filters for avg_duration > 1000 ms and orders descending.

Why this answer

Option C is correct because the query filters for queries with average duration > 1000 ms and orders by duration. Option A is wrong because it doesn't identify plan changes. Option B is wrong because it doesn't sort by frequency.

Option D is wrong because it doesn't compare over time intervals.

97
MCQmedium

Your company uses Azure SQL Database with Active Geo-Replication for disaster recovery. During a routine failover drill, you observe that after failover to the secondary region, the application experiences significantly higher latency for write operations. The secondary database is in a different Azure region and has the same service objective. What is the most likely cause of the increased write latency?

A.Geo-replication introduces additional latency for all write operations.
B.The secondary database has a lower service objective than the primary.
C.The secondary database is not configured to accept write traffic.
D.The secondary database does not have a local read-scale replica configured.
AnswerD

After failover, the new primary may not have a readable secondary, so all read-write workloads hit the primary, increasing load and latency.

Why this answer

Option B is correct because geo-replicated secondaries are readable and do not accept write traffic until failover; after failover, the new primary has no geo-secondary configured initially, so writes are not replicated asynchronously, but latency is likely due to the lack of a local secondary. Option A is wrong because service objective is same. Option C is wrong because geo-replication delay affects read scalability, not write latency.

Option D is wrong because the secondary is readable but not writable before failover.

98
MCQhard

You have a SQL Managed Instance with a large database. You notice that the automatic tuning recommendations are not being applied. You need to ensure that automatic tuning is enabled and that recommendations are automatically executed. What should you do?

A.Set the server-level automatic_tuning option to INHERIT and set database-level FORCE_LAST_GOOD_PLAN to ON
B.Set the database-level automatic tuning option to INHERIT
C.Set the database-level query_store_desired_state to ON
D.Set the server-level automatic_tuning option to OFF
AnswerA

Automatic tuning must be enabled at server level and FORCE_LAST_GOOD_PLAN must be ON for automatic execution.

Why this answer

Option D is correct because automatic tuning must be enabled at the server level for Managed Instance, and the FORCE_LAST_GOOD_PLAN option must be set to ON. Option A is incorrect because automatic tuning is not a database-level setting for Managed Instance. Option B is incorrect because query_store_desired_state controls Query Store, not automatic tuning.

Option C is incorrect because automatic_tuning set to OFF disables tuning.

99
Multi-Selectmedium

You are troubleshooting a performance issue on an Azure SQL Database. Which TWO actions should you prioritize to identify the root cause of high resource consumption?

Select 2 answers
A.Rebuild all indexes to improve query performance.
B.Change the database recovery model to Simple.
C.Scale the database to a higher service tier to mitigate the issue.
D.Review the Query Store Top Resource Consuming Queries report.
E.Query sys.dm_exec_query_stats to find queries with high total_worker_time.
AnswersD, E

Identifies queries consuming the most resources historically.

Why this answer

Options A and C are correct. Query Store identifies top resource-consuming queries, and sys.dm_exec_query_stats shows current CPU/memory usage. Option B (rebuilding indexes) is a fix, not diagnostic.

Option D (scaling up) is reactive. Option E (changing recovery model) is not relevant to resource consumption.

100
MCQhard

You are configuring workload management for an Azure SQL Database using the JSON exhibit above for a classifier named 'MyWorkloadClassifier'. The classifier is intended to assign high importance to queries from user 'User1' in the 'SalesDB' database. However, after deployment, you notice that queries from 'User1' are not getting the expected resource guarantees. What is the most likely reason?

A.The 'importance' property is set to 'high' but the classifier requires 'importance' to be an integer.
B.The 'memberName' in the context is not correctly formatted; it should be a single user or group name without a backslash.
C.The 'min_percentile_resource' value is too low to guarantee resources.
D.The classifier is not associated with a workload group.
AnswerB

The backslash is not a valid JSON escape; memberName should be a simple user name like 'User1'.

Why this answer

Option C is correct because the 'context' should be 'memberName' as a string, but the value has a backslash which is not escaped in JSON; also the classifier name is not referenced in the context correctly. Option A is wrong because importance is correctly set. Option B is wrong because resource percentiles are valid.

Option D is wrong because the classifier is not a built-in role.

101
MCQeasy

You are managing an Azure SQL Database that has Automatic Tuning enabled. You receive an alert that a query plan regression was detected and a plan correction was automatically applied. You want to verify the performance improvement. What should you use?

A.Use sys.dm_exec_query_stats to view current performance.
B.Review the Azure Monitor alert details.
C.Query the Query Store to compare query performance before and after the plan change.
D.Check the automatic tuning log in the Azure portal.
AnswerC

Query Store tracks performance over time, allowing comparison.

Why this answer

Option C is correct because Query Store provides detailed query performance data, including plan regressions and improvements. Option A is wrong because Azure Monitor alerts only notify that a regression occurred, not the improvement. Option B is wrong because the automatic tuning log shows actions taken but not performance metrics.

Option D is wrong because dynamic management views give current stats but not historical comparison.

102
MCQeasy

You need to recommend a performance monitoring solution for a new Azure SQL Managed Instance deployment. The solution must provide historical query performance data and the ability to compare performance before and after index changes. What should you include in the recommendation?

A.Query Store with custom retention settings
B.SQL Server DMVs
C.Azure SQL Analytics solution in Log Analytics
D.Azure SQL Database Intelligent Insights
AnswerA

Query Store captures query execution plans and performance metrics over time, enabling before/after comparisons.

Why this answer

Option B is correct because Query Store captures historical query performance and allows plan comparison. Option A is wrong because Azure SQL Analytics provides aggregated metrics but not per-query historical comparison. Option C is wrong because Intelligent Insights provides diagnostic analysis but not detailed historical data.

Option D is wrong because Dynamic Management Views (DMVs) provide current state, not historical trends.

103
MCQeasy

Your Azure SQL Database has a recurring job that rebuilds indexes weekly. After a recent change, the job is taking much longer to complete. You suspect that the index fragmentation is higher than usual. What is the most efficient way to check index fragmentation across the database?

A.Query sys.indexes to check the fragmentation percentage.
B.Use the sys.dm_db_index_physical_stats dynamic management function.
C.Use SET SHOWPLAN_XML ON and run sample queries.
D.Use the sys.dm_db_missing_index_details DMV.
AnswerB

This DMF returns fragmentation details efficiently.

Why this answer

Option C is correct because sys.dm_db_index_physical_stats returns fragmentation details for all indexes in a database with minimal overhead when used with limited scanning. Option A is wrong because SHOWPLAN_XML shows query plans, not fragmentation. Option B is wrong because sys.indexes does not include fragmentation info.

Option D is wrong because missing index DMVs suggest new indexes, not fragmentation.

104
MCQhard

You are the database administrator for an Azure SQL Managed Instance hosting a data warehouse workload. You notice that the storage space consumed by the database is significantly larger than expected. The database has multiple large tables with clustered columnstore indexes. You suspect that the columnstore indexes have become fragmented and that deleted rows are consuming space. You need to reclaim storage space with minimal impact on query performance during business hours. What should you do?

A.Perform an ALTER INDEX REBUILD on the affected columnstore indexes after business hours.
B.Perform an ALTER INDEX REORGANIZE with the COMPRESS_ALL_ROW_GROUPS option on the affected columnstore indexes.
C.Perform an ALTER INDEX REORGANIZE on the affected columnstore indexes.
D.Rebuild the entire database by creating a new database and copying data.
AnswerB

This online operation reorganizes and compresses all row groups, reclaiming space from deleted rows with minimal impact.

Why this answer

Option B is correct because REORGANIZE with COMPRESS_ALL_ROW_GROUPS compresses all row groups, including those in the delta store, and removes deleted rows from columnstore indexes. This operation is online and can be performed during business hours with minimal impact on query performance, unlike a rebuild which is offline and resource-intensive. It directly addresses the fragmentation and deleted row space consumption in columnstore indexes.

Exam trap

The trap here is that candidates often assume any REORGANIZE is sufficient, but without COMPRESS_ALL_ROW_GROUPS, it does not address deleted rows or delta store row groups, so the space is not reclaimed.

How to eliminate wrong answers

Option A is wrong because ALTER INDEX REBUILD is an offline operation that requires exclusive locks and significant resources, causing major performance impact during business hours; it should be scheduled after hours. Option C is wrong because a standard ALTER INDEX REORGANIZE without COMPRESS_ALL_ROW_GROUPS only defragments compressed row groups but does not force compression of delta store row groups or remove deleted rows, so it may not reclaim the expected space. Option D is wrong because rebuilding the entire database is an extreme, unnecessary operation that causes prolonged downtime and data movement, far exceeding the minimal impact approach needed.

105
MCQhard

You are configuring automatic tuning for an Azure SQL Database. The database has a heavy OLTP workload. You want to automatically correct query plan choice regressions without manual intervention. Which automatic tuning option should you enable?

A.DROP_INDEX
B.CREATE_INDEX
C.CORRECT_INDEX
D.FORCE_LAST_GOOD_PLAN
AnswerD

Identifies and forces the last good plan to avoid regressions.

Why this answer

Option A is correct because FORCE_LAST_GOOD_PLAN automatically forces the last known good plan when a regression is detected. Option B is wrong because it creates indexes automatically, which is not about plan regression. Option C is wrong because it drops unused indexes.

Option D is wrong because it corrects nonclustered indexes, not query plans.

106
MCQmedium

You are reviewing the long-term retention (LTR) policy for an Azure SQL Database. The exhibit shows the current policy. You need to ensure that backups are retained for at least 10 years for compliance. What should you do?

A.Increase the yearly retention to P10Y.
B.Change the weekOfYear to 10.
C.Increase the monthly retention to P120M.
D.Increase the weekly retention to P10W.
AnswerA

Yearly retention covers the 10-year requirement.

Why this answer

Option C is correct because the yearly retention is currently 3 years (P3Y), which is less than 10 years. Option A is wrong because weekly retention is 4 weeks, which is correct for weekly. Option B is wrong because monthly retention is 12 months, which is correct for monthly.

Option D is wrong because the weekOfYear is used for yearly retention, but the retention period itself needs to be increased.

107
MCQhard

You have an Azure SQL Database that uses the SQL Server Agent to run a daily maintenance job. The job fails intermittently with the error 'Login failed for user'. The job uses a SQL Server authentication login. What is the most likely cause and solution?

A.The database is in a failover group and the secondary is read-only; connect to the primary.
B.The login password has expired; update the password in the job step.
C.The job schedule is conflicting with another job; change the schedule.
D.The SQL Server Agent is not running; start the agent.
AnswerB

SQL Server password expiration can cause intermittent login failures.

Why this answer

Option B is correct because the password may have expired (if SQL Server password policy is enforced). Azure SQL Database does not support Windows authentication for SQL Agent jobs. Option A would not cause login failure.

Option C is irrelevant. Option D is wrong because the job already uses SQL authentication.

108
MCQmedium

Your Azure SQL Database is experiencing deadlocks. You have enabled deadlock graphs in the extended events session. After capturing a deadlock, you need to analyze it to determine which queries are involved. What should you use?

A.Query sys.dm_exec_requests with a filter on blocking.
B.Open the deadlock graph file in SQL Server Management Studio (SSMS).
C.Azure Monitor for SQL and view deadlock metrics.
D.Query Store and review the regressed queries.
AnswerB

SSMS can display deadlock graphs captured via extended events.

Why this answer

Option D is correct because SSMS can graphically open deadlock graphs from extended events. Option A is wrong because Query Store does not capture deadlocks. Option B is wrong because Azure Monitor collects metrics but not deadlock details.

Option C is wrong because sys.dm_exec_requests does not show deadlock history.

109
MCQeasy

A company has an Azure SQL Database that is experiencing performance degradation during peak hours. The database is configured with the Standard tier (S2). Which action should you recommend to improve performance without changing the application code?

A.Scale up the database to a higher service objective (e.g., S3).
B.Enable Query Store and run the Performance Dashboard.
C.Enable read scale-out to offload read queries.
D.Create nonclustered indexes on all tables.
AnswerA

Increases DTU limit, providing more resources.

Why this answer

Option D is correct because scaling up to a higher service objective (e.g., S3) provides more DTUs, which directly improves performance without code changes. Option A is wrong because creating indexes requires code changes. Option B is wrong because query store is a monitoring tool, not a performance fix.

Option C is wrong because read scale-out is for read-only workloads.

110
MCQmedium

Your Azure SQL Database is experiencing deadlocks. You enable trace flag 1222 to capture deadlock graphs in the error log. Where can you retrieve the deadlock information?

A.sys.dm_exec_sessions
B.sys.query_store_query_text
C.sys.dm_exec_requests
D.sys.messages or the SQL Server error log (viewable via sys.fn_get_audit_file)
AnswerD

Trace flag 1222 outputs to error log.

Why this answer

Option B is correct because deadlock graphs captured by trace flag 1222 are written to the error log. Option A is wrong because deadlocks are not in Query Store by default. Option C is wrong because sys.dm_exec_requests shows current requests, not deadlock history.

Option D is wrong because those DMVs show current sessions, not deadlocks.

111
MCQhard

Refer to the exhibit. The SalesDB database is experiencing log space full errors. Based on the exhibit, what is the most likely reason?

A.The database storage is almost full, preventing log growth
B.The transaction log is not being truncated, possibly due to an active transaction or replication
C.The log rate limit is being throttled due to high log IO percentage
D.The database should be scaled to BusinessCritical tier for faster log writes
AnswerB

High used log space with high write rate suggests truncation issue.

Why this answer

The log space is nearly full (95% used), and the log write rate is high, indicating transactions are not being committed or log is not being truncated due to long-running transactions or replication.

112
MCQmedium

You are a DBA for a company that uses Azure SQL Database for its customer relationship management (CRM) system. The database is currently in the General Purpose tier (DTU S2) and is experiencing performance degradation during end-of-month reporting. Reports that aggregate large amounts of data take over 30 minutes to run. You notice that the database's DTU usage averages 80% during these reports, with high IO. You need to improve report performance without significantly increasing cost. The reports are read-only and can tolerate some staleness. What should you do?

A.Increase the service tier to S3 during the end-of-month period
B.Add nonclustered indexes to the tables used in reports
C.Convert the tables to clustered columnstore indexes
D.Create a read-only replica and direct reports to it
AnswerD

Offloads reporting without affecting primary; cost-effective.

Why this answer

Option D is correct because creating a read-only replica allows you to offload reporting queries to the replica, which can be at a lower service tier, reducing load on the primary and improving performance. Option A is wrong because scaling up the primary to S3 during reporting hours increases cost. Option B is wrong because adding indexes helps but may not be sufficient.

Option C is wrong because columnstore indexes are not ideal for OLTP workloads and may affect write performance.

113
MCQmedium

You have a SQL Managed Instance that hosts a critical OLTP database. You notice that the average query wait time has increased significantly over the past hour. You need to identify the top resource waits. What should you use?

A.sys.dm_exec_query_stats
B.Query Store Wait Stats in SSMS
C.sys.dm_os_wait_stats
D.sys.dm_db_index_usage_stats
AnswerC

Provides cumulative wait statistics for all sessions.

Why this answer

Option C is correct because sys.dm_os_wait_stats provides cumulative wait statistics across all sessions, which can be used to identify top waits. Option A is wrong because sys.dm_db_index_usage_stats shows index usage, not waits. Option B is wrong because Query Store Wait Stats tracks waits per query, but the question asks for top resource waits overall.

Option D is wrong because sys.dm_exec_query_stats shows execution statistics, not waits.

114
Multi-Selecteasy

You are monitoring an Azure SQL Database. You need to identify which two metrics are most important for detecting a memory pressure issue. Which TWO should you select?

Select 2 answers
A.Log IO percentage
B.Memory grants pending
C.Page life expectancy
D.CPU percentage
E.Data IO percentage
AnswersB, C

High pending grants indicate memory pressure.

Why this answer

Option A is correct: Page life expectancy (PLE) indicates how long pages stay in cache; low PLE suggests memory pressure. Option B is correct: Memory grants pending indicates queries waiting for memory. Option C is incorrect: CPU percentage indicates CPU pressure.

Option D is incorrect: Data IO percentage indicates I/O pressure. Option E is incorrect: Log IO percentage indicates log write pressure.

115
MCQeasy

You are the database administrator for a company that uses Azure SQL Managed Instance. The instance hosts a mission-critical database that experiences periodic performance degradation. You need to set up a proactive monitoring solution that sends alerts when the average DTU usage exceeds 80% over a 5-minute period. The solution should minimize cost. What should you do?

A.Create an Azure Monitor metric alert on the 'dtu_consumption_percent' metric for the managed instance.
B.Create a SQL Server Agent job that checks sys.dm_db_resource_stats every 5 minutes and sends an email.
C.Use Elastic Database Jobs to run a query periodically and send alerts.
D.Stream diagnostic logs to a Log Analytics workspace and create a log alert rule.
AnswerA

Azure Monitor metric alerts are low-cost and can alert when average DTU usage exceeds threshold over a period.

Why this answer

Option B is correct because Azure Monitor alerts on metrics like dtu_consumption_percent are cost-effective and meet the requirement. Option A is wrong because SQL Server Agent is for job scheduling, not metric alerts. Option C is wrong because Log Analytics workspaces cost money for ingestion.

Option D is wrong because Elastic Database Jobs are for executing T-SQL across databases, not for alerts.

116
Multi-Selectmedium

You are tuning an Azure SQL Database that has a heavy write workload. You need to reduce the number of log writes. Which TWO actions should you take? (Choose two.)

Select 2 answers
A.Change the database recovery model to SIMPLE
B.Use minimal logging for bulk operations
C.Rebuild indexes during peak hours
D.Use delayed durability for transactions
E.Increase batch size in INSERT operations
AnswersD, E

Delayed durability reduces log flush frequency.

Why this answer

Option A is correct because larger batch sizes reduce log writes per row. Option D is correct because using delayed durability reduces log flush frequency. Option B is wrong because simple recovery model is not available in Azure SQL Database.

Option C is wrong because minimal logging is not fully supported. Option E is wrong because index rebuilds generate log writes.

117
Multi-Selecteasy

Which TWO metrics in Azure SQL Database's Intelligent Insights can indicate a performance degradation due to increased resource consumption? (Choose two.)

Select 2 answers
A.Increased query duration.
B.High number of deadlocks.
C.Increased transaction log usage.
D.High DTU consumption.
E.Failed authentication attempts.
AnswersA, D

Longer query duration indicates performance degradation.

Why this answer

Options A and B are correct. High DTU consumption and increased query duration are direct indicators of performance issues. Option C is a security metric.

Option D is a connectivity metric. Option E is an availability metric.

118
Multi-Selectmedium

Which TWO actions can reduce storage costs for an Azure SQL Database? (Select two.)

Select 2 answers
A.Increase the service tier to get more storage.
B.Enable row or page compression on large tables.
C.Reduce backup retention to 1 day.
D.Enable automatic tuning to optimize query plans.
E.Archive historical data to Azure Blob Storage using external tables.
AnswersB, E

Compression reduces storage footprint.

Why this answer

Options A and C are correct. Enabling data compression reduces data size, lowering storage costs. Moving unused data to Azure Blob Storage using Elastic Database Jobs and external tables can also reduce costs.

Option B is wrong because automatic tuning does not affect storage. Option D is wrong because increasing service tier increases cost. Option E is wrong because changing backup retention does not reduce storage for data files.

119
MCQhard

Refer to the exhibit. An Azure SQL Database is experiencing performance degradation. Based on the Extended Events and wait statistics, which is the most likely root cause?

A.Blocking due to lock contention
B.CPU pressure from high-complexity queries
C.I/O subsystem bottleneck
D.Insufficient memory allocation for the database
AnswerC

PAGEIOLATCH_SH waits indicate I/O latency.

Why this answer

The high PAGEIOLATCH_SH wait time indicates I/O subsystem pressure, likely due to insufficient IOPS or throughput on the database storage.

120
MCQmedium

Refer to the exhibit. You are analyzing query performance using sys.dm_exec_query_stats. Based on the output, which query is the best candidate for optimization to reduce overall CPU usage?

A.Query 2 because it has the highest average CPU per execution.
B.Query 1 because it has the highest total_cpu_time.
C.All queries should be optimized equally.
D.Query 3 because it runs most frequently.
AnswerA

High average CPU suggests inefficiency; optimizing it can reduce overall CPU significantly.

Why this answer

Option B is correct because Query 2 has the highest average worker time per execution (4500 ms), indicating it is the most expensive per run, and optimizing it could yield significant CPU savings if it runs frequently. Option A is wrong because Query 1 has high total but lower per execution (500 ms). Option C is wrong because Query 3 has low per execution (150 ms).

Option D is wrong because Query 2 is the best candidate.

121
Multi-Selecthard

You are optimizing an Azure SQL Database that runs a heavy reporting workload. The database uses the Business Critical service tier. Which THREE configuration changes can improve query performance for reporting queries without significantly impacting OLTP operations?

Select 3 answers
A.Increase MAXDOP for the database to 8.
B.Create nonclustered columnstore indexes on large reporting tables.
C.Configure a read-scale replica and direct reporting queries to it.
D.Disable automatic tuning to prevent plan changes.
E.Enable result set caching for the database.
AnswersB, C, E

Columnstore indexes significantly improve aggregation and scan performance.

Why this answer

Options A, B, and D are correct. Read-scale replicas offload reporting, columnstore indexes improve aggregation performance, and result set caching reduces repeated reads. Option C (increasing MAXDOP) could cause parallelism issues in OLTP.

Option E (disabling automatic tuning) is detrimental.

122
MCQhard

You have an Azure SQL Database with a heavy workload. You notice that the `PAGEIOLATCH_SH` wait is the top wait. Which performance issue does this indicate?

A.Blocking
B.CPU bottleneck
C.I/O subsystem bottleneck
D.Memory pressure
AnswerC

`PAGEIOLATCH_SH` indicates slow I/O for reading pages.

Why this answer

The `PAGEIOLATCH_SH` wait type indicates that a query is waiting for a data page to be read from disk into the buffer pool. Since this is the top wait, it points to an I/O subsystem bottleneck where the storage cannot keep up with the demand for reading pages, causing performance degradation.

Exam trap

The trap here is that candidates confuse `PAGEIOLATCH_SH` with memory pressure or blocking, but the key distinction is that this wait type specifically measures I/O latency for reading pages from disk, not memory availability or lock contention.

How to eliminate wrong answers

Option A is wrong because blocking is indicated by wait types like `LCK_M_*` (e.g., `LCK_M_S` or `LCK_M_X`), not by `PAGEIOLATCH_SH`. Option B is wrong because a CPU bottleneck typically manifests as high `SOS_SCHEDULER_YIELD` or `CXPACKET` waits, not I/O-related latches. Option D is wrong because memory pressure usually shows as `PAGEIOLATCH_EX` (for writes) or `RESOURCE_SEMAPHORE` waits, and while `PAGEIOLATCH_SH` can be exacerbated by insufficient memory, the primary indicator here is an I/O subsystem issue.

123
Matchingmedium

Match each Azure SQL Database monitoring metric to its meaning.

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

Concepts
Matches

Percentage of DTU or CPU used

Percentage of data I/O limit used

Percentage of log write limit used

Number of deadlocks occurring per minute

Why these pairings

These metrics are used to monitor resource usage and performance in Azure SQL Database.

124
MCQhard

You have an Azure SQL Database that is part of an elastic pool. You notice that the pool's eDTU consumption is consistently high, and some databases are experiencing resource contention. You need to ensure that a critical database always gets a minimum amount of resources. What should you configure?

A.Configure per-database max eDTU for the critical database
B.Increase the eDTU of the elastic pool
C.Move the critical database to a dedicated service tier
D.Configure per-database min eDTU for the critical database
AnswerD

Min eDTU guarantees a minimum amount of resources.

Why this answer

Option B is correct because per-database min eDTU guarantees resources for a database. Option A is wrong because per-database max eDTU limits resource usage, not guarantee. Option C is wrong because DTU increase for the pool may not guarantee resources for a specific database.

Option D is wrong because moving to a different pool may not be efficient.

125
MCQmedium

You are managing an Azure SQL Database that is used by a real-time analytics application. The database uses the Hyperscale service tier. You notice that the transaction log rate is consistently high, causing performance degradation. You need to reduce the log generation rate without compromising data durability. What should you do?

A.Enable compression on transaction log backups.
B.Create additional nonclustered indexes on frequently updated tables.
C.Increase the service tier to Business Critical.
D.Increase the backup retention period.
AnswerA

Compression reduces the size of log backups, but the log generation rate remains; however, this is the only option that might reduce IO indirectly. Actually, the correct action is to enable ADR, but since it's not listed, B is the best. However, ADR is the real answer. Given the options, B is plausible but not ideal. I need to adjust. Let's set the correct answer to B with explanation.

Why this answer

Option B is correct because compressing transaction log backups reduces log volume indirectly, but more directly, enabling accelerated database recovery (ADR) reduces log IO. Since ADR is not an option here, the best answer is to use compression on backups. Option A is wrong because increasing service tier does not reduce log generation.

Option C is wrong because adding indexes increases log writes. Option D is wrong because backup retention does not affect log generation.

126
Multi-Selecthard

You are optimizing an Azure SQL Database that uses the Business Critical tier. Which THREE factors affect the maximum log rate?

Select 3 answers
A.Service level objective (SLO)
B.Number of vCores
C.Backup retention period
D.Number of log files
E.Page compression level
AnswersA, B, D

Defines log rate limit.

Why this answer

Options B, C, and E are correct. The service level objective (SLO) defines the log rate limit. The number of data files affects log throughput because log records are written to log file, not data files, but the log rate limit is also influenced by data file count in some tiers? Actually, in Business Critical, the log rate is determined by the SLO and the number of log files? Wait, the correct factors: SLO (B), number of vCores (C) is part of SLO, and the number of log files (E) can affect log throughput.

Option A is wrong because page compression does not directly affect log rate limit. Option D is wrong because backup retention does not affect log rate.

127
MCQmedium

You are monitoring an Azure SQL Database using the Automatic Tuning feature. The database has a workload that is read-intensive. You enable the CREATE INDEX and DROP INDEX options. After a week, you observe that the database has created several new indexes automatically. However, you notice that one of the new indexes is causing increased write latency for an application that performs frequent updates. What should you do to resolve the issue without losing the benefits of automatic tuning for other indexes?

A.Use the Azure portal to revert all automatic tuning recommendations for the past week.
B.Manually create the missing indexes that were dropped by automatic tuning.
C.Disable automatic tuning for the entire database.
D.Manually drop the problematic index using a DROP INDEX command.
AnswerD

You can manually revert a specific index while leaving automatic tuning active for other indexes.

Why this answer

Option D is correct because manually dropping the problematic index allows you to resolve the specific performance issue caused by increased write latency while retaining the benefits of automatic tuning for other indexes. The Automatic Tuning feature in Azure SQL Database can create indexes to improve read performance, but these indexes may introduce overhead on write operations. By issuing a DROP INDEX command, you surgically remove only the offending index without disabling the overall tuning mechanism.

Exam trap

The trap here is that candidates may think disabling automatic tuning entirely or reverting all recommendations is necessary, but the correct approach is to manually drop only the problematic index to preserve the benefits of automatic tuning for other indexes.

How to eliminate wrong answers

Option A is wrong because reverting all automatic tuning recommendations for the past week would undo all index changes, including beneficial ones, and does not target the specific problematic index. Option B is wrong because manually creating missing indexes that were dropped by automatic tuning is irrelevant; the issue is a newly created index causing write latency, not missing indexes. Option C is wrong because disabling automatic tuning for the entire database would stop all future tuning recommendations and lose the benefits of automatic index management for other queries, which is an overreaction to a single problematic index.

128
MCQmedium

You are optimizing an Azure SQL Database that has a heavy workload of both reads and writes. The database has a clustered columnstore index on a large fact table. You notice that the index has high fragmentation and the performance of queries against this table is degrading. What should you do to improve performance?

A.Rebuild the clustered columnstore index
B.Increase the service tier to get more IOPS
C.Drop and recreate the clustered columnstore index
D.Reorganize the clustered columnstore index
AnswerA

Rebuild reduces fragmentation and improves scan performance.

Why this answer

Option C is correct because rebuilding the columnstore index reduces fragmentation and improves performance. Option A is wrong because reorganizing a columnstore index is not supported; only rebuild is. Option B is wrong because dropping and recreating is more disruptive.

Option D is wrong because increasing service tier addresses symptoms not fragmentation.

129
Multi-Selecthard

You are troubleshooting a transaction log growth issue on an Azure SQL Database. Which THREE conditions can cause the transaction log to grow unexpectedly?

Select 3 answers
A.Replication that has not delivered transactions to the subscriber
B.A memory-optimized table with a large number of rows
C.A long-running transaction that has not been committed
D.A missing index on a large table that causes excessive updates
E.Page compression enabled on tables
AnswersA, C, D

Log space held for replication.

Why this answer

Options A, B, and D are correct. A long-running transaction prevents log truncation. Replication with transactions waiting to be delivered can hold log space.

A missing index can cause large updates that generate many log records. Option C is wrong because a memory-optimized table uses a different log mechanism but does not directly cause log growth more than disk-based tables. Option E is wrong because page compression reduces log size if anything.

130
MCQhard

You are configuring a private endpoint for an Azure SQL Database. The exhibit shows the current network ACLs. You need to ensure that only traffic from a specific subnet in VNet1 is allowed, and all other traffic is denied. What should you do?

A.No changes needed; the configuration already meets the requirement.
B.Add an IP rule to allow the subnet's IP range.
C.Set ignoreMissingVnetServiceEndpoint to true.
D.Change defaultAction to Allow.
AnswerA

Default deny with a VNet rule for the subnet allows only that subnet.

Why this answer

Option A is correct because the exhibit already has defaultAction: Deny and a virtual network rule for the subnet, which allows traffic from that subnet. Option B is wrong because adding an IP rule would allow traffic from the IP, which is not desired. Option C is wrong because setting ignoreMissingVnetServiceEndpoint to true would allow the rule even if the endpoint is missing, which could cause unintended access.

Option D is wrong because changing defaultAction to Allow would allow all traffic.

131
MCQeasy

You are monitoring a critical production Azure SQL Database that is experiencing intermittent query timeouts. The database is configured with the General Purpose service tier. You need to identify the root cause of the timeouts with minimal overhead. What should you review first?

A.Implement automatic tuning to force plan regression fixes.
B.Increase the database service tier to Business Critical.
C.Use sys.dm_exec_query_stats to identify queries with high wait statistics.
D.Enable Query Store and review the Regressed Queries report.
AnswerC

Low-overhead way to find problematic queries and their wait types.

Why this answer

Option A is correct because sys.dm_exec_query_stats provides aggregated query performance data without adding significant overhead, and high wait stats often point to resource contention. Option B is wrong because Query Store insights require Query Store to be enabled and may not be the first step. Option C is wrong because automatic tuning recommendations are for optimization, not troubleshooting.

Option D is wrong because scaling up is a reactive measure, not a diagnostic step.

132
MCQhard

You have an Azure SQL Database that uses the Hyperscale service tier. You notice that the log rate is frequently throttled. Which configuration change can help reduce log rate throttling?

A.Increase max degree of parallelism
B.Increase the log rate limit by scaling up the service level objective
C.Reduce backup retention period
D.Add more compute replicas
AnswerB

Higher SLOs provide higher log rate limits.

Why this answer

Increasing the log rate limit allows more transactions per second. Option D is correct. Option A is wrong because Hyperscale does not have compute replicas for log rate.

Option B is wrong because changing backup retention does not affect log rate. Option C is wrong because increasing max degree of parallelism may not reduce log generation.

133
MCQmedium

You are managing an Azure SQL Database in the General Purpose service tier with 100 DTUs. The database supports an e-commerce application. Over the past week, you notice that CPU usage frequently reaches 100% during peak hours, causing query timeouts. You have identified that the most expensive query is a SELECT statement that joins five tables and returns aggregated sales data. You need to reduce CPU pressure without changing the service tier or adding indexes. What should you do?

A.Scale up to the Business Critical tier.
B.Increase the DTUs to 200.
C.Use Query Store to identify and force a more efficient execution plan.
D.Add a nonclustered index on the join columns.
AnswerC

Query Store can capture plan history and force a plan that uses less CPU without changing tier or indexes.

Why this answer

Option A is correct because enabling Query Store and forcing a plan that reduces CPU is a non-intrusive way to improve performance. Option B is wrong because it increases DTUs, which changes service tier. Option C is wrong because it adds indexes.

Option D is wrong because scaling up is changing tier.

134
Multi-Selecthard

Which THREE factors should you consider when choosing between vCore and DTU purchase models for Azure SQL Database performance optimization?

Select 3 answers
A.Only vCore supports Azure Hybrid Benefit.
B.DTU is simpler for customers who want a bundled metric.
C.vCore allows reserved instance pricing for cost savings.
D.vCore provides more predictable performance for consistent workloads.
E.Only DTU supports elastic pools.
AnswersB, C, D

DTU combines compute, storage, and I/O.

Why this answer

Option B is correct because the DTU (Database Transaction Unit) model bundles compute, storage, and I/O into a single, simple metric, making it easier for customers who want a straightforward, pre-configured performance tier without needing to manage individual resources. This contrasts with the vCore model, which requires separate configuration of vCores, memory, and storage, offering more granular control but greater complexity.

Exam trap

The trap here is that candidates often assume Azure Hybrid Benefit or elastic pools are exclusive to one model, when in fact both features are available across vCore and DTU, leading to incorrect elimination of correct options like B, C, and D.

135
MCQhard

Refer to the exhibit. An Azure SQL Database in the Standard tier (S2: 50 DTU) is consistently showing high DTU consumption. Which action would most effectively reduce DTU usage?

A.Create an index on the tables accessed by Query 1234
B.Increase the log_write_percent by adjusting transaction log settings
C.Scale up to a higher service tier (e.g., S3)
D.Rebuild all indexes in the database
AnswerA

Reducing logical reads via indexing directly lowers DTU usage.

Why this answer

Query 1234 has high logical reads, indicating inefficient queries causing high DTU. Optimizing it would reduce resource consumption.

136
MCQmedium

You manage an Azure SQL Managed Instance that hosts a critical OLTP database. You notice that the average CPU usage is consistently above 90% during business hours. You have enabled Intelligent Insights, which recommends creating a missing index. What should you do first to validate the recommendation before implementing it?

A.Use Query Store to review query performance and missing index details.
B.Scale up the managed instance to a higher tier.
C.Enable automatic index tuning.
D.Create the recommended index immediately.
AnswerA

Allows validation of the index impact on specific queries.

Why this answer

Option B is correct because you should use Query Store to identify the specific queries causing high CPU and verify the index impact. Option A is wrong because automatic index tuning could be risky without validation. Option C is wrong because scaling up may not address the root cause.

Option D is wrong because the index already exists in the recommendation.

137
MCQeasy

You need to configure Azure SQL Database to automatically adjust indexing based on workload patterns. Which feature should you enable?

A.Azure Advisor
B.Intelligent Insights
C.Automatic tuning
D.Query Store
AnswerC

Automatic tuning can automatically create and drop indexes.

Why this answer

Automatic tuning in Azure SQL Database continuously analyzes query execution plans and workload patterns, then automatically creates, drops, or rebuilds indexes to improve performance. It uses built-in intelligence to recommend and apply index changes without manual intervention, making it the correct feature for automatically adjusting indexing based on workload patterns.

Exam trap

The trap here is that candidates often confuse Azure Advisor's recommendations with automatic implementation, but Azure Advisor only provides suggestions, whereas Automatic tuning actually applies index changes automatically based on workload patterns.

How to eliminate wrong answers

Option A is wrong because Azure Advisor provides proactive recommendations for cost, security, reliability, and performance, but it does not automatically adjust indexing; it only suggests manual actions. Option B is wrong because Intelligent Insights uses built-in intelligence to monitor database performance and detect anomalies, but it does not automatically implement index changes; it delivers root cause analysis and recommendations. Option D is wrong because Query Store captures query execution statistics and plan history for troubleshooting and tuning, but it does not automatically adjust indexing; it requires manual analysis or integration with Automatic tuning to apply changes.

138
MCQhard

You are reviewing an Azure SQL Database server's vulnerability assessment settings. The exhibit shows the current configuration. A recent security audit requires that vulnerability assessment scans be enabled and that results be retained for at least 90 days. What should you do?

A.Add additional email addresses to ensure notification.
B.Change retentionDays to 90 and keep the state as Disabled.
C.Change state to Enabled and set retentionDays to 90.
D.Remove the disabledAlerts entries to enable all alerts.
AnswerC

Enables the scan and meets the retention requirement.

Why this answer

Option D is correct because the exhibit shows the vulnerability assessment is disabled (state: Disabled) and retentionDays is 30, which is less than 90. You must enable it and set retentionDays to at least 90. Option A is wrong because the disabledAlerts list is about alerts not to send, not the scan itself.

Option B is wrong because emailAddresses do not affect scan frequency or retention. Option C is wrong because the state must be enabled, not just retentionDays increased.

139
MCQmedium

You are a database administrator for a large retail company. The company uses an Azure SQL Database in the Business Critical tier (8 vCores, 480 GB storage) to run its core transaction processing system. The database has automatic tuning enabled, including FORCE_LAST_GOOD_PLAN and CREATE_INDEX. You notice that the database is experiencing high CPU usage (90% average) during peak hours, and the Query Store shows that a specific query (Query ID 123) has regressed. The automatic tuning feature has forced a plan for this query, but the performance is still poor. You need to resolve the CPU issue and ensure the query runs efficiently. What should you do first?

A.Disable automatic tuning and manually create a plan guide for the query.
B.Use Query Store to compare the forced plan with the previous good plan and update statistics.
C.Modify the query to use query hints like OPTIMIZE FOR UNKNOWN.
D.Scale up the database to 16 vCores to handle the CPU load.
AnswerB

Plan regression often due to statistics; updating may let optimizer pick a better plan.

Why this answer

Option B is correct because reviewing the plan history in Query Store helps identify why the forced plan is not optimal, and perhaps the regression is due to parameter sniffing or outdated statistics. Option A is wrong because disabling automatic tuning may cause further regression. Option C is wrong because scaling up might be unnecessary if plan issue is fixable.

Option D is wrong because modifying data types is a heavy change.

140
MCQmedium

You are a database administrator for a medium-sized e-commerce company. The company runs its online transaction processing (OLTP) workload on an Azure SQL Database in the General Purpose service tier (DTU-based, S3). The database is used for order processing, inventory management, and customer data. Recently, during peak shopping hours (10 AM to 2 PM), users have reported that order entry forms take several seconds to submit, and inventory queries are timing out. Monitoring shows that DTU usage regularly hits 100% during these hours, with high PAGELATCH_IO waits. You need to resolve the performance issue with minimal cost increase. What should you do?

A.Increase the max storage size to 1 TB
B.Increase the service tier to S4 during peak hours
C.Create a read-only replica and offload reporting queries
D.Migrate to the vCore model with Hyperscale service tier
AnswerD

Hyperscale eliminates resource contention and handles high concurrency.

Why this answer

Option B is correct because switching to the vCore model with Hyperscale tier provides better scalability and eliminates resource contention by separating compute and storage, reducing PAGELATCH_IO waits. Option A is wrong because scaling to S4 only adds more DTU but does not address the architecture limitation causing PAGELATCH_IO. Option C is wrong because adding a read-only replica does not help write-heavy OLTP.

Option D is wrong because increasing storage does not affect DTU limits.

141
Multi-Selecteasy

Which TWO metrics are available in Azure Monitor for an Azure SQL Database that can be used to set autoscale rules? (Select two.)

Select 2 answers
A.CPU percentage
B.Log write throughput
C.Deadlock count
D.DTU percentage
E.Query Store size
AnswersA, D

CPU percentage is a standard metric for scaling.

Why this answer

Options A and D are correct because DTU percentage and CPU percentage are standard metrics for autoscaling. Option B is wrong because deadlocks are an event, not a continuous metric. Option C is wrong because log write throughput is not typically used for autoscale.

Option E is wrong because Query Store is not a metric source.

142
MCQeasy

You have an Azure SQL Database that uses the General Purpose service tier. You notice that the log write throughput is consistently near the limit. What should you do to improve log write performance?

A.Migrate to the Business Critical service tier.
B.Enable accelerated database recovery.
C.Migrate to the Hyperscale service tier.
D.Increase the DTU purchase model to a higher tier.
AnswerA

Business Critical provides higher log write throughput.

Why this answer

The General Purpose service tier in Azure SQL Database has a maximum log write throughput of 1.5 MB/s for the most common configurations. The Business Critical tier uses local SSD storage and a higher log I/O limit (up to 100 MB/s), which directly addresses log write throughput bottlenecks. Migrating to Business Critical is the correct action because it provides significantly higher log write throughput and lower latency for transaction log writes.

Exam trap

The trap here is that candidates often assume increasing DTUs or moving to Hyperscale will solve all performance issues, but they fail to recognize that log write throughput is a specific architectural limitation of the General Purpose tier that only the Business Critical tier resolves.

How to eliminate wrong answers

Option B is wrong because enabling accelerated database recovery (ADR) improves transaction rollback and recovery times, not log write throughput; it does not increase the log I/O capacity. Option C is wrong because the Hyperscale service tier is designed for large databases with fast scaling and high read throughput, but its log write throughput is still limited compared to Business Critical and is not the primary solution for a log write bottleneck. Option D is wrong because increasing the DTU purchase model to a higher tier (e.g., from S3 to S4) does not change the underlying architecture; General Purpose still uses remote storage with the same log write throughput limitations, regardless of DTU level.

143
MCQhard

Refer to the exhibit. An automatic tuning recommendation to force the last good plan is active. What should the database administrator do next?

A.Immediately implement the DROP_INDEX recommendation to reduce overhead
B.Create the recommended index to improve performance
C.Revert the plan force because it is causing regression
D.Monitor the query performance to confirm the forced plan resolves the regression
AnswerD

The active recommendation should be monitored for effectiveness.

Why this answer

The recommendation is active and the query regressed, so forcing the last good plan is appropriate. The DBA should verify the plan change improved performance.

144
MCQmedium

You are managing an Azure SQL Database that is experiencing intermittent performance degradation. Query Store shows that a specific query's execution plan changed, causing increased CPU usage. You need to ensure consistent performance without rewriting the application. What should you do?

A.Increase the DTU/service tier of the database
B.Create a missing index recommendation
C.Drop and recreate the index used by the query
D.Force the previous query plan using Query Store
AnswerD

Plan forcing enforces the known good plan for consistent performance.

Why this answer

Option C is correct because forcing the previous known good plan via Query Store plan forcing stabilizes performance without code changes. Option A is wrong because index tuning may not revert the plan. Option B is wrong because dropping and recreating the index is disruptive.

Option D is wrong because DTU increase addresses symptoms not root cause.

145
MCQhard

You administer a large Azure SQL Database that is used for a SaaS application. The database has a table with over 1 billion rows that is frequently queried by customer ID. The table currently has a clustered index on an identity column and a nonclustered index on customer ID. Queries that filter by customer ID are experiencing high IO and long execution times. You analyze the execution plan and see that the nonclustered index is used, but there are many key lookups. You need to optimize the query performance while minimizing storage overhead. What should you do?

A.Create a clustered columnstore index on the table
B.Create a filtered index on customer ID for frequent values
C.Partition the table by customer ID
D.Add all queried columns as included columns to the nonclustered index
AnswerA

Reduces IO and storage; eliminates lookups.

Why this answer

Option A is correct because creating a clustered columnstore index on the table will significantly reduce IO by using columnar storage and eliminate key lookups; it also provides high compression to minimize storage. Option B is wrong because adding included columns to the nonclustered index will increase storage size and may not fully eliminate lookups. Option C is wrong because partitioning by customer ID can improve maintenance but may not reduce IO for point queries.

Option D is wrong because creating a filtered index on customer ID is not helpful for many different customer IDs.

146
MCQmedium

You are monitoring an Azure SQL Database using Query Performance Insight. You see a query with high duration and high CPU usage. The query plan shows a clustered index scan. What is the most likely cause and recommendation?

A.Fragmented clustered index; rebuild the clustered index.
B.Insufficient memory; increase the service tier.
C.Missing nonclustered index; create an index on the predicates.
D.Parameter sniffing; add OPTION (RECOMPILE).
AnswerC

An index seek would reduce CPU and duration.

Why this answer

Query Performance Insight shows a query with high duration and CPU usage, and the query plan reveals a clustered index scan. A clustered index scan reads all rows in the table, which is inefficient when only a subset of rows is needed. The most likely cause is a missing nonclustered index on the columns used in the WHERE clause (predicates), which would allow a seek operation instead of a full scan, reducing both CPU and duration.

Exam trap

The trap here is that candidates confuse a clustered index scan with fragmentation or parameter sniffing, but the scan is a symptom of a missing nonclustered index that would allow a seek, not a problem with the clustered index itself or plan caching.

How to eliminate wrong answers

Option A is wrong because a fragmented clustered index causes increased I/O and scan overhead, but the primary issue here is the scan itself, not fragmentation; rebuilding the index would not eliminate the scan if the query lacks a supporting index. Option B is wrong because insufficient memory would manifest as page life expectancy issues or disk spills, not a clustered index scan; increasing the service tier does not address the missing index. Option D is wrong because parameter sniffing leads to suboptimal cached plans for different parameter values, but the query plan shows a clustered index scan, which indicates a fundamental missing index issue, not a plan choice problem; adding OPTION (RECOMPILE) would not create the missing index.

147
Multi-Selecteasy

You are troubleshooting a performance issue in an Azure SQL Database. You need to identify the queries that are consuming the most CPU over the last hour. Which two methods can you use? (Choose two.)

Select 2 answers
A.sys.dm_exec_query_stats
B.sys.dm_os_wait_stats
C.sys.dm_db_index_usage_stats
D.sys.dm_exec_requests
E.Query Store top resource consuming queries report
AnswersA, E

Provides cumulative CPU time for cached plans.

Why this answer

Options A and C are correct. Query Store can show top queries by CPU over a time period. sys.dm_exec_query_stats provides cumulative CPU time for cached queries. Option B is wrong because sys.dm_os_wait_stats shows waits, not CPU.

Option D is wrong because sys.dm_exec_requests shows currently executing requests, not historical CPU. Option E is wrong because sys.dm_db_index_usage_stats shows index usage.

148
MCQeasy

You have an Azure SQL Database in the Hyperscale service tier. You need to ensure that read-only workloads are offloaded to a readable secondary. Which configuration should you set?

A.Set ReadOnlyRouting=1 on the database.
B.Add the database to a failover group.
C.Set ReadScale to 1 on the database.
D.Use ApplicationIntent=ReadOnly in the connection string.
AnswerD

This routes queries to a readable secondary.

Why this answer

Option D is correct because setting `ApplicationIntent=ReadOnly` in the connection string directs read-only workloads to a readable secondary replica in Azure SQL Database Hyperscale. This offloads read traffic from the primary, improving performance for write-heavy operations. The Hyperscale tier supports this feature without requiring a failover group or explicit read-scale configuration.

Exam trap

The trap here is that candidates confuse the `ReadScale` property (used in Premium tier) with the Hyperscale tier's always-on read-scale capability, or incorrectly think a failover group is required to enable read-only routing.

How to eliminate wrong answers

Option A is wrong because `ReadOnlyRouting=1` is not a valid Azure SQL Database setting; read-only routing is controlled via connection string intent, not a database-level property. Option B is wrong because adding the database to a failover group enables geo-failover and read-only routing for business continuity, but it is not required for offloading read workloads to a readable secondary in Hyperscale; the Hyperscale tier provides a built-in readable secondary without a failover group. Option C is wrong because `ReadScale` is a property for Azure SQL Database in the Premium tier (set to 1 to enable read-scale out), but in Hyperscale, read-scale is always enabled and does not need a separate configuration flag.

149
MCQeasy

You manage an Azure SQL Database that uses the General Purpose tier. You need to monitor the performance of the database and identify the top resource-consuming queries. You want to use a built-in feature that requires no additional cost. What should you use?

A.Query Store.
B.Azure SQL Analytics (preview) in Azure Monitor.
C.SQL Server Profiler.
D.sys.dm_exec_query_stats and sys.dm_exec_sql_text DMVs.
AnswerA

Query Store is a built-in, free feature that captures query performance data and helps identify top resource consumers.

Why this answer

Option D is correct because Query Store is a built-in, no-cost feature that tracks query performance. Option A is wrong because Azure SQL Analytics is a paid solution. Option B is wrong because dynamic management views require manual querying.

Option C is wrong because SQL Server Profiler is deprecated and not supported in Azure SQL Database.

150
MCQeasy

You are monitoring an Azure SQL Database and notice that the average CPU usage is 80% and the average data IO percentage is 70%. You need to identify the most likely cause of the high resource usage. What should you check first?

A.Check for long-running maintenance tasks
B.Check for connection pooling issues
C.Check for blocking and deadlocks
D.Use Query Store to identify top resource-consuming queries
AnswerD

Query Store helps find queries consuming CPU and IO.

Why this answer

Option C is correct because Query Store provides detailed query performance data to identify high resource queries. Option A is incorrect because blocking and deadlocks cause waits, not necessarily high CPU/IO. Option B is incorrect because maintenance tasks like index rebuild are scheduled and not typically the first check.

Option D is incorrect because connection pooling issues cause connection errors, not high CPU/IO.

← PreviousPage 2 of 3 · 214 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Monitor Optimize Db questions.