Free Microsoft 070-523 Exam Dumps Questions & Answers
| Exam Code/Number: | 070-523Join the discussion |
| Exam Name: | UPG:Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev |
| Certification: | Microsoft |
| Free Question Number: | 118 |
| Publish Date: | Aug 06, 2026 |
| # of views: | 2196 |
|
|
|
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. The application uses the following object query
to load a product from the database. (Line numbers are included for reference only.)
01using (AdventureWorksEntities advWorksContext = new AdventureWorksEntities())
02{
03ObjectQuery <Product> productQuery = advWorksContext.Product.Where("it.ProductID = 900");
04
05}
You need to log the command that the query executes against the data source. Which code segment
should you insert at line 04?
You are consuming a Windows Communication Foundation (WCF) service in an ASP.NET Web application. The service interface is defined as follows. [ServiceContract] public interface ICatalog {
[OperationContract]
[WebGet(UriTemplate = "/Catalog/Items/{id}",
ResponseFormat = WebMessageFormat.Json)]
string RetrieveItemDescription(int id); } The service is hosted at /Catalog.svc. You need to call the service using jQuery to retrieve the description of an item as indicated by a variable named itemId. Which code segment should you use?
You are designing an ASP.NET Web application for content management.
You have the following requirements:
*Support multiple languages.
*Support dynamic changes to site content.
*Provide the ability to add content to the site without making changes to files within the application directory.
You need to recommend the application's source for retrieving content.
Which source should you recommend?
You need to design a solution for capturing an exception. Which approach should you recommend?
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.)