[Free] 2017(Aug) EnsurePass Examcollection Microsoft 70-762 Dumps with VCE and PDF 31-40

EnsurePass
2017 Aug Microsoft Official New Released 70-762
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/70-762.html

Developing SQL Databases

Question No: 31 DRAG DROP

Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series.

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.

image

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.

Changes to the price of any product must be less a 25 percent increase from the current price. The shipping department must be notified about order and shipping details when an order is entered into the database.

You need to implement the appropriate table objects.

Which object should you use for each table? To answer, drag the appropriate objects to the correct tables. Each object 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.

image

Answer:

image

Explanation:

image

The Products table needs a primary key constraint on the ProductID field.

The Orders table needs a foreign key constraint on the productID field, with a reference to the ProductID field in the Products table.

Question No: 32 HOTSPOT

You have a database named Sales.

You need to create a table named Customer that includes the columns described in the following table:

image

How should you complete the Transact SQL statement? To answer, select the appropriate Transact-SQL segments in the answer area.

image

Answer:

image

Explanation:

image

Box 1: MASKED WITH (FUNCTION =#39;default()#39;)

TheDefualt masking method provides full masking according to the data types of the designated fields.

Example column definition syntax: Phone# varchar(12) MASKED WITH (FUNCTION =

#39;default()#39;) NULL

Box 2: MASKED WITH (FUNCTION =#39;partial(3,quot;XXXXXXquot;,0)#39;)

The Custom String Masking method exposes the first and last letters and adds a custom padding string in the middle. prefix,[padding],suffix

examples:

PhoneNumber varchar(10) MASKED WITH (FUNCTION = #39;partial(5,quot;XXXXXXXquot;,0)#39;) Box 3: MASKED WITH (FUNCTION =#39;email()#39;)

The Email masking method which exposes the first letter of an email address and the constant suffix quot;.comquot;, in the form of an email address. .aXXX@XXXX.com.

Example definition syntax: Email varchar(100) MASKEDWITH (FUNCTION = #39;email()#39;) NULL

References:https://msdn.microsoft.com/en-us/library/mt130841.aspx

Question No: 33 DRAG DROP

You have two database tables. Table1 is a partioned table and Table 2 is a nonpartioned table.

Users report that queries take a long time to complete. You monitor queries by using Microsoft SQL Server Profiler. You observe lock escalation for Table1 and Table 2.

You need to allow escalation of Table1 locks to the partition level and prevent all lock escalation for Table2.

Which Transact-SQL statement should you run for each table? To answer, drag the appropriate Transact-SQL statements to the correct tables. Each command 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.

image

Answer:

image

Explanation:

image

Since SQL Server 2008 you can also control how SQL Server performs the Lock Escalation 鈥?through the ALTER TABLE statement and the property LOCK_ESCALATION. There are 3 different optionsavailable:

TABLE

AUTO DISABLE

Box 1: Table1, Auto

The default option is TABLE, means that SQL Server *always* performs the Lock Escalation to the table level 鈥揺ven when the table is partitioned. If you have your table partitioned, and you want to have aPartition Level Lock Escalation (because you have tested your data access pattern, and you don’t cause deadlocks with it), then you can change the option to AUTO. AUTO means that the Lock Escalation is performed to the partition level, if the table is partitioned, and otherwise to the table level.

Box 2: Table 2, DISABLE

With the option DISABLE you can completely disable the Lock Escalation for that specific table.

For partitioned tables, use the LOCK_ESCALATION option of ALTER TABLE to escalate locks tothe HoBT level instead of the table or to disable lock escalation.

References:http://www.sqlpassion.at/archive/2014/02/25/lock-escalations/

Question No: 34

Note: This question is part of a series of questions that present the same scenario. Each question in this series contains a unique solution. Determine whether the solution meets the stated goals.

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?

  1. Yes

  2. No

    Answer: B Explanation:

    References: http://sqltouch.blogspot.co.za/2013/05/writelog-waittype-implicit-vs- explicit.html

    Question No: 35

    Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series.

    You have a database named DB1 that contains the following tables: Customer, CustomerToAccountBridge, and CustomerDetails. The three tables are part of the Sales schema. The database also contains a schema named Website. You create the Customer table by running the following Transact-SQL statement:

    image

    The value of the CustomerStatus column is equal to one for active customers. The value of the Account1Status and Account2Status columns are equal to one for active accounts. The following table displays selected columns and rows from the Customer table.

    image

    You plan to create a view named Website.Customer and a view named Sales.FemaleCustomers.

    Website.Customer must meet the following requirements:

    1. Allow users access to the CustomerName and CustomerNumber columns for active customers.

    2. Allow changes to the columns that the view references. Modified data must be visible through the view.

    3. Prevent the view from being published as part of Microsoft SQL Server replication. Sales.Female.Customers must meet the following requirements:

  1. Allow users access to the CustomerName, Address, City, State and PostalCode columns.

  2. Prevent changes to the columns that the view references.

  3. Only allow updates through the views that adhere to the view filter.

You have the following stored procedures: spDeleteCustAcctRelationship and

spUpdateCustomerSummary. The spUpdateCustomerSummary stored procedure was created by running the following Transacr-SQL statement:

image

You run the spUpdateCustomerSummary stored procedure to make changes to customer account summaries. Other stored procedures call the spDeleteCustAcctRelationship to delete records from the CustomerToAccountBridge table.

You must update the design of the Customer table to meet the following requirements.

  1. You must be able to store up to 50 accounts for each customer.

  2. Users must be able to retrieve customer information by supplying an account number.

  3. Users must be able to retrieve an account number by supplying customer information. You need to implement the design changes while minimizing data redundancy.

    What should you do?

    1. Splitthe table into three separate tables. Include the AccountNumber and CustomerID columns in the first table. Include the CustomerName and Gender columns in the second table. Include the AccountStatus column in the third table.

    2. Split the table into two separate tables. Include AccountNumber, CustomerID, CustomerName and Gender columns in the first table. Include the AccountNumber and AccountStatus columns in the second table.

    3. Split the table into two separate tables, Include the CustomerID and AccountNumber columns in the first table. Include the AccountNumber, AccountStatus, CustomerName and Gender columns in the second table.

    4. Split the table into two separate tables, Include the CustomerID, CustomerName and Gender columns in the first table. IncludeAccountNumber, AccountStatus and CustomerID columns in the second table.

Answer: D Explanation:

Two tables is enough.CustomerID must be in both tables.

Question No: 36 HOTSPOT

Background

You have a database named HR1 that includes a table named Employee.

You have several read-only, historical reports that contain regularly changing totals. The reports use multiple queries to estimate payroll expenses. The queries run concurrently. Users report that the payroll estimate reports do not always run. You must monitor the database to identify issues that prevent the reports from running.

You plan to deploy the application to a database server that supports other applications. You must minimize the amount of storage that the database requires.

Employee Table

You use the following Transact-SQL statements to create, configure, and populate the Employee table:

image

Application

You have an application that updates the Employees table. The application calls the following stored procedures simultaneously and asynchronously:

The application uses views to control access to data. Views must meet the following requirements:

Exhibit

image

Users must only be able to modify data in the Employee table by using the vwEmployee view. You must prevent users from viewing the view definition in catalog views.

You need to identify the view attribute to use when creating vwEmployee. In the table below, identify the attributes that you must use.

NOTE: Make only one selection in each column.

image

Answer:

image

Explanation:

image

References: https://msdn.microsoft.com/en-us/library/ms187956.aspx

Question No: 37

Note: This question is part of a series of questions that use the same or similar answer choices. An Answer choice may be correct for more than one question in the series. Each question independent of the other questions in this series. Information and details provided in a question apply only to that question.

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?

  1. Create a sys.dm_os_waiting_tasks query.

  2. Create a sys.dm_exec_sessions query.

  3. Create a Performance Monitor Data CollectorSet.

  4. Create a sys.dm_os_memory_objects query.

  5. Create a sp_configure ‘max server memory’ query.

  6. Create a SQL Profiler trace.

  7. Create a sys.dm_os_wait_stats query.

  8. Create an Extended Event.

Answer: C Explanation:

SQL Server Data Collector is afeature for performance monitoring and tuning available in SQL Server Management Studio.

Integration Services packages transform and load the collected data into the Microsoft Data Warehouse database.

Collection sets are defined and deployed on a serverinstance and can be run independently of each other. Each collection set can be applied to a target that matches the target types of all the collector types that are part of a collection set. The collection set is run by a SQL Server Agent job or jobs, and data is uploaded to the management data warehouse on a predefined schedule.

Predefined data collection sets include:

  • The Query Statistics data collection set collects information about query statistics, activity, execution plans and text on the SQL Server instance. It does not store all executed statements, only 10 worst performing ones.

  • Disk Usage data collection set collects information about disk space used byboth data and log files for all databases on the SQL Server instance, growth trends, andaverage day growth.

Etc.

References:http://www.sqlshack.com/sql-server-performance-monitoring-data-collector/

Question No: 38

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?

  1. table-valued function

  2. a schema-bound view

  3. a partitioned view

  4. a DML trigger

Answer: B Explanation:

When you use the SchemaBinding keyword while creating a view or function you bindthe

structure of any underlying tables or views. It means that as long as that schemabound object exists as a schemabound object (ie you don’t remove schemabinding) you are limited in changes that can be made to the tables or views that it refers to.

References:https://sqlstudies.com/2014/08/06/schemabinding-what-why/

Question No: 39

Note: this question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in the series. Information and details provided in a question apply only to that question.

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 inserted successfully into the Customers table.

  • Return a value of 1 if data is not inserted successfully into the Customers table.

  • Support TRY…CATCH error handling

  • Be written by using Transact-SQL statements. What should you create?

  1. extended procedure

  2. CLR procedure

  3. user-defined procedure

  4. DML trigger

  5. scalar-valued function

  6. table-valued function

Answer: D

Explanation:

DML triggers is a special type of stored procedure that automatically takes effect when a data manipulation language (DML) event takes place that affects the table or view defined in the trigger. DML events include INSERT, UPDATE, or DELETE statements. DML triggers can be used to enforce business rules and data integrity, query other tables, and include complex Transact-SQL statements.

References:https://msdn.microsoft.com/en-us/library/ms178110.aspx

Question No: 40

Note: This question is part of a series of questions that present the same scenario. Each question in this series contains a unique solution. Determine whether the solution meets the stated goals.

The Account table was created using the following Transact-SQL statement:

image

There are more than 1 billion records in the Account table. The Account Number column uniquely identifies each account. The ProductCode column has 100 different values. The values are evenly distributed in the table. Table statistics are refreshed and up to date.

You frequently run the following Transact-SQL SELECT statements:

image

You must avoid table scans when you run the queries. You need to create one or more indexes for the table. Solution: You run the following Transact-SQL statement:

CREATE CLUSTERED INDEX PK_Account ON Account(ProductCode); Does the solution meet the goal?

  1. Yes

  2. No

Answer: B Explanation:

We need an index on the productCode column as well. References:https://msdn.microsoft.com/en-us/library/ms190457.aspx

100% Free Download!
Download Free Demo:70-762 Demo PDF
100% Pass Guaranteed!
Download 2017 EnsurePass 70-762 Full Exam PDF and VCE
Get 10% off your purchase! Copy it:TJDN-947R-9CCD [2017.07.01-2017.07.31]

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE