In this article, we will discuss a number of questions that you may be asked when applying to a junior SQL Server database administrator (DBA) position.

在本文中,我们将讨论在申请初级SQL Server数据库管理员(DBA)职位时可能会遇到的许多问题。

  • Note: To learn more about Performance tuning as a DBA skill, please read this article: Why SQL Performance Tuning is the Most Important Database Management Skill to Have

    注意 :要了解有关作为DBA技能进行性能调优的更多信息,请阅读本文: 为什么SQL性能调优是最重要的数据库管理技能

Q1: Working as a SQL Server database administrator, A SQL Server developer asked you to allow him to view the code definition of the stored procedures in one database. Which permission should you grant him?

问题1:作为SQL Server数据库管理员,一名SQL Server开发人员要求您允许他查看一个数据库中存储过程的代码定义。 您应该授予他哪种许可?

View definition.

查看定义。

Q2: During your absence, you ask one of your colleagues to terminate a specific session if it takes more than one hour. To which Fixed Server-Level role should you add his account to perform that task?

问题2:在您缺席期间,如果您的会议花费了一个多小时,您会要求一位同事终止特定的会议。 您应该将他的帐户添加到哪个固定服务器级别角色来执行该任务?

Processadmin

流程管理员

Q3: A SQL development engineer claims that each time he tries to run a BULK INSERT statement, the query failed with permission related error. To which Fixed Server-Level role should you add that engineer to allow him to execute the BULK INSERT statement?

问题3:SQL开发工程师声称,每次尝试运行BULK INSERT语句时,查询都会失败,并显示与权限相关的错误。 您应该为该工程师添加哪个固定服务器级别角色,以允许他执行BULK INSERT语句?

Bulkadmin

批量管理员

Q4: While trying to assign tasks to the new database administration team engineers, you ask one of the engineers to run a DBCC CHECKDB command to check the consistency of a user database. What server scoped permissions should you grants to that engineer in order to perform that task?

Q4:在尝试向新的数据库管理团队工程师分配任务时,您要求其中一位工程师运行DBCC CHECKDB命令来检查用户数据库的一致性。 您应授予该工程师什么服务器范围权限才能执行该任务?

Alter Server State

更改服务器状态

Q5: A request received from the development team to grant permission for a specific service account that will create a new database in the SQL Server instance at the first application launch. Which permission should be granted to the service account to achieve that?

Q5:从开发团队收到的授予特定服务帐户权限的请求,该请求将在首次启动应用程序时在SQL Server实例中创建一个新数据库。 应该为服务帐户授予哪个权限以实现此目的?

DBCreator

DBCreator

Q6: As a SQL Server database administrator, you are planning to perform the multiple tasks with the minimum effort performed by your team. These tasks involve scheduling a backup plan for all user databases, checking the databases consistency once a week, and maintaining the indexes during the weekend. How could you achieve that?

Q6:作为一名SQL Server数据库管理员,您计划以最少的工作量执行多项任务。 这些任务涉及为所有用户数据库安排备份计划,每周检查一次数据库一致性以及在周末维护索引。 你怎么能做到?

Creating Maintenance plans.

创建维护计划。

Q7: After creating a list of linked servers, you need to leave and ask one of your colleagues to test and reconfigure these linked servers in case there is anything incorrect. Which permission should you grant the engineer to perform that task?

问题7:在创建链接服务器列表之后,您需要离开并请一位同事测试并重新配置这些链接服务器,以防万一有任何不正确的地方。 您应授予工程师执行该任务的权限?

setupadmin

setupadmin

Q8: You are managing the permission of the new database administration team. To which fixed server role should you add the SQL Server database administrators in order to be able to perform any action on the server?

Q8:您正在管理新的数据库管理团队的许可。 您应该向哪个固定服务器角色添加SQL Server数据库管理员,以便能够在服务器上执行任何操作?

sysadmin

系统管理员

Q9: You asked one of your colleagues from the database administration team to execute a script that checks the blocking chain by querying a number of dynamic management objects. Which server scoped permissions should you grant that engineer to be able to execute this script?

Q9:您要求数据库管理团队的一位同事执行脚本,该脚本通过查询许多动态管理对象来检查阻塞链。 您应授予该工程师哪个服务器范围的权限,使其能够执行此脚本?

View Server State

查看服务器状态

Q10: Working as a SQL Server database administrator, you are planning to track and audit all logon operations at your SQL Server. Which type of triggers can you take advantage of to achieve that?

Q10:作为SQL Server数据库管理员,您计划跟踪和审核SQL Server上的所有登录操作。 您可以利用哪种触发器来实现这一目标?

LOGON trigger

登录触发

  • Note: To learn more about trends that impact Database Administration, please read this article: 5 DBMS Trends Impacting Database Administration

    注意 :要了解有关影响数据库管理的趋势的更多信息,请阅读本文: 5影响数据库管理的DBMS趋势

Q11: Which tool can you use to check the performance-related information about CPU times, logins and Disk I/O on your SQL Server instance?

Q11:您可以使用哪个工具来检查与SQL Server实例上的CPU时间,登录名和磁盘I / O有关的性能相关信息?

Activity Monitor from the SQL Server Management Studio.

SQL Server Management Studio中的活动监视器。

Q12: As a SQL Server database administrator you are responsible for securing your SQL Server environment. Part of this task, you need to choose the security protocol that will be used to manage the security policies such as strong passwords, account locking, and password expiration. Which authentication protocol will you use?

问题12:作为SQL Server数据库管理员,您负责保护SQL Server环境。 此任务的一部分,您需要选择将用于管理安全策略的安全协议,例如强密码,帐户锁定和密码到期。 您将使用哪种身份验证协议?

Kerberos Authentication protocol.

Kerberos身份验证协议。

Q13: The managed codes are .NET codes that are used to write any complex procedure or function that cannot be performed using the T-SQL language. After building that code, which permission should be granted to that assembly in order to allow the code to access local and network resources, registry and environment variables?

Q13:托管代码是.NET代码,用于编写无法使用T-SQL语言执行的任何复杂过程或函数。 构建该代码后,应授予该程序集哪个权限,以允许该代码访问本地和网络资源,注册表和环境变量?

External_Access

外部访问

Q14: During the backup job configuration, it is recommended to ensure that the backup file is valid and will be successfully restored without any errors. Which backup option should be used to achieve that?

Q14:在备份作业配置过程中,建议确保备份文件有效并且可以成功还原而没有任何错误。 应该使用哪个备份选项来实现?

WITH CHECKSUM

与CHECKSUM

Q15: Working as SQL Server database administrator, you are planning to recover a user database to the Tuesday 7:15 AM point in time, before the database becomes corrupted.

Q15:作为SQL Server数据库管理员,您计划将用户数据库恢复到星期二上午7:15的时间点,即数据库损坏之前。

The full backup is taken every Friday.

完整备份在每个星期五进行。

The Differential backup is taken every day at 12 AM.

差异备份每天凌晨12点进行。

The Transaction Log backup is taken every one hour. And the last log backup file has taken at 7 AM on Tuesday.

每隔一小时进行一次事务日志备份。 最后一个日志备份文件是在星期二的上午7点。

How could you restore that database?

您如何还原该数据库?

  1. Take a tail-log backup to cover the changes on Tuesday between 7 AM and 7:15 AM进行尾日志备份以涵盖星期二上午7点至7:15之间的更改
  2. Restore the Full backup using the NORECOVERY option使用NORECOVERY选项还原完全备份
  3. Restore the differential backup taken on Tuesday using the NORECOVERY option使用NORECOVERY选项还原星期二进行的差异备份
  4. Restore the Transaction Log backups starting from the file taken Tuesday 12 AM till 7 AM and the tail log backup file, where all files will be restored with NORECOVERY except for the last file that will be restored with RECOVERY从周二中午12点至晚上7点之间的文件以及尾部日志备份文件(其中最后一个文件将通过RECOVERY还原)将还原所有事务文件,还原事务日志备份。

Q16: You are working as a SQL Server database administrator on a company. After restarting one of the SQL Servers, the SQL service cannot be brought online as the driver where the tempdb database is stored fails. How could you start the SQL Server service?

问题16:您正在公司中担任SQL Server数据库管理员。 重新启动其中一台SQL Server之后,由于存储tempdb数据库的驱动程序发生故障,因此SQL服务无法联机。 您如何启动SQL Server服务?

Start SQL Server in minimal configuration mode

以最小配置模式启动SQL Server

Q17: You are a SQL Server database administrator in a company. One of your tasks is adding another disk drive to your FCI for the SQL Server cluster site.

Q17:您是公司中SQL Server数据库管理员。 您的任务之一是向SQL Server群集站点的FCI添加另一个磁盘驱动器。

Which windows tool should you use to perform that?

您应该使用哪个Windows工具执行该操作?

Failover Cluster Manager

故障转移群集管理器

Q18: Assume that you have a data warehouse database that contains 15 large database data files. Which Backup operation should you use to take a backup from that database, taking into consideration that they are writing to 3 database data files only?

Q18:假设您有一个包含15个大型数据库数据文件的数据仓库数据库。 考虑到它们仅写入3个数据库数据文件,应使用哪个备份操作从该数据库进行备份?

File Backup operation

文件备份操作

Q19: While trying to take backup for a database, you need to ensure that all backup sets will be overwritten. Which backup option should you use to achieve that?

问题19:在尝试备份数据库时,需要确保所有备份集都将被覆盖。 您应该使用哪个备份选项来实现?

WITH INIT

有初始化

Q20: You are using the Always Encrypted technique for encryption of your critical data and prevent the SQL Server database administrators from viewing it. Always Encrypted supports both Deterministic and Randomized encryption types. Which encryption option is more secure?

Q20:您正在使用始终加密的技术来加密您的关键数据,并阻止SQL Server数据库管理员查看它。 始终加密支持确定性和随机加密类型。 哪个加密选项更安全?

Randomized Encryption

随机加密

翻译自: https://www.sqlshack.com/sql-server-junior-database-administrator-scenario-related-interview-questions-and-answers/

SQL Server Junior Database Administrator方案相关的访谈问答相关推荐

  1. 解决windows 2003 sp1下安装arcsde 9.0 for sql server 2000 sp4概要方案

    解决windows 2003 sp1下安装arcsde 9.0 for sql server 2000 sp4概要方案 安装sql server 2k sp4到windows 2003 sp1上: 安 ...

  2. SQL Server 2008 Database Mirroring

    Here are some notes on "SQL Server 2008 Database Mirroring" I took while attending an adva ...

  3. 查看SQL Server Resource Database以及修改系统表

    参考文献: SQL 2005修改系统表 SQL Server 2005中修改系统表的方法 如何登入DAC(SQL Server 2005) ResourceDB Location Changes Re ...

  4. SQL Server 批量插入数据方案 SqlBulkCopy 的简单封装,让批量插入更方便

    在线工具 一.Sql Server插入方案介绍 关于 SqlServer 批量插入的方式,有三种比较常用的插入方式,Insert.BatchInsert.SqlBulkCopy,下面我们对比以下三种方 ...

  5. SQL Server 官方客户端的三种常用工具 SSMS , SQL Server Profiler , Database Enging Tuning Advisor

    客户端工具路径 以下是我在本地将SSMS 2018安装在C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\之后,不同工具 ...

  6. 70-433 Microsoft SQL Server 2008, Database Development 考试感言

    今天通过了70-433 SQL SERVER 2008 数据库开发这门考试.考了2.5小时,65道题,700分通过.考试时间一共3小时20分. 准备这门考试,大概花了我两周的业余时间.没看MOC的教材 ...

  7. VS2010 SQL Server 2005 Database Project 使用笔记(二)

    经过又一天的努力,终于让数据库项目全编通过. 现在的解决方案里已经有十个项目了,其中八个数据库项目,一个服务器项目(SQL Server 2005 Server Project),一个单元测试项目. ...

  8. SQL Server调用Database Mail发送邮件报错:Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1 EXECUTE

     新的账号有使用表Tigger调用Database Mail发送邮件时报错:Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1 ...

  9. SQL Server列存储实现方案

    SQL Server从2012版本开始支持列存储,但2012版本使用列存储会导致表进入只读状态:2014版本使用可更新聚集列存储索引技术解决了只读的问题,使用列存储的表支持修改:2016版本列存储支持 ...

最新文章

  1. 携程开源Redis多数据中心解决方案-XPipe
  2. iis7 30M突破
  3. 控制理论与控制工程_控制理论与控制工程专业介绍_研究方向_就业前景分析
  4. PCI设备扫描和资源分配
  5. 记一次nsp解包(nscb解包nsp/xci,cpk解包,转hca、adx到MP3,转nsm、m2v到MP4方法集锦)
  6. oracle基础语法(二)ORACLE查询
  7. cmd查看mysql的ip地址_怎么在cmd中查看数据库ip地?
  8. 电脑同时上内外网——设置教程(附内外网优先级设置)
  9. 女神:今天我3倍工资,放假半天 有法可依,我...
  10. As of Dart Sass 2.0.0 弃用 除法符号“/” element-ui自定义皮肤样式报错,但能运行
  11. 2019年信息泄露事件汇总
  12. chmod 权限详细解析(rw)
  13. 台式主机与显示器相连用HDMI还是VGA
  14. 华为Android彩蛋,华为手机DIY拨号及彩蛋功能介绍
  15. python核心编程 第3版_Python核心编程(第3版)PDF高清晰完整中文版
  16. 注册一家互联网公司基本流程
  17. 安装Linux时grub2安装失败,尝试安装Ubuntu作为计算机唯一的操作系统时,我收到错误'grub-install/dev/sda failed'。 - Ubuntu问答...
  18. 让Atmega8A-PU 支持外部晶振的熔丝设置
  19. 当前使用的微型计算机处于,计算机。。。
  20. 直观打印二叉树的图形

热门文章

  1. c#养老院老人信息管理系统源码 论文_我市“老年人关爱服务体系建设”专题研究论文荣获第五届青年学者老龄论坛特等奖_社会民生_新闻频道...
  2. 5v 3.3v电平转换电路_MOS管电平转换电路,硬件工程师居家旅行、看门护院的必备良药...
  3. Linux查看端口使用情况
  4. pygame-KidsCanCode系列jumpy-part6-主角挂掉重新开始
  5. springcloud配置动态更新
  6. 用jquery实现简单的表单验证
  7. iOS cell添加点击时改变字体的颜色及背景
  8. 前缀转后缀(表达式)
  9. 【24】淘宝sdk——入门实战之左右悬浮模块
  10. 性能分析工具GpProfile