70-486 practice questions
You are developing an ASP.NET MVC application. Devices that use many different browsers will use the application. You have the following requirements: ✑ Content must display correctly when a device is in landscape or portrait orientation. Content must not scale when the device orientation changes. ✑ Content must be displayed by using the maximum available screen space. ✑ The application must render properly in Internet Explorer 8 or later versions. You need to configure the application. Which two actions should you perform? Each correct answer presents part of the solution.
B. Set the value of the width property for the viewport meta tag to device-width.
C. Use CSS to target the HTML element on each page. Set the values of the width and height properties to 100%.
D. Use CSS media queries to target screen size, device orientation, and other browser capabilities.
You create an ASP.NET MVC application. You host the application by using the Open Web Interface for .NET (OWIN). You run the following command by using the NuGet Package Manager console: install-package Microsoft.AspNet.SignalR You plan to implement real-time push notifications from the server using ASP.NET SignalR. You need to complete the ASP.NET SignalR implementation. Which three steps should you perform? Each correct answer presents part of the solution.
A. Create a hub class to push content to clients.
B. Create a classthat derives from the PersistentConnection class. Use the derived class to push content to clients.
C. Use the SignalR jQuery library in a web page to send messages to the hub and display updates from the hub.
D. Map a SignalR hub to the app builder pipeline by using an OWIN startup class.
E. Start the SignalR hub asynchronously and respond to the appropriate callback methods.
You are developing an ASP.NET MVC application. The application uses a set of custom exceptions to log errors that occur during the execution of an action. You need to develop a class that implements logging. Which interface should you implement?
You develop an ASP.NET MVC application. The application is configured for claims-based authentication by using Windows Identity Foundation (WIF). You need to access the claims in the WIF token. Which code segment should you use?
You are developing an ASP.NET MVC application that will run in a shared environment. The application requests the user’s password, and then uses the password to sign data. You need to minimize the potential for the password to be discovered by other processes that run in the shared environment. What should you do?
A. Add the SecuritySafeCriticalAttribute attribute to the methods which process the password.
B. Store the password in a SecureString instance.
C. Encrypt the password on the web page, and decrypt the password in the MVC application.
D. Run the code that processes the password in its own AppDomain.
You are developing an ASP.NET MVC application to be used on the Internet. The environment does not use Active Directory. Users must be able to log on to the application to maintain their personal preferences. You need to use the least amount of development effort to enable users to log on. What should you do?
A. Enable Digest authentication.
B. Enable Windows authentication.
C. Enable Forms authentication.
D. Generate server SSL certificates and install them in IIS.
You deploy an ASP.NET MVC Web application to Internet Information Services (IIS). The application has a secure area that provides access to custom reports. You must develop custom business logic to support the reports. The custom business logic has the following requirements: ✑ It must run each time that a report is requested. ✑ It must not run for other IIS requests. ✑ It must be mapped to the request extension of the report. ✑ It must be written by using a managed language that is supported by the .NET framework. You must be able to quickly modify and deploy updates to the business logic. You need to develop the custom business logic. What should you do?
A. Update the report logic to include the custom business logic. Use WebDAV to publish the reports to the server.
B. Develop a new HTTP module that includes the custom business logic. Deploy the HTTP module to IIS.
C. Develop a new HTTP handler that includes the custom business logic. Deploy the HTTP handler to IIS.
D. Develop a new ISAPI filter that includes the custom business logic. Deploy the ISAPI filter to IIS.
You are building an ASP.NET web application. You must test the web application in multiple browsers at the same time. You need to ensure that the application can use the Browser Link feature. Which two actions should you perform? Each correct answer presents part of the solution.
A. In the web.config file, set the value of the debug attribute to False.
B. In the web.config file, set the value of the debug attribute to True.
C. Enable Browser link.
D. Use an external editor for webpages.
E. Enable source control server support.
You are developing an ASP.NET application that allows users to download Microsoft Azure log files. You need to improve the performance of the application. What should you do?
A. Minify the content files.
B. Enable compression in IIS.
C. Bundle the content files into a single .tar file.
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.
You are developing an ASP.NET MVC application that uses forms authentication. The application uses SQL queries that display customer order data. You need to prevent all SQL injection attacks against the application. How should you secure the queries?
A. Implement parameterization.
B. Pattern check the input.
C. Filter out prohibited words in the input.
D. Escape single quotes on string-based input parameters.
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.
You are developing an Azure worker role. You enable crash dump collection for the role. When the role starts, an external application stops responding. You need to download the crash dump to determine why the application stops responding. From which two locations can you download the crash dump? Each correct answer presents a complete solution.
A. Azure Blob storage
B. the temp folder on the virtual machine that is running the role instance
C. Azure file storage
D. the DiagnosticStore local resource folder on the virtual machine that is running the role instance
You are developing an ASP.NET MVC application that will run on Azure. The application uses Event Tracing for Windows (ETW) for logging operations. You need to retrieve the ETW data for the application from a deployed Azure instance by using the Azure Diagnostics API. Which data source should you use?
A. Azure Diagnostic infrastructure logs
B. Windows event logs
C. performance counters
D. .NET EventSource
You need to enable client-side validation for an ASP.NET MVC application. Which three actions should you perform? Each correct answer presents part of the solution.
A. Attach a custom validation attribute to the model properties that the view uses.
B. Reference the jquery, jquery.validate and jquery.validate.unobtrusive script files in the view.
D. For each form element, use the Validator.element() method to validate each item.
E. Add data annotations to the model properties that the view uses