powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Сертификация и обучение [игнор отключен] [закрыт для гостей] / вопрос из 70-229
6 сообщений из 6, страница 1 из 1
вопрос из 70-229
    #32843023
Iris_m
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Есть в uCertify 2 идентичных на мой взгляд вопроса, но с разными ответами и объяснениями.

1.
Q. Vou are a developer of a database named Inventory. You have created four queries, which will run at the same time. To improve the performance, you design and create the indexes for the database tables. How will you ensure that you have created useful indexes?
A. Run the Index Tuning Wizard against a workload file that contains the queries used in the reports.
B. Run System Monitor, and use the SQLServer: Access Methods counter.
C. Execute the queries against the tables in SQL Query Analyzer, and use the SHOWPLAN_TEXT option.
D. Create a SQL Profiler trace, and use the Objects event classes.
Analysis. Answer option C is correct. To ensure that you have created useful indexes, run each query in SQL Query Analyzer with SET SHOWPLAN_TEXT option. SET SHOWPLAN_TEXT statements return only query or statement's execution plan information and do not execute the query or statement. The execution plan is very useful for understanding the performance characteristics of a query. Additionally, SQL Query Analyzer shows suggestions for additional indexes and statistics on nonmdexed columns that would improve the ability of the query optimizer to process a query efficiently.


2. Q. Vou work as a Database Developer for uCertify Inc. The company uses SQL Server database to maintain sales information. Vou are designing multiple reports, which will be running simultaneously. Vou write queries for each report and create indexes based on the requirements of the queries. What will you do to ensure that you have created useful indexes?
A. Run System Monitor and use the SQLServer: Access Methods counter.
B. Execute the queries against the tables in SQL Query Analyzer and use the SHOWPLAN_TEXT option.
C. Create a SQL Profiler trace and use the Objects event classes.
D. Run the Index Tuning Wizard against a workload file that contains the queries used in the reports.
Analysis. Answer option D is correct.
Vou should run the index Tuning Wizard against a workload file that contains the queries used in the reports to ensure that you have created useful indexes. The Index Tuning Wizard suggests an optimal set of indexes for a database based on the workload file. A workload file can include SQL scripts or a SQL Profiler trace. The Index Tuning Wizard analyzes the workload and recommends an index configuration that will improve the performance of the database. Vou can match the recommendation with existing set of indexes to determine that you have created useful indexes.
Answer options C and A are incorrect. Vou cannot determine a useful set of indexes by using SQL Profiler trace or System Monitor utility.
Answer option B is incorrect. Executing the queries in SQL Query Analyzer and using the SHOWPLAN_TEXT option will give you a plan for execution, but it will not suggest the index. Although you can conclude the effectiveness of the existing index by studying the query plan, you require good understanding of the SQL Server query plan. Moreover, using this option will not recommend an index configuration that will improve database performance. Hence, this is not a good choice.

Видит ли кто-нибудь между ними разницу? Какой ответ считать верным? Почему? Хочется услышать мнение профессионалов.

Спасибо.
...
Рейтинг: 0 / 0
вопрос из 70-229
    #32843069
Фотография _bob
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
первый вопрос сводится к "как проверить индексы", а второй - "как создавать индексы"
понятно, что план выполнения не предлагает никаких вариантов индекса, а визард - предлагает, поэтому проверяем индексы составлением плана выполнения(1 вопрос), создаем их визардом (2 вопрос)
------------------
Best regards, _bob
...
Рейтинг: 0 / 0
вопрос из 70-229
    #32843074
sti
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
В первом случае индексы уже созданы и спрашивается как проверить их полезность. Во втором создание индексов только в процессе.
...
Рейтинг: 0 / 0
вопрос из 70-229
    #32843089
pkarklin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Q1.How will you ensure that you have created useful indexes?
Q2.What will you do to ensure that you have created useful indexes?

Или я ничего не понимаю во временах английского языка или одно из двух. В обоих вопросах спрашивается одно и тоже, а ответы разные - прикольно.
...
Рейтинг: 0 / 0
вопрос из 70-229
    #32843103
Iris_m
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
2pkarklin
Полностью поддерживаю. Время одно. Свидетельствует об окончании какого-либо действия в прошлом. Т.е. индексы уже созданы.
...
Рейтинг: 0 / 0
вопрос из 70-229
    #32843167
Дмитрий Валуев
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Во втором варианте видим
Vou are designing multiple reports, which will be running simultaneously
т.е. действие происходит в настоящее время и имеет продолженный характер.
Чего в первом варианте нет, там все в прошлом.
Но спрашивается-то вроде бы действительно одно и то же: как проверить полезность индексов. Или под выбором вариантов в визарде и понимается "проверка полезности" индекса? Кучеряво.
...
Рейтинг: 0 / 0
6 сообщений из 6, страница 1 из 1
Форумы / Сертификация и обучение [игнор отключен] [закрыт для гостей] / вопрос из 70-229
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]