70-486 Premium Bundle

70-486 Premium Bundle

Developing ASP.NET MVC 4 Web Applications Certification Exam

4.5 
(7380 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

Microsoft 70-486 Free Practice Questions

Q1. - (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. Enable compression in IIS. 

B. Move the content to a second server. 

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

D. Implement HTTP caching in IIS. 

Answer:

Q2. - (Topic 4) 

You are developing an ASP.NET MVC application that provides instant messaging capabilities to customers. 

You have the following requirements: 

Messages must be able to be sent and received simultaneously. 

Latency and unnecessary header data must be eliminated. 

The application must comply with HTML5 standards. 

You need to design the application to meet the requirements. 

What should you do? 

A. Configure polling from the browser. 

B. Implement long-running HTTP requests. 

C. Implement WebSockets protocol on the client and the server. 

D. Instantiate a MessageChannel object on the client. 

Answer:

Q3. - (Topic 4) 

You are developing an ASP.NET MVC application. 

The application must allow users to enter HTML in a feedback text box only. 

You need to disable request validation. 

What should you do? 

A. Use the HttpRequest.Form property to read the unvalidated form value. 

B. Apply and set the Validatelnput attribute on the controller action to FALSE. 

C. Use the HttpRequest.Unvalidated property to read the unvalidated form value. 

D. Apply and set the CausesValidation attribute on the controller action to FALSE. 

Answer:

Explanation: The HttpRequest.Unvalidated Property provides access to HTTP request values without triggering request validation. 

Q4. - (Topic 4) 

You are implementing a website redesign of an existing website that provides historical weather condition maps. 

The current layout resembles the graphic in the exhibit. (Click the Exhibit button.) 

Year selection is implemented as a set of links, which causes the page to reload when the user changes the year. The year selection HTML is contained in a div with an id of "year-selector". 

You need to modify the page so that the user can change the year without the page reloading. 

You also need to ensure that there is minimal change to the design of the page. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q5. - (Topic 3) 

You need to ensure that developers can connect to a Windows Azure role by using RDP. 

What should you do? 

A. Export a certificate without a private key. Upload the .cer file to the Management Certificates section on the Azure Management Portal. 

B. Export a certificate with a private key. Upload the .pfx file to the Management Certificates section on the Azure Management Portal. 

C. Export a certificate without a private key. Upload the .cer file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal. 

D. Export a certificate with a private key. Upload the .pfx file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal. 

Answer:

Q6. DRAG DROP - (Topic 1) 

You need to implement security according to the business requirements. 

You have the following code: 

Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to modify RunLogController? To answer, drag the appropriate code segment to the correct targets. 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:  

Q7. - (Topic 4) 

You are designing a localized ASP.NET MVC online shopping application that will be deployed to customers in the United States, China, France, and Brazil. The application must support multiple cultures so that content in the appropriate language is available in each area. 

You need to ensure that the content can be viewed in several languages. 

How should you implement this feature? 

A. Use a resource (.resx) file to provide translations. 

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

C. Ensure that all strings are marked internal to avoid conflict with internal literals. 

D. Include language-specific content in the assembly manifest and use .NET culture libraries. 

Answer:

Explanation: A resource file is an XML file that contains the strings that you want to translate into different languages or paths to images. The resource file contains key/value pairs. Each pair is an individual resource. Key names are not case sensitive. For example, a resource file might contain a resource with the key Button1 and the value Submit. You create a separate resource file for each language (for example, English and French) or for a language and culture (for example English [U.K.], English [U.S.]). Each localized resource file has the same key/value pairs; the only difference is that a localized resource file can contain fewer resources than the default resource file. The built-in language fallback process then handles loading the neutral or default resource. 

Reference: SP.NET Web Page Resources Overview 

Q8. - (Topic 4) 

You are designing an enterprise-level Windows Communication Foundation (WCF) application. User accounts will migrate from the existing system. The new system must be able to scale to accommodate the increasing load. 

You need to ensure that the application can handle large-scale role changes. 

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

A. Resource-based trusted subsystem model 

B. Identity-based approach 

C. Role-based approach 

D. Resource-based impersonation/delegation model 

Answer: B,C 

Explanation: Advanced Maturity: Authorization as a Service In the advanced level of maturity for authorization, role storage and management is consolidated and authorization itself is a service available to any solution that is service-enabled. 

* The Trusted Subsystems Model 

Once authorization is available as an autonomous service, the need for impersonation is eliminated. Instead of assuming the identity of the user, the application uses its own credentials to access services and resources, but it captures the user's identity and passes it as a parameter (or token) to be used for authorization when a request is made. This model is referred to as the trusted subsystem model, because the application acts as a trusted subsystem within the security domain. 

Q9. - (Topic 3) 

You are creating a new authentication system that uses an HTTP header value. 

The existing authentication system must continue to operate normally. 

You need to implement the custom authentication. 

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

apply.) 

A. Create a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class. 

B. Create an HttpHandler to check for a valid HTTP header value in the ProcessRequest method. 

C. Create an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event. 

D. Create a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing AuthorizeAttribute to use the new class. 

Answer: C,D 

Q10. - (Topic 3) 

You need to ensure that developers can connect to a Microsoft Azure role by using RDP. 

What should you do? 

A. Export a certificate with a private key. Upload the .pfx file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal. 

B. Export a certificate with a private key. Upload the .pfx file to the Management Certificates section on the Azure Management Portal. 

C. Export a certificate without a private key. Upload the .cer file to the Management Certificates section on the Azure Management Portal. 

D. Export a certificate without a private key. Upload the .cer file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal. 

Answer:

Explanation: In case you don’t want to use the RDP certificate created by Windows Azure Tools and want to use a custom certificate instead, the following steps will guide you. These steps can also be used in case package is not being published from Visual Studio rather it is being built locally, saved in either Local Machine's Drive or Windows Azure Blob Storage and subsequently published from there. 

Here are the steps which are required to get pass the publishing error which you might be running into. You would need to upload the Certificate with Private Key to the portal (when Visual Studio is used this is done in the background). 

Detailed steps. 

1. 

In Visual Studio, go to the solution which is being developed. 

2. 

Right click the Web Project -> Configure Remote Desktop -> click on View to see Certificate details (Since I don’t have a custom certificate I will use one create by Windows Azure Tools itself) 

3. 

Go to Details tab on Certificate -> Click Copy to file.. -> Next -> Select ‘Yes, export the private key’ -> Next -> Continue with default setting and create a password when asked (please refer below screenshots) 

4. 

These steps will generate a .PFX file for this certificate. Now we need to upload this certificate to the portal (for the respective cloud service) 

5. 

Go to the Azure Management Portal -> Go to the Cloud Service in question -> Certificates Tab -> Upload the newly created certificate (.PFX file) 

Note: 

The certificates that you need for a remote desktop connection are different from the certificates that you use for other Azure operations. The remote access certificate must have a private key. 

Microsoft Azure uses certificates in three ways: / Management certificates – Stored at the subscription level, these certificates are used to enable the use of the SDK tools, the Windows Azure Tools for Microsoft Visual Studio, or the Service Management REST API Reference. These certificates are independent of any cloud service or deployment. / Service certificates – Stored at the cloud service level, these certificates are used by your deployed services. / SSH Keys – Stored on the Linux virtual machine, SSH keys are used to authenticate remote connections to the virtual machine. 

Reference: How to use Custom Certificate for RDP to Windows Azure Roles 

http://blogs.msdn.com/b/cie/archive/2014/02/22/how-to-use-custom-certificate-for-rdp-to-windows-azure-roles.aspx 

Q11. - (Topic 3) 

You need to ensure that all customers can delete videos regardless of their browser capability. 

Which code segment should you use as the body of the SendAsync method in the DeleteHandler class? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q12. - (Topic 1) 

If the canvas element is supported by the client browser, the application must display "London 2012" in the footer as text formatted by JavaScript at the end of the _Layout.cshtml file. 

You need to modify the layout to ensure that "London 2012" is displayed as either formatted text or as plain text, depending on what the client browser supports. 

Which code segment should you add? 

A. <canvas id="myFooter"> 

@(Request,Browser.JavaApplets ? new HtmlString("London 2012") : null) 

</canvas> 

B. <canvas id="myFooter">London 2012</canvas> 

C. <canvas id="myCanvas">London 2012</canvas> 

D. <canvas id="myCanvas"></canvas> 

<p>London 2012</p> 

Answer:

Q13. 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:  

Q14. - (Topic 1) 

You need to make all of the rows in the table bold in the Views/RunLog/GetLog.cshtml view. 

Which code segment should you use? 

A. Table > th:last-child { font-weight: bold; } 

B. Table+first-child{ font-weight: bold; } 

C. Table>tr>th:nth-child{2){font-weight: bold; } 

D. Table > tr {font-weight: bold;} 

Answer:

Q15. - (Topic 4) 

You are designing a distributed application. 

The application must store a small amount of insecure global information 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. Application state 

B. Session state 

C. Database support 

D. Profile properties 

Answer: A,C 

Q16. - (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. 

START 70-486 EXAM