MCSA Administering Microsoft SQL Server 2012/2014 Databases v1.0 (70-462)

Page:    1 / 22   
Total 316 questions

You administer a Microsoft SQL Server 2012 database named Contoso on a server named Server01.
You need to diagnose deadlocks that happen when executing a specific set of stored procedures by recording events and playing them back on a different test server.
What should you create?

  • A. An Extended Event session
  • B. A Policy
  • C. A Database Audit Specification
  • D. An Alert
  • E. A Server Audit Specification
  • F. A SQL Profiler Trace
  • G. A Resource Pool


Answer : F

Reference:
http://msdn.microsoft.com/en-us/library/ms188246.aspx

Note: This question is part of a series of questions that use the same set of answer choices. An answer choice may be correct for more than one question in the series.
You administer a Microsoft SQL Server 2012 database named Contoso on a server named Server01.
You need to prevent users from disabling server audits in Server01.
What should you create?

  • A. An Alert
  • B. A Resource Pool
  • C. An Extended Event session
  • D. A Policy
  • E. A Database Audit Specification
  • F. A SQL Profiler Trace
  • G. A Server Audit Specification D


Answer : Explanation

DRAG DROP -
You administer a Microsoft SQL Server database server that has a database named Contoso. The Contoso database has a table named EmployeeSalary in a schema named HumanResources.
You need to create a script that writes audit events into the application log whenever data in the EmployeeSalary table is modified by the public principal.
Which four Transact-SQL statements should you use? (To answer, move the appropriate statements from the list of statements to the answer area and arrange them in the correct order.)
Select and Place:




Answer :

References:
http://msdn.microsoft.com/en-us/library/cc280386.aspx
http://msdn.microsoft.com/en-us/library/cc280448.aspx
http://msdn.microsoft.com/en-us/library/cc280404.aspx

DRAG DROP -
You administer a Microsoft SQL Server database.
Your database is experiencing deadlock issues.
You need to be able to monitor deadlocks.
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.
Select and Place:




Answer :

You administer a Microsoft SQL Server.
A process that normally runs in less than 10 seconds has been running for more than an hour.
You examine the application log and discover that the process is using session ID 60.
You need to find out whether the process is being blocked.
Which Transact-SQL statement should you use?

  • A. SELECT * FROM sys.dm_exec_requests WHERE session_id = 60
  • B. SELECT * FROM sys.dm_exec_sessions WHERE session_id = 60
  • C. DBCC INPUTBUFFER (60)
  • D. DBCC OPENTRAN
  • E. SELECT * FROM sys.dm_tran_session_transactions WHERE session_id = 60
  • F. EXEC sp_helpdb A


Answer : Explanation

References:
https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-requests-transact-sql

You administer all the deployments of Microsoft SQL Server 2012 in your company. You have two servers in the same data center that hosts your production database.
You need to ensure that the database remains available if a catastrophic server failure or a disk failure occurs.
You also need to maintain transactional consistency of the data across both servers.
You need to achieve these goals without manual intervention.
Which configuration should you use?

  • A. Two servers configured in a Windows Failover Cluster in the same data center SQL Server configured as a clustered instance
  • B. SQL Server that includes an application database configured to perform transactional replication
  • C. Two servers configured in the same data center A primary server configured to perform log-shipping every 10 minutes A backup server configured as a warm standby
  • D. Two servers configured in different data centers SQL Server Availability Group configured in Synchronous-Commit Availability Mode One server configured as an Active Secondary
  • E. Two servers configured in the same data center SQL Server Availability Group configured in Asynchronous-Commit Availability Mode One server configured as an Active Secondary
  • F. Two servers configured in different data centers SQL Server Availability Group configured in Asynchronous-Commit Availability Mode
  • G. SQL Server that includes an application database configured to perform snapshot replication
  • H. Two servers configured on the same subnet SQL Server Availability Group configured in Synchronous-Commit Availability Mode


Answer : H

Reference:
http://msdn.microsoft.com/en-us/library/ff877931.aspx

DRAG DROP -
You are a database administrator of a Microsoft SQL Server 2012 environment. The environment contains two servers named SQLServer01 and SQLServer02.
The database Contoso exists on SQLServer01.
You plan to mirror the Contoso database between SQLServer01 and SQLServer02 by using database mirroring.
You need to prepare the Contoso database for database mirroring.
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.)
Select and Place:




Answer :

Reference:
http://msdn.microsoft.com/en-us/library/ms190941.aspx
http://msdn.microsoft.com/en-us/library/ms189852.aspx

You create an availability group that has replicas named HA/Server01 and HA/Server02. Currently, HA/Server01 is the primary replica.
You have multiple queries that read data and produce reports from the database.
You need to offload the reporting workload to the secondary replica when HA/Server01 is the primary replica.
What should you do?

  • A. Set the Availability Mode property of HA/Server02 to Asynchronous commit.
  • B. Set the Readable Secondary property of HA/Server02 to Read-intent only.
  • C. Set the Connections in Primary Role property of HA/Server01 to Allow read/write connections.
  • D. Set the Availability Mode property of HA/Server01 to Asynchronous commit.


Answer : B

Reference:
http://msdn.microsoft.com/en-us/library/jj542414.aspx

You administer two Microsoft SQL Server 2012 servers. Each server resides in a different, untrusted domain.
You plan to configure database mirroring.
You need to be able to create database mirroring endpoints on both servers.
What should you do?

  • A. Configure the SQL Server service account to use Network Service.
  • B. Use a server certificate.
  • C. Use a database certificate.
  • D. Configure the SQL Server service account to use Local System.


Answer : B

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.


Answer : B

Reference:
http://msdn.microsoft.com/en-us/library/ms175488.aspx

DRAG DROP -
You administer a Microsoft SQL Server database. Service accounts for SQL Agent are configured to use a local user.
A Microsoft SQL Server Integration Services (SSIS) job step has been created within a SQL Server Agent job.
The SSIS package accesses a network share when exporting data from a SQL Server database.
When you execute the SQL Server Agent job, it fails due to a permissions failure on a share on a remote server.
You need to ensure that the SQL Server Agent job can execute the SSIS package.
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:




Answer :

Explanation:
SQL Server Agent allows creating a proxy account which defines the security context for the job step.
We need to do is to create a credential to be used by the proxy account.
The created proxy need to have access to the SSIS subsystem
References:
https://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/

You administer a Microsoft SQL Server instance.
You need to configure a new database to support FILETABLES.
Which three actions should you perform? Each correct answer presents part of the solution.

  • A. Disable FILESTREAM on the Database.
  • B. Enable FILESTREAM on the Server Instance.
  • C. Configure the Database for Partial Containment.
  • D. Create a non-empty FILESTREAM file group.
  • E. Enable Contained Databases on the Server Instance.
  • F. Set the FILESTREAM directory name on the Database.


Answer : BDF

Reference:
http://msdn.microsoft.com/en-us/library/gg509097.aspx

You administer a Microsoft Azure SQL Database instance named Inventory that contains a stored procedure named p_AddInventory.
Users need to be able to SELECT from all tables in the database and execute the stored procedure.
You need to grant only the necessary permissions.
What should you do?

  • A. Create a new database role. Grant EXECUTE permission on p_AddInventory to the new role. Add all users to the role. Add all users to the db_datareader role.
  • B. Create a new database role. Grant EXECUTE permission on p_AddInventory to the new role. Grant VIEW DEFINITION to the role. Add all users to the role.
  • C. Add EXECUTE AS OWNER to the stored procedure. Add all users to the db_datareader role.
  • D. Grant EXECUTE permission on p_AddInventory to all users. Grant VIEW DEFINITION to all users.


Answer : A

Explanation:
The db_datareader role allows a user to be able to issue a SELECT statement against all tables and views in the database.
References:
https://www.mssqltips.com/sqlservertip/1900/understanding-sql-server-fixed-database-roles/

You use a contained database named ContosoDb within a domain.
You need to create a user who can log on to the ContosoDb database. You also need to ensure that you can port the database to different database servers within the domain without additional user account configurations.
Which type of user should you create?

  • A. SQL user without login
  • B. User mapped to an asymmetric key
  • C. Domain user
  • D. login mapped to a virtual account C


Answer : Explanation

You administer a Microsoft SQL Server 2012 database.
You configure Transparent Data Encryption (TDE) on the Orders database by using the following statements:


You attempt to restore the Orders database and the restore fails. You copy the encryption file to the original location.
A hardware failure occurs and so a new server must be installed and configured.
After installing SQL Server to the new server, you restore the Orders database and copy the encryption files to their original location. However, you are unable to access the database.
You need to be able to restore the database.
Which Transact-SQL statement should you use before attempting the restore?
A.

B.

C.

D.



Answer : B

Page:    1 / 22   
Total 316 questions