70-486 Premium Bundle

70-486 Premium Bundle

Developing ASP.NET MVC 4 Web Applications Certification Exam

4.5 
(3300 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-486 Free Practice Questions

Q1. - (Topic 4) 

You are developing a new ASP.NET MVC application that will be hosted on Microsoft Azure. You need to implement caching. 

The caching solution must support the following: 

The cache must be able to store out-of-process ASP.NET session state. 

The cache must be able to store a variety of data types. 

The cache must offer a large amount of space for cached content. 

You must be able to share output cache content across web server instances. 

You need to select a cache solution. 

Which caching solution should you choose? 

A. ASP.NET Caching 

B. Azure In-Role Cache 

C. Azure Redis Cache 

D. Azure Managed Cache Service 

Answer:

Reference: How to Use Azure Redis Cache 

https://azure.microsoft.com/sv-se/documentation/articles/cache-dotnet-how-to-use-azure-redis-cache/ 

Q2. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application in a web farm. The application has a page that accepts a customer’s order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information. 

The order information should be available only to the page where the order is displayed. 

You need to store state and configure the application. 

What should you do? To answer, drag the appropriate item to the correct location. Each item may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. 

Answer:  

Q3. - (Topic 4) 

You are designing a localized ASP.NET application to support multiple cultures. You need to ensure that the application can be displayed in several languages. How should you implement this feature? 

A. Use a resource (.resx) file. 

B. Include language-specific content in the assembly manifest. 

C. Use Systems.Collections.Generics.Dictionary to store alternative translations. 

D. Ensure that all strings are marked internal. 

Answer:

Q4. - (Topic 4) 

You are developing an ASP.NET MVC application in Visual Studio 2012. The application supports multiple cultures. 

The application contains three resource files in the Resources directory: 

ProductDictionary.resx 

ProductDictionary.es.resx 

ProductDictionary.fr.resx 

Each file contains a public resource named Currency with the localized currency symbol. 

The application is configured to set the culture based on the client browser settings. 

The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.) 

You need to set ViewBag.LocalizedCurrency to the localized currency contained in the resource files. 

Which code segment should you add to the action at line 03? 

A. ViewBag.LocaIizedCurrency = Resources.ProductDictionary.Currency; 

B. VievBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency", new System.Globalization.CultureInfo(Men")); 

C. VievBag.LocalizedCurrency = HttpContext.GetLocalResourceObject("ProductDictionary", "Currency"); 

D. ViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency"); 

Answer:

Q5. - (Topic 4) 

You are designing an HTML5 website. 

You need to design the interface such that the content is viewable in all types of browsers, including screen readers. 

What should you do? (Each correct answer presents a complete solution. Choose all that apply.) 

A. Ensure that content elements have valid and descriptive names. 

B. Use Resource Description Framework (RDF) to describe content elements. 

C. Convert HTML forms to XForms. 

D. Use HTML5 semantic markup elements. 

E. Annotate content elements with Accessible Rich Internet Application (ARIA) attributes. 

Answer: D,E 

Q6. - (Topic 2) 

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.) 

A. StateServer 

B. InProc 

C. AutoDetect 

D. SqlServer 

Answer: A,D 

Q7. - (Topic 4) 

You are designing an HTML5 website. 

You need to design the interface to make the content of the web page viewable in all types of browsers, including voice recognition software, screen readers, and reading pens. 

What should you do? (Each correct answer presents a complete solution. Choose all that apply.) 

A. Annotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes. 

B. Convert HTML5 forms to XForms. 

C. Ensure that HTML5 content elements have valid and descriptive names. 

D. Use HTML5 semantic markup elements to enhance the pages. 

E. Use Resource Description Framework (RDF) to describe content elements throughout the entire page. 

Answer: A,D 

Q8. - (Topic 4) 

You are designing a distributed application that runs on the Microsoft Azure platform. 

The application must store a small amount of insecure global information for all users that 

does not change frequently. 

You need to configure the application to meet the requirements. 

Which server-side state management option should you use? Each correct answer presents a complete solution. Choose all that apply. 

A. profile properties of the Microsoft Azure application 

B. Microsoft Azure session state 

C. SQL Database 

D. Microsoft Azure application state 

Answer:

Explanation: In many applications, you want to store and use information that is unique to a user. When a user visits your site, you can use the information you have stored to present the user with a personalized version of your Web application. Personalizing an application requires a number of elements: you must store the information using a unique user identifier, be able to recognize users when they visit again, and then fetch the user information as needed. To simplify your applications, you can use the ASP.NET profile feature, which can perform all of these tasks for you. 

Q9. - (Topic 4) 

You are developing an application that uses many small images. 

When the images load, the application runs slowly. 

You need to improve the performance of the application. 

What should you do? 

A. Preload all the images when the application starts to ensure that the images are cached. 

B. Convert the images to ICO file format and stream all images on a single connection. 

C. Host all images on a Microsoft Azure web role with multiple instances. 

D. Combine all the images into a single image and use CSS to create sprites. 

Answer:

Explanation: Because browsers limit how many concurrent HTTP requests they make to a website, a web page with many small icon images can result in a longer load time. You can combine many small images into a single larger image - a CSS sprite - using the free ASP.NET Sprite and Image Optimization Library available from Microsoft. 

Reference: CSS Sprites and the ASP.NET Sprite and Image Optimization Library 

http://dotnetslackers.com/articles/aspnet/CSS-Sprites-and-the-ASP-NET-Sprite-and-Image-Optimization-Library.aspx 

Q10. HOTSPOT - (Topic 2) 

You need to implement the mobile device support requirements. 

How should you build the ProcessRequest method? (To answer, select the appropriate options in the answer area.) 

Answer:  

Q11. - (Topic 4) 

You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application. 

You detect performance issues when the application starts. 

You need to resolve the performance issues. 

What should you do? 

A. Implement HTTP caching in the ASP.NET MVC controllers. 

B. Combine the content files by using ASP.NET MVC bundling. 

C. Install a second IIS instance. 

D. Move the content to a Windows Azure CDN. 

Answer:

Q12. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication. 

The application must: 

. Use Windows Identity Foundation 4.5. 

. Support the Windows Azure Access Control Service. 

You need to implement authentication. 

How should you build the class constructor? (To answer, drag the appropriate code segment to the correct location or locations in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) 

Answer:  

Q13. - (Topic 2) 

You need to update the routes to ensure that a product is always displayed on the product page. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q14. HOTSPOT - (Topic 3) 

The designer for the website gave you the following image as the design for the page. 

The normal color for the tab is *2da4c2, and the color when the mouse is over the tab is #ffd800. 

The HTML that implements the navigation tab is as follows. 

You need to implement the design. 

What should you do? (To answer, select the appropriate options in the answer area.) 

Answer:  

Q15. DRAG DROP - (Topic 1) 

You need to implement security according to the business requirements. 

How should you modify RunLogController? (To answer, drag the appropriate code segment to the correct location or locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) 

Answer:  

Topic 2, Web Application 

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 

Q16. - (Topic 2) 

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.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: C,D

 

26. - (Topic 2) 

You need to add a method to the ProductController class to meet the exception handling requirements for logging. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

START 70-486 EXAM