Dicas e Simulado do exame 70-431 – TS: SQL Server 2005

Confira dez questões comentadas do exame 70-431, além de dicas sobre a prova.

Herleson Paiva Pontes

 

A certificação de Especialistas em Tecnologia (TS: Technology Specialist) é concedida ao profissional que visar provar sua proficiência e expertise em tecnologias específicas. Seguindo esta linha, o exame TS: Microsoft SQL Server 2005 – Implementation and Maintenance é o primeiro da nova geração de Certificações Microsoft na área de Banco de Dados.

Uma vez certificado, o Microsoft Certified Technology Specialists em SQL Server tem pleno conhecimento na implementação e manutenção de bancos de dados, no uso das ferramentas que acompanham o SQL Server 2005 e da linguagem Transact-SQL, além de solucionar problemas ligados ao servidor de dados de forma rápida e eficiente.

Neste artigo, mostraremos o funcionamento do exame, algumas dicas para estudo e um simulado de dez questões típicas da prova.

Funcionamento do exame 70-431

O exame 70-431 possui 52 questões, que devem ser resolvidas dentro do tempo de duração da prova, que é de três horas. As questões são em inglês e de dois tipos: objetivas ou simulações.

As questões objetivas são de múltipla escolha e podem ter mais de um item correto. Nestes casos, são informadas quantas opções devem ser marcadas no final do enunciado.

Já as questões de simulação testam o conhecimento prático do candidato, criando ambientes reais de ferramentas do SQL Server 2005 (Como o Management Studio e o Integration Services, por exemplo). Ao clicar no botão Simulation, a questão é mostrada em uma pequena janela e o computador passa a exibir o cenário da questão, com as ferramentas do SQL Server abertas. Neste tipo de questão, o problema proposto deve ser resolvido na prática e é possível reiniciar a questão a qualquer momento, clicando no botão Reset.

Durante toda a prova, é exibido o botão Help, que explica como responder cada questão (como explicado acima). Além disso, o candidato pode marcar questões para revisão posterior.

O agendamento do exame pode ser feito através da Prometric (www.2test.com) ou da Pearson/Vue (www.pearsonvue.com).

Dicas para Estudo

Existem várias formas do candidato a MCTS se preparar para o exame. O importante nesta hora é se dedicar aos estudos, pois esta é a chave para a aprovação. Algumas dicas importantes para estudo são:

 

·         Microsoft Official Curriculum (MOC): Os centros autorizados de ensino Microsoft oferecem treinamentos oficiais nas mais diversas tecnologias Microsoft existentes. Estes treinamentos fazem parte do MOC: Currículo Oficial Microsoft. Para o exame 70-431, são oferecidos dois cursos:

o        2779: Implementing a Microsoft SQL Server 2005 Database

o        2780: Maintaining a Microsoft SQL Server 2005 Database

 

·         e-Learning: A Microsoft oferece treinamentos online, onde o candidato pode estudar a hora que quiser. Estes cursos são recomendados para profissionais de TI que não podem assistir cursos presenciais. O único requisito do sistema para assistir as aulas é o Internet Explorer 6.0 ou superior. Para a prova TS: SQL Server 2005, os treinamentos disponíveis estão no link: https://www.microsoftelearning.com/sqlserver2005/.

 

·         Livros: Para os autodidatas, outra opção são os livros disponíveis no mercado sobre SQL Server 2005. Já existem publicações em português, o que facilita o estudo. Dois livros recomendados são:

o        MCTS Self-Paced Training Kit (Exam 70-431): Microsoft® SQL Server™ 2005 – Implementation and Maintenance – Microsoft Press (Inglês)

o        Microsoft SQL Server 2005 - Guia de Bolso do Administrador – Editora Bookman (Português)

 

·         Fórum Technet: O Fórum Technet é o local onde os Profissionais de TI podem tirar as suas duvidas sobre os produtos e tecnologias Microsoft. As perguntas são respondidas por MVPs e Profissionais Certificados, que estão sempre dispostos a resolver qualquer problema. O endereço do site é: http://forums.microsoft.com/technet-br/

 

Uma ultima dica: caso você não tenha o SQL Server 2005 instalado para estudo, baixe a versão Evaluation do site da Microsoft. Esta versão de avaliação funciona por 180 dias, e vem com todos os recursos da edição Enterprise. O link para download do SQL Server 2005 é: http://www.microsoft.com/downloads/details.aspx?familyid=6931FA7F-C094-49A2-A050-2D07993566EC&displaylang=en

Simulado do Exame 70-431

Neste simulado estão apresentadas dez questões típicas do exame 70-431. No final de cada questão está a resposta e um breve comentário sobre a mesma.

 

QUESTION 1

 

Your application must access data that is located on two SQL Server 2005 computers. One of these servers is named SQL1 and the other is SQL2. You have permissions to create a stored procedure on SQL1 to support your application.

However, on SQL2 you only have permissions to select data. You write the stored procedure on SQL1. The stored procedure accesses SQL2 by using the OPENQUERY Transact-SQL statement. However, the query fails when executed. You need to troubleshoot the cause of the error. What should you do?

 

A. Join the two servers by using the four-part syntax of server.database.schema.table.

B. Reference SQL2 by using an alias.

C. Add SQL2 as a remote server to SQL1.

D. Add SQL2 as a linked server to SQL1.

 

RESPOSTA: D

COMENTÁRIOS: O comando OPENQUERY só funciona quando o servidor remoto em questão está registrado no SQL Server. Para registrar um servidor no SQL Server 2005, abra o Management Studio, expanda a pasta Server Objects. Clique com o botão direito em Linked Servers e escolha a opção New Linked Server. Caso eu quisesse realizar uma consulta sem registrar o Servidor, teria de usar o recurso AD HOC QUERIES.

 

QUESTION 2

 

You are preparing for a new installation of SQL Server 2005. You need to select the protocols that client computers might use to connect to the server. Which two protocols can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two)

 

A. Named Pipes

B. TCP/IP

C. Shared Memory

D. Virtual Interface Adapter (VIA)

E. Multiprotocol

 

RESPOSTA: A e B

COMENTÁRIOS: O SQL Server 2005 só dá suporte a conexões remotas através de TCP/IP ou Named Pipes. Protocolos antigos, como o NWLink e o AppleTalk não são mais suportados. A escolha do protocolo se dá no SQL Server Configuration Manager ou no Surface Area Configuration.

 

QUESTION 3

 

You configure a new SQL Server 2005 computer to use TCP/IP with all default settings. Your corporate policy requires that each server use a firewall. You find that you can connect to the SQL Server instance from the local computer. However, client computers cannot connect to the SQL Server instance. You need to identify the most likely cause of the connection issues. What should you do first?

 

A. Ensure that port 1433 is open in your firewall.

B. Ensure that port 443 is open in your firewall.

C. Ensure that client computers connect by using Shared Memory protocol.

D. Ensure that the server is not paused.

 

RESPOSTA: A

COMENTÁRIOS: A porta padrão que o SQL Server utiliza para conexões é a 1433.

 

QUESTION 4

 

Microsoft.com has multiple servers in a distributed environment. You work with two SQL Server 2005 computers named SQL1 and SQL2. Each server uses SQL Server Authentication and they use different logins. You need to write a distributed query that joins the data on SQL1 with the data on SQL2. What should you do?

 

A. Ensure that both SQL1 and SQL2 use the same login name as the security context for each server.

B. Configure SQL2 as a remote server. Write the query on SQL1.

C. Configure SQL2 as a linked server to impersonate the remote login.

D. Configure SQL2 as a distributed server. Use pass-through authentication.

 

RESPOSTA: C

COMENTÁRIOS: Mais uma questão de Linked Server. Registrando o servidor é possível associar logins remotos a logins locais.

 

QUESTION 5

 

Microsoft.com uses SQL Server 2005. Users report that report execution is slow. You investigate and discover that some queries do not use optimal execution plans. You also notice that some optimizer statistics are missing and others are out of date. You need to correct the problem so that reports execute more quickly. Which two Transact-SQL statements should you use? (Each correct answer presents part of the solution. Choose two.)

 

A. DBCC CHECKTABLE

B. ALTER INDEX REORGANIZE

C. UPDATE STATISTICS

D. CREATE STATISTICS

E. DBCC SHOW_STATISTICS

F. DBCC UPDATEUSAGE

 

RESPOSTA: C e D

COMENTÁRIOS: Problemas relacionados a lentidão de recuperação de dados são geralmente causados por um destes fatores: Queries mal-escritas, Estatísticas desatualizadas ou Índices mal-planejados. Quando o SQL Server não está usando o plano de otimização de execução, use os comandos de estatísticas para que o SQL recrie seus planos de execução e otimize as consultas.

 

QUESTION 6

 

You are responsible for implementing maintenance jobs on a SQL Server 2005 database server. Certain jobs run every Sunday and other jobs run at the beginning of every month. You need to schedule the jobs in the way that uses the least amount of administrative effort. What should you do?

 

A. Create a job schedule that runs every Sunday. Assign weekly tasks to this schedule. Create a second schedule that runs on the first day of every month. Assign monthly tasks to this schedule.

B. Create a job for each task that runs once a day. Use a Transact-SQL statement to check the date and day of the week. If the day is either a Sunday or the first day of the month, execute the code.

C. Create a job schedule that runs once a day. Assign jobs to this job schedule. If the day is either a Sunday or the first day of the month, execute the jobs.

D. Create a job for each task that runs once a week on Sunday. Add a second job schedule that runs the job on the first of the month.

 

RESPOSTA: A

COMENTÁRIOS: Questão de Jobs, onde o que vale é o bom senso do DBA: todas as quatro opções funcionariam, mas a que consome menos esforço em implementação e, principalmente, em manutenção é o item A. Cuidado com este tipo de questão, onde todas as alternativas são corretas, mas tem uma que requer menos esforço.

 

QUESTION 7

 

You discover that the msdb database on a SQL Server 2005 computer is corrupt and must be restored. Databases are backed up daily. The database backup files are written to a network share, but the file names do not clearly indicate which databases are in each file. You need to locate the correct backup file as quickly as possible. The first file in the list is named DB_Backup.bak. Which Transact-SQL statement should you use?

 

A. RESTORE LABELONLY FROM DISK = N\\Server1\Backup\DB_Backup.bak

B. RESTORE HEADERONLY FROM DISK = N\\Server1\Backup\DB_Backup.bak

C. RESTORE VERIFYONLY FROM DISK = N\\Server1\Backup\DB_Backup.bak

D. RESTORE DATABASE MSDB FROM DISK = N\\Server1\Backup\DB_Backup.bak

 

RESPOSTA: B

COMENTÁRIOS: Pesquisando sobre as opções que o RESTORE oferece, a opção HEADERONLY vai na mídia do backup e traz as informações gerais, como nome do banco, usuário, nome do servidor, etc.

 

QUESTION 8

 

A support engineer reports that inserting new sales transactions in a SQL Server 2005 database results in an error. You investigate the error. You discover that in one of the databases, a developer has accidentally deleted some data in a table that is critical for transaction processing. The database uses the full recovery model. You need to restore the table. You need to achieve this goal without affecting the availability of other data in the database. What should you do?

 

A. Back up the current transaction log. Restore the database with a different name and stop at the point just before the data loss. Copy the table back into the original database.

B. Back up the current transaction log. Restore the database to the point just before the data loss.

C. Restore the database from the existing backup files to a time just before the data loss.

D. Restore the database to the point of the last full backup.

 

RESPOSTA: A

COMENTÁRIOS: Esta resposta pode parecer absurda, mas repare no pedido da questão: "without affecting the availability of other data in the database" (Sem afetar a disponibilidade dos outros dados do banco). Todos os outros processos travam o banco, proibindo assim sua utilização. O SQL Server 2005 traz uma novidade em relação a isso, que é o Restore ONLINE: o banco é restaurado aos poucos. Mas esta opção não aparece na questão.

 

QUESTION 9

 

A power failure occurs on the storage area network (SAN) where your SQL Server 2005 database server is located. You need to check the allocation as well as the structural and logical integrity of all databases, including their system catalogs. What should you do?

 

A. Execute DBCC CHECKFILEGROUP for each filegroup.

B. Execute DBCC CHECKCATALOG.

C. Execute DBCC CHECKDB.

D. Execute DBCC CHECKTABLE for each table.

 

RESPOSTA: C

COMENTÁRIOS: O comando DBCC CHECKDB verifica a alocação, a estrutura e a integridade lógica dos objetos de um banco de dados.

 

QUESTION 10

 

You work in San Francisco at the main office of Microsoft.com. You are responsible for managing a SQL Server 2005 database. The sales department wants a report that compares customer activity in the previous quarter between the main office in San Francisco and the branch office in Moscow. They want the data sorted by surname and first name. You restore a recent backup of the Moscow database onto your server. You write queries to build the report, ordering the data by the Surname and FirstName columns. You review the data and notice that the customer list from the Moscow database is sorted differently. The sales department needs the revised data within 15 minutes for a presentation.

You need to implement the fastest possible solution that ensures that the data from both databases is sorted identically. What should you do?

 

A. Use the Copy Database Wizard to copy the data in the Buenos Aires database to a new database with the same collation as the Dublin database.

B. Use the SQL Server Import and Export Wizard to copy the data from the Buenos Aires database into new tables, specifying the same collation as the Dublin database.

C. Modify the format file to specify the same collation as the Dublin database. Import the table again.

D. Modify the query on the Buenos Aires database to use the COLLATE setting in the ORDER BY clause. In the query, specify the same collation as the Dublin database.

 

RESPOSTA: D

COMENTÁRIOS: Quando aparecerem questões com localidades diferentes, pode ter certeza que é uma questão de collation. Analisando o ORDER BY, você verá que é possível definir por qual COLLATION os dados serão organizados, independente do COLLATION definido no banco e no servidor.

Conclusões

O exame 70-431 tem por objetivo medir os conhecimentos teóricos e práticos do candidato no SQL Server 2005. Neste artigo apresentamos o funcionamento da prova, explicando os dois tipos de questões existentes Depois apresentamos algumas dicas de estudo e um simulado comentado da prova.

Você pode encontrar mais informações sobre o SQL Server 2005 e sobre a certificação MCTS no endereço: http://www.microsoft.com/brasil/sql/.