PrepAway - Latest Free Exam Questions & Answers

Category: 70-486 (v.1)

Exam 70-486: Developing ASP.NET MVC 4 Web Applications (update September 1st, 2014)

Which of the following actions should you take?

Topic 2, Scenario 2
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC online retail web
application.
Business Prerequisites
The entering of user e-mail addresses should not be compulsory. In the event that a user does
provide an e-mail address, the validity of the address should be authenticated. To motivate users
to keep on browsing the item list, you have to make sure that the first item on the item page
gradually disappears.
Furthermore, you have to make sure that administrators have the ability to manage current client
data, and also identify a default item on the item page.
Technical Prerequisites
General:
A load-balanced web farm, where the load balancer has not been configured to employ server
affinity, hosts the application
With regards to items, you are informed that the itemId property value should not be less than or
equal to 0. Furthermore, the Items page for mobile devices should be presented to mobile users
and the Items page for desktop computers should be presented to desktop users
Storage:
You are informed that information should be saved in a serialized XML data format, and that
serialized objects should be independent of the schema.
Exception handling:
A page showing support contact details should be presented for IIS exceptions. 404 errors
resulting from expired links cause exceptions to be thrown. Some page links expire, and users
who access these links encounter 404 errors. The WriteLog method of the Utility class should be
used to log these exceptions.
Browser and device support:
The application should allow for .bmp format images to be changed to .jpeg format images for
mobile devices, and to .png format images for desktop computers.
************************************

You have received instructions to make sure that the prerequisites with regards to the ItemId are
suitably met.
Which of the following actions should you take?

Which of the following actions should you take NEXT?

Topic 2, Scenario 2
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC online retail web
application.
Business Prerequisites
The entering of user e-mail addresses should not be compulsory. In the event that a user does
provide an e-mail address, the validity of the address should be authenticated. To motivate users
to keep on browsing the item list, you have to make sure that the first item on the item page
gradually disappears.
Furthermore, you have to make sure that administrators have the ability to manage current client
data, and also identify a default item on the item page.
Technical Prerequisites
General:
A load-balanced web farm, where the load balancer has not been configured to employ server
affinity, hosts the application
With regards to items, you are informed that the itemId property value should not be less than or
equal to 0. Furthermore, the Items page for mobile devices should be presented to mobile users
and the Items page for desktop computers should be presented to desktop users
Storage:
You are informed that information should be saved in a serialized XML data format, and that
serialized objects should be independent of the schema.
Exception handling:
A page showing support contact details should be presented for IIS exceptions. 404 errors
resulting from expired links cause exceptions to be thrown. Some page links expire, and users
who access these links encounter 404 errors. The WriteLog method of the Utility class should be
used to log these exceptions.
Browser and device support:
The application should allow for .bmp format images to be changed to .jpeg format images for
mobile devices, and to .png format images for desktop computers.
************************************

You are preparing to make sure that the prerequisites for client information management are
suitably met.
You start by configuring the Controllers folder to include a class, named Client-Controller.

Which of the following actions should you take NEXT?

Which of the following is the method you should create?

Topic 2, Scenario 2
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC online retail web
application.
Business Prerequisites
The entering of user e-mail addresses should not be compulsory. In the event that a user does
provide an e-mail address, the validity of the address should be authenticated. To motivate users
to keep on browsing the item list, you have to make sure that the first item on the item page
gradually disappears.
Furthermore, you have to make sure that administrators have the ability to manage current client
data, and also identify a default item on the item page.
Technical Prerequisites
General:
A load-balanced web farm, where the load balancer has not been configured to employ server
affinity, hosts the application
With regards to items, you are informed that the itemId property value should not be less than or
equal to 0. Furthermore, the Items page for mobile devices should be presented to mobile users
and the Items page for desktop computers should be presented to desktop users
Storage:
You are informed that information should be saved in a serialized XML data format, and that
serialized objects should be independent of the schema.
Exception handling:
A page showing support contact details should be presented for IIS exceptions. 404 errors
resulting from expired links cause exceptions to be thrown. Some page links expire, and users
who access these links encounter 404 errors. The WriteLog method of the Utility class should be
used to log these exceptions.
Browser and device support:
The application should allow for .bmp format images to be changed to .jpeg format images for
mobile devices, and to .png format images for desktop computers.
************************************

You are informed that a run-time exception takes place every time a user tries to access a nonexistent item from the item page. You are instructed to write code that creates a method that
routes the exception to the CustomException.aspx page.
Which of the following is the method you should create?

Which of the following actions should you take?

Topic 2, Scenario 2
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC online retail web
application.
Business Prerequisites
The entering of user e-mail addresses should not be compulsory. In the event that a user does
provide an e-mail address, the validity of the address should be authenticated. To motivate users
to keep on browsing the item list, you have to make sure that the first item on the item page
gradually disappears.
Furthermore, you have to make sure that administrators have the ability to manage current client
data, and also identify a default item on the item page.
Technical Prerequisites
General:
A load-balanced web farm, where the load balancer has not been configured to employ server
affinity, hosts the application
With regards to items, you are informed that the itemId property value should not be less than or
equal to 0. Furthermore, the Items page for mobile devices should be presented to mobile users
and the Items page for desktop computers should be presented to desktop users
Storage:
You are informed that information should be saved in a serialized XML data format, and that
serialized objects should be independent of the schema.
Exception handling:
A page showing support contact details should be presented for IIS exceptions. 404 errors
resulting from expired links cause exceptions to be thrown. Some page links expire, and users
who access these links encounter 404 errors. The WriteLog method of the Utility class should be
used to log these exceptions.
Browser and device support:
The application should allow for .bmp format images to be changed to .jpeg format images for
mobile devices, and to .png format images for desktop computers.
************************************

After updating the web.config file to display an alternative version of the site by configuring the
necessary HTTP run-time value, you are instructed to make sure that users are presented with
appropriate page.
Which of the following actions should you take?

Which of the following should be included in your code?

Topic 2, Scenario 2
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC online retail web
application.
Business Prerequisites
The entering of user e-mail addresses should not be compulsory. In the event that a user does
provide an e-mail address, the validity of the address should be authenticated. To motivate users
to keep on browsing the item list, you have to make sure that the first item on the item page
gradually disappears.
Furthermore, you have to make sure that administrators have the ability to manage current client
data, and also identify a default item on the item page.
Technical Prerequisites
General:
A load-balanced web farm, where the load balancer has not been configured to employ server
affinity, hosts the application
With regards to items, you are informed that the itemId property value should not be less than or
equal to 0. Furthermore, the Items page for mobile devices should be presented to mobile users
and the Items page for desktop computers should be presented to desktop users
Storage:
You are informed that information should be saved in a serialized XML data format, and that
serialized objects should be independent of the schema.
Exception handling:
A page showing support contact details should be presented for IIS exceptions. 404 errors
resulting from expired links cause exceptions to be thrown. Some page links expire, and users
who access these links encounter 404 errors. The WriteLog method of the Utility class should be
used to log these exceptions.
Browser and device support:
The application should allow for .bmp format images to be changed to .jpeg format images for
mobile devices, and to .png format images for desktop computers.
************************************

You have received instructions to apply client-side animations. You want to make sure that the
business prerequisites are suitably met.
Which of the following should be included in your code?

Which of the following should you make use of?

Topic 2, Scenario 2
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC online retail web
application.
Business Prerequisites
The entering of user e-mail addresses should not be compulsory. In the event that a user does
provide an e-mail address, the validity of the address should be authenticated. To motivate users
to keep on browsing the item list, you have to make sure that the first item on the item page
gradually disappears.
Furthermore, you have to make sure that administrators have the ability to manage current client
data, and also identify a default item on the item page.
Technical Prerequisites
General:
A load-balanced web farm, where the load balancer has not been configured to employ server
affinity, hosts the application
With regards to items, you are informed that the itemId property value should not be less than or
equal to 0. Furthermore, the Items page for mobile devices should be presented to mobile users
and the Items page for desktop computers should be presented to desktop users
Storage:
You are informed that information should be saved in a serialized XML data format, and that
serialized objects should be independent of the schema.
Exception handling:
A page showing support contact details should be presented for IIS exceptions. 404 errors
resulting from expired links cause exceptions to be thrown. Some page links expire, and users
who access these links encounter 404 errors. The WriteLog method of the Utility class should be
used to log these exceptions.
Browser and device support:
The application should allow for .bmp format images to be changed to .jpeg format images for
mobile devices, and to .png format images for desktop computers.
************************************

You have been instructed to make sure that the technical prerequisites with regards to scalability
are adequately met. To achieve this, it is necessary to access the web.config file to configure
session storage.
You want to make use of a SessionState mode that stores session state in a process that is
separate from the ASP.NET worker process or IIS application pool.
Which of the following should you make use of?

Which of the following actions should you take NEXT?

Topic 3, Scenario 3
Background
You are developing a service that allows for the direct digital-to-digital data conversion of one
encoding to another. Users currently employs the service for the uploading of audiovisual media
files for conversion to different formats, as well as for the viewing of the converted files.
Business Requirements
The client-side section of the application has been created as an ASP.NET MVC application using
Visual Studio 2012. The client-side of the application allows for the uploading of audiovisual media
and the planning of transcoding by administrators. Furthermore, administrators and users are
allowed to download the audiovisual medias that have gone through the direct digital-to-digital
data conversion process.
Metadata is attached to uploaded audiovisual medias for identification purposes. As soon as the
audiovisual media upload is complete, this metadata is collected by a single system.
User computers must have Microsoft Internet Explorer 7 installed, as a minimum.
The application excludes a header that can be viewed on all pages. The header has been
configured to display links to administrative functions for users logged in as administrators. A
cookie, which is configured on the server, supplies this data. In the event of an error condition
existing, the administrative links should not be displayed.
Technical Requirements
User Experience:
Users are able to scrutinize a list of audiovisual medias via the front-end web application. The
presented page is configured as the application’s principal view. Every request causes the HTML
elements, other than the list of audiovisual medias, to change. This, in turn, causes the page to
reload.
Compatibility:
Some user browsers, which do not support the HTTP DELETE verb, sends a POST request with
an HTTP header of X-Delete when the expected operation is to delete.
Transcoding:
A set of Windows Azure worker roles has been configured for transcoding purposes. A third-party
command line tool must be installed for transcoding. The path to the utility is hosted by an
Environment variable, subsequent to tool installation. The license key is included in a variable,
named license. When the utility is not in use, it has to be unregistered. Furthermore, a substantial
quantity of resources is consumed by the utility.
At any given time, the utility can have ten instances of the utility running, at most. An instance of
the role must allow other roles to process the additional audiovisual media that it cannot.
Errors are logged to a Logs directory under the utilities path by the utility.
Performance information is collected by a local Azure directory resource, named perf.
Development:
Errors generated by the utility must be examined by developers via Microsoft Remote Desktop
Protocol (RDP). This functionality has been provided by the creation of an x509 certificate that has
been distributed to the developers. Only RDP must be used by developers for this function.
**********************************

You have been instructed to make sure that developers have the ability to access a Windows
Azure role via RDP.
You start by exporting a certificate with a private key.
Which of the following actions should you take NEXT?

Which of the following is a property that should be included in your code?

Topic 3, Scenario 3
Background
You are developing a service that allows for the direct digital-to-digital data conversion of one
encoding to another. Users currently employs the service for the uploading of audiovisual media
files for conversion to different formats, as well as for the viewing of the converted files.
Business Requirements
The client-side section of the application has been created as an ASP.NET MVC application using
Visual Studio 2012. The client-side of the application allows for the uploading of audiovisual media
and the planning of transcoding by administrators. Furthermore, administrators and users are
allowed to download the audiovisual medias that have gone through the direct digital-to-digital
data conversion process.
Metadata is attached to uploaded audiovisual medias for identification purposes. As soon as the
audiovisual media upload is complete, this metadata is collected by a single system.
User computers must have Microsoft Internet Explorer 7 installed, as a minimum.
The application excludes a header that can be viewed on all pages. The header has been
configured to display links to administrative functions for users logged in as administrators. A
cookie, which is configured on the server, supplies this data. In the event of an error condition
existing, the administrative links should not be displayed.
Technical Requirements
User Experience:
Users are able to scrutinize a list of audiovisual medias via the front-end web application. The
presented page is configured as the application’s principal view. Every request causes the HTML
elements, other than the list of audiovisual medias, to change. This, in turn, causes the page to
reload.
Compatibility:
Some user browsers, which do not support the HTTP DELETE verb, sends a POST request with
an HTTP header of X-Delete when the expected operation is to delete.
Transcoding:
A set of Windows Azure worker roles has been configured for transcoding purposes. A third-party
command line tool must be installed for transcoding. The path to the utility is hosted by an
Environment variable, subsequent to tool installation. The license key is included in a variable,
named license. When the utility is not in use, it has to be unregistered. Furthermore, a substantial
quantity of resources is consumed by the utility.
At any given time, the utility can have ten instances of the utility running, at most. An instance of
the role must allow other roles to process the additional audiovisual media that it cannot.
Errors are logged to a Logs directory under the utilities path by the utility.
Performance information is collected by a local Azure directory resource, named perf.
Development:
Errors generated by the utility must be examined by developers via Microsoft Remote Desktop
Protocol (RDP). This functionality has been provided by the creation of an x509 certificate that has
been distributed to the developers. Only RDP must be used by developers for this function.
**********************************

You have been instructed to maximize performance for users who download audiovisual media via

HTTP clients that support different content encodings by configuring caching on the
DownloadAudiovisualMedia action.
You want to write code to include the necessary attribute.
Which of the following is a property that should be included in your code?

Which of the following actions should you take?

Topic 3, Scenario 3
Background
You are developing a service that allows for the direct digital-to-digital data conversion of one
encoding to another. Users currently employs the service for the uploading of audiovisual media
files for conversion to different formats, as well as for the viewing of the converted files.
Business Requirements
The client-side section of the application has been created as an ASP.NET MVC application using
Visual Studio 2012. The client-side of the application allows for the uploading of audiovisual media
and the planning of transcoding by administrators. Furthermore, administrators and users are
allowed to download the audiovisual medias that have gone through the direct digital-to-digital
data conversion process.
Metadata is attached to uploaded audiovisual medias for identification purposes. As soon as the
audiovisual media upload is complete, this metadata is collected by a single system.
User computers must have Microsoft Internet Explorer 7 installed, as a minimum.
The application excludes a header that can be viewed on all pages. The header has been
configured to display links to administrative functions for users logged in as administrators. A
cookie, which is configured on the server, supplies this data. In the event of an error condition
existing, the administrative links should not be displayed.
Technical Requirements
User Experience:
Users are able to scrutinize a list of audiovisual medias via the front-end web application. The
presented page is configured as the application’s principal view. Every request causes the HTML
elements, other than the list of audiovisual medias, to change. This, in turn, causes the page to
reload.
Compatibility:
Some user browsers, which do not support the HTTP DELETE verb, sends a POST request with
an HTTP header of X-Delete when the expected operation is to delete.
Transcoding:
A set of Windows Azure worker roles has been configured for transcoding purposes. A third-party
command line tool must be installed for transcoding. The path to the utility is hosted by an
Environment variable, subsequent to tool installation. The license key is included in a variable,
named license. When the utility is not in use, it has to be unregistered. Furthermore, a substantial
quantity of resources is consumed by the utility.
At any given time, the utility can have ten instances of the utility running, at most. An instance of
the role must allow other roles to process the additional audiovisual media that it cannot.
Errors are logged to a Logs directory under the utilities path by the utility.
Performance information is collected by a local Azure directory resource, named perf.
Development:
Errors generated by the utility must be examined by developers via Microsoft Remote Desktop
Protocol (RDP). This functionality has been provided by the creation of an x509 certificate that has
been distributed to the developers. Only RDP must be used by developers for this function.
**********************************

You have received instructions to create a new a new authentication strategy. The new strategy
must make use of an HTTP header value. Furthermore, you are informed that the operation of the
current authentication strategy should not be disrupted.
After creating the new strategy, you are required to apply it.
Which of the following actions should you take? (Choose all that apply.)

Which of the following actions should you take?

Topic 3, Scenario 3
Background
You are developing a service that allows for the direct digital-to-digital data conversion of one
encoding to another. Users currently employs the service for the uploading of audiovisual media
files for conversion to different formats, as well as for the viewing of the converted files.
Business Requirements
The client-side section of the application has been created as an ASP.NET MVC application using
Visual Studio 2012. The client-side of the application allows for the uploading of audiovisual media
and the planning of transcoding by administrators. Furthermore, administrators and users are
allowed to download the audiovisual medias that have gone through the direct digital-to-digital
data conversion process.
Metadata is attached to uploaded audiovisual medias for identification purposes. As soon as the
audiovisual media upload is complete, this metadata is collected by a single system.
User computers must have Microsoft Internet Explorer 7 installed, as a minimum.
The application excludes a header that can be viewed on all pages. The header has been
configured to display links to administrative functions for users logged in as administrators. A
cookie, which is configured on the server, supplies this data. In the event of an error condition
existing, the administrative links should not be displayed.
Technical Requirements
User Experience:
Users are able to scrutinize a list of audiovisual medias via the front-end web application. The
presented page is configured as the application’s principal view. Every request causes the HTML
elements, other than the list of audiovisual medias, to change. This, in turn, causes the page to
reload.
Compatibility:
Some user browsers, which do not support the HTTP DELETE verb, sends a POST request with
an HTTP header of X-Delete when the expected operation is to delete.
Transcoding:
A set of Windows Azure worker roles has been configured for transcoding purposes. A third-party
command line tool must be installed for transcoding. The path to the utility is hosted by an
Environment variable, subsequent to tool installation. The license key is included in a variable,
named license. When the utility is not in use, it has to be unregistered. Furthermore, a substantial
quantity of resources is consumed by the utility.
At any given time, the utility can have ten instances of the utility running, at most. An instance of
the role must allow other roles to process the additional audiovisual media that it cannot.
Errors are logged to a Logs directory under the utilities path by the utility.
Performance information is collected by a local Azure directory resource, named perf.
Development:
Errors generated by the utility must be examined by developers via Microsoft Remote Desktop
Protocol (RDP). This functionality has been provided by the creation of an x509 certificate that has
been distributed to the developers. Only RDP must be used by developers for this function.
**********************************

You have received instructions to improve the execution of the audiovisual media transfer.

You are preparing to write the necessary code.
Which of the following actions should you take?


Page 2 of 512345