PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-486 (update December 26st, 2014)

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

Which code segment should you use to configure the route?

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

An advertising campaign was recently launched. Some of the ads contain a link to products
that no longer exist or have IDs that have changed. You need to ensure that all product links
display a product. Which code segment should you use to configure the route?

You need to modify the application to meet the productId requirement

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

You need to modify the application to meet the productId requirement. What should you do?

You need to implement the business requirements for managing customer data

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

You need to implement the business requirements for managing customer data. What
should you do? (Each correct answer presents part of the solution. Choose all that apply.)

Which method should you add to MvcApplication?

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

When users attempt to retrieve a product from the product page, a run-time exception occurs
if the product does not exist. You need to route the exception to the CustomException.aspx
page. Which method should you add to MvcApplication?

Which code segment should you use to update the controller?

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

You updated the web.config file with the HTTP run-time value required to display an
alternative version of the site. You need to ensure that the correct page displays to the
users. Which code segment should you use to update the controller?

Which line of code should you use?

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

You need to implement client-side animations according to the business requirements.
Which line of code should you use? (Each correct answer presents a complete solution.
Choose all that apply.)

Which line of code should you use?

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

You need to implement client-side animations according to the business requirements.
Which line of code should you use? (Each correct answer presents a complete solution.
Choose all that apply.)

Which SessionState mode should you use?

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

You need to configure session storage in the web.config file to meet the technical
requirements for scalability. Which SessionState mode should you use? (Each correct
answer presents a complete solution. Choose all that apply.)

Which code segment should you use?

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

You need to update the routes to ensure that a product is always displayed on the product
page. Which code segment should you use?

Which code segment should you use?

###BeginCaseStudy###
Case Study: 2
Scenario 2
Background
You are developing an online shopping web application.
Business Requirements
• A user is not required to provide an email address. If a user enters an email
address, it must be verified to be a valid email address.
• Information about the first product on the product page must fade out over
time to encourage the user to continue browsing the catalog.
• Administrators must be able to edit information about existing customers.
• Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
• The web store application is in a load-balanced web farm. The load balancer
is not configured to use server affinity.
• The web store application is an ASP.NET MVC application written in Visual
Studio 2012.
• Products:
• The value of the productId property must always be greater than 0.
• The Products page for mobile devices must display to mobile users. The
Products page for desktop devices must display to desktop users.
Storage:
• The data must be stored in a serialized XML data format.
• Serialized objects must be schema-independent.
Exception handling:
• Exceptions originating from IIS must display a page with support contact
information.
• Some page links expire, and users who access these links encounter 404
errors.
• Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
• The application must support image format conversions from .bmp to .jpeg for
mobile devices.
• The application must support image format conversions from .bmp to .png for
desktop devices.
Application Structure


###EndCaseStudy###

The GetDealPrice method must be called by using Ajax. You need to get the price of a
product by using the GetDealPrice method of the ProductController. Which code segment
should you use? (Each correct answer presents a complete solution. Choose all that apply.)


Page 6 of 7« First...34567