PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which configuration should you use?

You are creating an ASP.NET Web site. The site contains pages that are available to anonymous
users. The site also contains a page named Premium.aspx that provides premium content to only
members of a group named Subscribers. You need to modify the web.config file to ensure that
Premium.aspx can be accessed by only members of the Subscribers group. Which configuration
should you use?

Which code segment should you use?

You are implementing an ASP.NET Web site. The site uses a component that must be dynamically
configured before it can be used within site pages. You create a static method named
SiteHelper.Configure that configures the component. You need to add a code segment to the
Global.asax file that invokes the SiteHelper.Configure method the first time, and only the first time,
that any page in the site is requested. Which code segment should you use?

Which two actions should you perform?

You are adding a Windows Communication Foundation (WCF) service to an existing
application. The application is configured as follows. (Line numbers are included for
reference only.) 01 <configuration> 02 < system.serviceModel > 03 <services> 04 <service
name=” Contoso.Sales.StockService ” 05 behaviorConfiguration =” MetadataBehavior ” >
06 <host> 07 < baseAddresses > 08 <add baseAddress
=”http://contoso.com:8080/StockService” /> 09 </ baseAddresses > 10 </host> 11
</service> 12 </services> 13 <behaviors> 14 < serviceBehaviors > 15 <behavior name=”
MetadataBehavior “> 16 </behavior> 17 </ serviceBehaviors > 18 </behaviors> … You need
to configure the service to publish the service metadata. Which two actions should you
perform? (Each correct answer presents part of the solution. Choose two.)

Which two actions should you perform?

You create a Visual Studio 2010 solution that includes a WCF service project and an ASP.NET project.
The service includes a method named GetPeople that takes no arguments and returns an array of
Person objects. The ASP.NET application uses a proxy class to access the service. You use the Add
Service Reference wizard to generate the class. After you create the proxy, you move the service
endpoint to a different port. You need to configure the client to use the new service address. In
addition, you must change the implementation so that calls to the client proxy will return a List(Of
Person) instead of an array. Which two actions should you perform? (Each correct answer presents
part of the solution. Choose two.)

Which configuration should you use in web.config?

You use the ASP.NET Web Site template to create a Web site that will be deployed to multiple
locations. Each location will specify its SMTP configuration settings in a separate file named
smtp.config in the root folder of the Web site. You need to ensure that the configuration settings
that are specified in the smtp.config file will be applied to the Web site. Which configuration should
you use in web.config?