Which client application settings should you use?
You are creating a distributed application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application. The operations provided by the WCF server use the remote resources of other computers. These methods use the credentials provided by the client applications. You need to ensure that the WCF server can impersonate the client applications to access the remote resources. Which client application settings should you use?
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The development and deployment of Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com.
After receiving instruction you have just finished developing an ASP.NET Web application named WebServices. WebServices contains the Web services for each of the Domain.com clients. Microsoft Internet Information Services (IIS) 6.0 is hosting the Web application. And the Web application is configured in such a way so as to map host header names to client-specific virtual directories. Each Domain.com client has its own virtual directory. These virtual directories are located in a root virtual directory named WebServices. The following exhibit illustrates an example of the virtual directory structure:
WebSite
WebServices (Web Application)
Client A (VirtualDirectory)
WebService1.asmx
WebService2.asmx
Client B (VirtualDirectory)
WebService3.asmx
WebService4.asmx
Client C (VirtualDirectory)
WebService5.asmx
WebService6.asmx
You received further instructions to ensure that all Domain.com clients have the ability to discover all of the Web services that are implemented in the Web application for that client. You need to accomplish this task while also making provision for those Web services that is intended for future implementation. However, you also need to ensure that the Domain.com clients should not have the ability to discover implemented Web services intended for other clients.
What should you do? (Each correct answer presents part of the solution. Choose two.)
Which code segment should you use?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page named Default.aspx in the root of the application.
You add an ImageResources.resx resource file in the App_GlobalResources folder. The ImageResources.resx file contains a localized resource named LogoImageUrl.
You need to retrieve the value of LogoImageUrl. Which code segment should you use?
Which code segment should you add at line 02?
You are creating a Windows Forms application by using the .NET Framework 3.5. You
create a new form in the application. You add a ContextMenuStrip control named ctxMenu
to the form.You have a user-defined class named CustomControl.You write the following
code segment in the application. (Line numbers are included for reference only.)
01 CustomControl myControl = new CustomControl();
02 You need to ensure that an instance of CustomControl is displayed on the form as a top-
level item of thectxMenu control.
Which code segment should you add at line 02?
<?xml version="1.0"?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The development and deployment of Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com.
The following exhibit illustrates a configuration.
Exhibit:
<?xml version=”1.0″?>
<dynamicDiscovery xmlns=”urn:schemas-dynamicdiscovery:disco.2007.02.19″> <exclude path=”_vti_cnf” />
<exclude path=”_vti_pvt” />
<exclude path=”_vti_log” />
<exclude path=”_vti_script” />
<exclude path=”_vti_txt” />
<exclude path=”Web References” />
</dynamicDiscovery>
You have just added the above configuration to a new file by means of using a text editor. You need to save this file to a production server to provide the Web service discovery.
What should you do?
What should you do?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You add a Web page named HomePage.aspx in the application. The Web page contains different
controls. You add a newly created custom control named CachedControl to the Web page.
You need to ensure that the following requirements are met:
The custom control state remains static for one minute.
The custom control settings do not affect the cache settings of other elements in the Web page.
What should you do?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
The application has the following features:
Users access the application from their local computers.
Each user specifies the data file to be used for the current session at the start of the application.
You plan to design a strategy to enable users to share their data files with other users.
You need to implement the strategy to meet the following requirements:
Users can open the data file only by using a password.
Users can work on the data file only by using the application.
What should you do?
What should you do?
You are an enterprise application developer. You develop an ASP.NETapplication that interacts with a Windows service. The application and the Windows service exchange Microsoft Message Queuing (MSMQ) messages. You need to define an integration test to ensure that the application and the Windows service interact appropriately.
What should you do?
Which two actions should you perform?
You create a Windows application by using the .NET Framework 3.5.
The application uses a Microsoft SQL Server 2008 database.
You discover that the application is non-responsive and performs slowly at certain times during the day.
Twenty-five additional users are added to the application to meet a deadline.
You need to ensure that all users experience a consistent level of high application performance
throughout the day. You want to achieve this goal by using minimum development effort.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You are an enterprise application developer. You are reviewing the design of a component. The component is used to communicate with a legacy system. The component must meet the following requirements: It must handle high-latency network communications.It must accept synchronous calls from Windows and Web-based applications developed by using .NET Framework 2.0 in the local network.It must use asynchronous communications. You need to implement the design of the component.
What should you do?