Microsoft Exam Questions

BackgroundYou are developing a video transcoding service. This service is used by customers to uploa

Background

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:

 

Compatibility:

 

Transcoding:

 

Development:

 

Application Structure









You need to ensure that all the MVC controllers are secure.

Which code segment should you use as the body for the CreateController method in AdminVerifierFactory.cs?



A. Option A

B. Option B

C. Option C

D. Option D

Explanation:

The MemberInfo.CustomAttributes property gets a collection that contains this members custom attributes.

The Any() statement will either return null or a collection of matched custom attributes. If it matches one or more, the controller is secure, otherwise an exception is thrown.

From scenario: 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.

Incorrect Answers:

B: controller.GetType().Attributes will not return custom attributes.

References:

https://msdn.microsoft.com/en-us/library/system.reflection.memberinfo.customattributes(v=vs.110).aspx