What should you do?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application includes a data tier component that communicates with multiple databases. Some databases are hosted on Microsoft SQL Server 2008. Other databases are hosted on third- party database servers. The data tier component receives custom business objects from client application components. You need to ensure that the data tier component saves property values from the business objects to the databases. What should you do?
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 Microsoft.NET Remoting components forms part of your responsibilities at Domain.com.
You are currently developing a Microsoft.NET Remoting component that will be used to accept connections over a binary inter-process communication (IPC) channel. You make use of a configuration file to configure the remote host application for .NET Remoting. The component works as expected when you test the component from a client application after you have done the configuration. You then implement an event to notify client implications about any changes to the state of the component. The delegate that declares the event specifies an EventArgs-derived class named StateChangeEventArgs as its second parameter. This now results in a SecurityException instance being invoked when a client application attempts to attach a delegate to the event. This SecurityException instance is thrown with the following message:
Type System.DelegateSerializationHolder and the types derived from it (such as SystemDelegateSerializationHolder) are not permitted to be serialized at this security level.
You need to prevent this exception from being thrown.
What should you do?
What should you do?
You have a new OS design that uses a flash storage device. You add the Catalog items for the flash storage device and the file system to the OS design. You need to mount the flash storage device as the root of the file system. What should you do?
Which code fragment should you use?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes an ASMX Web service.
The Web service is hosted at the following URL.
http://www.contoso.com/TemperatureService/Convert.asmx
You need to ensure that the client computers can communicate with the service as part of the <system.serviceModel> configuration.
Which code fragment should you use?
override method should you use?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You derive a new validation control from the BaseValidator class.The validation
logic for the control is implemented in the Validate method in the following manner.
protected static bool Validate(string value) {
…
}
You need to override the method that validates the value of the related control. Which
override method should you use?
You need to ensure that the ProcessString method can be invoked from a Web browser by using the URL http://loc
You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.)
01 public interface IMyService
02 {
04 string ProcessString(string name);
05 }
You create a host for the WCF service.
You also create a service endpoint at http://localhost:8080/service.
You add an instance of the HttpTransferEndPointBehavior class to the host.
You need to ensure that the ProcessString method can be invoked from a Web browser by using the URL http://localhost:8080/service/process?name=value
Which code segment should you insert at line 03?
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 creation, configuration and deployment of Remoting applications form part of your responsibilities at Domain.com.
You have just completed developing a Microsoft.NET Remoting component that will be used by applications within Domain.com. Microsoft Internet Information Services (IIS) 6.0 will be hosting the component. You need to specify a channel and formatter to use so that successful communication can take place between the applications and the remote component.
What should you do?
What should you do first?
You need to extend the functionality of an existing Catalog item. The new functionality must not affect OS designs that already use the Catalog item. What should you do first?
What should you do?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application.
You write the following code fragment.
<asp:FormView DataSourceID=”ObjectDataSource1″
DataKeyNames=”PhotoID” runat=”server”>
<EditItemTemplate>
<asp:TextBox Text='<%# Bind(“Caption”) %>’ runat=”server”/>
<asp:Button Text=”Update” CommandName=”Update”
runat=”server”/>
<asp:Button Text=”Cancel” CommandName=”Cancel”
runat=”server”/>
</EditItemTemplate>
<ItemTemplate>
<asp:Label Text='<%# Eval(“Caption”) %>’ runat=”server” />
<asp:Button Text=”Edit” CommandName=”Edit” runat=”server”/>
</ItemTemplate>
</asp:FormView>
When you access the Web page, the application throws an error.
You need to ensure that the application successfully updates each caption and stores it in the database.
What should you do?
What should you do?
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET. The application connects to a Microsoft SQL Server 2005 database.The
connection string of the application is defined in the following manner.
“Server=Prod; Database=WingtipToys;Integrated Security=SSPI;Asynchronous
Processing=true”
The application contains the following code segment. (Line numbers are included for
reference only.)
01 protected void UpdateData(SqlCommand cmd) {
02 cmd.Connection.Open();
03
04 lblResult.Text = “Updating …”;
05 }
The cmd object takes a long time to execute.You need to ensure that the application
continues to execute while cmd is executing. What should you do?