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 testing strategy should you recommend?
You are developing a Windows Presentation Foundation (WPF) application. You need to recomend a testing strategy to identify the additional hardware resources that are necessary to support future projected growth.
Which testing strategy should you recommend?
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.)
What should you do?
The endpoint of a Windows Communication Foundation (WCF) service uses basicHttpBinding for its binding.
Your company’s policies have changed to require that messages not be sent in clear text.
You must ensure that all messages are encrypted when traveling across the network. 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.
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 type of testing should you perform on the application?
The application includes multiple Windows Workflow Foundation (WF) hosts along with thousands of instances.
The application will continue to execute over extended periods of time. You need to ensure that the performance of the application does not degrade over extended periods of time.
Which type of testing should you perform on the application?
Which approach should you recommend?
You are designing an ASP.NET Web application.
The Web application uses a Menu control to display either a menu of public and private pages to authorized users or a menu of only public pages to visitors.
You need to ensure that the menu options and URLs of the private pages are not available to unauthorized users.
Which approach should you recommend?
Which binding element should you use?
You are using Windows Communication Foundation (WCF) to create a service.
You need to implement a custom message-level security binding element. Which binding element should you use?
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?