View Full Microsoft DP-300 Exam Dumps and Practice Test Dumps
Question 301. Which Azure service provides a managed SQL Server environment while supporting multiple databases on the same instance?
1) Azure SQL Database
2) Azure SQL Managed Instance
3) Azure Cosmos DB
4) Azure Database for MySQL
Answer: 2) Azure SQL Managed Instance
Explanation:
Azure SQL Managed Instance provides a fully managed SQL Server environment that supports multiple databases within an instance. It offers many SQL Server capabilities while Microsoft manages infrastructure, patching, backups, and other platform responsibilities. This makes it useful for organizations migrating applications that depend on instance-level functionality. Azure SQL Database generally focuses on individual database resources, whereas Managed Instance provides a broader instance-oriented environment. Database administrators can use familiar SQL Server tools and concepts while benefiting from Azure-managed infrastructure. Before migration, administrators should still assess application dependencies and verify compatibility with the target service.
Question 302. Which deployment option provides the highest level of control over the SQL Server operating system and installed software?
1) Azure SQL Database
2) Azure SQL Managed Instance
3) SQL Server on Azure Virtual Machines
4) Azure Synapse Analytics
Answer: 3) SQL Server on Azure Virtual Machines
Explanation:
SQL Server on Azure Virtual Machines provides administrators with operating-system-level control. The administrator can manage the Windows or Linux operating system, SQL Server installation, configuration, installed software, and many other aspects of the environment. This model is appropriate when an application requires operating-system access or specific configurations that are not available in fully managed database services. The tradeoff is that administrators must perform more operational tasks, including patching and maintaining the virtual machine and SQL Server environment. Azure provides the underlying virtual infrastructure, but the database administrator retains significant responsibility for system management.
Question 303. Which SQL Server feature allows administrators to execute a stored procedure or command automatically according to a defined schedule?
1) SQL Server Agent
2) Query Store
3) Database Mail
4) Resource Governor
Answer: 1) SQL Server Agent
Explanation:
SQL Server Agent provides job scheduling and automation capabilities for SQL Server environments. Administrators can create jobs containing one or more steps and associate those jobs with schedules. Jobs can perform tasks such as backups, index maintenance, statistics updates, data processing, or stored procedure execution. SQL Server Agent also supports notifications and alerts, helping administrators automate routine operations. A carefully designed job schedule can reduce manual administration and ensure recurring tasks occur consistently. Administrators should monitor job history and configure appropriate error handling so failed jobs can be identified and investigated promptly.
Question 304. Which SQL Server Agent object contains the individual actions that are executed when a job runs?
1) Schedule
2) Job step
3) Operator
4) Alert
Answer: 2) Job step
Explanation:
A SQL Server Agent job step defines an individual action performed by a job. A job can contain multiple steps, allowing administrators to create a sequence of operations. For example, one step could execute a stored procedure, another could perform a database maintenance command, and another could run a validation process. The schedule determines when the job runs, while the job steps define what the job actually does. Separating scheduling from execution tasks provides flexibility when designing automation. Administrators can also configure step success and failure actions to control how subsequent steps are handled.
Question 305. Which feature allows a SQL Server Agent job to send notifications to administrators about job success or failure?
1) Operator
2) Index
3) View
4) Database role
Answer: 1) Operator
Explanation:
SQL Server Agent operators represent individuals or groups that can receive notifications from SQL Server Agent. Administrators can configure jobs to notify an operator when a job succeeds, fails, or completes under specific conditions. This helps database teams identify important events without continuously checking SQL Server Agent manually. Operators can be used together with alerts and job configurations to build an administrative notification process. Proper notification settings are particularly useful for backup jobs, maintenance tasks, and other critical automated operations. Administrators should ensure that notification recipients and delivery mechanisms are configured correctly and tested.
Question 306. Which SQL Server feature helps regulate CPU and memory resources among different workloads?
1) Resource Governor
2) Database Mail
3) Query Store
4) SQL Server Browser
Answer: 1) Resource Governor
Explanation:
Resource Governor provides mechanisms for managing and controlling SQL Server resource consumption. Administrators can classify workloads and associate them with resource pools that define limits or priorities for supported resources. This can help prevent one workload from consuming an excessive share of available resources and affecting other workloads. Resource Governor is especially useful in environments hosting multiple applications or workloads with different performance requirements. Administrators should carefully analyze workload behavior before configuring resource controls because overly restrictive settings can negatively affect legitimate operations. Monitoring should continue after implementation to verify that the configuration produces the intended behavior.
Question 307. Which SQL Server component can classify incoming connections into workload groups for resource management?
1) Resource Governor classifier function
2) Query Store
3) SQL Server Agent schedule
4) Database Mail profile
Answer: 1) Resource Governor classifier function
Explanation:
A Resource Governor classifier function determines how incoming sessions are classified into workload groups. Classification can use characteristics of a connection, such as login information or application context, depending on the configuration. Once classified, the workload can be associated with an appropriate resource pool and its corresponding controls. This allows administrators to separate workloads based on business or technical requirements. Proper classifier design is important because incorrect classification can place sessions into the wrong workload group. Administrators should test classification logic carefully and monitor workload behavior after implementation to ensure that resource controls are applied as intended.
Question 308. Which SQL Server feature records historical query performance information for troubleshooting and analysis?
1) Query Store
2) SQL Server Browser
3) Database Mail
4) SQL Server Agent Operator
Answer: 1) Query Store
Explanation:
Query Store collects and retains query-related performance information over time. It can help administrators investigate query execution behavior, compare plans, identify performance changes, and analyze resource consumption. Historical information is particularly valuable because performance problems may not be occurring at the exact moment an administrator begins an investigation. Query Store provides a persistent source of workload information that can support troubleshooting and optimization. Database administrators can use it alongside execution plans and monitoring tools to determine whether a query’s performance changed because of a plan change, workload variation, statistics, or another factor.
Question 309. Which Query Store capability helps identify when a query begins using a different execution plan that performs worse?
1) Plan regression detection
2) Database backup
3) Firewall rules
4) Transparent Data Encryption
Answer: 1) Plan regression detection
Explanation:
Plan regression detection helps administrators identify situations where a query begins using an execution plan that performs worse than a previously used plan. Query Store retains historical query and plan information, allowing administrators to compare performance across different execution plans. Identifying regressions is important because a query can suddenly experience increased duration or resource consumption even when its SQL text has not changed. Once a problematic plan is identified, administrators can investigate the underlying cause and consider appropriate corrective actions. Query Store therefore provides valuable historical evidence for diagnosing changes in query performance.
Question 310. Which feature can automatically force a previously known good execution plan when SQL Server detects plan regression?
1) Automatic plan correction
2) Database Mail
3) SQL Server Browser
4) Data Classification
Answer: 1) Automatic plan correction
Explanation:
Automatic plan correction can help address certain query performance regressions by automatically forcing a previously identified execution plan when supported conditions are met. This capability is associated with automatic tuning functionality and uses historical performance information to identify problematic plan changes. It can reduce the time administrators need to spend manually responding to recurring plan regressions. However, administrators should still monitor the workload and review automatic recommendations or actions. Automated correction does not replace proper query optimization because underlying issues such as missing indexes, inaccurate statistics, or inefficient query design may still require investigation.
Question 311. Which database object provides a virtual table based on the result of a stored query?
1) View
2) Index
3) Trigger
4) Constraint
Answer: 1) View
Explanation:
A view is a database object that presents the results of a stored query as a virtual table. Views can simplify complex queries, provide controlled access to selected data, and hide underlying table structures from users or applications. A view does not normally store a separate copy of the underlying data; instead, its definition determines how the result is produced when queried. Administrators can use views to expose only required columns or rows while restricting direct access to base tables. Views should nevertheless be designed carefully because complex definitions can affect query performance depending on how they are used.
Question 312. Which database object automatically executes in response to specified data modification events?
1) Trigger
2) View
3) Index
4) Synonym
Answer: 1) Trigger
Explanation:
A trigger is a database object that automatically executes when specified events occur. DML triggers can respond to operations such as INSERT, UPDATE, or DELETE. Triggers are useful for enforcing certain business rules, maintaining related information, or recording changes. However, they can also introduce additional processing into data modification operations, so administrators should understand their performance and transaction implications. Poorly designed triggers may make troubleshooting more difficult because actions occur automatically rather than being explicitly called by application code. Database professionals should document triggers clearly and test their behavior under realistic transaction and concurrency conditions.
Question 313. Which constraint ensures that a column cannot contain NULL values?
1) DEFAULT
2) CHECK
3) NOT NULL
4) FOREIGN KEY
Answer: 3) NOT NULL
Explanation:
The NOT NULL constraint requires a column to contain a value whenever a row is inserted or when the column is otherwise required to have a value. It prevents SQL Server from storing NULL in that column. This constraint is useful for attributes that are mandatory for the application’s business logic, such as an employee identifier or required transaction date. NOT NULL differs from a DEFAULT constraint because a default supplies a value when one is not explicitly provided, while NOT NULL prevents the resulting value from being NULL. Database designers should use it where missing values are not acceptable.
Question 314. Which constraint ensures that values in a column or group of columns satisfy a specified logical condition?
1) CHECK
2) DEFAULT
3) FOREIGN KEY
4) INDEX
Answer: 1) CHECK
Explanation:
A CHECK constraint enforces a logical condition on values stored in a table. For example, a constraint could require a quantity to be greater than zero or ensure that a status column contains an approved value. SQL Server evaluates the CHECK condition when data is inserted or modified. This provides an important layer of data integrity because invalid values can be rejected at the database level rather than relying entirely on application validation. Administrators and developers should define constraints that reflect valid business rules while avoiding unnecessarily complex conditions that could make database maintenance and troubleshooting difficult.
Question 315. Which constraint automatically supplies a predefined value when an INSERT statement does not provide a value for the column?
1) DEFAULT
2) CHECK
3) PRIMARY KEY
4) FOREIGN KEY
Answer: 1) DEFAULT
Explanation:
A DEFAULT constraint supplies a predefined value when an INSERT statement does not explicitly provide a value for the associated column. For example, a transaction table might use a default expression to populate a creation timestamp automatically. Defaults help reduce application code and ensure that commonly required values are consistently populated. A DEFAULT constraint does not prevent an application from explicitly providing another valid value, and it does not by itself enforce uniqueness or referential integrity. Administrators should select default expressions carefully so they accurately reflect the intended business behavior of the database.
Question 316. Which constraint establishes a relationship between a column in one table and a key in another table?
1) CHECK
2) FOREIGN KEY
3) DEFAULT
4) NOT NULL
Answer: 2) FOREIGN KEY
Explanation:
A FOREIGN KEY constraint establishes referential integrity between related tables. It typically references a primary key or another qualifying unique key in a parent table. The constraint helps prevent child rows from containing values that do not correspond to valid parent records, depending on the configured actions and operation. Foreign keys are important in relational database design because they help maintain consistent relationships between entities. Administrators should consider indexing foreign-key columns where appropriate and understand how updates or deletes in the referenced table interact with the defined referential actions.
Question 317. Which backup contains all data required to restore a database to the point represented by that backup?
1) Full backup
2) Differential backup
3) Transaction log backup
4) Query Store backup
Answer: 1) Full backup
Explanation:
A full database backup contains the complete database data required to establish a backup baseline. It is commonly used as the starting point for restoring a database. Differential backups can then capture changes made since the most recent full backup, while transaction log backups capture transaction log records needed for point-in-time recovery. A well-designed backup strategy often combines these backup types according to recovery objectives and workload requirements. Administrators should verify backup completion, test restoration procedures, and store backups appropriately because a backup strategy is only effective when the organization can successfully restore required data.
Question 318. Which backup contains changes made since the most recent full database backup?
1) Full backup
2) Differential backup
3) Transaction log backup
4) Copy-only backup
Answer: 2) Differential backup
Explanation:
A differential backup contains data changes made since the most recent full database backup. Each differential backup therefore represents the cumulative changes since that full backup, rather than only the changes since the previous differential backup. During restoration, a differential backup is generally used together with the corresponding full backup. This can reduce the number of differential backups that need to be restored compared with restoring a long sequence of individual transaction log backups. Administrators should plan backup frequency according to recovery requirements and regularly verify that the selected backup strategy can meet the organization’s recovery objectives.
Question 319. Which backup type records transaction log changes and can support point-in-time database recovery?
1) Full backup
2) Differential backup
3) Transaction log backup
4) Snapshot backup
Answer: 3) Transaction log backup
Explanation:
A transaction log backup captures transaction log records that have been generated since the previous log backup, subject to the applicable recovery model and log truncation behavior. Transaction log backups are important for databases requiring point-in-time recovery. They can allow administrators to restore a full backup, apply an appropriate differential backup when used, and then apply transaction log backups up to a desired recovery point. Regular log backups also help control transaction log growth in supported recovery configurations. Administrators should monitor backup chains carefully and ensure that log backups are stored securely and tested through restoration procedures.
Question 320. Which SQL Server command is commonly used to check the logical and physical integrity of a database?
1) DBCC CHECKDB
2) DBCC FREEPROCCACHE
3) DBCC DROPCLEANBUFFERS
4) DBCC INPUTBUFFER
Answer: 1) DBCC CHECKDB
Explanation:
DBCC CHECKDB is used to check the logical and physical integrity of a SQL Server database. It performs various consistency checks and can report corruption or other structural problems. Running DBCC CHECKDB regularly can help administrators detect database integrity issues before they become more difficult to address. Because the command can consume significant resources on large databases, administrators should plan execution appropriately and understand its impact on production workloads. If corruption is detected, the recommended approach is generally to investigate the cause and use a known-good backup for recovery when possible rather than immediately relying on repair operations.