Download Administering a SQL Database Infrastructure.70-764.PracticeTest.2019-03-23.241q.vcex

Vendor: Microsoft
Exam Code: 70-764
Exam Name: Administering a SQL Database Infrastructure
Date: Mar 23, 2019
File Size: 4 MB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 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?
  1. sp_updatestats
  2. sp_lock
  3. sys.dm_os_waiting_tasks
  4. sys.dm_tran_active_snapshot_database_transactions
  5. Activity Monitor
Correct answer: B
Explanation:
The sp_lock system stored procedure is packaged with SQL Server and will give you insight into the locks that are happening on your system. This procedure returns much of its information from the syslock info in the master database, which is a system table that contains information on all granted, converting, and waiting lock requests. Note: sp_lock will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. To obtain information about locks in the SQL Server Database Engine, use the sys.dm_tran_locks dynamic management view.sys.dm_tran_locks returns information about currently active lock manager resources in SQL Server 2008and later. Each row represents a currently active request to the lock manager for a lock that has been granted or is waiting to be granted. References: https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-lock-transact-sql
The sp_lock system stored procedure is packaged with SQL Server and will give you insight into the locks that are happening on your system. This procedure returns much of its information from the syslock info in the master database, which is a system table that contains information on all granted, converting, and waiting lock requests. 
Note: sp_lock will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. To obtain information about locks in the SQL Server Database Engine, use the sys.dm_tran_locks dynamic management view.
sys.dm_tran_locks returns information about currently active lock manager resources in SQL Server 2008and later. Each row represents a currently active request to the lock manager for a lock that has been granted or is waiting to be granted. 
References: https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-lock-transact-sql
Question 2
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 create a backup plan for Instance4. 
Which backup plan should you create?
  1. Weekly full backups, nightly differential. No transaction log backups are necessary.
  2. Weekly full backups, nightly differential backups, transaction log backups every 5 minutes.
  3. Weekly full backups, nightly differential backups, transaction log backups every 12 hours.
  4. Weekly full backups, nightly differential backups, nightly transaction log backups.
Correct answer: B
Explanation:
From scenario: Instance4 and Instance5 are not part of AG1. Instance4 is engaged in heavy read-write I/O. The recovery point objective of Instancse4 is 60 minutes. RecoveryPoint Objectives are commonly described as the amount of data that was lost during the outage and recovery period.References: http://sqlmag.com/blog/sql-server-recovery-time-objectives-and-recovery-point-objectives
From scenario: Instance4 and Instance5 are not part of AG1. Instance4 is engaged in heavy read-write I/O. The recovery point objective of Instancse4 is 60 minutes. RecoveryPoint Objectives are commonly described as the amount of data that was lost during the outage and recovery period.
References: http://sqlmag.com/blog/sql-server-recovery-time-objectives-and-recovery-point-objectives
Question 3
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?
  1. Modify the backup script to use the keyword SKIP in the FILE_SNAPSHOT statement.
  2. Modify the backup script to use the keyword SKIP in the WITH statement
  3. Modify the backup script to use the keyword NO_COMPRESSION in the WITH statement.
  4. Modify the full database backups script to stripe the backup across multiple backup files.
Correct answer: D
Explanation:
One of the filegroup is read_only should be as it only need to be backup up once. Partial backups are useful whenever you want to exclude read-only filegroups. A partial backup resembles a full database backup, but a partial backup does not contain all the filegroups. Instead, for a read-write database, a partial backup contains the data in the primary filegroup, every read-write filegroup, and, optionally, one or more read-only files. A partial backup of a read-only database contains only the primary filegroup. From scenario: Instance1 experiences heavy read-write traffic. The instance hosts a database named OperationsMainthat 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.References: https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/partial-backups-sql-server
One of the filegroup is read_only should be as it only need to be backup up once. Partial backups are useful whenever you want to exclude read-only filegroups. A partial backup resembles a full database backup, but a partial backup does not contain all the filegroups. Instead, for a read-write database, a partial backup contains the data in the primary filegroup, every read-write filegroup, and, optionally, one or more read-only files. A partial backup of a read-only database contains only the primary filegroup. 
From scenario: Instance1 experiences heavy read-write traffic. The instance hosts a database named OperationsMainthat 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.
References: https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/partial-backups-sql-server
Question 4
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?
  1. the WITH NORECOVERY clause for FG1 and the WITH RECOVERY clause for FG2
  2. the WITH RECOVERY clause for FG1 and the WITH RECOVERY clause for FG2
  3. the WITH RECOVERY clause for both FG1 and FG2
  4. the WITH NORECOVERY clause for both FG1 and FG2
Correct answer: A
Question 5
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?
  1.   
  2.   
  3.   
  4.   
Correct answer: B
Question 6
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?
  1. RETURNS varchar(20)WITH Schemabinding
  2. RETURNS dbo.CustomersORDER BY @salesPerson
  3. RETURNS tableORDER BY @salesPerson
  4. RETURNS tableWITH Schemabinding
Correct answer: D
Explanation:
The return value can either be a scalar (single) value or a table. SELECT 1 just selects a 1 for every row, of course. What it's used for in this case is testing whether any rows exist that match the criteria: if a row exists that matches the WHERE clause, then it returns 1, otherwise it returns nothing.Specify the WITH SCHEMABINDING clause when you are creating the function. This ensures that the objects referenced in the function definition cannot be modified unless the function is also modified. References: https://docs.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql
The return value can either be a scalar (single) value or a table. 
SELECT 1 just selects a 1 for every row, of course. What it's used for in this case is testing whether any rows exist that match the criteria: if a row exists that matches the WHERE clause, then it returns 1, otherwise it returns nothing.
Specify the WITH SCHEMABINDING clause when you are creating the function. This ensures that the objects referenced in the function definition cannot be modified unless the function is also modified. 
References: https://docs.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql
Question 7
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?
  1. a certificate
  2. an MD5 hash
  3. a DES key
  4. an AES 256-bit key
Correct answer: D
Explanation:
To encrypt during backup, you must specify an encryption algorithm, and an encryptor to secure the encryption key. The following are the supported encryption options:Encryption Algorithm: The supported encryption algorithms are: AES 128, AES 192, AES 256, and Triple DES Encryptor: A certificate or asymmetric KeyReferences: https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/backup-encryption
To encrypt during backup, you must specify an encryption algorithm, and an encryptor to secure the encryption key. The following are the supported encryption options:
Encryption Algorithm: The supported encryption algorithms are: AES 128, AES 192, AES 256, and Triple DES 
Encryptor: A certificate or asymmetric Key
References: https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/backup-encryption
Question 8
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?
  1. ALTER DATABASE DB1SET QUERY_STORE (QUERY_CAPTURE_MODE = ALL)
  2. ALTER DATABASE DB1SET QUERY_STORE (MAX_STORAGE_SIZE_MB = 50)
  3. ALTER DATABASE DB1SET QUERY_STORE (CLEANUP_POLICY = (STALE_QUERY_THRESHOLD_DAYS = 14));
  4. ALTER DATABASE DB1SET QUERY_STORE (QUERY_CAPTURE_MODE = NONE)
Correct answer: C
Explanation:
Stale Query Threshold (Days): Time-based cleanup policy that controls the retention period of persisted runtime statistics and inactive queries.By default, Query Store is configured to keep the data for 30 days which may be unnecessarily long for your scenario. Avoid keeping historical data that you do not plan to use. This will reduce changes to read-only status. The size of Query Store data as well as the time to detect and mitigate the issue will be more predictable. Use Management Studio or the following script to configure time-based cleanup policy:ALTER DATABASE [QueryStoreDB] SET QUERY_STORE (CLEANUP_POLICY = (STALE_QUERY_THRESHOLD_DAYS = 14)); References: https://docs.microsoft.com/en-us/sql/relational-databases/performance/best-practice-with-the-query-store
Stale Query Threshold (Days): Time-based cleanup policy that controls the retention period of persisted runtime statistics and inactive queries.
By default, Query Store is configured to keep the data for 30 days which may be unnecessarily long for your scenario. 
Avoid keeping historical data that you do not plan to use. This will reduce changes to read-only status. The size of Query Store data as well as the time to detect and mitigate the issue will be more predictable. Use Management Studio or the following script to configure time-based cleanup policy:
ALTER DATABASE [QueryStoreDB] 
SET QUERY_STORE (CLEANUP_POLICY = (STALE_QUERY_THRESHOLD_DAYS = 14)); 
References: https://docs.microsoft.com/en-us/sql/relational-databases/performance/best-practice-with-the-query-store
Question 9
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?
  1. 30%
  2. 50%
  3. 70%
  4. 100%
Correct answer: B
Explanation:
The maximum resource value assigned to the third pool is 100%; the sum of the minimum resource values assigned to the other pools is 50%.
The maximum resource value assigned to the third pool is 100%; the sum of the minimum resource values assigned to the other pools is 50%.
Question 10
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?
  1. Use the SQL Server default instance and enable Contained Databases.
  2. Use the SQL Server default instance and configure a user-defined server role. Add the login for the ticketing application to this role.
  3. Install a new named SQL Server instance on the server.
  4. Install a new default SQL Server instance on the server.
Correct answer: C
Explanation:
SQL Server supports multiple instances of SQL Server on a single server or processor, but only one instance can be the default instance. All others must be named instances. A computer can run multiple instances of SQL Server concurrently, and each instance runs independently of other instances. References: https://msdn.microsoft.com/en-us/library/ms143531(v=SQL.105).aspx
SQL Server supports multiple instances of SQL Server on a single server or processor, but only one instance can be the default instance. All others must be named instances. A computer can run multiple instances of SQL Server concurrently, and each instance runs independently of other instances. 
References: https://msdn.microsoft.com/en-us/library/ms143531(v=SQL.105).aspx
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

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

Get Now!