PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding.
New audit requirements dictate that callers must be authenticated on every call to ensure that their credentials have not been revoked.
You need to ensure that the service will not cache the security request token. What should you do?

Which code segment should you insert at line 02?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
You use the ADO.NET Entity Framework to model entities. You write the following code segment.
(Line numbers are included for reference only.)

01 AdventureWorksEntities context = new AdventureWorksEntities(“http://localhost:1234/AdventureWorks.svc”);
02 …
03 var q = from c in context.Customers
04 where c.City == “London”
05 orderby c.CompanyName
06 select c;

You need to ensure that the application meets the following requirements:
* Compares the current values of unmodified properties with values returned from the data source.
* Marks the property as modified when the properties are not the same.
Which code segment should you insert at line 02?

Which two approaches should you recommend?

You are designing an ASP.NET Web application for online image editing.
Users can upload images to the Web application and edit those images by using utilities provided by the application.
Some utilities are processor intensive and should be offloaded to a Graphics Processing Unit (GPU).
Other utilities require the use of proprietary algorithms that must be performed on the server.
You need to design a solution for minimizing bandwidth usage and Web server response times during image processing, while providing a responsive application.
Which two approaches should you recommend?
(Each correct answer presents part of the solution. Choose two.)

Which code segment should you insert at line 02?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. The application uses the ADO.NET Entity Framework to model entities.
The database includes objects based on the exhibit.
The application includes the following code segment. (Line numbers are included for reference only.)

01 using (AdventureWorksEntities context = new AdventureWorksEntities()){
02 …
03 foreach (SalesOrderHeader order in customer.SalesOrderHeader){
04 Console.WriteLine(String.Format(“Order: {0} “, order.SalesOrderNumber));
05 foreach (SalesOrderDetail item in order.SalesOrderDetail){
06 Console.WriteLine(String.Format(“Quantity: {0} “, item.Quantity));
07 Console.WriteLine(String.Format(“Product: {0} “, item.Product.Name));
08 }
09 }
10 }

You want to list all the orders for a specified customer. You need to ensure that the list contains the following fields:
* Order number
* Quantity of products
* Product name
Which code segment should you insert at line 02?

Which code segment should you insert at line 02?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Forms application.
You plan to deploy the application to several shared client computers. You write the following code segment.
(Line numbers are included for reference only.)

01 Configuration config = ConfigurationManager.OpenExeConfiguration(exeConfigName);
02 …
03 config.Save();
04 …

You need to encrypt the connection string stored in the .config file. Which code segment should you insert at line 02?