Which of the following is the attribute in question?

Topic 1, Scenario 1
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC application to log training
information for a cycling club.
Business Requirements
The application needs to host data regarding training dates, distances, and duration. Application
users must be able to view and modify data. The application itself should be highly accessible.
The application should also allow for times to be presented in the user’s native time.
Technical Requirements
A public class, named CyclistLog.DataAccess.CyclistLogDb, deals with database access. HTTP
GET should be used for all data retrieval. HTTP POST should be used for all data updates.
A master layout file, named \Views\Shared\_Layout.cshtml, is used by all pages in the application.
The application makes use of the \Models\LogModel.cs model.
The Razor view engine is used for all views in the application. The \Views\CyclingLog includes the
_CalculateSpeed.cshtml, EditLog.cshtml, GetLog.cshtml, and InsertLog.cshtml views. The
application, however, includes a \Views\Home\Index.cshtml view.
The controller included in the application is \Controllers\CyclingLogController.cs. You have also
included a timer.png image in the \Images folder.
When a user examines a cycling log, the user’s trail map is accessible. This map is configured as
a video and an Adobe Flash application. The browser should using H264, Ogg, or WebM formats
(in this order) to present the video natively. The Flash application should be used In the event that
the video cannot be presented.
Security:
The application should make use of forms authentication, and requires user logon for entering
information. The editing or deleting of cyclist information requires a user to be a member of the
Admin role.
Users must be members of the Admin role to.
You need to the application should be defended against cross-site request forgery. The SHA1
algorithm should be used to hash passwords.
A custom role provider must be included in CyclistLog.Providers.CyclingLogRoleProvider.es.
*************************************

You have been asked to make sure that the edit action of RunLogController is extended.
You start by writing the following lines of code:
[HttpPost]
[ActionName (“Editlog”)]
You are required to make use of a specific attribute next.
Which of the following is the attribute in question?

Topic 1, Scenario 1
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC application to log training
information for a cycling club.
Business Requirements
The application needs to host data regarding training dates, distances, and duration. Application
users must be able to view and modify data. The application itself should be highly accessible.
The application should also allow for times to be presented in the user’s native time.
Technical Requirements
A public class, named CyclistLog.DataAccess.CyclistLogDb, deals with database access. HTTP
GET should be used for all data retrieval. HTTP POST should be used for all data updates.
A master layout file, named \Views\Shared\_Layout.cshtml, is used by all pages in the application.
The application makes use of the \Models\LogModel.cs model.
The Razor view engine is used for all views in the application. The \Views\CyclingLog includes the
_CalculateSpeed.cshtml, EditLog.cshtml, GetLog.cshtml, and InsertLog.cshtml views. The
application, however, includes a \Views\Home\Index.cshtml view.
The controller included in the application is \Controllers\CyclingLogController.cs. You have also
included a timer.png image in the \Images folder.
When a user examines a cycling log, the user’s trail map is accessible. This map is configured as
a video and an Adobe Flash application. The browser should using H264, Ogg, or WebM formats
(in this order) to present the video natively. The Flash application should be used In the event that
the video cannot be presented.
Security:
The application should make use of forms authentication, and requires user logon for entering
information. The editing or deleting of cyclist information requires a user to be a member of the
Admin role.
Users must be members of the Admin role to.
You need to the application should be defended against cross-site request forgery. The SHA1
algorithm should be used to hash passwords.
A custom role provider must be included in CyclistLog.Providers.CyclingLogRoleProvider.es.
*************************************

You have been asked to make sure that the edit action of RunLogController is extended.
You start by writing the following lines of code:
[HttpPost]
[ActionName (“Editlog”)]
You are required to make use of a specific attribute next.
Which of the following is the attribute in question?

A.
The [ValueProviderCollection] attribute.

B.
The [ValidateInput] attribute.

C.
The [ValidateAntiForgeryToken] attribute.

D.
The [ValidatableObjectAdapter] attribute.



Leave a Reply 0

Your email address will not be published. Required fields are marked *