Download Administering Microsoft SQL Server 2012-2014 Databases.70-462.Prep4Sure.2018-12-01.180q.vcex

Vendor: Microsoft
Exam Code: 70-462
Exam Name: Administering Microsoft SQL Server 2012/2014 Databases
Date: Dec 01, 2018
File Size: 4 MB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 1
You administer a Microsoft SQL Server database that has Trustworthy set to On. You create a stored procedure that returns database-level information from Dynamic Management Views. 
You grant User1 access to execute the stored procedure. 
You need to ensure that the stored procedure returns the required information when User1 executes the stored procedure. You need to achieve this goal by granting the minimum permissions required. 
Which two actions should you perform? Each correct answer presents part of the solution.
  1. Grant the VIEW SERVER STATE permission to User1.
  2. Move the stored procedure to the User1 schema.
  3. Modify the stored procedure to include the EXECUTE AS OWNER statement. Grant VIEW SERVER STATE permissions to the owner of the stored procedure.
  4. Grant the db_datareader role on the database to User1.
  5. Create a SQL Server login that has VIEW SERVER STATE permissions. Modify the stored procedure to include the EXECUTE AS (newlogin) statement.
Correct answer: CE
Explanation:
References:http://msdn.microsoft.com/en-us/library/ms187861.aspxhttp://msdn.microsoft.com/en-us/library/ms191291.aspx
References:
http://msdn.microsoft.com/en-us/library/ms187861.aspx
http://msdn.microsoft.com/en-us/library/ms191291.aspx
Question 2
You are migrating a database named Orders to a new server that runs Microsoft SQL Server. 
You attempt to add the [Corpnet\User1] login to the database. However, you receive the following error message:
"User already exists in current database." 
You need to configure the [Corpnet\User1] login to be able to access the Orders database and retain the original permissions. You need to achieve this goal by using the minimum required permissions. 
Which Transact-SQL statement should you use? 
  1. DROP USER [User1];
    CREATE USER [Corpnet\User1] FOR LOGIN [Corpnet\User1];
    ALTER ROLE [db_owner] ADD MEM3ER [Corpnet\User1];
  2. ALTER SERVER RCLS Isysadmin] ADD MEMBER [Corpnet\User1];
  3. ALTER USER [Corpnet\User1] WITH LOGIN [Corpnet\User1];
  4. ALTER ROLE [db owner] ADD MEMBBR [Corpnet\User1];
Correct answer: C
Explanation:
Reference:http://msdn.microsoft.com/en-us/library/ms176060.aspx
Reference:
http://msdn.microsoft.com/en-us/library/ms176060.aspx
Question 3
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?  
Correct answer: C
Explanation:
To create a database protected by transparent data encryption The following procedures show you have to create a database protected by TDE using SQL Server Management Studio and by using Transact-SQL. Using SQL Server Management Studio 1. Create a database master key and certificate in the master database.  2. Create a backup of the server certificate in the master database. Etc. In transact sql:-- Create a database master key and a certificate in the master database.   USE master ;   GO   CREATE MASTER KEY ENCRYPTION BY PASSWORD = '*rt@40(FL&dasl1';   GO   CREATE CERTIFICATE TestSQLServerCert    WITH SUBJECT = 'Certificate to protect TDE key'   GO   -- Create a backup of the server certificate in the master database.   -- The following code stores the backup of the certificate and the private key file in the default data location for this instance of SQL Server    -- (C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA).  BACKUP CERTIFICATE TestSQLServerCert    TO FILE = 'TestSQLServerCert'   WITH PRIVATE KEY    (       FILE = 'SQLPrivateKeyFile',       ENCRYPTION BY PASSWORD = '*rt@40(FL&dasl1'   );   GO   Etc. ' References:https://docs.microsoft.com/en-us/sql/relational-databases/security/encryption/move-a-tde-protected-database-to-another-sql-server
To create a database protected by transparent data encryption 
The following procedures show you have to create a database protected by TDE using SQL Server Management Studio and by using Transact-SQL. 
Using SQL Server Management Studio 
1. Create a database master key and certificate in the master database.  
2. Create a backup of the server certificate in the master database. 
Etc. 
In transact sql:
-- Create a database master key and a certificate in the master database.   
USE master ;   
GO   
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '*rt@40(FL&dasl1';   
GO   
CREATE CERTIFICATE TestSQLServerCert    
WITH SUBJECT = 'Certificate to protect TDE key'   
GO   
-- Create a backup of the server certificate in the master database.   
-- The following code stores the backup of the certificate and the private key file in the default data location for this instance of SQL Server    
-- (C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA).  
BACKUP CERTIFICATE TestSQLServerCert    
TO FILE = 'TestSQLServerCert'   
WITH PRIVATE KEY    
(   
    FILE = 'SQLPrivateKeyFile',   
    ENCRYPTION BY PASSWORD = '*rt@40(FL&dasl1'   
);   
GO   
Etc. 
References:
https://docs.microsoft.com/en-us/sql/relational-databases/security/encryption/move-a-tde-protected-database-to-another-sql-server
Question 4
You administer a Microsoft SQL Server database. 
You provide temporary securityadmin access to User1 to the database server. 
You need to know if User1 adds logins to securityadmin. 
Which server-level audit action group should you use?
  1. SERVER_STATE_CHANGE_GROUP
  2. SERVER_PRINCIPAL_IMPERSONATION_GROUP
  3. SUCCESSFUL_LOGIN_GROUP
  4. SERVER_ROLE_MEMBER_CHANGE_GROUP
  5. DATABASE_ROLE_MEMBER_CHANGE_GROUP
  6. SERVER_OBJECT_CHANGE_GROUP
  7. SERVER_PERMISSION_CHANGE_GROUP
Correct answer: D
Explanation:
The SERVER_ROLE_MEMBER_CHANGE_GROUP event is raised whenever a login is added or removed from a fixed server role. This event is raised for the sp_addsrvrolemember and sp_dropsrvrolemember stored procedures. Equivalent to the Audit Add Login to Server Role Event Class. Incorrect Answers:A. The SERVER_STATE_CHANGE_GROUP event is raised when the SQL Server service state is modified. Equivalent to the Audit Server Starts and Stops Event Class. B. The SERVER_PRINCIPAL_IMPERSONATION_GROUP event is raised when there is an impersonation within server scope, such as EXECUTE AS <login>. Equivalent to the Audit Server Principal Impersonation Event Class. C. The SUCCESSFUL_LOGIN_GROUP Indicates that a principal has successfully logged in to SQL Server. Events in this class are raised by new connections or by connections that are reused from a connection pool. Equivalent to the Audit Login Event Class. References:http://technet.microsoft.com/en-us/library/cc280663.aspx
The SERVER_ROLE_MEMBER_CHANGE_GROUP event is raised whenever a login is added or removed from a fixed server role. This event is raised for the sp_addsrvrolemember and sp_dropsrvrolemember stored procedures. Equivalent to the Audit Add Login to Server Role Event Class. 
Incorrect Answers:
A. The SERVER_STATE_CHANGE_GROUP event is raised when the SQL Server service state is modified. Equivalent to the Audit Server Starts and Stops Event Class. 
B. The SERVER_PRINCIPAL_IMPERSONATION_GROUP event is raised when there is an impersonation within server scope, such as EXECUTE AS <login>. 
Equivalent to the Audit Server Principal Impersonation Event Class. 
C. The SUCCESSFUL_LOGIN_GROUP Indicates that a principal has successfully logged in to SQL Server. Events in this class are raised by new connections or by connections that are reused from a connection pool. Equivalent to the Audit Login Event Class. 
References:
http://technet.microsoft.com/en-us/library/cc280663.aspx
Question 5
You administer a Microsoft SQL Server 2012 instance. 
You need to stop a blocking process that has an SPID of 64 without stopping other processes 
What should you do?
  1. Execute the following Transact-SQL statement: 
    EXECUTE sp_KillSPID 64
  2. Restart the SQL Server service.
  3. Execute the following Transact-SQL statement: 
    KILL 64
  4. Execute the following Transact-SQL statement: 
    ALTER SESSION KILL '64'
Correct answer: C
Explanation:
Reference:http://msdn.microsoft.com/en-us/library/ms173730.aspx
Reference:
http://msdn.microsoft.com/en-us/library/ms173730.aspx
Question 6
You administer a Microsoft SQL Server database. 
Users report that an application that accesses the database displays an error, but the error does not provide meaningful information. No entries are found in the SQL Server log or Windows event logs related to the error. 
You need to identify the root cause of the issue by retrieving the error message. 
What should you do?
  1. Flag all stored procedures for recompilation by using sp_recompile.
  2. Create an Extended Events session by using the sqlserver.error_reported event.
  3. Create a Performance Monitor session to capture the SQLServer:SQL Errors object.
  4. Create a SQL Profiler session to capture all ErrorLog and EventLog events.
Correct answer: B
Explanation:
Event sqlserver.error_reported: This event gets fired every time that an error happens in the serverReference:http://msdn.microsoft.com/en-us/library/bb630282.aspx
Event sqlserver.error_reported: This event gets fired every time that an error happens in the server
Reference:
http://msdn.microsoft.com/en-us/library/bb630282.aspx
Question 7
You administer a Microsoft SQL Server database server. One of the databases on the server supports a highly active OLTP application. 
Users report abnormally long wait times when they submit data into the application. 
You need to identify which queries are taking longer than 1 second to run over an extended period of time. 
What should you do?
  1. use SQL Profiler to trace all queries that are processing on the server. Filter queries that have a Duration value of more than 1,000.
  2. Use sp_configure to set a value for blocked process threshold. Create an extended event session.
  3. Use the Job Activity monitor to review all processes that are actively running. Review the Job History to find out the duration of each step.
  4. Run the sp_who command from a query window.
  5. Run the DBCC TRACEON 1222 command from a query window and review the SQL Server event log.
Correct answer: A
Explanation:
Use SQL Profiler to trace all queries that are processing on the server. Filter queries that have a Duration value of more than 1,000. Incorrect:Not B: The SQL Server lock monitor is responsible for implementing the logic to detect a blocking scenario if the ‘blocked process threshold’ value is greater than 0. However, the lock monitor only wakes up every 5 seconds to detect this condition (it is also looking for other conditions such as deadlocks). Therefore, if you set a ‘blocked process threshold’ value to 1, it will not detect a process that has been blocking for 1 second. The minimum time it can detect a blocked process is 5 seconds.Not E: The Traceflag 1222 Shows Deadlocks, not the Duration of an query.References: https://docs.microsoft.com/en-us/sql/tools/sql-server-profiler/sql-server-profiler
Use SQL Profiler to trace all queries that are processing on the server. Filter queries that have a Duration value of more than 1,000. 
Incorrect:
Not B: The SQL Server lock monitor is responsible for implementing the logic to detect a blocking scenario if the ‘blocked process threshold’ value is greater than 0. However, the lock monitor only wakes up every 5 seconds to detect this condition (it is also looking for other conditions such as deadlocks). Therefore, if you set a ‘blocked process threshold’ value to 1, it will not detect a process that has been blocking for 1 second. The minimum time it can detect a blocked process is 5 seconds.
Not E: The Traceflag 1222 Shows Deadlocks, not the Duration of an query.
References: https://docs.microsoft.com/en-us/sql/tools/sql-server-profiler/sql-server-profiler
Question 8
You administer a Microsoft SQL Server 2012 database. 
You need to ensure that the size of the transaction log file does not exceed 2 GB. 
What should you do?
  1. Execute sp_configure 'max log size', 2G.
  2. Use the ALTER DATABASE...SET LOGFILE command along with the maxsize parameter.
  3. In SQL Server Management Studio, right-click the instance and select Database Settings. Set the maximum size of the file for the transaction log.
  4. In SQL Server Management Studio, right-click the database, select Properties, and then click Files. Open the Transaction log Autogrowth window and set the maximum size of the file.
  5. Use the ALTER DATABASE…AUTO_SHRINK command along with the On parameter.
Correct answer: D
Question 9
You administer a Microsoft SQL Server server. The MSSQLSERVER service uses a domain account named CONTOSO\SQLService. 
You plan to configure Instant File Initialization. 
You need to ensure that Data File Autogrow operations use Instant File Initialization. 
Which two actions should you perform? Each correct answer presents part of the solution.
  1. Restart the SQL Server Agent Service.
  2. Disable snapshot isolation.
  3. Restart the SQL Server Service.
  4. Add the CONTOSO\SQLService account to the Perform Volume Maintenance Tasks local security policy.
  5. Add the CONTOSO\SQLService account to the Server Operators fixed server role.
  6. Enable snapshot isolation.
Correct answer: CD
Explanation:
How To Enable Instant File Initialization 1. Open Local Security Policy and go to Local Policies --> User Rights Assignment.   2. Double click Perform Volume Maintenance Tasks and add your SQL Server database engine service account. 3. Restart the SQL Server service using SQL Server Configuration Manager and this setting should now be enabled. References:http://msdn.microsoft.com/en-us/library/ms175935.aspxhttp://www.mssqltips.com/sqlservertip/2752/effect-of-instant-file-initialization-within-sql-server/
How To Enable Instant File Initialization 
1. Open Local Security Policy and go to Local Policies --> User Rights Assignment. 
  
2. Double click Perform Volume Maintenance Tasks and add your SQL Server database engine service account. 
3. Restart the SQL Server service using SQL Server Configuration Manager and this setting should now be enabled. 
References:
http://msdn.microsoft.com/en-us/library/ms175935.aspx
http://www.mssqltips.com/sqlservertip/2752/effect-of-instant-file-initialization-within-sql-server/
Question 10
You administer a Microsoft SQL Server 2012 database. 
The database contains a Product table created by using the following definition:
  
You need to ensure that the minimum amount of disk space is used to store the data in the Product table. 
What should you do?
  1. Convert all indexes to Column Store indexes.
  2. Implement Unicode Compression.
  3. Implement row-level compression.
  4. Implement page-level compression.
Correct answer: D
Explanation:
References:http://msdn.microsoft.com/en-us/library/cc280449.aspxhttp://msdn.microsoft.com/en-us/library/cc280464.aspxhttp://msdn.microsoft.com/en-us/library/cc280576.aspxhttp://msdn.microsoft.com/en-us/library/ee240835.aspx
References:
http://msdn.microsoft.com/en-us/library/cc280449.aspx
http://msdn.microsoft.com/en-us/library/cc280464.aspx
http://msdn.microsoft.com/en-us/library/cc280576.aspx
http://msdn.microsoft.com/en-us/library/ee240835.aspx
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!