PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you recommend?

You are modifying an existing Windows Presentation Foundation (WPF) application that uses .NET Framework 4. The WPF application uses a wizard to capture data and insert the data into a database. The database includes one parent table and many child tables.

Inserting captured data in the database locks many database tables and delays application access.

You have the following requirements:
Reduce delays when saving data.
Ensure that other application users are not blocked from reading data. Ensure that captured data is available only after all child tables are updated.

You need to recommend an approach for inserting captured data into the database.

What should you recommend?

Which code segment should you write in the constructor of the MainWindow class?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The
application has a window named MainWindow that has a StackPanel control named sp as the root element.
You want to create a Button control that contains a TextBlock control with the “Save” Text property.
You need to create the control dynamically and add the control to sp.
Which code segment should you write in the constructor of the MainWindow class?

Which behavior should you configure and apply to the service?

A Windows Communication Foundation (WCF) service interacts with the database of a workflow engine.
Data access authorization is managed by the database, which raises security exceptions if a user is unauthorized to access it.
You need to ensure that the application transmits the exceptions raised by the database to the client that is calling the service.
Which behavior should you configure and apply to the service?

What should you do?

You are analyzing an application that uses Microsoft .NET Framework 4 and Microsoft SQL Server 2008.

The application is used to maintain an inventory database and is accessed from several remote Windows client applications. The application frequently updates multiple rows in a database table by using a DbDotoAdopter object.

Users report that the application runs slowly during peak business hours.

When large number of records are changed by multiple users, you discover the following:
The CPU utilization of the client applications is normal.
The network utilization increases slightly.
The CPU utilization of the database server remains close to the normal average for a day.

You need to resolve the performance issue.

What should you do?

What should you do?

A Windows Communication Foundation (WCF) application exposes a service as a SOAP endpoint for consumption by cross-platform clients.
During integration testing, you find that one of the clients is not generating the correct messages to the WCF application.
In order to debug the issue and fix the communication, you need to configure the service to log messages received from the client.
What should you do?

Which code segment should you insert at line 03?

You use Microsoft .NET Framework 4 to create a Windows Forms application.
You write the following code segment. (Line numbers are included for reference only.)
01sealed class FormSettings :
ApplicationSettingsBase
02{
03
04public String Description
05{
06get { return (String)this[“Description”]; }
07set { this[“Description”] = value;}
08}
09}
You need to ensure that the first time each user opens the application, a text field displays the following message: “Please enter your setting.”
Which code segment should you insert at line 03?

What should you do?

You upgrade a Windows Forms application to Microsoft .NET Framework 4. The application was developed
by using a previous version of the .NET Framework. The application uses the Code
Access Security (CAS) policy for file access.
When the application is executed, you receive the following exception:
“NotSupportedException: This method uses CAS policy, which has been obsoleted by the .NET Framework.”
You need to resolve the error.
What should you do?