PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which two actions should you perform?

You are creating an ASP.NET Web application that uses the SqlMembershipProvider. You plan to test
locally and deploy to multiple production servers. You need to ensure that each deployed
application accesses the same production database in Microsoft SQL Server. Which two actions
should you perform? (Each correct answer presents part of the solution. Choose two.)

You need to restrict the collection of WMI data to a privileged account

You create a Windows Communication Foundation (WCF) service. It is deployed on
Microsoft Internet Information Services (IIS) with an application pool running as Network

Service. You enable WMI tracing before launching the service. Your IT support staff adds
WMI data collection through ASP.NET WMI tracing. You need to restrict the collection of
WMI data to a privileged account. What should you do in WMI Control in the Computer
Management console?

Which code segment should you use to retrieve the claim for validation?

You are creating a Windows Communication Foundation (WCF) service that uses
claims-based authorization. The following code retrieves the correct claim set. var claims =
ServiceSecurityContext.Current. AuthorizationContext.ClaimSets[0]; You need to validate
that the requesting client application has included a valid DNS value in the claim. Which
code segment should you use to retrieve the claim for validation?

Which code segment should you use?

You are creating an application that consumes a Windows Communication Foundation
(WCF) service. The service implements the IService contract. The client application
contains the CallbackHandler class, which implements IServiceCallback. You need to
ensure that a client proxy is created that can communicate with the service over a duplex
channel. Which code segment should you use?

You need to ensure that the application shows the Order and Customer entities and hides all other entities

You are developinASP.NETg an Dynamic Data Web application. The application uses entities from a
global library named Entities. The Application_Start event contains the following code segment.
DefaultModel.RegisterContect(typeof)(Entities.MyDBDataContext), new ContextConfiguration() {
ScaffoldAllTables = false }); You need to ensure that the application shows the Order and Customer
entities and hides all other entities.
What should you do?

You need to ensure that the page generates the appropriate database query.

You are developing an ASP.NET Web page.
The page includes the following EntityDataSource control.
<asp:EntityDataSource ID=”EntityDataSource1″ runat=”server”
ConnectionString=”name=AdventureWorksEntities”
DefaultContainerName=”AdventureWorksEntities” EnableFlattening=”False”
EntitySetName=”Products” />
The page must filter the data that is not displayed in a grid based on a querry string paramater
named Product whose ProductName starts with the querry string value. You need to ensure that the
page generates the appropriate database query.