The Real MTCS SQL Server 2008 Exam 70/432 Prep Kit- P65 docx

5 158 0
The Real MTCS SQL Server 2008 Exam 70/432 Prep Kit- P65 docx

Đang tải... (xem toàn văn)

Thông tin tài liệu

302 Chapter7•MaintainingYourDatabase 3. You have a very large table named PhoneSurvey. The table contains a Question column and an Answer column, both of type char(1000). Many questions are similar or the same. Many answers are very similar. Many questions re-phrase the answers. Additionally, many values in the answer column are null. The table resides on a high-performance system, and you are not concerned about query performance. What is the best way to reduce the size of this table as much as possible (choose all that apply)? A. ALTER TABLE PhoneSurvey REBUILD WITH DATA_ COMPRESSION = ROW B. ALTER TABLE PhoneSurvey ALTER COLUMN Answer ADD SPARSE C. ALTER TABLE PhoneSurvey ALTER COLUMN Question ADD SPARSE D. ALTER TABLE PhoneSurvey REBUILD WITH DATA_ COMPRESSION = PAGE 4. Your organization is worried about the security risks of Database Mail and SQL Mail. You are asked to verify that all servers in your organization have these features disabled. If not, you must disable the feature on those servers that don’t have it enabled as soon as possible. What is the best way to accomplish this task with minimum administrative effort? A. Use Policy-Based Management to create a policy condition for the Server Configuration facet, SQLMailEnabled = False OR DatabaseMailEnabled = False. Create a policy linking this condition with a target set. Evaluate the policy to identify servers that don’t comply with this policy. After evalu- ating the policy, apply the policy to reconfigure any noncompliant servers. B. Use Policy-Based Management to create a policy condition for the Server Configuration facet, SQLMailEnabled = False AND DatabaseMailEnabled = False. Create a policy linking this condition with a target set. Evaluate the policy to identify servers that don’t comply with this policy. After eval- uating the policy, apply the policy to reconfigure any noncompliant servers. C. Use Policy-Based Management to create a policy with no conditions. Choose to apply this policy to a target set defined by the filter SQLMailEnabled = True OR DatabaseMailEnabled = True. Evaluate the policy to identify servers that don’t comply with this policy. After evalu- ating the policy, manually change the SQL Mail and Database Mail settings to reconfigure any noncompliant servers. MaintainingYourDatabase•Chapter7 303 D. Use Policy-Based Management to create a policy condition for the Server Configuration facet, SQLMailEnabled = False AND DatabaseMailEnabled = False. Create a policy linking this condition with a target set. Evaluate the policy to identify servers that don’t comply with this policy. After evaluating the policy, manually change the SQL Mail and Database Mail settings to reconfigure any noncompliant servers. 5. You have created a multi step job to prepare data for an important weekly production report. The job consists of several steps: getting data from multiple servers, consolidating it into a single table, and producing a report. Your users have complained that several times no report was created because certain servers were unavailable. They tell you that they would rather see a report based on last week’s data than not see a report at all. What should you do to satisfy your users? A. Change Step 2: Create Report runs only On Failure of Step 1: Consolidate Data. B. Change Step 2: Create Report runs On Success and On Failure of Step 1: Consolidate Data. C. Rearrange the job steps so that Create Report is Step 1 and Consolidate Data is Step 2. D. Rearrange the job steps so that Step 1: Consolidate Data runs on failure of Step 2: Create Report. 6. You have been asked to produce a report comparing sales activity between the London and São Paulo offices. You restore a backup of the São Paulo sales database on the London SQL Server. You write a query to show sales by product, ordered by product name, and execute it against both databases. You notice that the report based on the São Paulo database is sorted differently. The sales department requires your report in 15 minutes. What is the quickest way to make the sort results of both reports consistent? A. Use the Import / Export data wizard to copy the table from the São Paulo database to the London database. B. Use the ALTER TABLE statement to change the collation of the Product Name column in the Product table to the collation used in the London database. C. Use the copy database wizard to copy the database to a new database on the London server, specifying the new collation. 304 Chapter7•MaintainingYourDatabase D. Use the COLLATE Collation_Name option with the ORDER BY clause for the SELECT statement that the report is based on. Specify the colla- tion of the London server as Collation_Name. 7. You have created a maintenance plan named BasicDBMaint and scheduled it to run every Sunday at 10:00 a.m. When you come back to work on Monday, you wonder whether the plan has executed successfully. What are the easiest ways to do this (choose all that apply)? A. In SQL Server Management Studio, expand SQL Server Agent | Maintenance Plans. Right-click BasicDBMaint Maintenance Plan, and click View History. B. Examine the contents of C:\Program Files\Microsoft SQL Server\ MSSQL.1\MSSQL\LOG\ BasicDBMaint_<DateTime> file. C. In SQL Server Management Studio, expand Management | Maintenance Plans. Right-click BasicDBMaint Maintenance Plan, and click View History. D. Examine the contents of C:\Program Files\Microsoft SQL Server\ MSSQL.1\MSSQL\LOG\ SQLAGENT.OUT file. 8. Your organization has recently hired a new DBA named Keith. You ask Keith to optimize the maintenance plan you have configured for the ERP database. A few hours later, Keith calls you and explains that he cannot see the Maintenance Plans option in the Management folder in SQL Server Management Studio. What is likely to be the problem? A. Keith is not a member of the db_owner role for the ERP database. B. Keith is not a member of the sysadmins server role. C. Keith is not a member of the serveradmins server role. D. Keith is connected to SQL Server with a SQL Server login not a Windows Integrated login. 9. A flood in the server room has rendered your primary SQL Server in Washington inoperable, and you must wait at least a week for replacement hardware. In the meantime, you must prepare a customer activity report based on the Sales database. You restore the Sales database to a SQL Server in Moscow. You know that the collation of the Washington server was set to Latin1_General_CI_AI, while the Moscow server’s collation is Cyrillic_ General_CS_AS. Unicode is used in all databases in your organization. MaintainingYourDatabase•Chapter7 305 What must you do to ensure that the customer activity report based on the restored database is sorted in the same way as it was before the disaster? A. Use the COLLATE Latin1_General_CI_AI clause with the ALTER DATABASE statement after the restore. B. Use the COLLATE Latin1_General_CI_AI clause with the SELECT statement in the report. C. Do nothing. The results will be sorted the same way as they were before the restore operation because the database collation will not change. D. Use the COLLATE Latin1_General_CI_AI clause with the RESTORE DATABASE statement. 10. During some electrical maintenance work in your server room, someone has mistakenly pressed the emergency power down button, which caused the entire server room to lose power. After bringing all servers and devices back online you still feel uneasy about the state of your main SQL Server 2008 database. What should you do to check the entire database for corruption and repair the corruption if possible? A. Connect to the database and execute SELECT * on every table. If the results are displayed, the database is uncorrupted; if not, the database must be restored from backup. B. Run DBCC CHECKTABLE on every table in the database. C. Run DBCC CHECKDB on the database. D. Run DBCC DBREINDEX on the database. 11. You are a part-time database administrator for a small company that relies on its 3GB database for all business needs. You decide to implement a backup strategy of performing a full backup at 1:00 a.m. every night. What is the easiest way to implement your strategy? A. Open NTBACKUP from Start | Programs | Accessories | System Tools. Create the backup and schedule it to recur every day at 1:00 a.m. B. Use the BACKUP DATABASE Transact-SQL statement to create and schedule the backup job to recur every day at 1:00 a.m. C. Use the Backup Database wizard from SQL Server Management Studio to create the backup job and schedule it to recur every day at 1:00 a.m. D. Use the SQL Server Agent New Job wizard to create the backup job and schedule it to recur every day at 1:00 a.m. 306 Chapter7•MaintainingYourDatabase 12. Your organization has recently hired a new DBA named Keith. You wish to notify Keith by e-mail when your SQL Server 2008 experiences an error of severity 025 – Fatal Error. What are the steps you must take to enable this action (choose all that apply)? A. Create a SQL Server Agent operator to represent Keith. Assign Keith a valid e-mail address. B. Use the Database Mail wizard to configure Database Mail. C. Create a SQL Server Agent alert to be raised when an error of severity 025 – Fatal Error occurs. In the alert settings, choose to notify Keith by e-mail when this alert is raised. D. Start the SQL Server Agent Service and set its startup type to Automatic. E. Create a SQL Server Agent job. For the first step, create a command that parses the server log for the error of severity 025 – Fatal Error. The second step should notify Keith on success of the first step. 13. Your organization wishes that any user-defined functions that developers create in the ERP database are prefixed with “udf_”. You wish to prevent developers from creating functions that do not adhere to the convention. What is the best way to accomplish this task with minimum administrative effort? A. Use Policy-Based Management to create a policy condition for the User Defined Function facet, Name Like ‘udf_%’. Create a policy linking this condition with a target set of the database named ERP. Set the evaluation mode of the policy to On Change: Log Only. B. Use Policy-Based Management to create a policy condition for the User Defined Function facet, Name Like ‘udf_%’. Create a policy linking this condition with a target set of any server, any database. Set the evaluation mode of the policy to On Schedule. C. Use Policy-Based Management to create a policy condition for the User Defined Function facet, Name Like ‘udf_%’. Create a policy linking this condition with a target set of any server, any database. Set the evaluation mode of the policy to On Change: Prevent. D. Use Policy-Based Management to create a policy condition for the User Defined Function facet, Name Like ‘udf_%’. Create a policy linking this condition with a target set of the database named ERP. Set the evaluation mode of the policy to On Change: Prevent. . member of the serveradmins server role. D. Keith is connected to SQL Server with a SQL Server login not a Windows Integrated login. 9. A flood in the server room has rendered your primary SQL Server. raised. D. Start the SQL Server Agent Service and set its startup type to Automatic. E. Create a SQL Server Agent job. For the first step, create a command that parses the server log for the error. column in the Product table to the collation used in the London database. C. Use the copy database wizard to copy the database to a new database on the London server, specifying the new collation. 304

Ngày đăng: 07/07/2014, 00:20

Mục lục

    The Real MCTS SQL Server 2008 Exam 70-432 Prep Kit: Database Implementation and Maintenance

    Chapter 1: MCTS SQL Server 2008 Exam 432 New Features in SQL Server 2008

    A Word About the Test

    Enhanced Configuration and Management of Audits

    New Table Value Parameter

    Key Management and Encryption

    Resource Governor (similar to Query Governor)

    SQL Server 2008 Declarative Management Framework

    No Longer Requires IIS

    Export to Word Support

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan