Final MSSQL
Final MSSQL
a. --check
b. --syntax-validate
c. --syntax-check
d. --dry-run
11. Which directory get created if we run “# git init” at any location?
a. git
b. git/config
c. config/git
d. gitconfig
14. How to reset updated files data to any older commit in git?
a. git reset – soft
<olderCommitID>
b. git checkout
<olderCommitID>
c. git fetch <old commitID>
d. None of the above
19. You need to address the requirements for disc usage monitoring for the SQL Servers. What
should you do? https://www.mssqltips.com/sqlservertip/2929/monitoring-sql-server-disk-space/
a. You should configure disc quotas
b. You should configure a Dynamic Management View
c. You should configure alerts sent by the SQL Server Agent maybe
d. You should configure a SQL Server Maintenance Plan
You need to ensure that the size of the transaction log file does not exceed 2 GB. What
should you do?
a. Execute sp_configure ‘max log size’ 2G
b. use the ALTER DATABASE SET LOGFILE command along with the maxsize parameter
c. In SQL Server Management Studio, right-click the instance and select Database setting.
Set the maximum size of the for the transaction log
d. In SQL Server Management Studio, right-click the database, select properties and then
click Files. Open the Transaction log Autogrowth windows and set the
e. maximum size of the file
21. You administer a Microsoft SQL Server 2016 database named Contoso on a server named
Server01. You need to be notified immediately when fatal errors occur on Server01.
What should you create?
a. an Alert
b. a Server Audit Specification
c. an Extended Event session
d. a Resource Pool
e. a Policy
f. a SQL Profiler Trace
22. You administer a Microsoft SQL Server 2016 database instance.
You create a new user named UserA. You need to ensure that UserA is able to create SQL
Server Agent jobs and to execute SQL Server Agent jobs.
To which role should you add UserA?
a. Securityadmin
b. RSExecRole
c. SQLAgentUserRole
d. Database UserRole
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?
a. STATS
b. COMPRESSION
c. CHECKSUM
d. IN IT
You need to configure a new database to support FILETABLES. What should you do? Choose
all that apply.
a. Disable FILESTREAM on the Database
b. Enable FILESTREAM on the Server Instance
c. Configure the Database for Partial Containment
d. Create a non-empty FILESTREAM file group
e. Enable Contained Databases on the Server Instance
f. Set the FILESTREAM directory name on the database
The application frequently causes deadlocks. You need to identify the isolation level used by
the query when a deadlock occurs.
What should you do? More than one answer choice may achieve the goal. Select the BEST
answer.
You provide temporary securityadmin access to User1 to the database server. You need to
know if User1 adds logins to securityadmin.
29. 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?
a. DDLAdmin
b. db_datawriter
c. dbcreator
d. dbo
e. View Database Stats
f. View Definition
Which two tools should you use? Each correct answer presents a complete solution.
a. dynamic management views
b. Database Engine Tuning Advisor
c. SQL Server Profiler
d. Activity Monitor
e. Data Profile Viewer
31. 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
32. 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?
a. A DROP USER[User1]; CREATE USER [Corpnet\User1]; FOR LOGIN [Corpnet\User1];
ALTER ROLE [db_owner] ADD MEMBER [Corpnet\User1]
b. ALTER SERVER RCLS [sysadmin] ADD MEMBER [Corpnet\User1]
c. ALTER USER [Corpnet\User1] WITH LOGIN [Corpnet\User1]
d. ALTER ROLE [db owner] ADD MEMBER [Corpnet\User1]
33. 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.
a. Use the SQL Server default instance and configure an affinity mask
b. Use the SQL Server default instance and configure login for the ticketing application to
this role.
c. Install a new named SQL Server instance on the server
d. Install a new default SQL Server instance on the server