70-529VB Exam
MS.NET Framework 2.0 - Distributed Appl Development
- Exam Number/Code : 70-529VB
- Exam Name : MS.NET Framework 2.0 - Distributed Appl Development
- Questions and Answers : 69 Q&As
- Update Time: 2013-04-05
- Price:
$ 119.00$ 69.00
70-529VB Hard Copy (PDF)
70-529VB Test Engine
Free 70-529VB Demo Download
Test4pass offers free demo for MCTS 70-529VB exam (MS.NET Framework 2.0 - Distributed Appl Development). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.
Exam Description
It is well known that 70-529VB exam test is the hot exam of Microsoft certification. Test4pass offer you all the Q&A of the 70-529VB real test . It is the examination of the perfect combination and it will help you pass 70-529VB exam at the first time!
Why choose Test4pass 70-529VB braindumps
Quality and Value for the 70-529VB Exam
100% Guarantee to Pass Your 70-529VB Exam
Downloadable, Interactive 70-529VB Testing engines
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the Actual Exams
Practice Test Questions accompanied by exhibits
Our Practice Test Questions are backed by our 100% MONEY BACK GUARANTEE.
Test4pass 70-529VB Exam Features
Quality and Value for the 70-529VB Exam
Test4pass Practice Exams for Microsoft 70-529VB are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.
100% Guarantee to Pass Your 70-529VB Exam
If you prepare for the exam using our Test4pass testing engine, we guarantee your success in the first attempt. If you do not pass the MCTS 70-529VB exam (ProCurve Secure WAN) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.
Microsoft 70-529VB Downloadable, Printable Exams (in PDF format)
Our Exam 70-529VB Preparation Material provides you everything you will need to take your 70-529VB Exam. The 70-529VB Exam details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first try, but also save your valuable time.
70-529VB Downloadable, Interactive Testing engines
We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our Exam Preparation Material provides you everything you will need to take a certification examination. Like actual certification exams, our Practice Tests are in multiple-choice (MCQs) Our Microsoft 70-529VB Exam will provide you with free 70-529VB dumps questions with verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. High quality and Value for the 70-529VB Exam:100% Guarantee to Pass Your MCTS exam and get your MCTS Certification.
Hot KeyWords On 70-529VB test
We collect some hot keywords about this exam:
Test4pass , Pass 4 Sure , Test in Side ,Pass Guide ,Test King 70-529VB exam | 70-529VB pdf exam | 70-529VB braindumps | 70-529VB study guides | 70-529VB trainning materials | 70-529VB simulations | 70-529VB testing engine | 70-529VB vce | 70-529VB torrent | 70-529VB dumps | free download 70-529VB | 70-529VB practice exam | 70-529VB preparation files | 70-529VB questions | 70-529VB answers.
How to pass your 70-529VB exam
You can search on Search Engine and Find Best IT Certification site: Test4pass.com - Find the Method to succeed 70-529VB test,The safer.easier way to get
MCTS Certification
.
¡¡
Exam : Microsoft 70-529(VB)
Title : MS.NET Framework 2.0 - Distributed Appl Development
1. An application calls a Web method asynchronously by using the following code. (Line numbers are included for reference only.)
01 Sub ProcessData()
02 Dim serviceProxy As New ProcessingService
03 Dim asyncResult As IAsyncResult = Nothing
04 asyncResult = serviceProxy.BeginProcess(data, Nothing, _
05 Nothing)
06 While (Not asyncResult.IsCompleted)
07 Thread.Sleep(1000)
08 End While
09
10 serviceProxy.EndProcess(asyncResult)
11 End Sub
You need to ensure that the application can process and log any exceptions raised by the Web method.
What should you do?
A. Replace line 10 with the following code.
Try
serviceProxy.EndProcess(asyncResult)
Catch ex As Exception
LogException(ex)
End Try
B. Replace lines 06, 07, and 08 with the following code.
Try
While (Not asyncResult.IsCompleted)
Thread.Sleep(1000)
End While
Catch ex As Exception
LogException(ex)
End Try
C. Replace line 09 with the following code.
If TypeOf asyncResult.AsyncState Is Exception Then
LogException(asyncResult.AsyncState)
End If
D. Replace line 04 with the following code.
Try
asyncResult = serviceProxy.BeginProcess(data, Nothing, Nothing)
Catch ex As Exception
LogException(ex)
End Try
Answer: A
2. A Console Application calls a Web service named SessionStateService five times, sequentially. The IncrementSessionCounter Web service method increments and returns an integer value that is held in a cookie. (Line numbers are included for reference only.)
01 Public Sub IncrementSession5Times()
02 Dim service As New SessionStateService()
03 ...
04 Dim i As Integer
05 For i = 0 To 4
06 ...
07 Console.WriteLine("Loop Pass {0} - result = {1}", i,
08 service.IncrementSessionCounter())
09 Next i
10 End Sub
You need to ensure that when the IncrementSession5Times method is run, the following output is displayed.
Loop Pass 0 - result = 1
Loop Pass 1 - result = 2
Loop Pass 2 - result = 3
Loop Pass 3 - result = 4
Loop Pass 4 - result = 5
What should you do?
A. Replace line 03 with the following code.
Dim cookies As New CookieContainer()
Replace line 06 with the following code.
Dim service As New SessionStateService()
service.CookieContainer = cookies
B. Replace line 03 with the following code.
¡¡Dim service As New SessionStateService()
C. Replace line 06 with the following code.
Dim service As New SessionStateService()
Dim cookies As New CookieContainer()
service.CookieContainer = cookies
D. Replace line 03 with the following code.
Dim cookies As New CookieContainer()
Replace line 06 with the following code.
Dim service As New SessionStateService()
cookies.GetCookies(New Uri(service.Url))
Answer: A
3. You are creating a Web service.
You need to add an operation that can be called without returning a message to the caller.
Which code should you use?
A. <WebMethod()> _
<SoapDocumentMethod(OneWay:=True)> _
Public Function ProcessName(ByVal Name As String) As Boolean
...
Return False
End Function
B. <WebMethod()> _
<OneWay()> _
Public Sub ProcessName()
...
End Sub
C. <WebMethod()> _
<SoapDocumentMethod(OneWay:=True)> _
Public Sub ProcessName()
...
End Sub
D. <WebMethod()> _
<SoapDocumentMethod(Action:="OneWay")> _
Public Sub ProcessName()
...
End Sub
Answer: C
4. You call a method in a Web service. The following exception is thrown in the Web service client.
System.Web.Services.Protocols.SoapException: Server was unable to
process request. --> System.NullReferenceException: Object
reference not set to an instance of an object.
You discover that it is the following line of code that throws the exception.
If Session("StoredValue") Is Nothing Then
You need to ensure that the method runs without throwing the exception.
What should you do?
A. Modify the WebMethod attribute in the Web service so that the EnableSession property is set to True.
B. In the client code for the Web service's proxy object, assign a new instance of the System.Net.CookieContainer object to the CookieContainer property.
C. Add the following element to the System.Web section of the Web.config file.
¡¡<sessionState mode="InProc" />
D. Add the following elements to the System.Web section of the Web.config file.
<httpModules>
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
</httpModules>
Answer: A
5. You are creating a Web service to expose the public methods on a class. Two overloaded methods are defined in the class as follows:
Public Function GetCustomer(ByVal custId As String) As Customer
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
You need to expose both methods on the Web service.
Which code segment should you use?
A. <WebMethod()> _
<SoapDocumentMethod(Action:="GetCustomerById")> _
Public Function GetCustomer(ByVal custId As String) As Customer
...
End Function
<WebMethod()> _
<SoapDocumentMethod(Action:="GetCustomerByName")> _
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
...
End Function
B. <WebMethod(Description:="GetCustomerById")> _
Public Function GetCustomer(ByVal custId As String) As Customer
...
End Function
<WebMethod(Description:="GetCustomerByName")> _
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
...
End Function
C. <WebMethod(MessageName:="GetCustomerById")> _
Public Function GetCustomer(ByVal custId As String) As Customer
...
End Function
<WebMethod(MessageName:="GetCustomerByName")> _
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
...
End Function
D. <WebMethod()> _
<SoapDocumentMethod(RequestElementName:="GetCustomerById")> _
Public Function GetCustomer(ByVal custId As String) As Customer
...
End Function
<WebMethod()> _
<SoapDocumentMethod(RequestElementName:="GetCustomerByName")> _
Public Function GetCustomer(ByVal name As String, _
ByVal postalCode As String) As Customer
...
End Function
Answer: C
6. You are writing an application that calls a Web service. The application must call the Web service asynchronously and also perform a small amount of processing while the Web service is running. The return value from the Web service is required for additional processing.
You need to ensure that the application can call the Web service asynchronously and also process the return value. Your solution must keep processor cycles to a minimum.
What should you do?
A. Implement the Web service call as follows:
Dim serviceProxy As New ProcessService()
Dim asyncResult As IAsyncResult = serviceProxy.BeginProcess(data, _
Nothing, Nothing)
Dim ret As String = serviceProxy.EndProcess(asyncResult)
PerformProcessing()
PerformAdditionalProcessing(ret)
B. Implement the Web service call as follows:
Dim serviceProxy As New ProcessService()
Dim asyncResult As IAsyncResult = serviceProxy.BeginProcess(data, _
Nothing, Nothing)
PerformProcessing()
Dim ret As String = serviceProxy.EndProcess(asyncResult)
PerformAdditionalProcessing(ret)
C. Implement the Web service call as follows:
Dim serviceProxy As New ProcessService()
Dim asyncResult As IAsyncResult = serviceProxy.BeginProcess(data, _
New AsyncCallback(AddressOf ProcessHandler), serviceProxy)
PerformProcessing()
PerformAdditionalProcessing(ret)
D. Implement the Web service call as follows:
Dim serviceProxy As New ProcessService()
Dim asyncResult As IAsyncResult = serviceProxy.BeginProcess(data, _
Nothing, Nothing)
PerformProcessing()
While Not asyncResult.IsCompleted
Dim ret As String = serviceProxy.EndProcess(asyncResult)
PerformAdditionalProcessing(ret)
End While
Answer: B
7. A SOAP message has the following body.
<soap:Body>
<tns:Greeting>
<Person href="#id1" />
</tns:Greeting>
<tns:User id="id1" xsi:type="tns:User">
<GivenName xsi:type="xsd:string">givenname</GivenName>
<SurName xsi:type="xsd:string">surname</SurName>
</tns:User>
</soap:Body>
You need to configure the Greeting method to accept the SOAP message.
Which code segment should you use?
A. <WebMethod()> _
<SoapDocumentMethod(Use:=SoapBindingUse.Literal)> _
Public Function Greeting(<XmlElement("Person")> ByVal user As User)
...
End Function
B. <WebMethod()> _
<SoapDocumentMethod(Use:=SoapBindingUse.Encoded)> _
Public Function Greeting(<XmlElement("Person")> ByVal user As User)
...
End Function
C. <WebMethod()> _
<SoapDocumentMethod(Use:=SoapBindingUse.Literal)> _
Public Function Greeting(<SoapElement("Person")> ByVal user As User)
...
End Function
D. <WebMethod()> _
<SoapDocumentMethod(Use:=SoapBindingUse.Encoded)> _
Public Function Greeting(<SoapElement("Person")> ByVal user As User)
...
End Function
Answer: D
8. You create a Web service that exposes a Web method named CalculateStatistics. The response returned by the CalculateStatistics method for each set of input parameters changes every 60 seconds.
You need to ensure that all requests to the CalculateStatistics method that have the same set of input parameters, and that occur within a 60-second time period, calculate the statistics only once.
Which code segment should you use?
A. <WebMethod()> _
Public Function CalculateStatistics(ByVal values As Integer()) As String
HttpContext.Current.Response.Cache.SetCacheability( _
HttpCacheability.Public, "max-age=60")
...
End Function
B. <WebMethod(CacheDuration:=60)> _
Public Function CalculateStatistics(ByVal values As Integer()) As String
...
End Function
C. <WebMethod()> _
Public Function CalculateStatistics(ByVal values As Integer()) As _
String
HttpContext.Current.Response.Cache.SetExpires( _
DateTime.Now.AddSeconds(60))
...
End Function
D. <WebMethod(BufferResponse:=60)> _
Public Function CalculateStatistics(ByVal values As Integer()) As _
String
...
End Function
Answer: B
9. You are writing an application that handles the batch processing of user accounts. The application assigns network identities for users by calling the following Web service method.
<WebMethod()> _
Public Function GetNetworkID(ByVal name As String) As String
...
End Function
The application calls the Web service using the following code. (Line numbers are included for reference only.)
01 Private Sub ProcessPeople(ByVal people As List(Of Person))
02 Dim serviceProxy As PersonService = New PersonService()
03 AddHandler serviceProxy.GetNetworkIDCompleted, _
04 AddressOf GetNeworkIDCompleted
05 Dim i As Integer
06 For i = 0 To people.Count - 1
07 ...
08 Next
09 End Sub
10
11 Private Sub GetNeworkIDCompleted(ByVal sender As Object, _
12 ByVal e As GetNetworkIDCompletedEventArgs)
13 Dim p As Person = Nothing
14 ...
15 p.NetworkID = e.Result
16 ProcessPerson(p)
17 End Sub
You need to ensure that the application can use the data supplied by the Web service to update each Person instance.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Replace line 07 with the following code segment.
¡¡serviceProxy.GetNetworkIDAsync(people(i).FirstName, people(i))
B. Replace line 07 with the following code segment.
¡¡serviceProxy.GetNetworkIDAsync(people(i).FirstName, Nothing)
C. Replace line 14 with the following code segment.
¡¡p = e.UserState
D. Replace line 14 with the following code segment.
p = sender
Answer: A AND C
10. You are creating a Web service by using ASP.NET.
You need to ensure that the Web Services Description Language (WSDL) file that is generated is Web services interoperability (WS-I) compliant and that it allows message validation.
What should you do?
A. Add the following attribute definition to the Web service.
¡¡<SoapRpcMethod(Use:=SoapBindingUse.Encoded)>
B. Add the following attribute definition to the Web service.
¡¡<SoapRpcMethod(Use:=SoapBindingUse.Literal)>
C. Add the following attribute definition to the Web service.
¡¡<SoapDocumentMethod(Use:=SoapBindingUse.Encoded)>
D. Add the following attribute definition to the Web service.
<SoapDocumentMethod(Use:=SoapBindingUse.Literal)>
Answer: D
11. You are creating a Web service. The Web service must be configured to receive the following message.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<givenName xmlns="urn:SampleNS">given name</givenName>
<surname xmlns="urn:SampleNS">surname</surname>
</soap:Body>
</soap:Envelope>
You need to ensure that the Web Services Description Language (WSDL) for the Web service describes the message.
What should you do?
A. Write the following code for the Web method.
<WebMethod()> _
<SoapDocumentMethod(ParameterStyle:=SoapParameterStyle.Bare, Use:=SoapBindingUse.Literal)> _
Public Function HelloWorld(ByVal firstName As String, ByVal lastName As String)
...
End Function
B. Write the following code for the Web method.
<WebMethod()> _
<SoapDocumentMethod(ParameterStyle:=SoapParameterStyle.Wrapped, Use:=SoapBindingUse.Encoded)> _
Public Function HelloWorld(ByVal firstName As String, ByVal lastName As String)
...
End Function
C. Write the following code for the Web method.
<WebMethod()> _
<SoapDocumentMethod(ParameterStyle:=SoapParameterStyle.Wrapped, Use:=SoapBindingUse.Literal)> _
Public Function HelloWorld(ByVal firstName As String, ByVal lastName As String)
...
End Function
D. Write the following code for the Web method.
<WebMethod()> _
<SoapDocumentMethod(ParameterStyle:=SoapParameterStyle.Bare, Use:=SoapBindingUse.Encoded)> _
Public Function HelloWorld(ByVal firstName As String, ByVal lastName As String)
...
End Function
Answer: A
12. An application fails when executing a specific operation. You discover that the failure occurs when an exception is raised by a Web service.
The application uses the following code to call the Web service.
Sub Process()
Dim serviceProxy As ProcessService = New ProcessService()
AddHandler serviceProxy.ProcessDataCompleted, _
AddressOf ServiceCompleted
serviceProxy.ProcessDataAsync(data)
End Sub
You need to ensure that the application does not fail when the Web service raises the exception. Your solution must maximize the performance of your code.
What should you do?
A. Register the following method with the proxy object to receive the notification of completion.
Sub ServiceCompleted(ByVal sender As Object, ByVal e As _
ProcessDataCompletedEventArgs)
If TypeOf sender Is SoapException Then
LogMessage(e.Error.Message)
Else
ProcessResult(e.Result)
End If
End Sub
B. Register the following method with the proxy object to receive the notification of completion.
Sub ServiceCompleted(ByVal sender As Object, ByVal e As _
ProcessDataCompletedEventArgs)
If TypeOf e.Error Is SoapException Then
LogMessage(e.Error.Message)
Else
ProcessResult(e.Result)
End If
End Sub
C. Register the following method with the proxy object to receive the notification of completion.
Sub ServiceCompleted(ByVal sender As Object, ByVal e As _
ProcessDataCompletedEventArgs)
Try
ProcessResult(e.Result)
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
End Sub
D. Register the following method with the proxy object to receive the notification of completion.
Sub ServiceCompleted(ByVal sender As Object, ByVal e As _
ProcessDataCompletedEventArgs)
If Not e.Error Is Nothing Then
LogMessage(e.Error.Message)
Else
ProcessResult(e.Result)
End If
End Sub
Answer: D
13. A file named Util.asmx contains the following code segment. (Line numbers are included for reference only.)
01 <%@ WebService Language="VB" Class="Util" %>
02 Public Class Util
03 Public Function GetData() As String
04 Return "data"
05 End Function
06 End Class
You need to expose the GetData method through a Web service.
What should you do?
¡¡A. Insert the following line of code between lines 01 and 02. <System.Web.Services.WebService()>_
¡¡B. Insert the following line of code between lines 02 and 03. Inherits System.Web.Services.WebService
¡¡C. Insert the following line of code between lines 02 and 03. <System.Web.Services.WebMethod()>_
D. Replace line 01 with the following line of code.
<%@ WebService Language="VB" Class="System.Web.Services.WebService" %>
Answer: C
14. A Web service returns a Node object X that references Node object Y. Node object Y also references Node object X. When the Web service method is called in a way that returns Node object X, the following exception is thrown.
System.InvalidOperationException: A circular reference was
detected while serializing an object of type Node.
You need to ensure that the Web service method runs without generating the exception. Your code must preserve the circular reference between the Node objects.
What should you do?
A. Add the following attribute to the Web service method.
¡¡<SoapRpcMethod(Use:=SoapBindingUse.Literal)>
B. Add the following attribute to the Web service method.
¡¡<SoapRpcMethod(Binding:="Encoded")>
C. Add the following attribute to the Web service method.
¡¡<SoapRpcMethod(Use:=SoapBindingUse.Encoded)>
D. Add the following attribute to the Web service method.
<SoapRpcMethod(Binding:="Literal")>
Answer: C




