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

Administering a SQL Database Infrastructure

Administer SQL database infrastructure with confidence.

4.8★★★★★(177 ratings)
19,489 studentsIntermediate
Gain operational skills for managing SQL Database infrastructure, including security, maintenance, backup, and performance. The exam emphasizes the administrative responsibilities needed to keep database platforms stable and available. It is a strong choice for DBAs supporting production workloads. These skills help protect data, maintain uptime, and ensure that business systems continue to run smoothly.

What you'll learn

  • Manage SQL infrastructure- Perform maintenance tasks- Configure backup and restore- Improve database security- Monitor performance

70-764

Lectures2
Questions100
Duration30 week
Students19,489

$20.00

Full Free Question Bank (100 Questions)

Administering a SQL Database Infrastructure (70-764) Practice Questions & Verified Answers

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

Jump to Section:
Question #1Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You need to configure a Microsoft SQL Server instance to ensure that a user named Mail1 can send mail by using Database Mail. Solution: You add the DatabaseMailUserRole to Mail1 in the tempdb database. Does the solution meet the goal?

AYes
BNo
Question #2Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You need to configure a Microsoft SQL Server instance to ensure that a user named Mail1 can send mail by using Database Mail. Solution: You add the DatabaseMailUserRole to Mail1 in the msdb database. Does the solution meet the goal?

AYes
BNo
Question #3Part 1

You have a database named DB1. Users report that a database application that updates the data in DB1 is unresponsive. You need to identify which process prevents the application from responding. What should you do?

ARun DBCC INPUTBUFFER.
BQuery sys.dm_exec_session_wait_stats.
CRun sp_autostats.
DRun sp_who.
EQuery sys.dm_db_resource_stats.
Question #4Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You need to configure a Microsoft SQL Server instance to ensure that a user named Mail1 can send mail by using Database Mail. Solution: You add the DatabaseMailUserRole to Mail1 in the master database. Does the solution meet the goal?

AYes
BNo
Question #5Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You support an application that stores data in a Microsoft SQL Server database. You have a query that returns data for a report that users run frequently. The query optimizer sometimes generates a poorly-performing plan for the query when certain parameters are used. You observe that this is due to the distribution of data within a specific table that the query uses. You need to ensure that the query optimizer always uses the query plan that you prefer. Solution: You force the desired plan. Does the solution meet the goal?

AYes
BNo
Question #6Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A company has a server that runs Microsoft SQL Server 2016 Web edition. The server has a default instance that hosts a database named DB1. You need to ensure that you can perform auditing at the database level for DB1. Solution: You migrate DB1 to the default instance on a server that runs Microsoft SQL Server 2016 Standard edition. Does the solution meet the goal?

AYes
BNo
Question #7Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A company has a server that runs Microsoft SQL Server 2016 Web edition. The server has a default instance that hosts a database named DB1. You need to ensure that you can perform auditing at the database level for DB1. Solution: You migrate DB1 to a named instance on a server that runs Microsoft SQL Server 2016 Enterprise edition. Does the solution meet the goal?

AYes
BNo
Question #8Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A company has a server that runs Microsoft SQL Server 2016 Web edition. The server has a default instance that hosts a database named DB1. You need to ensure that you can perform auditing at the database level for DB1. Solution: You migrate DB1 to a named instance on a server than runs Microsoft SQL Server 2016 Standard edition. Does the solution meet the goal?

AYes
BNo
Question #9Part 1

You maintain a database named DB1 that has a nonpartitioned table. You create an index in the table. Automatic statistic updates are disabled. Uses report that some Microsoft SQL Server Reporting Service (SSRS) queries take long time to run. You determine that the issue is caused by stale statistics for Index1. You need to update the statistics for the index. What should you do?

ASet the value of the Database Read-Only property to True.
BRun the system stored procedure sp_updatestats.
CSet the value of the Auto Create Incremental Statistics property to True.
DRun the UPDATE STATISTICS command with the COLUMNS option.
Question #10Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A company has an on-premises Microsoft SQL Server environment and Microsoft Azure SQL Database instances. The environment hosts several customer databases. One customer reports that their database is not responding as quickly as the service level agreements dictate. You observe that the database is fragmented. You need to optimize query performance. Solution: You reorganize all indexes. Does the solution meet the goal?

AYes
BNo
Question #11Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A company has an on-premises Microsoft SQL Server environment and Microsoft Azure SQL Database instances. The environment hosts several customer databases. One customer reports that their database is not responding as quickly as the service level agreements dictate. You observe that the database is fragmented. You need to optimize query performance. Solution: You rebuild all indexes. Does the solution meet the goal?

AYes
BNo
Question #12Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A company has an on-premises Microsoft SQL Server environment and Microsoft Azure SQL Database instances. The environment hosts several customer databases. One customer reports that their database is not responding as quickly as the service level agreements dictate. You observe that the database is fragmented. You need to optimize query performance. Solution: You run the DBCC CHECKDB command. Does the solution meet the goal?

AYes
BNo
Question #13Part 1

You have a Microsoft SQL Server instance that has a database named DB1. The database is used for reporting purposes. You plan to capture all queries for a specific table and save the data as a text file. You need to ensure that queries are captured and that a failure to capture a query will shut down the SQL Server instance. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

AEnable SQL Server Audit.
BUse Extended Events.
CUse a logon trigger.
DCreate a SQL Server Profiler trace and disable c2 audit tracing.
EEnable SQL Server Query Store.
Question #14Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You are the database administrator for a company that hosts Microsoft SQL Server. You manage both on-premises and Microsoft Azure SQL Database environments. One instance hosts a user database named HRDB. The database contains sensitive human resources data. You need to grant an auditor permission to view the SQL Server audit logs while following the principle of least privilege. Which permission should you grant?

ADDLAdmin
Bdb_datawriter
Cdbcreator
Ddbo
EView Database State
Question #15Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You manage a Microsoft SQL Server environment. You implement Transparent Data Encryption (TDE). A user will assist in managing TDE. You need to ensure that the user can view the TDE metadata while following the principle of lease privilege. Which permission should you grant?

ADDLAdmin
Bdb_datawriter
Cdbcreator
Ddbo
EView Database State
Question #16Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You are the database administrator for a company that hosts Microsoft SQL Server. You manage both on-premises and Microsoft Azure SQL Database environments. You have a user database named HRDB that contains sensitive human resources data. The HRDB backup files must be encrypted. You need to grant the correct permission to the service account that backs up the HRDB database. Which permission should you grant?

ADDLAdmin
Bdb_datawriter
Cdbcreator
Ddbo
EView Database State
Question #17Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You are the database administrator for a company that hosts Microsoft SQL Server. You manage both on-premises and Microsoft Azure SQL Database environments. You plan to delegate encryption operations to a user. You need to grant the user permission to implement cell-level encryption while following the principle of least privilege. Which permission should you grant?

ADDLAdmin
Bdb_datawriter
Cdbcreator
Ddbo
EView Database State
Question #18Part 1

You maintain a database named DB1 that has a nonpartitioned table. You create an index in the table. Automatic statistic updates are disabled. Uses report that some Microsoft SQL Server Reporting Service (SSRS) queries take a long time to run. You determine that the issue is caused by stale statistics for Index1. You need to update the statistics for the index. What should you do?

ARun the system stored procedure sp_updatestats.
BReorganize the index.
CSet the value of the Database Read-Only property to True.
DSet the value of the Auto Create Incremental Statistics property to True.
Question #19Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. A company has an on-premises Microsoft SQL Server environment and Microsoft Azure SQL Database instances. The environment hosts a customer database named DB1. Customers connect to hosted database instances by using line-of-business applications. Developers connect by using SQL Server Management Studio (SSMS). You need to grant the developers permission to alter views for DB1 while following the principle of least privilege. Which permission should you grant?

ADDLAdmin
Bdb_datawriter
Cdbcreator
Ddbo
EView Database State
Question #20Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You are the database administrator for a company that hosts Microsoft SQL Server. You manage both on-premises and Microsoft Azure SQL Database environments. Clients connect to databases by using line-of-business applications. Developers connect by using SQL Server Management Studio (SSMS). You need to provide permissions to a service account that will be used to provision a new database for a client. Which permission should you grant?

ADDLAdmin
Bdb_datawriter
Cdbcreator
Ddbo
EView Database State
Question #21Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You are examining information about users, sessions, and processed in an on-premises Microsoft SQL Server Database Engine instance. You need to return information about processes that are not idle, that belong to a specific user, or that belong to a specific session. What should you use?

AActivity Monitor
Bsp_who3
CSQL Server Management Studio (SSMS) Object Explorer
DSQL Server Data Collector
ESQL Server Data Tools (SSDT)
Question #22Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You observe that several indexes are fragmented. You need to rebuild the indexes. What should you use?

AActivity Monitor
BSp_who3
CObject Explorer in the SQL Server Management Studio (SSMS)
DSQL Server Data Collector
ESQL Server Data Tools (SSDT)
Question #23Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You need to examine information about logins, CPU times, and Disk I/O on a particular database in Microsoft Azure. What should you use?

AActivity Monitor
BSp_who3
CSQL Server Management Studio (SSMS) Object Explorer
DSQL Server Data Collector
ESQL Server Data Tools (SSDT)
Question #24Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You collect performance metrics on multiple Microsoft SQL Server instances and store the data in a single repository. You need to examine disk usage, query statistics, and server activity without building custom counters. What should you use?

AActivity Monitor
BSp_who3 stored procedure
CObject Explorer in the Microsoft SQL Server Management Studio (SSMS)
DSQL Server Data Collector
ESQL Server Data Tools (SSDT)
Question #25Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You are examining information about users, sessions, and processes in an on-premises Microsoft SQL Server 2016 Standard Edition server. You need to identify waits for resources and return only the following information: ✑ a list of all databases on the SQL Server instance, along with information about the database files, their paths, and names ✑ a list of the queries recently executed that use most of memory, disk, and network resources What should you use?

AActivity Monitor
BSp_who3
CSQL Server Management Studio (SSMS) Object Explorer
DSQL Server Data Collector
ESQL Server Data Tools (SSDT)
Question #26Part 1

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question. You have an on-premises server that runs Microsoft SQL Server 2016 Standard Edition. You need to identify missing indexes. What should you use?

AActivity Monitor
BSp_who3
CSQL Server Management Studio (SSMS) Object Explorer
DSQL Server Data Collector
ESQL Server Data Tools (SSDT)
Question #27Part 1

Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series. You are a database administrator for a company that has an on-premises Microsoft SQL Server environment and Microsoft Azure SQL Database instances. The environment hosts several customer databases, and each customer uses a dedicated instance. The environments that you manage are shown in the following table. You need to monitor WingDB and gather information for troubleshooting issues. What should you use?

Asp_updatestats
Bsp_lock
Csys.dm_os_waiting_tasks
Dsys.dm_tran_active_snapshot_database_transactions
EActivity Monitor
Question #28Part 1

Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series. You have five servers that run Microsoft Windows 2012 R2. Each server hosts a Microsoft SQL Server instance. The topology for the environment is shown in the following diagram. You have an Always On Availability group named AG1. The details for AG1 are shown in the following table. Instance1 experiences heavy read-write traffic. The instance hosts a database named OperationsMain that is four terabytes (TB) in size. The database has multiple data files and filegroups. One of the filegroups is read_only and is half of the total database size. Instance4 and Instance5 are not part of AG1. Instance4 is engaged in heavy read-write I/O. Instance5 hosts a database named StagedExternal. A nightly BULK INSERT process loads data into an empty table that has a rowstore clustered index and two nonclustered rowstore indexes. You must minimize the growth of the StagedExternal database log file during the BULK INSERT operations and perform point-in-time recovery after the BULK INSERT transaction. Changes made must not interrupt the log backup chain. You plan to add a new instance named Instance6 to a datacenter that is geographically distant from Site1 and Site2. You must minimize latency between the nodes in AG1. All databases use the full recovery model. All backups are written to the network location \\SQLBackup\. A separate process copies backups to an offsite location. You should minimize both the time required to restore the databases and the space required to store backups. The recovery point objective (RPO) for each instance is shown in the following table. Full backups of OperationsMain take longer than six hours to complete. All SQL Server backups use the keyword COMPRESSION. You plan to deploy the following solutions to the environment. The solutions will access a database named DB1 that is part of AG1. ✑ Reporting system: This solution accesses data inDB1with a login that is mapped to a database user that is a member of the db_datareader role. The user has EXECUTE permissions on the database. Queries make no changes to the data. The queries must be load balanced over variable read-only replicas. ✑ Operations system: This solution accesses data inDB1with a login that is mapped to a database user that is a member of the db_datareader and db_datawriter roles. The user has EXECUTE permissions on the database. Queries from the operations system will perform both DDL and DML operations. The wait statistics monitoring requirements for the instances are described in the following table. You need to reduce the amount of time it takes to backup OperationsMain. What should you do?

AModify the backup script to use the keyword SKIP in the FILE_SNAPSHOT statement.
BModify the backup script to use the keyword SKIP in the WITH statement
CModify the backup script to use the keyword NO_COMPRESSION in the WITH statement.
DModify the full database backups script to stripe the backup across multiple backup files.
Question #29Part 1

A Microsoft SQL Server database named DB1 has two filegroups named FG1 and FG2. You implement a backup strategy that creates backups for the filegroups. DB1 experiences a failure. You must restore FG1 and then FG2. You need to ensure that the database remains in the RECOVERING state until the restoration of FG2 completes. After the restoration of FG2 completes, the database must be online. What should you specify when you run the recovery command?

Athe WITH NORECOVERY clause for FG1 and the WITH RECOVERY clause for FG2
Bthe WITH RECOVERY clause for FG1 and the WITH RECOVERY clause for FG2
Cthe WITH RECOVERY clause for both FG1 and FG2
Dthe WITH NORECOVERY clause for both FG1 and FG2
Question #30Part 1

You have a database named DB1 that is configured to use the full recovery model. You have a full daily backup job that runs at 02:00. The job backs up data from DB1 to the file B:\DB1.bak. You need to restore the DB1 database to the point in time of May 25, 2016 at 02:23 and ensure that the database is functional and starts to accept connections. Which Transact-SQL statement should you run?

AB.
CD.
Question #31Part 1

You have a database that stores information for a shipping company. You create a table named Customers by running the following Transact-SQL statement. (Line numbers are included for reference only.) You need to ensure that salespeople can view data only for the customers that are assigned to them. Which Transact-SQL segment should you insert at line 07?

ARETURNS varchar(20)WITH Schemabinding
BRETURNS dbo.CustomersORDER BY @salesPerson
CRETURNS tableORDER BY @salesPerson
DRETURNS tableWITH Schemabinding
Question #32Part 1

You manage a Microsoft SQL Server environment. You plan to encrypt data when you create backups. You need to configure the encryption options for backups. What should you configure?

Aa certificate
Ban MD5 hash
Ca DES key
Dan AES 256-bit key
Question #33Part 1

You have a database named DB1 that stores more than 700 gigabyte (GB) of data and serves millions of requests per hour. Queries on DB1 are taking longer than normal to complete. You run the following Transact-SQL statement: SELECT * FROM sys.database_query_store_options You determine that the Query Store is in Read-Only mode. You need to maximize the time that the Query Store is in Read-Write mode. Which Transact-SQL statement should you run?

AALTER DATABASE DB1SET QUERY_STORE (QUERY_CAPTURE_MODE = ALL)
BALTER DATABASE DB1SET QUERY_STORE (MAX_STORAGE_SIZE_MB = 50)
CALTER DATABASE DB1SET QUERY_STORE (CLEANUP_POLICY = (STALE_QUERY_THRESHOLD_DAYS = 14));
DALTER DATABASE DB1SET QUERY_STORE (QUERY_CAPTURE_MODE = NONE)
Question #34Part 1

You have configured Resource Governor with three resource pools. You have assigned the first resource pool a minimum CPU and memory value of 20%. You have assigned the second resource pool a minimum CPU and memory value of 30%. You want to assign maximum CPU and memory values to the third resource pool. What is the maximum CPU and memory value you can assign to this resource pool?

A30%
B50%
C70%
D100%
Question #35Part 1

You administer a single server that contains a Microsoft SQL Server 2016 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 #36Part 1

You administer a Microsoft SQL Server 2016 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?

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',
CExecute the Reconfigure command.
DExecute the following Transact-SQL command: sp_configure 'remote access', 1
ERestart the SQL Server Agent Service.
Question #37Part 1

You administer all the deployments of Microsoft SQL Server 2016 in your company. You need to ensure that an OLTP database that includes up-to-the-minute reporting requirements can be off- loaded from the primary database to another server. You also need to be able to add indexes to the secondary 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
BTwo servers configured in the same data center SQL Server Availability Group configured in Asynchronous-Commit Availability Mode One server configured as an Active Secondary
CTwo 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
DTwo servers configured in different data centers SQL Server Availability Group configured in AsynchronousCommit Availability Mode
ETwo servers configured on the same subnet SQL Server Availability Group configured in Synchronous-Commit Availability Mode
Question #38Part 1

You administer all the deployments of Microsoft SQL Server 2016 in your company. You need to ensure that data changes are sent to a non-SQL Server database server in near real time. You also need to ensure that data on the primary server is unaffected. Which configuration should you use?

ASQL Server that includes an application database configured to perform transactional replication
BTwo servers configured in different data centers SQL Server Availability Group configured in AsynchronousCommit Availability Mode
CTwo servers configured in different data centers SQL Server Availability Group configured in Synchronous-Commit Availability Mode One server configured as an Active Secondary
DSQL Server that includes an application database configured to perform snapshot replication
ETwo servers configured in the same data center SQL Server Availability Group configured in AsynchronousCommit Availability Mode One server configured as an Active Secondary
Question #39Part 1

You administer all the deployments of Microsoft SQL Server 2016 in your company. A database contains a large product catalog that is updated periodically. You need to be able to send the entire product catalog to all branch offices on a monthly basis. Which configuration should you use?

ATwo 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
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 AsynchronousCommit Availability Mode One server configured as an Active Secondary
DTwo servers configured in a Windows Failover Cluster in the same data center SQL Server configured as a clustered instance
ESQL Server that includes an application database configured to perform snapshot replication
Question #40Part 1

You administer all the deployments of Microsoft SQL Server 2016 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 AsynchronousCommit Availability Mode One server configured as an Active Secondary
DTwo servers configured in different data centers SQL Server Availability Group configured in AsynchronousCommit 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 #41Part 1

You administer a Microsoft SQL Server 2016 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 #42Part 1

You administer a Microsoft SQL Server 2016 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: At 14:00 hours, you discover that pages 71, 520, and 713 on one of the database files are corrupted on the reporting database. You need to ensure that the databases are restored. You also need to ensure that data loss is minimal. What should you do?

APerform a partial restore.
BRestore 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.
CRestore the latest full backup.
DRestore the latest full backup, and restore the latest differential backup. Then, restore the latest log backup.
EPerform a page restore.
Question #43Part 1

You administer a Microsoft SQL Server 2016 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: At 16:20 hours, you discover that pages 17, 137, and 205 on one of the database files are corrupted on the transactional database. You need to ensure that the transactional database is restored. You also need to ensure that data loss is minimal. What should you do?

APerform a partial restore.
BRestore 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.
CPerform a point-in-time restore.
DRestore the latest full backup.
ERestore the latest full backup, and restore the latest differential backup. Then, restore the latest log backup.
Question #44Part 1

You administer several Microsoft SQL Server 2016 database servers. Merge replication has been configured for an application that is distributed across offices throughout a wide area network (WAN). Many of the tables involved in replication use the XML and varchar (max) data types. Occasionally, merge replication fails due to timeout errors. You need to reduce the occurrence of these timeout errors. What should you do?

ASet the Merge agent on the problem subscribers to use the slow link agent profile.
BCreate a snapshot publication, and reconfigure the problem subscribers to use the snapshot publication.
CChange the Merge agent on the problem subscribers to run continuously.
DSet the Remote Connection Timeout on the Publisher to 0.
Question #45Part 1

You create an availability group named HaContoso that has replicas named Server01/HA, Server02/HA, and Server03/HA. Currently, Server01l/HA is the primary replica. You need to ensure that the following requirements are met: ✑ Backup operations occur on Server02/HA. ✑ If Server02/HA is unavailable, backup operations occur on Server03/HA. ✑ Backup operations do not occur on Server01/HA. How should you configure HaContoso?

ASet the backup preference of HaContoso to Prefer Secondary. Set the backup priority of Server02/HA to 20. Set the backup priority of Server03/HA to 10.
BSet the backup preference of HaContoso to Secondary only. Set the backup priority of Server02/HA to 20. Set the backup priority of Server03/HA to 10.
CSet the backup preference of HaContoso to Secondary only. Set the backup priority of Server02/HA to 10. Set the backup priority of Server03/HA to 20.
Dset the exclude replica of Server01/HA to true. Set the backup priority of Server02/HA to 10. Set the backup priority of Server03/HA to 20.
Question #46Part 1

You administer a Microsoft SQL Server 2016 instance that has several SQL Server Agent jobs configured. 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 fa... The step failed." You need to ensure that all the details of the job step failures are retained for SQL Server Agent jobs. What should you do?

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 #47Part 1

You administer a Microsoft SQL Server 2016 server that has SQL Server Integration Services (SSIS) installed. You plan to deploy new SSIS packages to the server. The SSIS packages use the Project Deployment Model together with parameters and Integration Services environment variables. You need to configure the SQL Server environment to support these packages. What should you do?

ACreate SSIS configuration files for the packages.
BCreate an Integration Services catalog.
CInstall Data Quality Services.
DInstall Master Data services.
Question #48Part 1

You administer a Microsoft SQL Server 2016 server. When transaction logs grow, SQL Server must send an email message to the database administrators. You need to configure SQL Server to send the email messages. What should you configure?

ASQL Mail
BAn Extended Events session
CAlerts and operators in SQL Server Agent
DPolicies under Policy-Based Management
Question #49Part 1

You administer two instances of Microsoft SQL Server 2016. You deploy an application that uses a database on the named instance. The application is unable to connect to the database on the named instance. You need to ensure that the application can connect to the named instance. What should you do?

AUse the Data Quality Client to configure the application.
BStart the SQL Server Browser Service.
CUse the Master Data Services Configuration Manager to configure the application.
DStart the SQL Server Integration Services Service.
Question #50Part 1

You administer a Microsoft SQL Server 2016 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?

ACreate an Extended Events session by using the sqlserver.error_reported event.
BCreate a SQL Profiler session to capture all ErrorLog and EventLog events.
CFlag all stored procedures for recompilation by using sp_recompile.
DExecute sp_who.
Question #51Part 1

You administer a Microsoft SQL Server 2016 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 2016 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 #52Part 1

You use Microsoft SQL Server 2016 to write code for a transaction that contains several statements. There is high contention between readers and writers on several tables used by your transaction. You need to minimize the use of the tempdb space. You also need to prevent reading queries from blocking writing queries. Which isolation level should you use?

ASERIALIZABLE
BSNAPSHOT
CREAD COMMITTED SNAPSHOT
DREPEATABLE READ
Question #53Part 1

You plan to migrate the db to azure. You verify that all objects are valid for azure sql database. You need to ensure that users and logins are migrated to azure. What should you do?

AUse the Copy Database wizard
BUse the Database Transfer wizard
CUse the SQL Management Studio to deploy the db to azure
DBack up the databasae from the local server and restore it to azure
Question #54Part 1

You administer a Microsoft SQL Server 2016 database instance. You create a new user named User

ASecurityadmin
BRSExecRole
CSQLAgentUserRole
DDatabaseMailUserRole
Question #55Part 1

You are the administrator of a Microsoft SQL Server 2016 server. Some applications consume significant resources. You need to manage the server workload by restricting resource-intensive applications. You need to dynamically limit resource consumption. What should you do?

ASet up Service Broker to ensure that applications are not allowed to consume more than the specified amount of resources.
BConfigure Resource Pools, Workload Groups, and Classifier Function, and then enable the Resource Governor.
CConfigure Extended Events to monitor and restrict resource limits allowed by each application type.
DCreate a new Plan Guide with a Scope Type of sql and define the resource limits for each application.
Question #56Part 1

You administer a Microsoft SQL Server 2016 database that includes a table named dbo.Log. This table contains millions of records about user activity in an application. Records in dbo.Log that are more than 90 days old are purged nightly. When records are purged, table locks are causing contention withinserts. You need to be able to modify dbo.Log without requiring any changes to the applications that utilize dbo.Log. Which type of solution should you use?

AExtended events
BColumnstore index
CPartitioned tables
DRead committed snapshot
Question #57Part 1

You administer a Microsoft SQL Server 2016 database named Orders. Users report that during peak usage periods, certain operations are taking more time than expected. Your initial analysis suggests that blocking is the cause. You need to gather more data to be able to determine which processes are being blocked and to identify the root cause. What should you do?

AStart a trace using SQL Server Profiler to catch the Lock: Deadlock event.
BUse sp_configure to set the blocked process threshold. Start a trace using SQL Server Profiler to catch the Blocked Process Report event.
CSchedule a SQL Agent job to run every 60 seconds and insert the results of executing the sys.dm_os_wait_stats DMV into a table.
DUse System Monitor to catch the Lock Waits/sec event.
Question #58Part 1

You administer a Microsoft SQL Server 2016 database. Users report that a billing application becomes unresponsive during busy times of the day. While investigating, you notice large number of processes taking or waiting for table locks. You suspect that SQL Server is assigning stronger locks to queries. You start a SQL Profiler trace. Which event should you select?

ADeadlock graph
BLock: Escalation
CLock: Timeout
DLock: Deadlock
Question #59Part 1

You install Microsoft SQL Server 2016 on a new server. After setup is complete, you attempt to start the SQL Server service. After being in a starting state for a few moments, the service goes back to a stopped state. You need to determine the cause of the failure. Which file should you use?

A%programfiles%\Microsoft SQL Server\MSSQL11.MSSQLSERVER|MSSQL\Log\Errorlog
B%programfiles%\Microsoft SQL Server\110\setup Bootstrap\Log\Summary.txt
C%programfiles%\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.idf
D%programfiles%\Microsoft SQL
Question #60Part 1

You administer a Windows Azure SQL Database database 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?

AGrant EXECUTE permission on p_AddInventory to all users. Grant VIEW DEFINITION to all users.
BGrant EXECUTE permission on p_AddInventory to all users. Add all users to the db_datawriter role.
CAdd all users to the db_owner role.
DGrant EXECUTE permission on p_Add!nventory to all users. Add all users to the db_datareader role.
Question #61Part 2

You administer a SQL Server 2016 database instance. You need to configure the SQL Server Database Engine service on a failover cluster. Which user account should you use?

AA domain user
BThe BUILTIN\SYSTEM account
CA local user with Run as Service permissions
DThe SQLBrowser account
Question #62Part 2

You administer a Windows Azure SQL Database database named Human_Resources. The database contains 2 tables named Employees and SalaryDetails. You add two Windows groups as logins for the server: ✑ CORP\Employees - All company employees ✑ CORP\HRAdmins - HR administrators only ✑ HR Administrators are also company employees. You need to grant users access according to the following requirements: ✑ CORP\Employees should have SELECT access to the Employees table. ✑ Only users in CORP\HRAdmins should have SELECT access to the SalaryDetails table. Logins are based only on Windows security groups. What should you do?

ACreate a database role called Employees. Add CORP\Employees to the db_datareader role. Add all company employees except HR administrators to the Employees role. Deny SELECT access to the SalaryDetails table to the Employees role.
BCreate a database role called HRAdmins. Add all company employees except HR administrators to the db_datareader role, Add all HR administrators to the HRAdmins role. Grant SELECT access to the SalaryDetails table to the HRAdmins role. Deny SELECT access to the SalaryDetails table to the db_datareader role.
CCreate two database roles: Employees and HRAdmins. Add all company employees to the Employees role. Add HR administrators to the HRAdmins role. Grant SELECT access to all tables except SalaryDetails to the Employees role. Grant SELECT access to the SalaryDetails table to the HRAdmins role. Deny SELECT access to the SalaryDetails table to the Employees role.
DCreate a database role called Employees. Add all HR administrators to the db_datareader role. Add all company employees to the Employees role. Grant SELECT access to all tables except the SalaryDetails table to the Employees role.
Question #63Part 2

You administer a Microsoft SQL Server 2016 database instance. You plan to migrate the database to Windows Azure SQL Database. You verify that all objects contained in the database are compatible with Windows Azure SQL Database. You need to ensure that database users and required server logins are migrated to Windows Azure SQL Database. What should you do?

AUse the Copy Database wizard.
BBack up the database from the local server and restore it to Windows Azure SQL Database.
CUse the Database Transfer wizard.
DUse SQL Server Management Studio to deploy the database to Windows Azure SQL Database.
Question #64Part 2

You administer a Microsoft SQL Server 2016 database. The database is currently configured to log ship to a secondary server. You are preparing to cut over to the secondary server by stopping log-shipping and bringing the secondary database online. You want to perform a tail-log backup. You need to leave the primary database in a restoring state. Which option of the BACKUP LOG command should you use?

ANO_TRUNCATE
BNORECOVERY
CSTANDBY
DFORMAT
Question #65Part 2

You administer a Microsoft SQL Server 2016 database. You want to make a full backup of the database to a file on disk. In doing so, you need to output the progress of the backup. Which backup option should you use?

ASTATS
BCOMPRESSION
CCHECKSUM
DIN IT
Question #66Part 2

You administer two Microsoft SQL Server 2016 servers named ProdSrv1 and ProdSrv2. ProdSrv1 is configured as a Distributor. Both servers are configured to use the Windows NT Service virtual accounts for all SQL Services. You are configuring snapshot replication from ProdSrv1 to ProdSrv2 by using ProdSrv2 as a pull subscriber. The distribution agent on ProdSrv2 regularly fails, displaying the following error message: "Cannot access the file. Operating system error code 5 (Access is denied.)." You need to configure the distribution agent by granting only the minimum required access to all accounts. What should you do?

AConfigure the Subscriber to use the Local System account.
BConfigure the SQL Server Agent service to run under the Local System account. Configure the Subscriber to use the SQL Server Agent service account.
CConfigure the SQL Server Agent service to run under a Windows domain account. Configure the Subscriber to use the SQL Server Agent service account. Grant FULL CONTROL access for the domain account to the ReplData share on ProdSrv1.
DConfigure the Subscriber to use a Windows domain account. Grant READ access for the domain account to the ReplData share on ProdSrv1.
Question #67Part 2

You are a database administrator for a Microsoft SQL Server 2016 environment. You want to deploy a new application that will scale out the workload to at least five different SQL Server instances. You need to ensure that for each copy of the database, users are able to read and write data that will then be synchronized between all of the database instances. Which feature should you use?

ADatabase Mirroring
BPeer-to-Peer Replication
CLog Shipping
DAvailability Groups
Question #68Part 2

You administer a Microsoft SQL Server 2016 database that includes a table named Application.Events. Application.Events contains millions of records about user activity in an application. Records in Application.Events that are more than 90 days old are purged nightly. When records are purged, table locks are causing contention with inserts. You need to be able to modify Application.Events without requiring any changes to the applications that utilize Application.Events. Which type of solution should you use?

APartitioned tables
BOnline index rebuild
CChange data capture
DChange tracking
Question #69Part 2

You administer a Microsoft SQL Server 2016 environment. One of the SQL Server 2016 instances contains a database named Sales. You plan to migrate Sales to Windows Azure SQL Database. To do so, you need to implement a contained database. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

ASet database containment to AZURE.
BEnable server property contained database authentication.
CDisable server property cross db ownership chaining.
DSet database containment to PARTIAL.
EDisable server property contained database authentication.
Question #70Part 2

You administer a Microsoft SQL Server 2016 database named Contoso on a server named Server01. You need to collect data for a long period of time to troubleshoot wait statistics when querying Contoso. You also need to ensure minimum impact to the server. What should you create?

AAn Alert
BA Resource Pool
CAn Extended Event session
DA Server Audit Specification
EA SQL Profiler Trace
Question #71Part 2

You plan to install Microsoft SQL Server 2016 for a web hosting company. The company plans to host multiple web sites, each supported by a SQL Server database. You need to select an edition of SQL Server that features backup compression of databases, basic data integration features, and low total cost of ownership. Which edition should you choose?

AExpress Edition with Tools
BStandard Edition
CWeb Edition
DExpress Edition with Advanced Services
Question #72Part 2

You plan to install a Microsoft SQL Server 2016 instance. The instance will support a database that has the following requirements: ✑ Store Excel workbooks on the file system. ✑ Access the workbooks through Transact-SQL. ✑ Include the workbooks in database backups. ✑ During installation, you need to ensure that the requirements will be met. Which feature should you use?

AExcel Services
BFILESTREAM
CSQL Server Integration Services (SSIS)
DOpenXML
Question #73Part 2

You administer a Microsoft SQL Server 2016 database. You have a SQL Server Agent job instance that runs using the service account. You have a job step within the job that requires elevated privileges. You need to ensure that the job step can run using a different user account. What should you use?

Aa schedule
Ban alert
Can operator
Da proxy
Question #74Part 2

You install a Microsoft SQL Server 2016 instance. The instance will store data extracted from two databases running on Windows Azure SQL Database. You hire a data steward to perform interactive data cleansing and ad hoc querying and updating of the database. You need to ensure that the data steward is given the correct client tools to perform these tasks. Which set of tools should you install?

ASQL Server Management Studio and Distributed Replay Client
BMaster Data Services and Data Quality Client
CData Quality Client and Distributed Replay Client
DData Quality Client and SQL Server Management Studio
Question #75Part 2

You administer a Microsoft SQL Server 2016 instance. You discover that the SQL Agent Error Log file is rapidly growing in size. You need to ensure that the SQL Agent Error Log file does not grow rapidly when SQL Server agent jobs execute. What should you do?

AExecute the sp_cycle_agent_errorlog stored procedure.
BConfigure event forwarding.
CEnable the Auto Shrink option on the master database.
DEnable the Auto Shrink option on the msdb database.
EDisable the Include execution trace messages feature.
Question #76Part 2

You are a database administrator for a Microsoft SQL Server 2016 instance. You need to ensure that data can be replicated from a production server to two reporting servers in real time. You also need to ensure that data on the reporting server is always accessible. Which solution should you use?

AAvailability Groups
BExtended Events
CSnapshot Replication
DPolicy Based Management
Question #77Part 2

You administer a Microsoft SQL Server 2016 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.
Question #78Part 2

You administer a Microsoft SQL Server 2016 failover cluster. You need to ensure that a failover occurs when the server diagnostics returns query_processing error. Which server configuration property should you set?

ASqlOumperDumpFlags
BFailureConditionLevel
CHealthCheckTimeout
DSqlDumperDumpPath
Question #79Part 2

You want to simulate read, write, checkpoint, backup, sort, and read-ahead activities for your organization's SQL Server 2016 deployment. Which of the following tools would you use to accomplish this goal?

ASQLIO
BSQLIOSim
CSQLIOStress
Dchkdsk
Question #80Part 2

You are planning on deploying a server that will be dedicated for ETL (Extraction, Transformation, and Loading) processes. You want to ensure that SSIS (SQL Server Integration Services) packages will run on this dedicated ETL server and not on any other server on which they were started. Which of the following features must you install on the ETL server in addition to SSIS to accomplish this goal?

ADatabase Engine
BSQL Server Reporting Services
CSQL Server Analysis Services
DClient Tools SDK
Question #81Part 2

You want to reproduce the same SQL Server 2016 installation configuration across five servers. Which of the following files will you generate by using SQL Server Setup to accomplish this goal?

AConfiguration.xml
BSetup.ini
CSetup.xml
DConfigurationFile.ini
Question #82Part 2

Which feature should you enable and configure so session requests addressed to a specific instance can be allocated different processor resources based on session request properties?

AResource Governor
BWindows System Resource Manager
CProcessor affinity
DI/O affinity
Question #83Part 2

You are implementing a SQL Server 2016 five-node failover cluster. You need to choose a quorum configuration. Which configuration should you use?

ADistributed File System (DFS)
BNode Majority
CCluster Shared Volume (CSV)
DNode and Disk Majority
Question #84Part 2

You administer a Microsoft SQL Server 2016 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?

AEXEC sp_addrolemember'db_procexecutor', 'BillingUsers'
BCREATE ROLE proc_caller GRANT EXECUTE ON ALL PROCEDURES TO proc_caller ALTER MEMBER BillingUsers ADD TO ROLE proc_caller
CGRANT EXECUTE ON Schema::dbo TO BillingUsers
DGRANT EXECUTE ON Contoso::dbo TOBillingUsers
Question #85Part 2

You are the lead database administrator (DBA) of a Microsoft SQL Server 2016 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 SQL statement or statements should you use? Choose all that apply.

ACREATE SERVER ROLE [SpecialDBARole] AUTHORIZATION setupadmin;
BALTER SERVER ROLE [SpecialDBARole] ADD MEMBER [DOMAIN\JrDBAs];
CCREATE SERVER ROLE [SpecialDBARole] AUTHORIZATION securityadmin;
DGRANT VIEW DEFINITION TO [SpecialDBARole];
ECREATE SERVER ROLE [SpecialDBARole] AUTHORIZATION serveradmin;
Question #86Part 2

You administer a Microsoft SQL Server 2016 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. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

ACreate a SQL Server login that has VIEW SERVER STATE permissions. Create an application role and a secured password for the role.
BModify the stored procedure to include the EXECUTE AS OWNER statement. Grant VIEW SERVER STATE permissions to the owner of the stored procedure.
CCreate a SQL Server login that has VIEW SERVER STATE permissions. Modify the stored procedure to include the EXECUTE AS {newlogin} statement.
DGrant the db_owner role on the database to User1.
EGrant the sysadmin role on the database to User1.
Question #87Part 2

You are migrating a database named Orders to a new server that runs Microsoft SQL Server 2016. 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];
Question #88Part 2

You administer a Microsoft SQL Server 2016 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?

Ause SQL Profiler to trace all queries that are processing on the server. Filter queries that have a Duration value of more than 1,000.
BUse sp_configure to set a value for blocked process threshold. Create an extended event session.
CUse the Job Activity monitor to review all processes that are actively running. Review the Job History to find out the duration of each step.
DRun the sp_who command from a query window.
ERun the DBCC TRACEON 1222 command from a query window and review the SQL Server event log.
Question #89Part 2

You administer a Microsoft SQL Server 2016 database. You need to ensure that the size of the transaction log file does not exceed 2 GB. What should you do?

AExecute sp_configure 'max log size', 2G.
Buse the ALTER DATABASE...SET LOGFILE command along with the maxsize parameter.
CIn SQL Server Management Studio, right-click the instance and select Database Settings. Set the maximum size of the file for the transaction log.
Din SQL Server Management Studio, right-click the database, select Properties, and then click Files. Open the Transaction log Autogrowth window and set the
Question #90Part 2

You administer a Microsoft SQL Server 2016 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?

AConvert all indexes to Column Store indexes.
BImplement Unicode Compression.
CImplement row-level compression.
DImplement page-level compression.
Question #91Part 2

You administer a Microsoft SQL Server 2016 instance. After a routine shutdown, the drive that contains tempdb fails. You need to be able to start the SQL Server. What should you do?

AModify tempdb location in startup parameters.
BStart SQL Server in minimal configuration mode.
CStart SQL Server in single-user mode.
DConfigure SQL Server to bypass Windows application logging.
Question #92Part 2

You administer a Microsoft SQL Server 2016 Enterprise Edition server that uses 64 cores. You discover performance issues when large amounts of data are written to tables under heavy system load. You need to limit the number of cores that handle I/O. What should you configure?

AProcessor affinity
BLightweight pooling
CMax worker threads
DI/O affinity
Question #93Part 2

You administer a Microsoft SQL Server 2016 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 all that apply.

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 #94Part 2

You administer a Microsoft SQL Server 2016 database that contains a table named OrderDetail. You discover that the NCI_OrderDetail_CustomerID non- clustered index is fragmented. You need to reduce fragmentation. You need to achieve this goal without taking the index offline. Which Transact-SQL batch should you use?

ACREATE INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID WITH DROP EXISTING
BALTER INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID REORGANIZE
CALTER INDEX ALL ON OrderDetail REBUILD
DALTER INDEX NCI_OrderDetail_CustomerID ON
Question #95Part 2

You administer a Microsoft SQL Server database named Sales. The database is 3 terabytes in size. The Sales database is configured as shown in the following table. You discover that all files except Sales_2.ndf are corrupt. You need to recover the corrupted data in the minimum amount of time. What should you do?

APerform a restore from a full backup.
BPerform a transaction log restore.
CPerform a file restore.
DPerform a filegroup restore.
Question #96Part 2

You administer a Microsoft SQL Server 2016 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 #97Part 2

You administer a Microsoft SQL Server 2016 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?

Aan Extended Event session
Ba Policy
Ca Database Audit Specification
Dan Alert
Ea Server Audit Specification
Question #98Part 2

You are designing a monitoring application for a new SQL Server 2014 instance. You need to recommend a solution to generate a report that displays the 10 most frequent wait types that occur for the instance. What should you include in the recommendation? More than one answer choice may achieve the goal. Select the BEST answer.

AThe SQL Server error log
BThe sys.dm_os_wait_stats dynamic management view
CThe DBCC SQLPERF(WAITSTATS) command
DSQL Server Profiler
Question #99Part 2

You deploy a database by using SQL Server 2012. The database contains a table named Table1. You need to recommend a solution that meets the following requirements: ✑ Stores the most recent data from Table1 by using the fastest storage solution possible. Stores the historical data from Table1 by using a slower storage solution. What should you recommend?

Apartitioned views
Ba database snapshot
Cchange data capture
Dtable partitioning
Question #100Part 2

You are creating a database that will store usernames and passwords for an application. You need to recommend a solution to store the passwords in the database. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer.

AOne-way encryption
BTransparent Data Encryption (TDE)
CEncrypting File System (EFS)
DReversible encryption

📢 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!