vishaljagetia
Test por , creado hace más de 1 año

Test sobre ASP.NET Security, creado por vishaljagetia el 11/04/2016.

10
0
0
vishaljagetia
Creado por vishaljagetia hace más de 8 años
Cerrar

ASP.NET Security

Pregunta 1 de 9

1

Choose the correct option according to given statements.

Statement 1: Authentication is the process that determines the identity of a user.
Statement 2: Authorization is the process of determining whether a user is permitted access to any part of an application, or any particular resource.
Statement 3: Authorization is the process that determines the identity of a user.
Statement 4: Authentication is the process of determining whether a user is permitted access to any part of an application, or any particular resource.

Selecciona una de las siguientes respuestas posibles:

  • A) Statement 1 and Statement 2 are correct

  • B) Statement 3 and Statement 4 are correct

  • C) Statement 1 and Statement 3 are correct

  • D) Statement 2 and Statement 4 are correct

Explicación

Pregunta 2 de 9

1

How many types of authentication ASP.NET supports?

Selecciona una de las siguientes respuestas posibles:

  • A) Windows Authentication

  • B) .NET Passport Authentication

  • C) Forms Authentication

  • D) All of the above

Explicación

Pregunta 3 de 9

1

You are creating an ASP.NET application for FellowBuddy.com. The company uses Microsoft Windows authentication. All users are in the FellowBuddy domain.

You want to configure the application to use the following authorization rules:

1. Anonymous users must not be allowed to access the application.
2. All employees except Raj and Shiva must be allowed to access the application.

Which code you will apply to configure the application?

Selecciona una de las siguientes respuestas posibles:

  • A)
    <authorization>
    <deny users=” CareerRide \Raj, CareerRide \Shiva”>
    <allow users=”*”>
    <deny users=”?”>
    </authorization>

  • B)
    <authorization>
    <allow users=”*”>
    <deny users=” CareerRide \Raj, CareerRide \Shiva”>
    <deny users=”?”>
    </authorization>

  • C)
    <authorization>
    <deny users=” CareerRide \Raj, CareerRide \Shiva”>
    <deny users=”?”>
    <allow users=”*”>
    </authorization>

  • D)
    <authorization>
    <allow users=” CareerRide \Raj, CareerRide \Shiva”>
    <allow users=”*”>
    </authorization>

Explicación

Pregunta 4 de 9

1

You are creating an ASP.NET application for company CareerRide. You use form based authentication to validate users. You need to prevent unauthenticated users from accessing the application. What should you do?

Selecciona una de las siguientes respuestas posibles:

  • A) In the authorization section of the Web.config file, set the users attribute of the deny element to “?”

  • B) Set In the authorization section of the Web.config file, set the users attribute of the deny element to “*”

  • C) In the authorization section of the Machine.config file, set the users attribute to the allow element to “?”.

  • D) None of the above.

Explicación

Pregunta 5 de 9

1

Windows-Based Authentication is well suited for

Selecciona una de las siguientes respuestas posibles:

  • A) Intranet environment

  • B) Public web site

  • C) Desktop application

  • D) None of the above

Explicación

Pregunta 6 de 9

1

Which of the following Web.confi g fi les correctly enables the Web application to track the LastVisit of anonymous users in a variable of type DateTime?

Selecciona una de las siguientes respuestas posibles:

  • A)

    <anonymousIdentification enabled="true" />
    <profile>
    <properties>
    <add name="LastVisit" type="System.DateTime" allowAnonymous="true" />
    </properties>
    </profile>

  • B)

    <anonymousIdentification enabled="true" />
    <profile>
    <properties>
    <add name=" LastVisit " allowAnonymous="true" />
    </properties>
    </profile>

  • C)

    <anonymousIdentification enabled="true" />
    <profile>
    <properties>
    <add name=" LastVisit " type="System. DateTime " />
    </properties>
    </profile>

  • D)

    <profile>
    <properties>
    <add name="LastVisit" type="System. DateTime " />
    </properties>
    </profile>

Explicación

Pregunta 7 de 9

1

Which of the following controls provides a link for unauthenticated users to log on?

Selecciona una de las siguientes respuestas posibles:

  • A. Login

  • B. LoginView

  • C. LoginStatus

  • D. LoginName

Explicación

Pregunta 8 de 9

1

The following group profile properties defined under a group name in Web.config file. How will you access Street and City property?

<properties>
<group name="Address">
<add name="Street" />
<add name="City" />
</group>
</properties>

Selecciona una de las siguientes respuestas posibles:

  • A)

    - Profile.name.Street
    - Profile.name.City

  • B)

    - Profile.Address.Street
    - Profile.Address.City

  • C)

    - Address.Street
    - Address.City

  • D) None of the above.

Explicación

Pregunta 9 de 9

1

If any user has disabled cookies in their browsers, what can you do to enable them to use forms authentication?

Selecciona una de las siguientes respuestas posibles:

  • A) Set BoweserCookieEnabled=true;

  • B) Set cookieless=true;

  • C) Use the AutoDetect setting of the cookieless attribute

  • D) None of the above

Explicación