70-457 Exam Details

  • Exam Code
    :70-457
  • Exam Name
    :Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 1
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :183 Q&As
  • Last Updated
    :Feb 05, 2022

Microsoft 70-457 Online Questions & Answers

  • Question 131:

    You create a stored procedure that will update multiple tables within a transaction. You need to ensure that if the stored procedure raises a run-time error, the entire transaction is terminated and rolled back. Which Transact-SQL statement should you include at the beginning of the stored procedure?

    A. SET XACT_ABORT ON
    B. SET ARITHABORT ON
    C. TRY
    D. BEGIN
    E. SET ARITHABORT OFF
    F. SET XACT_ABORT OFF

  • Question 132:

    You administer three Microsoft SQL Server 2008 R2 instances.

    Database mirroring is configured in High-Safety mode with Automatic Failover between the following three servers:

    SQL1 is the Principal server.

    SQL2 is the mirror server.

    SQL3 is the witness server.

    You need to upgrade SQL1 and SQL2 to SQL Server 2012. You need to ensure that downtime is minimized during the upgrade.

    Which six 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.)

    Select and Place:

  • Question 133:

    You administer a Microsoft SQL Server 2012 instance that contains a database of confidential data.

    You need to encrypt the database files at the page level. You also need to encrypt the transaction log files.

    Which four 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.)

    Select and Place:

  • Question 134:

    You administer a Microsoft SQL Server 2012 instance that contains a financial database hosted on a storage area network (SAN). The financial database has the following characteristics:

    A data file of 2 terabytes is located on a dedicated LUN (drive D). A transaction log of 10 GB is located on a dedicated LUN (drive E).

    Drive D has 1 terabyte of free disk space.

    Drive E has 5 GB of free disk space.

    The database is continually modified by users during business hours from Monday through Friday between

    09:00 hours and 17:00 hours. Five percent of the existing data is modified each day. The Finance department loads large CSV files into a number of tables each business day at 11:15 hours and 15:15 hours by using the BCP or BULK INSERT commands. Each data load adds 3 GB of data to the database.

    These data load operations must occur in the minimum amount of time.

    A full database backup is performed every Sunday at 10:00 hours. Backup operations will be performed every two hours (11:00, 13:00, 15:00, and 17:00) during business hours. You need to ensure that the backup size is as small as possible.

    Which backup should you perform every two hours?

    A. BULK_LOGGED
    B. NO_CHECKSUM
    C. FULL
    D. RESTART
    E. CHECKSUM
    F. STANDBY
    G. DBO.ONLY
    H. NORECOVERY
    I. SIMPLE
    J. Transaction log

  • Question 135:

    You are developing a database application by using Microsoft SQL Server 2012. An application that uses a database begins to run slowly. You discover that during reads, the transaction experiences blocking from concurrent updates. You need to ensure that throughout the transaction the data maintains the original version.

    What should you do?

    A. Add a HASH hint to the query.
    B. Add a LOOP hint to the query.
    C. Add a FORCESEEK hint to the query.
    D. Add an INCLUDE clause to the index.
    E. Add a FORCESCAN hint to the Attach query.
    F. Add a columnstore index to cover the query.
    G. Enable the optimize for ad hoc workloads option.
    H. Cover the unique clustered index with a columnstore index.
    I. Include a SET FORCEPLAN ON statement before you run the query.
    J. Include a SET STATISTICS PROFILE ON statement before you run the query.

  • Question 136:

    You are writing a set of queries against a FILESTREAM-enabled database.

    You create a stored procedure that will update multiple tables within a transaction.

    You need to ensure that if the stored procedure raises a run-time error, the entire transaction is terminated and rolled back.

    Which Transact-SQL statement should you include at the beginning of the stored procedure?

    A. SET TRANSACTION ISOLATION LEVEL SERIALIZA3LE
    B. SET XACT_ABORT OFF
    C. SET TRANSACTION ISOLATION LEVEL SNAPSHOT
    D. SET IMPLICIT_TRANSACTIONS ON
    E. SET XACT_ABORT ON
    F. SET IMPLICIT TRANSACTIONS OFF

  • Question 137:

    You 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 ON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1 FOR XML RAW
    B. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1 FOR XML RAW, ELEMENTS
    C. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1 FOR XML AUTO
    D. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN Customers ON Orders.CustomerXd - Customers.CustomerId WHERE Customers.CustomerId= 1 FOR XML AUTO, ELEMENTS
    E. SELECT Name, Country, OrderId, OrderDate, Amount FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId- 1 FOR XML AUTO
    F. SELECT Name, Country, Orderld, OrderDate, Amount FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1 FOR XML AUTO, ELEMENTS
    G. SELECT Name AS '@Name', Country AS '@Country', OrderId, OrderDate, Amount FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1 FOR XML PATH ('Customers')
    H. SELECT Name AS 'Customers/Name', Country AS 'Customers/Country', OrderId, OrderDate, Amount FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1 FOR XML PATH ('Customers')

  • Question 138:

    You administer a Microsoft SQL Server 2012 default instance.

    The instance is hosted by a server that has a local firewall configured. The firewall only allows inbound connections on port 1433. The server only hosts a single instance of SQL Server.

    You need to ensure that the instance is configured to allow remote connections even if the SQL Server is unresponsive to client connections.

    What should you do? Choose all that apply.

    A. Enable inbound connections on TCP port 1434 in the Windows Firewall on the server.
    B. Execute the following Transact-SQL command: sp_configure 'remote admin connections',
    C. Execute the Reconfigure command.
    D. Execute the following Transact-SQL command: sp_configure 'remote access', 1
    E. Restart the SQL Server Agent Service.
    F. Enable inbound connections on TCP port 135 in the Windows Firewall on the server.

  • Question 139:

    You administer a Microsoft SQL Server 2012 instance that has several SQL Server Agent jobs configured.

    When SQL Server Agent jobs fail, the error messages returned by the job steps do not provide the required detail.

    The following error message is an example error message:

    "The job failed. The Job was invoked by User CONTOSO\ServiceAccount. The last step to run was step 1 (Subplan_1)."

    You need to ensure that all available details of the job step failures for SQL Server Agent jobs are retained.

    What should you do?

    A. Configure output files.
    B. Expand agent logging to include information from all events.
    C. Disable the Limit size of job history log feature.
    D. Configure event forwarding.

  • Question 140:

    You 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.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-457 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.