70-762 Practice Multiple Choice

Create an image depicting an engaging learning environment, featuring SQL Server elements like databases, performance analytics, and coding in a professional setting.

70-762 SQL Server Certification Quiz

Test your knowledge and skills with our 70-762 SQL Server Certification Quiz! This challenging quiz consists of 27 multiple choice and checkbox questions designed to evaluate your understanding of key concepts and practical applications in SQL Server.

Key Features:

  • Comprehensive coverage of SQL Server topics
  • Immediate feedback on your answers
  • Enhance your preparation for the certification exam
27 Questions7 MinutesCreated by QueryMaster256
You have a database that contains a table named Employees. The table stores information about the employees of your company. You need to implement and enforce the following business rules: - Limit the values that are accepted by the Salary column. - Prevent salaries less than $15,000 and greater than $300,000 from being entered. - Determine valid values by using logical expressions. - Do not validate data integrity when running DELETE statements. Solution: You implement a check constraint on the table. Does the solution meet the goal?
A. Yes
B. No
You have a database that contains a table named Employees. The table stores information about the employees of your company. You need to implement and enforce the following business rules: - Limit the values that are accepted by the Salary column. - Prevent salaries less than $15,000 and greater than $300,000 from being entered. - Determine valid values by using logical expressions. - Do not validate data integrity when running DELETE statements. Solution: You implement cascading referential integrity constraints on the table. Does the solution meet the goal?
A. Yes
B. No
Your company has employees in different regions around the world. You need to create a database table that stores the following employee attendance information: - Employee ID - date and time employee checked in to work - date and time employee checked out of work Date and time information must be time zone aware and must not store fractional seconds. Create Table [dbo].[EmployeeAttendance]( EmployeeId Int Not Null, DateCheckedIn datetimeOffset(0) Not Null, DateCheckOut DatetimeOffSet(0) Not Null) Solution: You run the following Transact-SQL statement:
A. Yes
B. No
You use Microsoft SQL Server Profile to evaluate a query named Query1. The Profiler report indicates the following issues: - At each level of the query plan, a low total number of rows are processed. - The query uses many operations. This results in a high overall cost for the query. You need to identify the information that will be useful for the optimizer. What should you do?
A. Start a SQL Server Profiler trace for the event class Auto Stats in the Performance event category.
B. Create one Extended Events session with the sqlserver.missing_column_statistics eventadded.
C. Start a SQL Server Profiler trace for the event class Soft Warnings in the Errors and Warnings event category.
D. Create one Extended Events session with the sqlserver.missing_join_predicate event added.
You have a database that is experiencing deadlock issues when users run queries. You need to ensure that all deadlocks are recorded in XML format. What should you do?
A. Create a Microsoft SQL Server Integration Services package that uses sys.dm_tran_locks.
B. Enable trace flag 1224 by using the Database Cpmsistency Checker(BDCC).
C. Enable trace flag 1222 in the startup options for Microsoft SQL Server.
D. Use the Microsoft SQL Server Profiler Lock:Deadlock event class.
You have a reporting database that includes a non-partitioned fact table named Fact_Sales. The table is persisted on disk. Users report that their queries take a long time to complete. The system administrator reports that the table takes too much space in the database. You observe that there are no indexes defined on the table, and many columns have repeating values. You need to create the most efficient index on the table, minimize disk storage and improve reporting query performance. What should you do?
A. Create a clustered indexon the table.
B. Create a nonclustered index on the table.
C. Create a nonclustered filtered index on the table.
D. Create a clustered columnstore index on the table.
E. Create a nonclustered columnstore index on the table.
F. Create a hash index on thetable.
You are developing and application to track customer sales. You need to create an object that meets the following requirements: - Run managed code packaged in an assembly that was created in the Microsoft.NET Framework and uploaded in Microsoft SQL Server. - Run written a transaction and roll back if a future occurs. - Run when a table is created or modified. What should you create?
A. Extended procedure
B. CLR procedure
C. user-defined procedure
D. DML trigger
E. scalar-valued function
F. table-valued function
G. DDL trigger
You are experiencing performance issues with the database server. You need to evaluate schema locking issues, plan cache memory pressure points, and backup I/O problems. What should you create?
A. a System Monitor report
B. A sys.dm_exec_query_stats dynamic management view query
C. A sys.dm_exec_session_wait_stats dynamicmanagement view query
D. an Activity Monitor session in Microsoft SQL Management Studio.
You are a database developer for a company. The company has a server that has multiple physical disks. The disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many SQL jobs that run during off-peak hours. You must monitor the SQL Server instances in real time and optimize the server to maximize throughput, response time, and overall SQL performance. What should you do?
A. A. Create asys.dm_os_waiting_tasks query.
B. Create a sys.dm_exec_sessions query.
C. Create aPerformance Monitor Data Collector Set.
D. Create a sys.dm_os_memory_objects query.
You are a database developer for a company. The company has a server that has multiple physical disks. The disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many SQL jobs that run during off-peak hours. You must monitor the SQL Server instances in real time and optimize the server to maximize throughput, response time, and overall SQL performance. You need to create a baseline set of metrics to report how the computer running SQL Server operates under normal load. The baseline must include the resource usage associated with the server processes. What should you do?
A. A. Create a sys.dm_os_waiting_tasks query.
B. Create a sys.dm_exec_sessions query.
C. Create a Performance Monitor Data Collector Set.
D. Create a sys.dm_os_memory_objects query.
You are a database developer for a company. The company has a server that has multiple physical disks. The disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many SQL jobs that run during off-peak hours. You must monitor and optimize the SQL Server to maximize throughput, response time, and overall SQL performance. You need to identify previous situations where a modification has prevented queries from selecting data in tables. What should you do?
A. Create a sys.dm_os_waiting_tasks query.
B. Create a sys.dm_exec_sessions query.
C. Create a Performance Monitor Data Collector Set.
D. Create a sys.dm_os_memory_objects query.
E. Create a sp_configure ‘max server memory’query.
F. Create a SQL Profiler trace.
G. Create a sys.dm_os_wait_stats query.
H. Create an Extended Event.
You are developing an application to track customer sales. You need to create a database object that meets the following requirements: - Return a value of 0 if data is inserted successfully into the Customers table. - Return a value of 1 if data is not inserted successfully into the Customers table. - Support logic that is written by using managed code. - Support TRYCATCH error handling. What should you create?
A. Extended procedure
B. CLR procedure
C. user-defined procedure
D. DML trigger
E. DDL trigger
F. scalar-valued function
G. table-valued function
You are developing an application to track customer sales. You need to create a database object that meets the following requirements: - Launch when table data is modified. - Evaluate the state a table before and after a data modification and take action based on the difference. - Prevent malicious or incorrect table data operations. - Prevent changes that violate referential integrity by cancelling the attempted data modification. - Run managed code packaged in an assembly that is created in the Microsoft.NET Framework and located into Microsoft SQL Server. What should you create?
A. Extended procedure
B. CLR procedure
C. user-defined procedure
D. DML trigger
E. scalar-valued function
F. table-valued function
You are developing an application to track customer sales. You need to create a database object that meets the following requirements: - Return a value of 0 if data is inserted successfully into the Customers table. - Return a value of 1 if data is not inserted successfully into the Customers table. - Support logic that is written by using managed code. - Support TRYCATCH error handling. What should you create?
A. Extended procedure
B. CLR procedure
C. user-defined procedure
D. DML trigger
E. scalar-valued function
F. table-valued function
You are a database developer for a company. The company has a server that has multiple physical disks. The disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many SQL jobs that run during off-peak hours. You must monitor the SQL Server instances in real time and optimize the server to maximize throughput, response time, and overall SQL performance. You need to collect query performance data while minimizing the performance impact on the SQL Server. What should you do?
A. Create a sys.dm_os_waiting_tasks query.
B. Create a sys.dm_exec_sessions query.
C. Create a Performance Monitor Data CollectorSet.
D. Create a sys.dm_os_memory_objects query.
E. Create a sp_configure ‘max server memory’ query.
F. Create a SQL Profiler trace.
G. Create a sys.dm_os_wait_stats query.
H. Create an Extended Event.
You have a database that contains a table named Employees. The table stores information about the employees of your company. You need to implement and enforce the following business rules: - Limit the values that are accepted by the Salary column. - Prevent salaries less than $15,000 and greater than $300,000 from being entered. - Determine valid values by using logical expressions. - Do not validate data integrity when running DELETE statements. Solution: You implement a FOR UPDATE trigger on the table. Does the solution meet the goal?
A. Yes
B. No
You are developing and application to track customer sales. You need to return the sum of orders that have been finalized, given a specified order identifier. This value will be used in other Transact-SQL statements. You need to create a database object. What should you create?
A. Extended procedure
B. CLR procedure
C. user-defined procedure
D. DML trigger
E. scalar-valued function
F. table-valued function
You have a view that includes an aggregate. You must be able to change the values of columns in the view. The changes must be reflected in the tables that the view uses. You need to ensure that you can update the view. What should you create?
A. table-valued function
B. A schema-bound view
C. A partitioned view
D. a DML trigger
You have a database that contains a table named Employees. The table stored information about the employees of your company. You need to implement the following auditing rules for the Employees table: - Record any changes that are made to the data in the Employees table. - Customize the data recorded by the audit operations. Solution: You implement a stored procedure on the Employees table. Does the solution meet the goal?
A. Yes
B. No
You are experiencing performance issues with the database server. You need to evaluate schema locking issues, plan cache memory pressure points, and backup I/O problems. What should you create?
A. a System Monitor report
B. A sys.dm_tran_database_transaction dynamic management view query
C. an Extended Events session that uses Query Editor
D. an Activity Monitor session in Microsoft SQL Management Studio.
You are a database developer for a company. The company has a server that has multiple physical disks. The disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many SQL jobs that run during off-peak hours. You must monitor the SQL Server instances in real time and optimize the server to maximize throughput, response time, and overall SQL performance. You need to ensure that the performance of each instance is consistent for the same queried and query plans. What should you do?
A. A. Create a sys.dm_os_waiting_tasks query.
B. Create a sys.dm_exec_sessions query.
C. Create a Performance Monitor Data Collector Set.
D. Create a sys.dm_os_memory_objects query.
E. Create a sp_configure ‘max server memory’ query.
F. Create aSQL Profiler trace.
G. Create asys.dm_os_wait_stats query.
H. Create an Extended Event.
You have a database that contains a table named Employees. The table stores information about the employees of your company. You need to implement the following auditing rules for the Employees table: - Record any changes that are made to the data in the Employees table. - Customize the data recorded by the audit operations. Solution: You implement a user-defined function on the Employees table. Does the solution meet the goal?
A. Yes
B. No
You are a database developer for a company. The company has a server that has multiple physical disks. The disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many SQL jobs that run during off-peak hours. You observe that many deadlocks appear to be happening during specific times of the day. You need to monitor the SQL environment and capture the information about the processes that are causing the deadlocks. What should you do?
A. A. Create a sys.dm_os_waiting_tasks query.
B. Create a sys.dm_exec_sessions query.
C. Create a PerformanceMonitor Data Collector Set.
D. Create a sys.dm_os_memory_objects query.
E. Create a sp_configure ‘max server memory’ query.
F. Create a SQL Profiler trace.
G. Create a sys.dm_os_wait_stats query.
H. Create an Extended Event.
You are developing a new application that uses a stored procedure. The stored procedure inserts thousands of records as a single batch into the Employees table. Users report that the application response time has worsened since the stored procedure was updated. You examine disk-related performance counters for the Microsoft SQL Server instance and observe several high values that include a disk performance issue. You examine wait statistics and observe an unusually high WRITELOG value. You need to improve the application response time. Solution: You add a unique clustered index to the Employees table. Does the solution meet the goal?
A. Yes
B. No
You are developing a new application that uses a stored procedure. The stored procedure inserts thousands of records as a single batch into the Employees table. Users report that the application response time has worsened since the stored procedure was updated. You examine disk-related performance counters for the Microsoft SQL Server instance and observe several high values that include a disk performance issue. You examine wait statistics and observe an unusually high WRITELOG value. You need to improve the application response time. Solution: You update the application to use implicit transactions when connecting to the database. Does the solution meet the goal?
A. Yes
B. No
You have a database that contains a table named Employees. The table stores information about the employees of your company. You need to implement the following auditing rules for the Employees table: - Record any changes that are made to the data in the Employees table. - Customize the data recorded by the audit operations. Solution: You implement a check constraint on the Employees table. Does the solution meet the goal?
A. Yes
B. No
You are developing a new application that uses a stored procedure. The stored procedure inserts thousands of records as a single batch into the Employees table. Users report that the application response time has worsened since the stored procedure was updated. You examine disk-related performance counters for the Microsoft SQL Server instance and observe several high values that include a disk performance issue. You examine wait statistics and observe an unusually high WRITELOG value. You need to improve the application response time. Solution: You replace the stored procedure with a user-defined function. Does the solution meet the goal?
A. Yes
B. No
{"name":"70-762 Practice Multiple Choice", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge and skills with our 70-762 SQL Server Certification Quiz! This challenging quiz consists of 27 multiple choice and checkbox questions designed to evaluate your understanding of key concepts and practical applications in SQL Server.Key Features:Comprehensive coverage of SQL Server topicsImmediate feedback on your answersEnhance your preparation for the certification exam","img":"https:/images/course6.png"}
Powered by: Quiz Maker