aiotestking uk

70-486 Exam Questions - Online Test


70-486 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. - (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:

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

Q3. - (Topic 4) 

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. 

Answer:

Explanation: With most development platforms, parameterized statements that work with parameters can be used (sometimes called placeholders or bind variables) instead of embedding user input in the statement. A placeholder can only store a value of the given type and not an arbitrary SQL fragment. Hence the SQL injection would simply be treated as a strange (and probably invalid) parameter value. 

Reference: https://en.wikipedia.org/wiki/SQL_injection#Parameterized_statements 

Q4. - (Topic 3) 

You need to maximize performance of video delivery. 

Which code segment should you use as the body of the GetVideoStream function in the Video-Controller class? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q5. - (Topic 4) 

You are designing an MVC web application. 

The view must be as simple as possible for designers who do not have a technical 

background. 

You need to combine two existing models to meet the requirement. 

Which component of the MVC framework should you use? 

A. View 

B. View Model 

C. Controller 

D. Model 

Answer:

Q6. DRAG DROP - (Topic 4) 

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

To set the culture, the application must use the AcceptLanguage header field value sent by the client browser. 

You need to ensure that the application can set the culture. 

You have the following markup in the web.config file: 

Which markup segments should you include in Target 1, Target 2 and Target 3 to complete markup? To answer, drag the appropriate markup segments to the correct targets. Each markup 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 3) 

Customers download videos by using HTTP clients that support various content encodings. You need to configure caching on the DownloadVideo action to maximize performance. 

Which attribute should you add? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer:

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

Q9. HOTSPOT - (Topic 1) 

You need to implement the map of the runners' paths. 

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

Answer:  

Q10. - (Topic 4) 

You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users. 

The application must handle web server failures gracefully. The servers in the farm must share the short-term state information. 

You need to persist the application state during the session. 

What should you implement? 

A. ASP.NET session state 

B. A local database 

C. A state server 

D. Profile properties 

Answer: