This page was exported from New Lead2pass PDF And VCE Ensure IT Exam Pass 100% [ https://www.dumps4microsoft.com ] Export date:Thu Nov 13 2:40:35 2025 / +0000 GMT ___________________________________________________ Title: [2016-New] Microsoft 70-462 Exam Dump Free Updation Availabe In GreatExam (161-180) --------------------------------------------------- GreatExam guarantees your Microsoft 70-462 exam 100% success with our unique official 70-462 exam questions resources! GreatExam's 70-462 braindumps are developed by experiences IT Certifications Professionals working in today's prospering companies and data centers! GreatExam 70-462 exam dumps are checked by our experts team every day to ensure you have the latest updated exam dumps! QUESTION 161You administer a Microsoft SQL Server 2012 database named Contoso that contains a single user-defined database role namedBillingUsers.All objects in Contoso are in the dbo schemA.You need to grant EXECUTE permissions for all stored procedures in Contoso to BillingUsers.Which Transact-SQL statement should you use? A.    EXECsp_addrolemember'db_procexecutor', 'BillingUsers'B.    CREATEROLEproc_callerGRANTEXECUTEON ALLPROCEDURESTOproc_callerALTERMEMBERBillingUsersADDTOROLEproc_callerC.    GRANTEXECUTE ON Schema::dboTO BillingUsersD.    GRANTEXECUTEONContoso::dboTOBillingUsers Answer: B QUESTION 162Drag and Drop QuestionsYou administer a Microsoft SQL Server 2012 server.You need to install the Power View components on a stand-alone server.Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)Answer: QUESTION 163You have been hired as a Database Consultant by ABC.com to design a SQL Server 2012 database solution.You are tasked with designing a scale-out and high-availability SQL Server 2012 OnlineTransaction Processing (OLTP) database solution that will maintain copies of data across two server instances.Your solution must provide scale-out of read operations by distributing the reads from clients across two SQL Server 2012 nodes.The data in both SQL Server nodes needs to be indexed.What should you include in your solution? A.    You should include two servers configured in an Active-Active SQL Server 2012 ClusterB.    You should include a primary SQL Server 2012 database that uses transactional replication to replicate data to a secondary database.C.    You should include two servers configured in an Active-Passive SQL Server 2012 Cluster.D.    You should include two servers in an Asynchronous-Commit Availability Mode Availability Group.E.    You should include two servers in a Synchronous-Commit Availability Mode Availability Group Answer: B QUESTION 164You are a database developer of a Microsoft SQL Server 2012 database.You are designing a table that will store Customer data from different sources.The table will include a column that contains the CustomerID from the source system and a column that contains the SourceID.A sample of this data is as shown in the following table.You need to ensure that the table has no duplicate CustomerID within a SourceID.You also need to ensure that the data in the table is in the order of SourceID and then CustomerID.Which Transact- SQL statement should you use? A.    CREATE TABLE Customer(SourceID int NOT NULL IDENTITY,CustomerID int NOT NULL IDENTITY,CustomerName varchar(255) NOT NULL);B.    CREATE TABLE Customer(SourceID int NOT NULL,CustomerID int NOT NULL PRIMARY KEY CLUSTERED,CustomerName varchar(255) NOT NULL);C.    CREATE TABLE Customer(SourceID int NOT NULL PRIMARY KEY CLUSTERED,CustomerID int NOT NULL UNIQUE,CustomerName varchar(255) NOT NULL);D.    CREATE TABLE Customer(SourceID int NOT NULL,CustomerID int NOT NULL,CustomerName varchar(255) NOT NULL,CONSTRAINT PK_Customer PRIMARY KEY CLUSTERED(SourceID, CustomerID)); Answer: D QUESTION 165You administer a Microsoft SQL Server 2012 database named ContosoDb.Tables are defined as shown in the exhibit. (Click the Exhibit button.)You need to display rows from the Orders table for the Customers row having the CustomerId value set to 1 in the following XML format.Which Transact-SQL query should you use? A.    SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN Customers ONOrders.CustomerId = Customers-CustomerId WHERE Customers.CustomerId = 1FOR XML RAWB.    SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN Customers ONOrders.CustomerId = Customers.CustomerId WHERE Customers=CustomerId = 1FOR XML RAW, ELEMENTSC.    SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN Customers ONOrders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1FOR XML AUTOD.    SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN Customers ONOrders.CustomerId - Customers.CustomerId WHERE Customers.CustomerId= 1FOR XML AUTO, ELEMENTSE.    SELECT Name, Country, OrderId, OrderDate, Amount FROM Orders INNER JOIN Customers ONOrders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId=FOR XML AUTOF.    SELECT Name, Country, Crderld, OrderDate, Amount FROM Orders INNER JOIN Customers ONOrders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId=FOR XML AUTO, ELEMENTSG.    SELECT Name AS '@Name', Country AS '@Country', OrderId, OrderDate, Amount FROMOrders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1FOR XML PATH ('Customers')H.    SELECT Name AS 'Customers/Name', Country AS 'Customers/Country', OrderId, OrderDate, AmountFROM OrdersINNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1FOR XML PATH ('Customers') Answer: F QUESTION 166You administer a Microsoft SQL Server 2012 database named ContosoDb.Tables are defined as shown in the exhibit. (Click the Exhibit button.)You need to display rows from the Orders table for the Customers row having the CustomerId value set to 1 in the following XML format.Which Transact-SQL query should you use? A.    SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN CustomersON Orders.CustomerId = Customers-CustomerId WHERE Customers.CustomerId = 1FOR XML RAWB.    SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN CustomersON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1FOR XML RAW, ELEMENTSC.    SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN CustomersON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1FOR XML AUTOD.    SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN CustomersON Orders.CustomerId - Customers.CustomerId WHERE Customers.CustomerId= 1FOR XML AUTO, ELEMENTSE.    SELECT Name, Country, OrderId, OrderDate, Amount FROM Orders INNER JOIN CustomersON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId=FOR XML AUTOF.    SELECT Name, Country, Crderld, OrderDate, Amount FROM Orders INNER JOIN CustomersON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId=FOR XML AUTO, ELEMENTSG.    SELECT Name AS '@Name', Country AS '@Country', OrderId, OrderDate, Amount FROMOrders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1FOR XML PATH ('Customers')H.    SELECT Name AS 'Customers/Name', Country AS 'Customers/Country', OrderId, OrderDate, AmountFROM OrdersINNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1FOR XML PATH ('Customers') Answer: G QUESTION 168You use Microsoft SQL Server 2012 to develop a database application.You need to implement a computed column that references a lookup table by using an INNER JOIN against another table.What should you do? A.    Reference a user-defined function within the computed column.B.    Create a BEFORE trigger that maintains the state of the computed column.C.    Add a default constraint to the computed column that implements hard-coded values.D.    Add a default constraint to the computed column that implements hard-coded CASE statements. Answer: A QUESTION 169You use a Microsoft SQL Server 2012 database that contains two tables named SalesOrderHeader and SalesOrderDetail.The indexes on the tables are as shown in the exhibit. (Click the Exhibit button.)You write the following Transact-SQL query:You discover that the performance of the query is slow.Analysis of the query plan shows table scans where the estimated rows do not match the actual rows for SalesOrderHeader by using an unexpected index on SalesOrderDetail.You need to improve the performance of the query.What should you do? A.    Use a FORCESCAN hint in the query.B.    Add a clustered index on SalesOrderId in SalesOrderHeader.C.    Use a FORCESEEK hint in the query.D.    Update statistics on SalesOrderId on both tables. Answer: DExplanation:http://msdn.microsoft.com/en-us/library/ms187348.aspx QUESTION 170You are a database developer for an application hosted on a Microsoft SQL Server 2012 server. The database contains two tables that have the following definitions:Global customers place orders from several countries.You need to view the country from which each customer has placed the most orders.Which Transact-SQL query do you use? A.    SELECT c.CustomerID, c.CustomerName, o.ShippingCountry FROM Customer cINNER JOIN(SELECT CustomerID, ShippingCountry,RANK() OVER (PARTITION BY CustomerIDORDER BY COUNT(OrderAmount) DESC) AS RnkFROM OrdersGROUP BY CustomerID, ShippingCountry) AS oON c.CustomerID = o.CustomerIDWHERE o.Rnk = 1B.    SELECT c.CustomerID, c.CustomerName, o.ShippingCountry FROM(SELECT c.CustomerID, c.CustomerName, o.ShippingCountry,RANK() OVER (PARTITION BY CustomerIDORDER BY COUNT(o.OrderAmount) ASC) AS RnkFROM Customer cINNER JOIN Orders oON c.CustomerID = o.CustomerIDGROUP BY c.CustomerID, c.CustomerName, o.ShippingCountry) cs WHERE Rnk = 1C.    SELECT c.CustomerID, c.CustomerName, o.ShippingCountry FROM Customer cINNER JOIN(SELECT CustomerID, ShippingCountry,RANK() OVER (PARTITION BY CustomerIDORDER BY OrderAmount DESC) AS RnkFROM OrdersGROUP BY CustomerID, ShippingCountry) AS oON c.CustomerID = o.CustomerIDWHERE o.Rnk = 1D.    SELECT c.CustomerID, c.CustomerName, o.ShippingCountry FROM Customer cINNER JOIN(SELECT CustomerID, ShippingCountry,COUNT(OrderAmount) DESC) AS OrderAmountFROM OrdersGROUP BY CustomerID, ShippingCountry) AS oON c.CustomerID = o.CustomerIDORDER BY OrderAmount DESC Answer: A QUESTION 171You use Microsoft SQL Server 2012 to develop a database application.You need to create an object that meets the following requirements:- Takes an input variable- Returns a table of values- Cannot be referenced within a viewWhich object should you use? A.    Scalar-valued functionB.    Inline functionC.    User-defined data typeD.    Stored procedure Answer: D QUESTION 172You administer a SQL Server 2012 server that contains a database named SalesDb.SalesDb contains a schema named Customers that has a table named Regions.A user named UserA is a member of a role named Sales.UserA is granted the Select permission on the Regions table.The Sales role is granted the Select permission on the Customers schema.You need to ensure that the following requirements are met:The Sales role does not have the Select permission on the Customers schema.UserA has the Select permission on the Regions table.Which Transact-SQL statement should you use? A.    DENY SELECT ON Object::Regions FROM SalesB.    DENY SELECT ON Schema::Customers FROM SalesC.    REVOKE SELECT ON Object::Regions FROM SalesD.    REVOKE SELECT ON Schema::Customers FROM SalesE.    DENY SELECT ON Object::Regions FROM UserAF.    DENY SELECT ON Schema::Customers FROM UserAG.    REVOKE SELECT ON Object::Regions FROM UserAH.    REVOKE SELECT ON Schema::Customers FOR UserAI.    EXEC sp_addrolemember 'Sales', 'UserA'J.    EXEC sp_droprolemember 'Sales', 'UserA' Answer: DExplanation:http://msdn.microsoft.com/en-us/library/ms188369.aspxhttp://msdn.microsoft.com/en-us/library/ms187750.aspxhttp://msdn.microsoft.com/en-us/library/ff848791.aspx QUESTION 173You develop a Microsoft SQL Server 2012 database that contains a heap named OrdersHistoncal.You write the following Transact-SQL query:- INSERT INTO OrdersHistorical- SELECT * FROM CompletedOrdersYou need to optimize transaction logging and locking for the statement.Which table hint should you use? A.    HOLDLOCKB.    ROWLOCKC.    XLOCKD.    UPDLOCKE.    TABLOCK Answer: EExplanation:http://technet.microsoft.com/en-us/library/ms189857.aspxhttp://msdn.microsoft.com/en-us/library/ms187373.aspx QUESTION 174Your database contains a table named Purchases.The table includes a DATETIME column named PurchaseTime that stores the date and time each purchase is made. There is a non-clustered index on the PurchaseTime column.The business team wants a report that displays the total number of purchases made on the current day.You need to write a query that will return the correct results in the most efficient manner.Which Transact-SQL query should you use? A.    SELECT COUNT(*)FROM PurchasesWHERE PurchaseTime = CONVERT(DATE, GETDATE())B.    SELECT COUNT(*)FROM PurchasesWHERE PurchaseTime = GETDATE()C.    SELECT COUNT(*)FROM PurchasesWHERE CONVERT(VARCHAR, PurchaseTime, 112) = CONVERT(VARCHAR, GETDATE(), 112)D.    SELECT COUNT(*)FROM PurchasesWHERE PurchaseTime >= CONVERT(DATE, GETDATE())AND PurchaseTime < DATEADD(DAY, 1, CONVERT(DATE, GETDATE())) Answer: DExplanation:http://technet.microsoft.com/en-us/library/ms181034.aspx QUESTION 175You develop a database for a travel application.You need to design tables and other database objects.You need to store media files in several tables.Each media file is less than 1 MB in size.The media files will require fast access and will be retrieved frequently.What should you do? A.    Use the CAST function.B.    Use the DATE data type.C.    Use the FORMAT function.D.    Use an appropriate collation.E.    Use a user-defined table type.F.    Use the VARBINARY data type.G.    Use the DATETIME data type.H.    Use the DATETIME2 data type.I.    Use the DATETIMEOFFSET data type.J.    Use the TODATETIMEOFFSET function. Answer: FExplanation:http://msdn.microsoft.com/en-us/library/ms188362.aspx QUESTION 176You develop a database for a travel application.You need to design tables and other database objects.You create a view that displays the dates and times of the airline schedules on a report.You need to display dates and times in several international formats.What should you do? A.    Use the CAST function.B.    Use the DATE data type.C.    Use the FORMAT function.D.    Use an appropriate collation.E.    Use a user-defined table type.F.    Use the VARBINARY data type.G.    Use the DATETIME data type.H.    Use the DATETIME2 data type.I.    Use the DATETIMEOFFSET data type.J.    Use the TODATETIMEOFFSET function. Answer: CExplanation:http://msdn.microsoft.com/en-us/library/hh213505.aspx QUESTION 177You have three tables that contain data for vendors, customers, and agents.You create a view that is used to look up telephone numbers for these companies.The view has the following definition:You need to ensure that users can update only the phone numbers by using this view.What should you do? A.    Alter the view. Use the EXPAND VIEWS query hint along with each SELECT statement.B.    Drop the view. Re-create the view by using the SCHEMABINDING clause, and then create an index on the view.C.    Create an AFTER UPDATE trigger on the view.D.    Create an INSTEAD OF UPDATE trigger on the view. Answer: D QUESTION 178You develop a Microsoft SQL Server 2012 database that contains tables named Employee and Person.The tables have the following definitions:You create a view named VwEmployee as shown in the following Transact-SQL statement.Users are able to use single INSERT statements or INSERT...SELECT statements into this view. You need to ensure that users are able to use a single statement to insert records into both Employee and Person tables by using the VwEmployee view.Which Transact-SQL statement should you use? A.    CREATE TRIGGER TrgVwEmployeeON VwEmployeeFOR INSERTASBEGININSERT INTO Person(Id, FirstName, LastName)SELECT Id, FirstName, LastName, FROM insertedINSERT INTO Employee(PersonId, EmployeeNumber)SELECT Id, EmployeeNumber FROM insertedENDB.    CREATE TRIGGER TrgVwEmployeeON VwEmployeeINSTEAD OF INSERTASBEGININSERT INTO Person(Id, FirstName, LastName)SELECT Id, FirstName, LastName, FROM insertedINSERT INTO Employee(PersonId, EmployeeNumber)SELECT Id, EmployeeNumber FROM insertedENDC.    CREATE TRIGGER TrgVwEmployeeON VwEmployeeINSTEAD OF INSERTASBEGINDECLARE @ID INT, @FirstName NVARCHAR(25), @LastName NVARCHAR(25), @PersonID INT,@EmployeeNumber NVARCHAR(15)SELECT @ID = ID, @FirstName = FirstName, @LastName = LastName, @EmployeeNumber =EmployeeNumberFROM insertedINSERT INTO Person(Id, FirstName, LastName)VALUES(@ID, @FirstName, @LastName)INSERT INTO Employee(PersonID, EmployeeNumber)VALUES(@PersonID, @EmployeeNumberEndD.    CREATE TRIGGER TrgVwEmployeeON VwEmployeeINSTEAD OF INSERTASBEGININSERT INTO Person(Id, FirstName, LastName)SELECT Id, FirstName, LastName FROM VwEmployeeINSERT INTO Employee(PersonID, EmployeeNumber)SELECT Id, EmployeeNumber FROM VwEmployeeEnd Answer: B QUESTION 179You develop a Microsoft SQL Server 2012 database.You create a view from the Orders and OrderDetails tables by using the following definition.You need to improve the performance of the view by persisting data to disk.What should you do? A.    Create an INSTEAD OF trigger on the view.B.    Create an AFTER trigger on the view.C.    Modify the view to use the WITH VIEW_METADATA clause.D.    Create a clustered index on the view. Answer: DExplanation:http://msdn.microsoft.com/en-us/library/ms188783.aspx QUESTION 180Your database contains tables named Products and ProductsPriceLog.The Products table contains columns named ProductCode and Price.The ProductsPriceLog table contains columns named ProductCode, OldPrice, and NewPrice. The ProductsPriceLog table stores the previous price in the OldPrice column and the new price in the NewPrice column.You need to increase the values in the Price column of all products in the Products table by 5 percent.You also need to log the changes to the ProductsPriceLog table.Which Transact-SQL query should you use? A.    UPDATE Products SET Price = Price * 1.05OUTPUT inserted.ProductCode, deleted.Price, inserted.Price INTO ProductsPriceLog(ProductCode,OldPrice, NewPrice)B.    UPDATE Products SET Price = Price * 1.05OUTPUT inserted.ProductCode, inserted.Price, deleted.Price INTO ProductsPriceLog(ProductCode,OldPrice, NewPrice)C.    UPDATE Products SET Price = Price * 1.05OUTPUT inserted.ProductCode, deleted.Price, inserted.Price * INTO ProductsPriceLog(ProductCode,OldPrice, NewPrice)D.    UPDATE Products SET Price = Price * 1.05INSERT INTO ProductsPriceLog (ProductCode, CldPnce, NewPrice; SELECT ProductCode, Price,Price * 1.05 FROM Products Answer: AExplanation:http://msdn.microsoft.com/en-us/library/ms177564.aspx By utilizing GreatExam high quality Microsoft 70-462 exam dumps products, you can surely pass 70-462 certification exam 100%! GreatExam also offers 100% money back guarantee to individuals in case they fail to pass Microsoft 70-462 in one attempt. http://www.greatexam.com/70-462-exam-questions.html --------------------------------------------------- Images: http://examgod.com/geimages/facb356bde1e_D978/1621_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1622_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1641_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1651_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1652_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1661_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1662_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1691_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1692_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1701_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1781_thumb.jpg http://examgod.com/geimages/facb356bde1e_D978/1782_thumb.jpg --------------------------------------------------- --------------------------------------------------- Post date: 2016-05-12 09:01:45 Post date GMT: 2016-05-12 09:01:45 Post modified date: 2016-05-12 09:01:45 Post modified date GMT: 2016-05-12 09:01:45 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com