PrepAway - Latest Free Exam Questions & Answers

What will you do to accomplish this?

You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You create an ASP.NET Web application using .NET Framework 4.0.
The ASP.NET application is used to track employee performance.
It uses Microsoft Windows authentication.
Employees are members of a group named Employees.
Managers are members of a group named Managers.
The root folder of the application is named Details.
The Details folder displays information about employees‘ performance.
The Details folder has a subfolder named MoreDetails.
You need to ensure that employees and managers can access pages stored in the Details folder.
However, only managers can access pages stored in the MoreDetails folder.
You make the following entries in the Web.config filein the Details folder.
(Line numbers are given for reference only.)
1 <authentication mode=”Windows” / >
2 <authorization>
3 <allow roles=”Employees, Managers” / >
4 <deny users=”*” />
5 </authorization>
You make the following entries in the Web.config filein the MoreDetails folder.
(Line numbers are given for reference only.)
1 <authentication=”Windows” />
2 <authorization>
3 <allow roles=”Managers” />
4 <deny users=”*” />
5 </authorization>
When managers try to access pages stored in the MoreDetails folder, they receive the following error
message:
“An error occurred during the processing of a configuration file required to service this request.”
You must ensure that managers are able to access pages stored in the MoreDetails folder.
What will you do to accomplish this?

PrepAway - Latest Free Exam Questions & Answers

A.
Add the following directive between line 1 and line 2 in the Web.config file in the MoreDetails folder:
<identity impersonate=”false” />

B.
Modify line 4 in the Web.config file in the MoreDetails folder as follows:
<allow users=”*” />

C.
Add the following directive between line 1 and line 2 in the Web.config file in the MoreDetails folder:
<identity impersonate=”true” />

D.
Replace line 1 in the Web.config file in the MoreDetails folder with
<authentication mode=”Windows” />

E.
Add the following directive between line 1 and line 2 in the Web.config file in the Details folder:
<identity impersonate=”true” />


Leave a Reply