GSSP-.NET GIAC GIAC Secure Software Programmer - C#.NET

Loading demo links...

Showing 19–20 of 20 questions

Question 19 (Volume B)

You work as a Web Application Developer for ABC Inc. The company uses Visual Studio

.NET as its application development platform. You create a Web application using .NET Framework 2.0. The application is for members only. The behavior of the Web application varies according to the role of the user. The Web application uses the ASP.NET Membership control for creation of user accounts. You are required to find out whether a user is a member of a specific role. What will you do?

Select an option, then click Submit answer.

  • Pass the role names to the User.IsInRole method.

  • Pass the user names and passwords to the Membership.ValidateUser method.

  • Pass the role names to the Roles.RoleExists method.

  • Pass the user names to the User.IsUserInRole method.


Question 20 (Volume B)

You work as an Enterprise Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a logging utility class using .NET Framework 3.5. The utility class writes logs to event log services. You are required to ensure that the client applications that use the utility class can create an instance of the utility class only if they have access rights to write to the event log services.

What will you do?

Select an option, then click Submit answer.

  • Use role based security in the class constructor.

  • Use declarative security check on the assembly.

  • Use role based security on the class.

  • Use code access security on the class.