Which service behavior should you use to authorize the calls?
A Windows Communication Foundation (WCF) service uses a list of application-defined roles for operations.
These roles are stored in a database. You need to authorize calls against the list of roles retrieved from the database.
Which service behavior should you use to authorize the calls?
Which code segment should you insert at line 06?
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. You create a DataSet object in the application.
You add two DataTable objects named App_Products and App_Categories to the DataSet.
You add the following code segment to populate the DataSet object.
(Line numbers are included for reference only.)
01 public void Fill(SqlConnection cnx, DataSet ds)
02 {
03 var cmd = cnx.CreateCommand();
04 cmd.CommandText = “SELECT * FROM dbo.Products; ” + “SELECT * FROM dbo.Categories”;
05 var adapter = new SqlDataAdapter(cmd);
06 …
07 }
You need to ensure that App_Products and App_Categories are populated from the dbo.Products and dbo.Categories database tables.
Which code segment should you insert at line 06?
Where should you install the trusted publisher certificate?
You are developing a Windows Presentation Foundation (WPF) application. The application will run in a partially trusted sandbox. You plan to deploy the application on client computers by using the Click Once deployment technology. You plan to sign the deployment and application manifest by using a trusted publisher certificate. You need to ensure that the following requirements are met:
Users are not prompted for elevated permissions during application deployment The application can request elevated permissions at runtime Where should you install the trusted publisher certificate?
What should you use?
You are designing an ASP.NET Web application. You have the following requirements:
– The application must be usable in partially connected scenarios.
– Data that is entered into the application offline must be synchronized with the server the next time the application is online.
You need to design the application to meet the requirements.
What should you use?
Which two actions should you perform?
You are creating a Windows Communication Foundation (WCF) service that accepts claims-based tokens.
You need to ensure that the service can use claims from trading partners even though there are variations on naming for the same elements.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which code segment should you insert at line 07?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server 2008 database. The database includes a table named dbo.Documents
that contains a column with large binary data. You are creating the Data Access Layer (DAL).
You add the following code segment to query the dbo.Documents table. (Line numbers are included for reference only.)
01 public void LoadDocuments(DbConnection cnx)
02 {
03 var cmd = cnx.CreateCommand();
04 cmd.CommandText = “SELECT * FROM dbo.Documents”;
05 …
06 cnx.Open();
07 …
08 ReadDocument(reader);
09 }
You need to ensure that data can be read as a stream. Which code segment should you insert at line 07?
What should you do?
You are packaging updates for multiple Windows Presentation Foundation (WPF) applications. Updates to the applications and to third-party control files are available. Updates to the applications have dependencies upon updates to the third-party control files. An update script is run at logon that allows only a single command to be executed. You need to package the application updates and updates to the third-party controls to ensure that they are successfully installed.
What should you do?
Which approach should you recommend?
You need to design a solution for calling a server-side method of the code-behind file from JavaScript.
Which approach should you recommend?
What are two possible properties you can use to achieve this goal?
A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP binding with a custom principal permission mode.
The binding requires users to provide their Windows logon credentials. You need to retrieve the identity of the caller.
What are two possible properties you can use to achieve this goal? (Each correct answer presents a complete solution Choose two)
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication Foundation (WCF) Data Services service.
The service connects to a Microsoft SQL Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 Web server.
The application works correctly in the development environment. However, when you connect to the service on
the production server, attempting to update or delete an entity results in an error.
You need to ensure that you can update and delete entities on the production server. What should you do?