PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

A Console Application calls a Web service named SessionStateService five times, sequentially.
The IncrementSessionCounter Web service method increments and returns an integer value that is held in a cookie.

(Line numbers are included for reference only.)
01 void IncrementSession5Times() {
02 SessionStateService service = null;
03 …
04 for (int i = 0; i < 5; i++) {
05 …
06 Console.WriteLine(“Loop Pass {0} – result = {1}”,
07 i,
08 service.IncrementSessionCounter());
09 }
10 }

You need to ensure that when the IncrementSession5Times method is run, the following output is displayed.

Loop Pass 0 – result = 1
Loop Pass 1 – result = 2
Loop Pass 2 – result = 3
Loop Pass 3 – result = 4
Loop Pass 4 – result = 5

What should you do?

Which node should you use?

You are creating an ASP.NET application by using the .NET Framework 3.5. The application has several subdirectories under the application root directory. Only the users who belong to an approved role can access the contents of the subdirectory. The user authorizations for the subdirectories must be stored in a single Web.config file in the application root directory. You need to ensure that the node encloses the approved roles and specifies the appropriate subdirectory.
Which node should you use?

What conclusion can you draw?

You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks.
You are currently developing a Microsoft Windows Forms application. You used Microsoft Visual Studio 2005 Team Edition for Software Developers. This Windows Forms application that you are developing, when completed will allow users to access data on the Domain.com mainframe. This data access will happen as follows: A Microsoft .NET Remoting component accesses the mainframe, and the application connects to the Remoting component via Transmission Control Protocol (TCP) channel.
You need to keep in mind that there is a performance requirement that the application should not perform excessive and unnecessary security checks. A performance monitoring solution that will be put in place will consists a measuring the Total Runtime Checks and Stack Walk Depth performance counters in the .NETCLR Security category.
You need to make a decision as to whether the monitoring solution is correct.

What conclusion can you draw?

What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

The application will be deployed to an intranet server in your organization.

You need to ensure that the application meets the following requirements:

– Users must be able to log on to the application by using their Active Directory credentials.
– Each page in the application must display controls for user name and password when accessed by an unauthenticated user.

What should you do?

What should you do?

You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks.
You are currently developing a Microsoft Windows Forms monitoring application for Domain.com. This application is destined to read data in a Microsoft SQL Server 2005 database and display it graphically on a form. All Domain.com users need to be able to:
1. choose the refresh rate for displaying data
2. choose an interval in multiples of one second
To this end you need to reuse a component to meet these requirements without requiring excessive coding.

What should you do?

What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

The application uses Forms authentication. Your company uses Active Directory.

You plan to modify the application to enable users to use their existing Active Directory account to access the application through the Internet.

You need to ensure that the application is modified by using the minimum amount of user interface changes, cost, and development effort.

What should you do?