P.S. Accurate 70-486 vce are available on Google Drive, GET MORE: https://drive.google.com/open?id=1WFCwXTbCJpEqiS8IdqIMF9wkLzCViejJ
New Questions 8
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?
A. Thread.CurrentPrincipal.Identity;
B. ((IClaimsPrincipal)Thread.CurrentPrincipal).Identities[0].Claims;
C. Thread.CurrentPrincipal;
D. ((IClaimsPrincipal)Thread.CurrentPrincipal).Identities[0].IsAuthenticated;
Answer: B
Explanation:
To Access the Claims
In order to access identity related information, you can run FedUtil. Once you have run FedUtil, your application can access IClaimsPrincipal and IClaimsIdentity using the standard ASP.NET constructs as shown in the following code example:
void Page_Load(object sender, EventArgs e)
{
// Cast the Thread.CurrentPrincipal
IClaimsPrincipal icp = Thread.CurrentPrincipal as IClaimsPrincipal;
// Access IClaimsIdentity which contains claims IClaimsIdentity claimsIdentity = (IClaimsIdentity)icp.Identity;
// Access claims
foreach(Claim claim in claimsIdentity.Claims)
{
}
}
References: https://msdn.microsoft.com/en-us/library/ee517271.aspx
New Questions 9
You are developing an application that uses many small images for various aspects of the interface.
The application responds slowly when additional resources are being accessed. You need to improve the performance of the application.
What should you do?
A. Preload all the images when the client connects to ensure that the images are cached.
B. Combine all the images into a single image and use CSS to create sprites.
C. Host all images on an alternate server and provide a CDN.
D. Convert the images to .png file format and stream all images on a single connection.
Answer: C
New Questions 10
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?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
New Questions 11
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.
D. Host the image, JavaScript, and CSS files on a different server.
Answer: C
Explanation:
Bundling is a new feature in ASP.NET 4.5 that makes it easy to combine or bundle multiple files into a single file. You can create CSS, JavaScript and other bundles. Fewer files means fewer HTTP requests and that can improve first page load performance.
References: https://www.asp.net/mvc/overview/performance/bundling-and-minification
New Questions 12
You are developing an ASP.NET MVC application that uses forms authentication to verify that the user is logged in.
Authentication credentials must be encrypted and secure so no user identity is exposed.
You need to ensure that user credentials are persisted after users log on.
Where should you store the credentials? (Each correct answer presents a complete solution. Choose all that apply.)
A. In Session on the server
B. In a cookie stored in the browser
C. In ViewData in the application
D. In TempData on the server
Answer: A,B
Explanation:
Server sessions and cookies can both be configured to secure and they both persist after the users log on.
Incorrect:
Not C: ViewData's life only lasts during current http request.
Not D: TempData is a bucket where you can dump data that is only needed for the following request. That is, anything you put into TempData is discarded after the next request completes.
New Questions 13
You are developing an ASP.NET MVC application that enables you to edit and save a student object.
The application must not retrieve student objects on an HTTP POST request. You need to implement the controller.
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
New Questions 14
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?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
New Questions 15
You need to implement the requirements for handling IIS errors. What should you do?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Topic 3, Video Transcoding ServiceBackground
You are developing a video transcoding service. This service is used by customers to upload video files, convert video to other formats, and view the converted files. This service is used by customers all over the world.
Business Requirements
The user-facing portion of the application is an ASP.NET MVC application. It provides an interface for administrators to upload video and schedule transcoding. It also enables administrators and users to download the transcoded videos.
When videos are uploaded, they are populated with metadata used to identify the video. The video metadata is gathered by only one system when the video upload is complete.
Customers require support for Microsoft Internet Explorer 7 and later. The application contains a header that is visible on every page.
If the logged-on user is an administrator, then the header will contain links to administrative functions. This information is read from a cookie that is set on the server. The administrative links must not be present if an error condition is present.
Technical Requirements User Experience:
u2711 The front-end web application enables a user to view a list of videos.
u2711 The main view of the application is the web page that displays the list of videos.
u2711 HTML elements other than the list of videos are changed with every request requiring the page to reload.
Compatibility:
u2711 Some customers use browsers that do not support the HTTP DELETE verb.
u2711 These browsers send a POST request with an HTTP header of X-Delete when the intended action is to delete.
Transcoding:
u2711 The video transcoding occurs on a set of Windows Azure worker roles.
u2711 The transcoding is performed by a third-party command line tool named transcode.exe. When the tool is installed, an Environment variable named transcode contains the path to the utility.
u2711 A variable named license contains the license key. The license for the transcoding utility requires that it be unregistered when it is not in use.
u2711 The transcoding utility requires a significant amount of resources. A maximum of 10 instances of the utility can be running at any one time. If an instance of the role cannot process an additional video, it must not prevent any other roles from processing that video.
u2711 The utility logs errors to a Logs directory under the utilities path.
u2711 A local Azure directory resource named perf is used to capture performance data.
Development:
u2711 Developers must use Microsoft Remote Desktop Protocol (RDP) to view errors generated by the transcode.exe utility.
u2711 An x509 certificate has been created and distributed to the developers for this purpose.
u2711 Developers must be able to use only RDP and not any other administrative
functions.
Application Structure
New Questions 16
You are developing an ASP.NET MVC application to be used on the Internet. The environment uses Active Directory with delegation to access secure resources.
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 Forms authentication
B. Enable Windows authentication
C. Generate server SSL certificates and install them in IIS
D. Enable Digest authentication
Answer: B
Explanation:
Requirements for Delegation
Delegation relies on Integrated Windows authentication to access resources. There is no limit on the number of computers that you can delegate your account -- you must correctly configure each of them. The Integrated Windows authentication method works only if the following two conditions exist:
/ You set up your network to use the Kerberos authentication protocol that requires Active Directory.
/ You set up the computers and accounts on your network as trusted for delegation. References: https://support.microsoft.com/en-us/kb/810572
New Questions 17
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
100% Renovate Microsoft 70-486 Questions & Answers shared by Dumpscollection, Get HERE: http://www.dumpscollection.net/dumps/70-486/ (New 182 Q&As)