Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

MCSA Administering Microsoft SQL Server 20122014 Databases

Administer SQL Server databases for reliable operations.

4.8★★★★★(362 ratings)
16,604 studentsIntermediate
Develop the skills to administer Microsoft SQL Server databases in production environments. The exam covers installation, maintenance, security, backup, restore, and performance management. It is a practical certification for professionals who keep databases secure and available. Strong database administration skills are essential for business continuity, application stability, and long-term platform health.

What you'll learn

  • Manage SQL instances- Configure security- Perform backups and restores- Monitor performance- Maintain database availability

70-462

Lectures1
Questions28
Duration30 week
Students16,604

$20.00

Full Free Question Bank (28 Questions)

MCSA Administering Microsoft SQL Server 20122014 Databases (70-462) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Question #1Part 1

You are the lead database administrator (DBA) of a Microsoft SQL Server environment. All DBAs are members of the DOMAIN\JrDBAs Active Directory group. You grant DOMAIN\JrDBAs access to the SQL Server. You need to create a server role named SpecialDBARole that can perform the following functions: ✑ View all databases. ✑ View the server state. ✑ Assign GRANT, DENY, and REVOKE permissions on logins. You need to add DOMAIN\JrDBAs to the server role. You also need to provide the least level of privileges necessary. Which three SQL statements should you use? Each correct answer presents part of the solution.

AGRANT VIEW SERVER STATE, VIEW ANY DATABASE TO [SpecialDBARole];
BCREATE SERVER ROLE [SpecialDBARole] AUTHORIZATION securityadmin;
CALTER SERVER ROLE [SpecialDBARole] ADD MEMBER [DOMAIN\JrDBAs];
DCREATE SERVER ROLE [SpecialDBARole]; AUTHORIZATION serveradmin;
EGRANT VIEW DEFINITION TO [SpecialDBARole];
Question #2Part 1

You administer a Microsoft SQL Server 2012 instance. The instance contains a database that supports a retail sales application. The application generates hundreds of transactions per second and is online 24 hours per day and 7 days per week. You plan to define a backup strategy for the database. You need to ensure that the following requirements are met: ✑ No more than 5 minutes worth of transactions are lost. ✑ Data can be recovered by using the minimum amount of administrative effort. What should you do? Choose three.

AConfigure the database to use the SIMPLE recovery model.
BCreate a DIFFERENTIAL database backup every 4 hours.
CCreate a LOG backup every 5 minutes.
DConfigure the database to use the FULL recovery model.
ECreate a FULL database backup every 24 hours.
Question #3Part 1

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?

ASERVER_STATE_CHANGE_GROUP
BSERVER_PRINCIPAL_IMPERSONATION_GROUP
CSUCCESSFUL_LOGIN_GROUP
DSERVER_ROLE_MEMBER_CHANGE_GROUP
EDATABASE_ROLE_MEMBER_CHANGE_GROUP
Question #4Part 1

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 all the deployments of Microsoft SQL Server in your company. You need to ensure that an OLTP database that uses a storage area network (SAN) remains available if any of the servers fail. You also need to minimize the amount of storage used by the database. Which configuration should you use?

ATwo servers configured in different data centers SQL Server Availability Group configured in Synchronous-Commit Availability Mode One server configured as an Active Secondary
BSQL Server that includes an application database configured to perform transactional replication
CTwo servers configured in the same data center SQL Server Availability Group configured in Asynchronous-Commit Availability Mode One server configured as an Active Secondary
DTwo servers configured in different data centers SQL Server Availability Group configured in Asynchronous-Commit Availability Mode
ETwo 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
Question #5Part 1

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 database named Contoso on a server named Server01. You need to write messages to the Application Log when users are added to or removed from a fixed server role in Server01. What should you create?

AA Database Audit Specification
BA Policy
CAn Alert
DA SQL Profiler Trace
EA Resource Pool
Question #6Part 1

Note: This question is part of a series of questions that use the same set of answers choices. An answer choice may be correct for more than one question in the series. You administer a Microsoft SQL Server server that hosts a transactional database and a reporting database. The transactional database is updated through a web application and is operational throughout the day. The reporting database is only updated from the transactional database. The recovery model and backup schedule are configured as shown in the following table: The differential backup of the reporting database fails. Then, the reporting database fails at 14:00 hours. You need to ensure that the reporting database is restored. You also need to ensure that data loss is minimal. What should you do?

ARestore the latest full backup, and restore the latest differential backup. Then, restore the latest log backup.
BPerform a point-in-time restore.
CRestore the latest full backup.
DRestore the latest full backup, and restore the latest differential backup. Then, restore each log backup taken before the time of failure from the most recent differential backup.
ERestore the latest full backup. Then, restore the latest differential backup.
Question #7Part 1

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?

AAn Alert
BA Resource Pool
CAn Extended Event session
DA Policy
EA Database Audit Specification
Question #8Part 1

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?

ASELECT * FROM sys.dm_exec_requests WHERE session_id = 60
BSELECT * FROM sys.dm_exec_sessions WHERE session_id = 60
CDBCC INPUTBUFFER (60)
DDBCC OPENTRAN
ESELECT * FROM sys.dm_tran_session_transactions WHERE session_id = 60
Question #9Part 1

You administer a Microsoft SQL Server database. You create an availability group named haContosoDbs. Your primary replica is available at Server01\Contoso01. You need to configure the availability group to prevent data loss. In the event of a database failure, the designed secondary database must come online automatically. Which Transact-SQL statement should you use?

AALTER AVAILABILITY GROUP haContosoDbs MODITY REPLICA ON Server01\Contoso01 WITH (AVAILABILITY _MODE=ASYNCHRONOUS_COMMIT, FAILOVER_MODE=AUTOMATIC)
BALTER AVAILABILITY GROUP haContosoDbs MODIFY REPLICA ON Server01\Contoso01 WITH (AVAILABILITY _MODE=ASYNCHRONOUS_COMMIT, FAILOVER_MODE=MANUAL)
CALTER AVAILABILITY GROUP haContosoDbs MODITY REPLICA ON Server01\Contoso01 WITH (AVAILABILITY _MODE=SYNCHRONOUS_COMMIT, FAILOVER_MODE=AUTOMATIC)
DALTER AVAILABILITY GROUP haContosoDbs MODIFY REPLICA ON Server01\Contoso01 WITH (AVAILABILITY _MODE=SYNCHRONOUS_COMMIT, FAILOVER_MODE=MANUAL)
Question #10Part 1

You administer a Microsoft SQL Server instance. The instance contains a database that supports a retail sales application. The application generates hundreds of transactions per second and is online 24 hours per day and 7 days per week. The database is configured to use the FULL recovery model. You plan to define a backup strategy for the database. You need to ensure that the following requirements are met: ✑ No more than 5 minutes worth of transactions are lost. ✑ Data can be recovered by using the minimum amount of administrative effort. What should you do? Each correct answer presents part of the solution.

ACreate a LOG backup every 5 minutes.
BConfigure the database to use the SIMPLE recovery model.
CCreate a DIFFERENTIAL database backup every 4 hours.
DCreate a DIFFERENTIAL database backup every 24 hours.
ECreate a FULL database backup every 24 hours.
Question #11Part 1

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 are truncated. The following error message is an example of the truncated error message: "Executed as user CONTOSO\ServiceAccount....0.4035.00 for 64-bit Copyright (C) Microsoft Corp 1984-2011. All rights reserveD. Started 63513 PM Error 2012-06-23 183536.87 Code 0XC001000E Source UserImport Description Code 0x00000000 Source Log Import Activity Descript... The package execution f

AExpand agent logging to include information from all events.
BDisable the Limit size of job history log feature.
CConfigure event forwarding.
DConfigure output files.
Question #12Part 1

You manage a server that has SQL Server installed and hosts databases for five applications. Each application has a different login to the SQL Server instance. You need to create a TCP endpoint to be used only by a login named Application3. The solution must ensure that Application3 only uses the new endpoint. Which three statements should you execute? Each correct answer presents part of the solution.

AGRANT CONNECT ON ENDPOINT::[TSQL Default TCP] TO Application3
BDENY CONNECT ON ENDPOINT::[TSQL Default TCP] TO Application3
CCREATE ENDPOINT Application3_EndPoint STATE=STARTED AS TCP (LISTENER_PORT=1388)
DGRANT .CONNECT ON ENDPOINT:: Application3_EndPoint TO Public
EGRANT CONNECT ON ENDPOINT::[TSQL Default TCP] TO PUBLIC
Question #13Part 1

You administer a Microsoft SQL Server database. The database has a table named Customers owned by UserA and another table named Orders owned by UserB. You also have a stored procedure named GetCustomerOrderInfo owned by UserB. GetCustomerOrderInfo selects data from both tables. You create a new user named UserC. You need to ensure that UserC can call the GetCustomerOrderInfo stored procedure. You also need to assign only the minimum required permissions to UserC. Which permission or permissions should you assign to UserC? Each correct answer presents part of the solution.

AThe Select permission on Customers
BThe Execute permission on GetCustomerOrderInfo
CThe Take Ownership permission on Customers
DThe Control permission on GetCustomerOrderInfo
EThe Take Ownership permission on Orders
Question #14Part 1

You need to install SQL Server on a server. The server must meet the following requirements: ✑ Include SQL Server Integration Services (SSIS) ✑ Be able to run 32-bit SSIS legacy packages You add the Integration Services shared feature to the installation. Which other shared feature should you add to the installation?

AClient Tools Connectivity
BMaster Data Services (MDS)
CManagement Tools - Complete
DSQL Server Data Tools
Question #15Part 1

You administer a Microsoft SQL Server environment. The environment contains a SQL Server Reporting Services (SSRS) instance. You need to ensure that users can create subscriptions. What should you configure?

Acache refresh options
Bsite security for service account
CSSRS Execution Account
Dfolder level security
Question #16Part 1

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?

ASQL user without login
BUser mapped to an asymmetric key
CDomain user
Dlogin mapped to a virtual account
Question #17Part 1

You administer a Microsoft SQL Server environment. The environment contains a SQL Server Reporting Services (SSRS) instance. You need to ensure that users can create subscriptions. What should you configure?

Aitem security for the reports
BSQL Agent Proxy Account
CSSRS Execution Account
Dprocessing options for the reports A
Question #18Part 1

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 SQL 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 remove the Select permission for UserA on the Regions table. You also need to ensure that UserA can still access all the tables in the Customers schema, including the Regions table, through the Sales role permissions. Which Transact-SQL statement should you use?

ADENY SELECT ON Object::Regions FROM UserA
BDENY SELECT ON Schema::Customers FROM UserA
CEXEC sp_addrolemember 'Sales', 'UserA'
DREVOKE SELECT ON Object::Regions FROM UserA
EREVOKE SELECT ON Object::Regions FROM Sales
Question #19Part 1

You administer a Microsoft SQL Server database. Users report that a billing application is throwing errors during busy times of the day. You identify that the following error is regularly written to the application's error log every day between 4:00 pm and 5:30 pm: Error 1205: Transaction (Process ID) was deadlocked on resources with another process and has been chosen as the deadlock victim. You need to determine the cause of deadlocks. You start a trace using SQL Server Profiler. Which event should you select?

ALock: Timeout
BLock: Escalation
CLock: Deadlock
DDeadlock graph D
Question #20Part 1

You administer a single server that contains a Microsoft SQL Server 2012 default instance on which several production databases have been deployed. You plan to install a new ticketing application that requires the deployment of a database on the server. The SQL login for this application requires sysadmin permissions. You need to ensure that the login for the ticketing application cannot access other production databases. What should you do?

AUse the SQL Server default instance and enable Contained Databases.
BUse the SQL Server default instance and configure a user-defined server role. Add the login for the ticketing application to this role.
CInstall a new named SQL Server instance on the server.
DInstall a new default SQL Server instance on the server.
Question #21Part 1

You are migrating a database named Orders to a new server that runs Microsoft SQL Server 2012. 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?

ADROP USER [User1]; CREATE USER [Corpnet\User1] FOR LOGIN [Corpnet\User1]; ALTER ROLE [db_owner] ADD MEM3ER [Corpnet\User1];
BALTER SERVER RCLS Isysadmin] ADD MEMBER [Corpnet\User1];
CALTER USER [Corpnet\User1] WITH LOGIN [Corpnet\User1];
DALTER ROLE [db owner] ADD MEMBBR [Corpnet\User1]; C
Question #22Part 1

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. Which three actions should you perform? Each correct answer presents part of the solution.

AEnable inbound connections on TCP port 1434 in the Windows Firewall on the server.
BExecute the following Transact-SQL command: sp_configure 'remote admin connections',1
CExecute the Reconfigure command.
DExecute the following Transact-SQL command: sp_configure 'remote access', 1
ERestart the SQL Server Agent Service.
Question #23Part 1

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 implement log shipping of the financial database to another SQL Server 2012 instance. You decide to failover to this secondary database. You need to ensure that all transactions will be replicated to the secondary database. Which backup option should you use?

ADifferential
BTransaction Log
CFULL
DSIMPLE
ESKIP
Question #24Part 1

You maintain several databases on a 32-bit Microsoft SQL Server 2005 instance on a Windows Server 2008 R2 64-bit server. You need to migrate the databases to a 64-bit SQL Server 2012 instance on the same server. You also need to ensure that the new Transact-SQL functionality in SQL Server 2012 can be used in the database after the migration. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

APerform a side-by-side installation of a 32-bit SQL Server 2012 instance.
BPerform a side-by-side installation of a 64-bit SQL Server 2012 instance.
CPerform an in-place upgrade to 64-bit SQL Server 2012.
DDetach the database from the old instance and attach it to the new instance.
EChange the compatibility level of the database. BDE
Question #25Part 1

You administer a Microsoft SQL Server 2012 database that contains a table named AccountTransaction. You discover that query performance on the table is poor due to fragmentation on the IDX_AccountTransaction_AccountCode non-clustered index. You need to defragment the index. You also need to ensure that user queries are able to use the index during the defragmenting process. Which Transact-SQL batch should you use?

AALTER INDEX IDX_AccountTransaction_AccountCode ON AccountTransaction.AccountCode REORGANIZE
BALTER INDEX ALL ON AccountTransaction REBUILD
CALTER INDEX IDX_AccountTransaction_AccountCode ON AccountTransaction.AccountCode REBUILD
DCREATE INDEX IDXAccountTransactionAccountCode ON AccountTransaction.AccountCode WITH DROP EXISTING
Question #26Part 1

You administer a Microsoft Azure SQL Database database named Orders. You need to create a copy of Orders named Orders_Reporting. Which Transact-SQL command should you use?

ABACKUP DATABASE Orders TO DISK = 'D:\Orders.bak' RESTORE DATABASE Orders_Reporting FROM DISK = 'D:\Orders.bak
BBACKUP DATABASE Orders TO DISK = 'D:\Orders.bak' CREATE DATABASE Orders_Reporting FROM DISK = 'D:\Orders.bak
CCREATE DATABASE Orders_Reporting AS COPY OF Orders
DBACKUP DATABASE Orders TO DISK = 'D:\Orders.bak' MIRROR TO DISK = 'Orders_Reporting
Question #27Part 1

You administer a Microsoft SQL Server 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. On Wednesday at 10:00 hours, the development team requests you to refresh the database on a development server by using the most recent version. You need to perform a full database backup that will be restored on the development server. Which backup option should you use?

ANORECOVERY
BFULL
CNO_CHECKSUM
DCHECKSUM
EDifferential
Question #28Part 1

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 minimum amount of data is lost. Which recovery model should the database use?

AFULL
BDBO_ONLY
CCONTINUE_AFTER_ERROR
DCHECKSUM
ENO_CHECKSUM

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!