Certification Provider: Microsoft
Exam Name: Developing SQL Databases
Exam Code: 70-762
Official Exam Time: 120 mins
Number of questions in the Official Exam: 40-60 Q&As
Latest update time in our database: September 27,2023
70-762 Official Exam Topics:
  • Topic1 : Design and implement a relational database schema
  • Topic2 :  Design tables and schemas based on business requirements, improve the design of tables by using normalization, write table create statements, determine the most efficient data types to use / Design and implement indexes
  • Topic3 :  Design new indexes based on provided tables, queries, or plans; distinguish between indexed columns and included columns; implement clustered index columns by using best practices; recommend new indexes based on query plans / Design and implement views
  • Topic4 : Implement columnstore indexes / Implement programmability objects
  • Topic5 :  Define table and foreign key constraints to enforce business rules, write Transact-SQL statements to add constraints to tables, identify results of Data Manipulation Language (DML) statements given existing tables and constraints, identify proper usage of PRIMARY KEY constraints / Create stored procedures
  • Topic6 :  Design stored procedure components and structure based on business requirements, implement input and output parameters, implement table-valued parameters, implement return codes, streamline existing stored procedure logic, implement error handling and transaction control logic within stored procedures / Create triggers and user-defined functions
  • Topic7 : Manage database concurrency / Implement transactions
  • Topic8 :  Identify DML statement results based on transaction behavior, recognize differences between and identify usage of explicit and implicit transactions, implement savepoints within transactions, determine the role of transactions in high-concurrency databases / Manage isolation levels
  • Topic9 : Optimize concurrency and locking behavior /  Troubleshoot locking issues, identify lock escalation behaviors, capture and analyze deadlock graphs, identify ways to remediate deadlocks
  • Topic10 : Implement memory-optimized tables and native stored procedures /  Define use cases for memory-optimized tables versus traditional disk-based tables, optimize performance of in-memory tables by changing durability settings, determine best case usage scenarios for natively compiled stored procedures, enable collection of execution statistics for natively compiled stored procedures
  • Topic11 : Optimize statistics and indexes /  Determine the accuracy of statistics and the associated impact to query plans and performance, design statistics maintenance tasks, use dynamic management objects to review current index usage and identify missing indexes, consolidate overlapping indexes
  • Topic12 : Analyze and troubleshoot query plans /  Capture query plans using extended events and traces, identify poorly performing query plan operators, create efficient query plans using Query Store, compare estimated and actual query plans and related metadata, configure Azure SQL Database Performance Insight
  • Topic13 :  Manage database workload in SQL Server; design and implement Elastic Scale for Azure SQL Database; select an appropriate service tier or edition; optimize database file and tempdb configuration; optimize memory configuration; monitor and diagnose scheduling and wait statistics using dynamic management objects; troubleshoot and analyze storage, IO, and cache issues; monitor Azure SQL Database query plans /

Which column should you remove for each table? To answer?

DRAG DROP

You have a database named Sales that contains the following database tables. Customer, Order, and Products.

The Products table and the order table shown in the following diagram.

The Customer table includes a column that stores the date for the last order that the customer placed.

You plan to create a table named Leads. The Leads table is expected to contain approximately 20,000 records. Storage requirements for the Leads table must be minimized.

You need to begin to modify the table design to adhere to third normal form.

Which column should you remove for each table? To answer? Drag the appropriate column names to the correct locations. Each column name may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

Answer:

How should you complete the Transact-SOL statements?

Notify the sales person who places an order whether or not the order was completed.

You must add the following constraints to the SalesHistory table:

– a constraint on the SaleID column that allows the field to be used as a record identifier

– a constant that uses the ProductID column to reference the Product column of the ProductTypes table

– a constraint on the CategoryID column that allows one row with a null value in the column

– a constraint that limits the Sale Price column to values greater than four Finance department users must be able to retrieve data from the SalesHistory table for sales persons where the value of the SalesYTD column is above a certain threshold.

You plan to create a memory-optimized table named SalesOrder.

The table must meet the following requirments:

– The table must hold 10 million unique sales orders.

– The table must use checkpoints to minimize 1/0 operations and must not use transaction logging.

– Data loss is acceptable.

Performance for queries against the SalesOrder table that use where clauses with exact equality operations must be optimized.

You need to create an object that allows finance users to be able to retrieve the required data. The object must not have a negative performance impact.

How should you complete the Transact-SOL statements? To answer, select the appropriate TransactSOL segments in the answer area.

Answer:

How should you complete the relevant Transact-SOL statement? To answer?

Notify the sales person who places an order whether or not the order was completed.

You must add the following constraints to the SalesHistory table:

– a constraint on the SaleID column that allows the field to be used as a record identifier

– a constant that uses the ProductID column to reference the Product column of the ProductTypes table

– a constraint on the CategoryID column that allows one row with a null value in the column

– a constraint that limits the Sale Price column to values greater than four Finance department users must be able to retrieve data from the SalesHistory table for sales persons where the value of the SalesYTD column is above a certain threshold.

You plan to create a memory-optimized table named SalesOrder.

The table must meet the following requirements:

– The table must hold 10 million unique sales orders.

– The table must use checkpoints to minimize 1/0 operations and must not use transaction logging.

– Data loss is acceptable.

Performance for queries against the SalesOrder table that use where clauses with exact equality operations must be optimized.

You need to enable referential integrity for the ProductReview table.

How should you complete the relevant Transact-SOL statement? To answer? Select the appropriate Transact-SOL segments in the answer area.

Select two alternatives.
A . For the first selection select: WITH CHECK
B . For the first selection select: WITH NOCHECK
C . For the second selection select: ON DELETE NO ACTION ON UPDATE CASCADE
D . For the second selection select: ON DELETECASCADE ON UPDATE CASCADE
E . For the second selection select: ON DELETE NO ACTION ON UPDATE NO ACTION
F . For the second selection select: ON DELETE CASCADE ON UPDATE NO ACTION

Answer: B,C

How should you complete the Transact-SOL statements?

Notify the sales person who places an order whether or not the order was completed.

You must add the following constraints to the SalesHistory table:

– a constraint on the SaleID column that allows the field to be used as a record identifier

– a constant that uses the ProductID column to reference the Product column of the ProductTypes table

– a constraint on the CategoryID column that allows one row with a null value in the column

– a constraint that limits the Sale Price column to values greater than four Finance department users must be able to retrieve data from the SalesHistory table for sales persons where the value of the SalesYTD column is above a certain threshold.

You plan to create a memory-optimized table named SalesOrder.

The table must meet the following requirments:

– The table must hold 10 million unique sales orders.

– The table must use checkpoints to minimize 1/0 operations and must not use transaction logging.

– Data loss is acceptable.

Performance for queries against the SalesOrder table that use where clauses with exact equality operations must be optimized.

You need to create an object that allows finance users to be able to retrieve the required data. The object must not have a negative performance impact.

How should you complete the Transact-SOL statements? To answer, select the appropriate TransactSOL segments in the answer area.

Answer:

How should you complete the relevant Transact-SOL statement? To answer?

Notify the sales person who places an order whether or not the order was completed.

You must add the following constraints to the SalesHistory table:

– a constraint on the SaleID column that allows the field to be used as a record identifier

– a constant that uses the ProductID column to reference the Product column of the ProductTypes table

– a constraint on the CategoryID column that allows one row with a null value in the column

– a constraint that limits the Sale Price column to values greater than four Finance department users must be able to retrieve data from the SalesHistory table for sales persons where the value of the SalesYTD column is above a certain threshold.

You plan to create a memory-optimized table named SalesOrder.

The table must meet the following requirements:

– The table must hold 10 million unique sales orders.

– The table must use checkpoints to minimize 1/0 operations and must not use transaction logging.

– Data loss is acceptable.

Performance for queries against the SalesOrder table that use where clauses with exact equality operations must be optimized.

You need to enable referential integrity for the ProductReview table.

How should you complete the relevant Transact-SOL statement? To answer? Select the appropriate Transact-SOL segments in the answer area.

Select two alternatives.
A . For the first selection select: WITH CHECK
B . For the first selection select: WITH NOCHECK
C . For the second selection select: ON DELETE NO ACTION ON UPDATE CASCADE
D . For the second selection select: ON DELETECASCADE ON UPDATE CASCADE
E . For the second selection select: ON DELETE NO ACTION ON UPDATE NO ACTION
F . For the second selection select: ON DELETE CASCADE ON UPDATE NO ACTION

Answer: B,C

Which column should you remove for each table? To answer?

DRAG DROP

You have a database named Sales that contains the following database tables. Customer, Order, and Products.

The Products table and the order table shown in the following diagram.

The Customer table includes a column that stores the date for the last order that the customer placed.

You plan to create a table named Leads. The Leads table is expected to contain approximately 20,000 records. Storage requirements for the Leads table must be minimized.

You need to begin to modify the table design to adhere to third normal form.

Which column should you remove for each table? To answer? Drag the appropriate column names to the correct locations. Each column name may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

Answer:

You have a database named Sales that contains the following database tables: Customer, Order, and Products

HOTSPOT

You have a database named Sales that contains the following database tables: Customer, Order, and Products.

The Products table and the Order table are shown in the following diagram.

The customer table includes a column that stores the data for the last order that the customer placed.

You plan to create a table named Leads. The Leads table is expected to contain approximately 20,000 records. Storage requirements for the Leads table must be minimized.

You need to modify the database design to meet the following requirements:

In the table below, identify the constraint that must be configured for each table.

NOTE: Make only one selection in each column.

Answer:

You have a database named Sales that contains the following database tables: Customer, Order, and Products

HOTSPOT

You have a database named Sales that contains the following database tables: Customer, Order, and Products.

The Products table and the Order table are shown in the following diagram.

The customer table includes a column that stores the data for the last order that the customer placed.

You plan to create a table named Leads. The Leads table is expected to contain approximately 20,000 records. Storage requirements for the Leads table must be minimized.

The Leads table must include the columns described in the following table.

The data types chosen must consume the least amount of storage possible.

You need to select the appropriate data types for the Leads table.

In the table below, identify the data type that must be used for each table column.

NOTE: Make only one selection in each column.

Answer:

How should you complete the Transact-SOL statements?

Notify the sales person who places an order whether or not the order was completed.

You must add the following constraints to the SalesHistory table:

– a constraint on the SaleID column that allows the field to be used as a record identifier

– a constant that uses the ProductID column to reference the Product column of the ProductTypes table

– a constraint on the CategoryID column that allows one row with a null value in the column

– a constraint that limits the Sale Price column to values greater than four Finance department users must be able to retrieve data from the SalesHistory table for sales persons where the value of the SalesYTD column is above a certain threshold.

You plan to create a memory-optimized table named SalesOrder.

The table must meet the following requirments:

– The table must hold 10 million unique sales orders.

– The table must use checkpoints to minimize 1/0 operations and must not use transaction logging.

– Data loss is acceptable.

Performance for queries against the SalesOrder table that use where clauses with exact equality operations must be optimized.

You need to create an object that allows finance users to be able to retrieve the required data. The object must not have a negative performance impact.

How should you complete the Transact-SOL statements? To answer, select the appropriate TransactSOL segments in the answer area.

Answer:

How should you complete the Transact-SOL statements?

Notify the sales person who places an order whether or not the order was completed.

You must add the following constraints to the SalesHistory table:

– a constraint on the SaleID column that allows the field to be used as a record identifier

– a constant that uses the ProductID column to reference the Product column of the ProductTypes table

– a constraint on the CategoryID column that allows one row with a null value in the column

– a constraint that limits the Sale Price column to values greater than four Finance department users must be able to retrieve data from the SalesHistory table for sales persons where the value of the SalesYTD column is above a certain threshold.

You plan to create a memory-optimized table named SalesOrder.

The table must meet the following requirments:

– The table must hold 10 million unique sales orders.

– The table must use checkpoints to minimize 1/0 operations and must not use transaction logging.

– Data loss is acceptable.

Performance for queries against the SalesOrder table that use where clauses with exact equality operations must be optimized.

You need to create an object that allows finance users to be able to retrieve the required data. The object must not have a negative performance impact.

How should you complete the Transact-SOL statements? To answer, select the appropriate TransactSOL segments in the answer area.

Answer: