Case Study : Document management service  with Total Question : 10

Business Requirements

The app must meet these business requirements:

  1.  Allow property management companies to view communities and properties within communities.
  2. Display a training video for users.
  3.  Support English and Spanish-speaking users.
  4.  Display all properties for community ID 100 when the user first logs on to the application.
  5.  Require users to log on to view communities and properties.

Technical Requirements

The app must meet these technical requirements:

  1. Host the application on a web farm with server affinity disabled.
  2. Use the ASP.NET MVC Razor view engine. * Use _Layout.cshtml as the master page for all content pages.
  3.  Use the entity data model shown in the Homeowner Docs Entity Data Model exhibit.
  4.  Set the Custom Tool property of the model to EntityModelCodeGenerator.
  5. Set the Code Generation Strategy property to T4. * Use Views\Community\List.cshtml to display a list of communities.
  6.  Use Views\Property\List.cshtml to display a list of properties for a specific community.
  7.  Use the existing route handling functionality without creating a custom route handler, controller factory, or custom HTTP module.
  8.  Restrict access to logged-on users for all URLs except /Home/Index.
  9.  Allow users to log on at /Home/Index and authenticate them against Active Directory.

Application Structure












Entity Data Model




Question# 1  You need to determine the minimum number of controllers to add to the project for allowing management companies to manage communities

How many controllers should you use?

  1. Four
  2. Two
  3. Three
  4. One

You should use one controller. A single controller can contain multiple actions, allowing management companies to view, create, edit, and delete communities.
Question# 2  You need to make ensure that the table header row in Views\Community\List.cshtml is set to bold font. Which CSS markup you should you ?

  1. table+th { font-weight: bold; }
  2. th:nth-child(1) { font-weight: bold; }
  3. th { font-weight: bold; }
  4. th:nth-child(0) { font-weight: bold; }

you should use 3rd option th { font-weight: bold; }

This rule applies to all th(table header) elements.

Question # 3   You need to hide the Maintenance Amount column in Views\Community\List.cshtml and prevent it from taking up any space when the user’s browser is resized to a width that is less than or equal to 350px.  Which CSS markup should you use? 

You should use first option that is highlighted.

Explanation : 

min-widthstyles for browsers larger or equal to than specified value

max-width : styles for browsers smaller than or equal to specified value

check this stackoverflow post http://stackoverflow.com/questions/13550541/media-min-width-max-width

The nth-child selector allows you to select a specific element that is the nth child of its parent element. The value in parenthesis represents the one-based index of the specific child element to which the rule applies. In this scenario, th:nth-child(3) selects the third th element of its parent element, which is the table element.


Question # 4  You discover that some browsers do not natively display the training video in Training.cshtml.

You need to ensure that these browsers display a link to Training.webm

  1. Add the following markup as a child of the video element:
    <a href=”Training.webm”>Training video</a>
  2. Add the following markup as a child of the video element:
    @Html.RenderPartial( <a href=’Training.webm’>Training video<a>”);
  3. Add the following markup to the Training.cshtml page:

4. Add the following markup to the Training.cshtml page:



The correct answer is option# 1 . You should add the following markup as a child of the video element:
<a href=”Training.webm >Training video</a>
The HTMLS video element supports automatic browser feature detection. If the browser does not natively support the video element or the video format, the markup between the open and closing video tags gets rendered. Read in details about Video element

HTML5 Video element documentation


Question # 5 you need to configure the authentication for application (allow active directory authentication) ?

  1. Federated
  2. Forms
  3. Passport
  4. Windows

we should use Forms authentication because you provide a custom login page for users at Home/Index. You can use Active Directory application programming interface (API) calls to authenticate the users.

we should not use Federated authentication. This authentication method allows users to authenticate with one domain and access services hosted on another domain.

we should not use Passport authentication. This authentication method authenticates users with Microsoft Passport accounts.

we should not use Windows authentication. You cannot use a custom login page with Windows authentication without writing a custom HTTP module.


Leave a Reply

Your email address will not be published. Required fields are marked *