Exam Name: Exam Type: Exam Code: Total Questions
Exam Name: Exam Type: Exam Code: Total Questions
Exam Name: Exam Type: Exam Code: Total Questions
Question: 1
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. This morning you
receive an e-mail from your company manager, in the e-mail, the manager asks you to create a
table which is named dbo.Devices. Five rows have to be inserted into the dbo.Devices table. After
this, DeviceID has to be returned for each of the rows. Of the following Transact-SQL batches,
which one should be used?
Answer: D
Question: 2
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. The SQL Server has
identified many missing indexes. Now you have to build CREATE INDEX statements for all the
missing indexes. Which dynamic management view should be used?
Answer: B
Question: 3
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. Look at code
segment below:
Page 1 of 48
Exam Name: TS: Microsoft SQL Server 2008, Database Development
Exam Type: Microsoft
Exam Code: 70-433 Total Questions 108
Do you know the result of executing this code segment? Which result will be returned?
Answer: A
Question: 4
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. There is a table
named dbo.Sellings in the database. The table contains the following table definition:
Since you notice that this query takes a long time to run, you start to examine the data. You find
that only 2% of rows have comment dates and the SellingPersonID is null on 10% of the rows
after the examination. So you have to improve the query performance. You have to create an
index which must save disk space when optimize the query. Of the following index, which one
should you choose?
Answer: A
Question: 5
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database which is named DB1.
There is a table named Bill in DB1. BillID is the primary key of the Bill table. By using the identity
property, it is populated. The Bill table and the BillLineItem are related to each other. In order to
increase load speed, all constraints are removed from the Bill table during a data load. But a row
with BillId = 10 was removed from the database when you removed the constraints. Therefore
Page 2 of 48
Exam Name: TS: Microsoft SQL Server 2008, Database Development
Exam Type: Microsoft
Exam Code: 70-433 Total Questions 108
you have to re-insert the row into the Bill table with the same BillId value. Of the following options,
which Transact-SQL statement should be used?
Answer: B
Question: 6
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. There are two tables
in the company database. One table is named Subitems which includes subitems for shoes, hats
and shirts. Another one is named Commodities which includes commodities only from the
Subitems shoes and hats.
Look at the following query:
Now you have to foretell what results the query produces. So what is the answer?
Answer: C
Question: 7
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. There are two tables
in the database of the company. The two tables are respectively named Sellings and
SellingsHistory. Historical selling data is stored in the SellingsHistory table. On the Sellings table,
you perform the configuration of Change Tracking. The minimum valid version of the Sellings
Page 3 of 48
Exam Name: TS: Microsoft SQL Server 2008, Database Development
Exam Type: Microsoft
Exam Code: 70-433 Total Questions 108
table is 10. There is selling data that changed since version 10. According to the company
requirement, a query has to be written to export only these data, including the primary key of
deleted rows. Of the following methods, which one should be use?
Answer: B
Question: 8
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. There are two tables
in the database of the company. The two tables are respectively named Clients and Bills. Now
you get an e-mail from your company manager, you've been assigned a task that you have to
write a SELECT statement. The statement should output client and bill data as a valid and well-
formed XML document. You have to mix attribute and element based XML within the document.
But you think that it is not proper to use the FOR XML AUTO clause. You have to find the suitable
FOR XML clause. Of the following FOR XML statement, which one should be used? (choose
more than one)
Answer: A, C
Question: 9
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. There's a table
named Clients in the database. The Clients table contains an XML column which is named
ClientInfo. At present the Client table contains no indexes. Look at the WHERE clause below:
WHERE ClientInfo.exist ('/ClientDemographic/@Age[.>="21"]') = 1 You use this clause in a query
for which indexes have to be created. Of the following Transact-SQL statements, which one
should be used?
Answer: D
Page 4 of 48
Exam Name: TS: Microsoft SQL Server 2008, Database Development
Exam Type: Microsoft
Exam Code: 70-433 Total Questions 108
Question: 10
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. There are two tables
in the company database. The two tables are respectively named Bill and BillData. Bill
information is stored in the two tables. The Bill table relates to the BillData table through the BillID
column of each table. In the Bill table there is a column which is named LatestModifiedDate. If the
related bill in the BillData table is modified, you must make sure that the LatestModifiedDate
column must reflect the data and time of the modification. So you have to create a trigger. Of the
following Transact-SQL statement, which one should be used?
Answer: C
Question: 11
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. There's a table which
is named Essays. The Essays table contains two columns respectively named EssayHead and
Detail. The two columns all contain a full-text index. The word "technology" may be in column
EssayHead or in column Detail. You have to return row from the Essay table. Of the following
code segments, which one should be used?
Answer: B
Question: 12
You are a database developer and you have many years experience in database development.
Now you are employed in a company which is named Loxgo. The company uses SQL Server
2008 and all the company data is stored in the SQL Server 2008 database. Look at the following
query.
SELECT AddressId,
AddressLine1,
City,
PostalCode
FROM Person.Address
WHERE City = @city_name
Page 5 of 48