What should you do?
. You are designing an n-tier Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. The application will replace an existing client/server application. The existing application was created by using Microsoft Visual Basic 6.0 and consists of a series of COM components that access a SQL Server database. You plan to move the existing COM components into a Windows Communication Foundation (WCF) tier. You need to ensure that the COM components can be replaced without impacting the existing user interface (UI) tier. You also need to ensure that the COM components can be replaced separately. What should you do?
Which approach should you recommend?
You need to ensure that unauthorized users do not have access to the administration pages.
Which approach should you recommend?
What should you do?
You are creating a client application and configuring it to call a Windows Communication Foundation (WCF) service.
When the application is deployed, it will be configured to send all messages to a WCF routing service.
You need to ensure that the application can consume the target service after the application is deployed.
What should you do?
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
You use Plain Old CLR objects (POCO) to model your entities.
The application communicates with a Windows Communication Foundation (WCF) Data Services service.
You need to ensure that entities can be sent to the service as XML. What should you do?
What should you do?
by using Windows Communication Foundation (WCF). Each method in the middle tier will contain the following catch block.
Catch (ArgumentNullException e) { throw e; }
When testing the application, you discover that all ArgumentNullExceptions exceptions that occur in the middle tier do not contain accurate stack trace information. You need to design the exception handling strategy for the application. What should you do?
Which approach should you recommend?
You need to design a solution for the protection of the pages in the Secured folder.
Which approach should you recommend?
Which code segment should you use?
You are developing a Windows Communication Foundation (WCF) service that contains the following operation contract.
[OperationContract]
CustomerNames GetCustomerNames();
The operation returns customer names. You need to develop a definition for the operation contract that produces XML with the following structure.
<s:Envelope xmlns:s=”http://schemas.xmlsoap.org/soap/envelope/”>
<s:Header />
<s:Body>
<Names xmlns=http://tempuri.org/
xmlns:a=”http://schemas.microsoft.com/2003/10/Serialization/Arrays”
xmlns:i=”http://www.w3.org/2001/XMLSchema-instance”>
<a:string>Customer1</a:string>
<a:string>Customer2</a:string>
<a:string>Customer3</a:string>
</Names>
</s:Body>
</s:Envelope>
Which code segment should you use?
Which two actions should you perform?
You develop a Windows Communication Foundation (WCF) service to generate reports.
Client applications call the service to initiate report generation but do not wait for the reports to be generated.
The service does not provide any status to the client applications.
The service class is defined as follows. (Line numbers are included for reference only.)
01 [ServiceContract]
02 public class ReportGeneratorService
03 {
04 …
05 private int GenerateReports(int clientID)
06 {
07 …
08 return 0;
09 }
10 }
You need to ensure that client applications can initiate reports without waiting for status.
Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)
which two procedures should you add the @productId parameter?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
You create stored procedures by using the following signatures:
CREATE procedure [dbo].[Product_Insert](@name varchar(50),@price float)
CREATE procedure [dbo].[Product_Update](@id int, @name varchar(50), @price float)
CREATE procedure [dbo].[Product_Delete](@id int)
CREATE procedure [dbo].[Order_Insert](@productId int, @quantity int)
CREATE procedure [dbo].[Order_Update](@id int, @quantity int,@originalTimestamp timestamp)
CREATE procedure [dbo].[Order_Delete](@id int)
You create a Microsoft ADO.NET Entity Data Model (EDM) by using the Product and Order entities as shown in the exhibit:
You need to map the Product and Order entities to the stored procedures. To which two procedures should you add the @productId parameter?
(Each correct answer presents part of the solution. Choose two.)
What really should you do?
You are planning a Windows Presentation Basis (WPF) application for your organization by making use of Microsoft .Web Framework 4 and Microsoft Visual Studio 2010. The organization layer of the software is implemented by using Windows Communication Groundwork (WCF).
You plan to assistance non-repudiation and data integrity for WCF messages.
You need to style the security method for the software.
What really should you do?