100% found this document useful (1 vote)
323 views6 pages

Final MSSQL

Playbooks syntax can be checked using --syntax-check, --syntax-validate, or --dry-run. Containers internally are Linux based. To address a failed tempdb drive, start SQL Server in minimal configuration mode. Ansible works in a push-based way from management nodes to managed nodes.

Uploaded by

8020 Sakshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
323 views6 pages

Final MSSQL

Playbooks syntax can be checked using --syntax-check, --syntax-validate, or --dry-run. Containers internally are Linux based. To address a failed tempdb drive, start SQL Server in minimal configuration mode. Ansible works in a push-based way from management nodes to managed nodes.

Uploaded by

8020 Sakshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

1. Playbooks syntax can check by ____________.

a. --check
b. --syntax-validate
c. --syntax-check
d. --dry-run

2. Containers internally are __________ based.


a. Cant say
b. Linux
c. Windows
d. Docker’s playing unit

3. 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?
a. Modify tempdb location in startup parameters
b. Start SQL Server in minimal configuration mode
c. Start SQL Server in single-user mode
d. Configure SQL Server to bypass windows application logging

4. Containers are useful for whom?


a. Developers
b. Devops
c. Middleware Admins
d. All of them
e. For Developers and Middleware Admins

5. Windows can work inside Containers or not?


a. Yes
b. No

6. Which Infra is good for middleware hosting App in respect of Cost?


a. Bare Metal
b. Cloud Vms
c. Virtual OS
d. Containers

7. Which of the following module is there to install-uninstall package?


a. Yum
b. Apt
c. Install
d. Command
e. A and B

8. How to limit playbook to run on only one system?


a. --limit
b. --<ip or hostname>
c. Both A and B
d. None of the above

9. Which of the following is not network configuration protocol or method?


a. NETCONF
b. YANG
c. RESTCONF
d. CLI Access

10. What is wrong with following Ad-Hoc command?


# ansible all -m command “hostname”
a. All should not be there
b. -a is missing
c. All correct
d. A and B both

11. Which directory get created if we run “# git init” at any location?
a. git
b. git/config
c. config/git
d. gitconfig

12. Can we pass variables in playbook?


a. Yes
b. No

13. In Devops CI/CD what is Continuous Delivery?


a. SourceCode – Build – Test – Deploy without any human interaction
b. SourceCode – Build – Test – Deploy with human interaction of
c. SourceCode – Build – Test – ready to Deploy on a single click
d. None of above

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

15. Default inventory is the only way to provide list of hosts?


a. True
b. False

16. What is the limitation of Ansible?


a. Bare Metal installation Automation
b. Cross platform Automation
c. Cloud machines Automation
d. None of the above

17. Docker is only Opensource tool or is it Opensource along with Enterprise?


a. Docker is only for opensource release
b. Docker is Opensource also one Enterprise support is there
c. Choose most correct on from above

18. What is way to mention sudo privilege in Ansible?


a. -u root
b. -u <sudo user>
c. --sudo
d. --become

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

20. 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?
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

23. Ansible works in __________ way. -- Ansible modules/ Management Nodes

24. How to list Modules in Ansible? (ansible-doc)

25. 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?
a. STATS
b. COMPRESSION
c. CHECKSUM
d. IN IT

26. You administer a Microsoft SQL Server 2016 instance.

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

27. You are troubleshooting an application that runs a query.

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.

a. Query the sys.dm_exec_requests dynamic management view


b. Create a trace in SQL Server Profile that contains the Deadlock
c. Query the sys.dm_exec_sessions dynamic management view
d. Enable trace flag 1222, and then view the SQL Server error log
28. You administer a Microsoft SQL Server 2016 database.

You provide temporary securityadmin access to User1 to the database server. You need to
know if User1 adds logins to securityadmin.

Which server-level audit action group should you use?


a. SERVER_STATE_CHANGE_GROUP
b. SERVER_PRINCIPAL_IMPERSONATION_GROUP
c. SUCCESSFUL_LOGIN_GROUP
d. SERVER_ROLE_MEMBER_CHANGE_GROUP

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

30. You have an SQL Server 2016 server named SQL 1.


You are designing a performance monitoring solution.
You need to monitor the following events on SQL 1:
A deadlock graph
Missing column statistics
CPU performance statistics
A batch of completed Transact-SQL statements

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

What should you use?


a. Activity Monitor
b. Sp_who3
c. SQL Server Management Studio (SSMS) Object Expert
d. SQL Server Data Collector
e. SQL Server Data Tools (SSDT)
f. SQL Server Configuration Manager

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.

What should you do?

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

You might also like