Administering Microsoft Azure SQL Solutions DP-300 Practice Test 5
Question 40
A database administrator must resolve this Azure SQL or SQL Server issue: A DBA removes a developer from an Entra group but a long-lived connection retains current access. What action BEST meets the requirement?
- Replace shared credentials with identifiable least-privilege application accounts or Entra identities
- Use Microsoft Entra workload identity or secured secret references for SQL connections where supported
- Review role membership and effective GRANT DENY and REVOKE assignments on the securable
- Validate identity membership refresh and session/token lifecycle rather than only database role text
Explanation
Correct Answer
D:Validate identity membership refresh and session/token lifecycle rather than only database role text. The deciding requirement in this SQL platform scenario is addressed because external identity authorization can depend on effective token claims and existing session state. Without the change, expecting an active access token to vanish immediately after group membership change can be incorrect. Confirm the outcome through a controlled validation where a new login after token refresh is denied while approved identities continue working.
Incorrect Answers
A:Replace shared credentials with identifiable least-privilege application accounts or Entra identities would instead apply to another SQL platform issue, such as when a security auditor finds a shared SQL admin login used by multiple applications. The present requirement calls for validate identity membership refresh and session/token lifecycle rather than only database role text; this alternative changes a different control and does not directly resolve the stated database issue.
B:Use Microsoft Entra workload identity or secured secret references for SQL connections where supported would instead apply to another SQL platform issue, such as when a database administrator wants to avoid storing sensitive passwords in Azure deployment scripts. The present requirement calls for validate identity membership refresh and session/token lifecycle rather than only database role text; this alternative changes a different control and does not directly resolve the stated database issue.
C:Review role membership and effective GRANT DENY and REVOKE assignments on the securable would instead apply to another SQL platform issue, such as when a compliance application needs a T-SQL permission audit of who can modify a critical table. The present requirement calls for validate identity membership refresh and session/token lifecycle rather than only database role text; this alternative changes a different control and does not directly resolve the stated database issue.
Question 41
A database administrator selects "Use row-level security predicates based on a verified trusted region or tenant context" after observing "A privacy review requires a restricted application identity to access only its region's customer records". What mechanism makes it appropriate?
- RLS policies enforce row filtering in SQL even when several applications share a table
- CDC exposes recorded row changes for consumers that need more than a changed-row identifier
- Row-level security filters accessible rows according to the effective database security context
- Ledger integrity assurance depends on validating cryptographic digests outside the editable data path
Explanation
Correct Answer
A:RLS policies enforce row filtering in SQL even when several applications share a table. This is the mechanism that makes the proposed change, use row-level security predicates based on a verified trusted region or tenant context, appropriate to the database environment described. The key limitation is that using client-supplied arbitrary session context without validation may allow identity spoofing. A concrete confirmation is that negative tests for another region return no protected rows from direct database queries.
Incorrect Answers
B:CDC exposes recorded row changes for consumers that need more than a changed-row identifier is a valid distinction for a different database situation, for example when a data lake ingestion process needs detailed SQL row-level changes for near-real-time replication. Here the determining mechanism is that rLS policies enforce row filtering in SQL even when several applications share a table. The alternative does not explain why the selected solution addresses this requirement.
C:Row-level security filters accessible rows according to the effective database security context is a valid distinction for a different database situation, for example when a SaaS database shares a customer table among tenants but must isolate visible rows by caller. Here the determining mechanism is that rLS policies enforce row filtering in SQL even when several applications share a table. The alternative does not explain why the selected solution addresses this requirement.
D:Ledger integrity assurance depends on validating cryptographic digests outside the editable data path is a valid distinction for a different database situation, for example when a ledger database publishes digests but the verification job never checks them against an external trusted record. Here the determining mechanism is that rLS policies enforce row filtering in SQL even when several applications share a table. The alternative does not explain why the selected solution addresses this requirement.
Question 42
In the scenario "A staging SQL database was restored from production and contains confidential values", what should the database administrator do FIRST to address the stated requirement?
- Evaluate Always Encrypted with secure enclaves and compatible operations
- Apply environment-specific access boundaries and validate encryption and data masking requirements
- Update the client drivers and require appropriate supported SQL TLS settings
- Use Always Encrypted with supported client drivers and secure key custody
Explanation
Correct Answer
B:Apply environment-specific access boundaries and validate encryption and data masking requirements. The deciding requirement in this SQL platform scenario is addressed because restoring data carries sensitive content into the target security boundary unless separately controlled. Without the change, assuming a restored test database is harmless can expose production personal information. Confirm the outcome through a controlled validation where only approved testers can access the protected restored data under reviewed controls.
Incorrect Answers
A:Evaluate Always Encrypted with secure enclaves and compatible operations would instead apply to another SQL platform issue, such as when an analytics filter must compare sensitive Always Encrypted values without exposing keys to the engine. The present requirement calls for apply environment-specific access boundaries and validate encryption and data masking requirements; this alternative changes a different control and does not directly resolve the stated database issue.
C:Update the client drivers and require appropriate supported SQL TLS settings would instead apply to another SQL platform issue, such as when a hybrid application has configured TLS for Azure SQL but legacy clients still negotiate unsupported encryption behavior. The present requirement calls for apply environment-specific access boundaries and validate encryption and data masking requirements; this alternative changes a different control and does not directly resolve the stated database issue.
D:Use Always Encrypted with supported client drivers and secure key custody would instead apply to another SQL platform issue, such as when a healthcare application must keep patient identifiers encrypted even from a database administrator. The present requirement calls for apply environment-specific access boundaries and validate encryption and data masking requirements; this alternative changes a different control and does not directly resolve the stated database issue.
Question 43
A SQL operations team has not corrected "A regulator asks for proof that all privileged SQL statements in a target database are recorded". Which adverse outcome is MOST likely?
- Assuming change tracking returns complete historical row images can break downstream audit requirements
- A configured audit toggle alone does not prove that relevant SQL activity was stored
- Enabling a narrow login-only auditing group can miss sensitive data modifications
- Saving verification digests only beside writable database content weakens tamper detection
Explanation
Correct Answer
C:Enabling a narrow login-only auditing group can miss sensitive data modifications. This concern directly arises because audit rule selection determines which SQL events are captured and sent to the destination. The appropriate remediation is to enable database auditing groups that capture required statements and validate coverage. A successful control check would show that a controlled privileged DDL change appears in the approved audit stream.
Incorrect Answers
A:Assuming change tracking returns complete historical row images can break downstream audit requirements can matter in a separate case, such as when an operational sync system wants to detect changed rows without retaining complete before-images. In this question, the principal consequence is that enabling a narrow login-only auditing group can miss sensitive data modifications. That different risk does not best characterize the missing control in the given scenario.
B:A configured audit toggle alone does not prove that relevant SQL activity was stored can matter in a separate case, such as when a security dashboard shows Azure SQL auditing enabled but no events arrive at its target storage. In this question, the principal consequence is that enabling a narrow login-only auditing group can miss sensitive data modifications. That different risk does not best characterize the missing control in the given scenario.
D:Saving verification digests only beside writable database content weakens tamper detection can matter in a separate case, such as when a ledger database publishes digests but the verification job never checks them against an external trusted record. In this question, the principal consequence is that enabling a narrow login-only auditing group can miss sensitive data modifications. That different risk does not best characterize the missing control in the given scenario.
Question 44
After remediating "A SQL Server database uses the FULL recovery model but no transaction log backups have run for several days", which evidence BEST shows the intended outcome was achieved?
- The last log backup is applied in order and database recovery completes with expected rows
- The recovered database contains the committed records before the deletion event
- A test restore applies the complete log chain and meets the specified point of recovery
- A valid log backup chain is recorded and log usage follows the planned reuse behavior
Explanation
Correct Answer
D:A valid log backup chain is recorded and log usage follows the planned reuse behavior. This observation tests the actual effect of start and monitor an appropriate transaction-log backup schedule with recovery-chain validation instead of assuming that a configuration change alone was successful. The underlying database behavior is that fULL recovery model relies on log backups for log reuse and fine-grained point recovery. The control matters because expecting checkpoints alone to truncate active log history under FULL recovery can cause disk exhaustion.
Incorrect Answers
A:The last log backup is applied in order and database recovery completes with expected rows could validate a separate fix, for example when a DBA must restore a database from a full backup plus several log backups after a server failure. Here the required proof is that a valid log backup chain is recorded and log usage follows the planned reuse behavior. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
B:The recovered database contains the committed records before the deletion event could validate a separate fix, for example when an Azure SQL Database must be restored to the state it held shortly before accidental deletion at 14:00. Here the required proof is that a valid log backup chain is recorded and log usage follows the planned reuse behavior. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
C:A test restore applies the complete log chain and meets the specified point of recovery could validate a separate fix, for example when a SQL Server VM runs nightly full backups but daily transaction logs are missing from the recovery plan. Here the required proof is that a valid log backup chain is recorded and log usage follows the planned reuse behavior. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
Question 45
A database administrator selects "Use Query Store runtime statistics and query-level aggregates over the selected interval" after observing "A DBA wants to know which statement consumes the most total CPU across busy hours". What mechanism makes it appropriate?
- Query Store groups performance by statements plans and time windows for supported versions
- Parameter-sensitive plans can perform differently for highly skewed parameter values
- SQL optimizer cardinality estimates depend on statistics reflecting data distribution
- Long-running transactions retain locks and can block competing SQL sessions
Explanation
Correct Answer
A:Query Store groups performance by statements plans and time windows for supported versions. This is the mechanism that makes the proposed change, use Query Store runtime statistics and query-level aggregates over the selected interval, appropriate to the database environment described. The key limitation is that a single current DMV snapshot can miss statements that finished before inspection. A concrete confirmation is that a time-bounded report identifies the highest cumulative CPU query and its plan.
Incorrect Answers
B:Parameter-sensitive plans can perform differently for highly skewed parameter values is a valid distinction for a different database situation, for example when a query becomes slow when a parameter selects a rare customer but was compiled for a common customer. Here the determining mechanism is that query Store groups performance by statements plans and time windows for supported versions. The alternative does not explain why the selected solution addresses this requirement.
C:SQL optimizer cardinality estimates depend on statistics reflecting data distribution is a valid distinction for a different database situation, for example when a query is repeatedly recompiled after statistics become stale on a rapidly changing table. Here the determining mechanism is that query Store groups performance by statements plans and time windows for supported versions. The alternative does not explain why the selected solution addresses this requirement.
D:Long-running transactions retain locks and can block competing SQL sessions is a valid distinction for a different database situation, for example when a database experiences frequent blocking because a transaction waits for a remote API call. Here the determining mechanism is that query Store groups performance by statements plans and time windows for supported versions. The alternative does not explain why the selected solution addresses this requirement.
Question 46
In the scenario "A SQL Server VM solution needs automatic local availability across cluster nodes using existing Windows clustering", what should the database administrator do FIRST to address the stated requirement?
- Plan hybrid SQL Server availability and routing based on network and licensing requirements
- Evaluate supported Always On availability groups or failover cluster instances for the application
- Combine appropriate backup retention with availability replicas and access safeguards
- Evaluate active geo-replication on eligible Azure SQL databases and replica endpoint strategy
Explanation
Correct Answer
B:Evaluate supported Always On availability groups or failover cluster instances for the application. The deciding requirement in this SQL platform scenario is addressed because availability groups protect database replicas while failover cluster instances protect a shared-instance failover model. Without the change, choosing an FCI without planning supported shared storage and cluster dependencies can fail. Confirm the outcome through a controlled validation where the tested cluster meets application failover and storage-consistency requirements.
Incorrect Answers
A:Plan hybrid SQL Server availability and routing based on network and licensing requirements would instead apply to another SQL platform issue, such as when a bank operates on-premises SQL Server with an Azure virtual machine as disaster recovery. The present requirement calls for evaluate supported Always On availability groups or failover cluster instances for the application; this alternative changes a different control and does not directly resolve the stated database issue.
C:Combine appropriate backup retention with availability replicas and access safeguards would instead apply to another SQL platform issue, such as when a recovery strategy needs to protect against operator deletion as well as infrastructure outage. The present requirement calls for evaluate supported Always On availability groups or failover cluster instances for the application; this alternative changes a different control and does not directly resolve the stated database issue.
D:Evaluate active geo-replication on eligible Azure SQL databases and replica endpoint strategy would instead apply to another SQL platform issue, such as when a factory must maintain a readable reporting copy in another Azure Region while primary SQL remains active. The present requirement calls for evaluate supported Always On availability groups or failover cluster instances for the application; this alternative changes a different control and does not directly resolve the stated database issue.
Question 47
For the requirement "A query becomes slow when a parameter selects a rare customer but was compiled for a common customer", the proposed remediation is "Investigate parameter sensitivity using Query Store plans and supported query processing features". Which result BEST demonstrates success?
- The new plan reduces lookup count and overall resource usage under representative traffic
- A corrected plan aligns estimated and actual rows with reduced spill activity
- Representative rare and common parameter executions meet their latency objectives
- Blocked session duration falls after transaction scope is shortened
Explanation
Correct Answer
C:Representative rare and common parameter executions meet their latency objectives. This observation tests the actual effect of investigate parameter sensitivity using Query Store plans and supported query processing features instead of assuming that a configuration change alone was successful. The underlying database behavior is that parameter-sensitive plans can perform differently for highly skewed parameter values. The control matters because forcing a single plan indiscriminately may degrade other parameter distributions.
Incorrect Answers
A:The new plan reduces lookup count and overall resource usage under representative traffic could validate a separate fix, for example when a query has excessive key lookups after a nonclustered index seek on a hot table. Here the required proof is that representative rare and common parameter executions meet their latency objectives. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
B:A corrected plan aligns estimated and actual rows with reduced spill activity could validate a separate fix, for example when a join between two large tables shows a wrong estimated row count and memory grant spills. Here the required proof is that representative rare and common parameter executions meet their latency objectives. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
D:Blocked session duration falls after transaction scope is shortened could validate a separate fix, for example when a database experiences frequent blocking because a transaction waits for a remote API call. Here the required proof is that representative rare and common parameter executions meet their latency objectives. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
Question 48
After remediating "A new Azure SQL database watcher deployment collects metrics but no records arrive in its store", which evidence BEST shows the intended outcome was achieved?
- The timeline identifies the connection-error spike separately from slow SQL execution
- A controlled test establishes whether storage saturation coincides with migration lag
- Several days of comparable metrics reveal the recurring noon departure from baseline
- A monitored database produces new samples in the approved watcher destination
Explanation
Correct Answer
D:A monitored database produces new samples in the approved watcher destination. This observation tests the actual effect of check database watcher targets identity data-store configuration and permissions instead of assuming that a configuration change alone was successful. The underlying database behavior is that database watcher periodically collects supported database telemetry into a configured data store. The control matters because enabling watcher without granting target collection permissions can produce missing monitoring data.
Incorrect Answers
A:The timeline identifies the connection-error spike separately from slow SQL execution could validate a separate fix, for example when a security incident requires distinguishing SQL connection failures from query latency errors. Here the required proof is that a monitored database produces new samples in the approved watcher destination. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
B:A controlled test establishes whether storage saturation coincides with migration lag could validate a separate fix, for example when a large migration runs slowly only when an automatic platform backup overlaps it. Here the required proof is that a monitored database produces new samples in the approved watcher destination. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
C:Several days of comparable metrics reveal the recurring noon departure from baseline could validate a separate fix, for example when a transaction database intermittently slows at noon but has no normal workload measurements. Here the required proof is that a monitored database produces new samples in the approved watcher destination. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
Question 49
The team corrects "A bank requests reproducible Azure SQL deployments across multiple subscriptions with policy gates" by applying "Choose an approved infrastructure-as-code deployment of servers databases networking and policy". Which validation is MOST convincing?
- Two test environments are deployed with the same approved resource definitions
- A duty-cycle test confirms acceptable startup latency and compute charges
- A test monthly data lifecycle task targets the correct partition boundary
- Compatibility checks pass for required SQL Agent jobs and approved cross-database operations
Explanation
Correct Answer
A:Two test environments are deployed with the same approved resource definitions. This observation tests the actual effect of choose an approved infrastructure-as-code deployment of servers databases networking and policy instead of assuming that a configuration change alone was successful. The underlying database behavior is that declarative templates support repeatable Azure SQL resource provisioning under source review. The control matters because hand-building equivalent databases through the portal can create inconsistent security defaults.
Incorrect Answers
B:A duty-cycle test confirms acceptable startup latency and compute charges could validate a separate fix, for example when a platform architect must choose between Azure SQL Database serverless and provisioned compute for intermittent work. Here the required proof is that two test environments are deployed with the same approved resource definitions. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
C:A test monthly data lifecycle task targets the correct partition boundary could validate a separate fix, for example when a warehouse database contains a massive history table and monthly retention must avoid long row-delete scans. Here the required proof is that two test environments are deployed with the same approved resource definitions. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
D:Compatibility checks pass for required SQL Agent jobs and approved cross-database operations could validate a separate fix, for example when an ERP migration requires near-instance compatibility including SQL Agent jobs and cross-database features. Here the required proof is that two test environments are deployed with the same approved resource definitions. The alternative tests another database behavior and cannot establish whether the stated issue was corrected.
Question 50
Given the Azure SQL condition "A portfolio of hundreds of small tenant databases shares a pool but one tenant dominates resources", the proposed change is "Review per-database limits and elastic pool utilization before changing pool size". Which explanation BEST supports the change?
- Azure SQL service tiers differ in compute storage architecture and performance characteristics
- Elastic pools have aggregate resources and per-database resource governance that affect noisy neighbors
- Some Azure SQL service tiers expose read-only secondary replicas for supported scale-out patterns
- Aligned partitioned data and indexes support partition-aware administration and query pruning
Explanation
Correct Answer
B:Elastic pools have aggregate resources and per-database resource governance that affect noisy neighbors. This is the mechanism that makes the proposed change, review per-database limits and elastic pool utilization before changing pool size, appropriate to the database environment described. The key limitation is that increasing the total pool capacity without checking tenant limits may leave one database throttled. A concrete confirmation is that per-database and pool metrics show the dominating workload no longer starves its neighbors.
Incorrect Answers
A:Azure SQL service tiers differ in compute storage architecture and performance characteristics is a valid distinction for a different database situation, for example when a latency-sensitive transactional workload suffers read delays under the General Purpose tier. Here the determining mechanism is that elastic pools have aggregate resources and per-database resource governance that affect noisy neighbors. The alternative does not explain why the selected solution addresses this requirement.
C:Some Azure SQL service tiers expose read-only secondary replicas for supported scale-out patterns is a valid distinction for a different database situation, for example when an Azure SQL Database is write-heavy and a reader workload causes contention with transactions. Here the determining mechanism is that elastic pools have aggregate resources and per-database resource governance that affect noisy neighbors. The alternative does not explain why the selected solution addresses this requirement.
D:Aligned partitioned data and indexes support partition-aware administration and query pruning is a valid distinction for a different database situation, for example when an order database must retain current and historical partitions without changing business queries. Here the determining mechanism is that elastic pools have aggregate resources and per-database resource governance that affect noisy neighbors. The alternative does not explain why the selected solution addresses this requirement.