Web Developer Framework 4.0 Sample Questions – 33

Question: Multiple Choice Question In this type of question, you select the correct Answer: or Answers from a list of Answer: choices. Click the Reset button to clear all selected Answers. If an Active Exhibit button is present, click it to explore in a simulated environment until you find the information that you need. Then click Close Simulation and Answer: the question. Notes Note the following consideration when Answering this type of question:
You might need to use the scroll bar to view the entire contents of the question.
You are creating an ASP.NET Web site. The site contains pages that are available to anonymous users. The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers. You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group.
Which configuration should you use

Correct Answer: 2


Question: Multiple Choice Question In this type of question, you select the correct Answer: or Answers from a list of Answer: choices. Click the Reset button to clear all selected Answers.If an Active Exhibit button is present, click it to explore in a simulated environment until you find the information that you need. Then click Close Simulation and Answer: the question. Notes Note the following consideration when Answering this type of question:
You might need to use the scroll bar to view the entire contents of the question.
You are designing an ASP.NET 4 Web application that will integrate third-party components. You need to minimize the security risks of using these components. Which approach should you recommend

  1. Apply role-based security with declarative checks.
  2. Store the components in the global assembly cache.
  3. Use the third-party components on a separate server.
  4. Use an appropriately permitted AppDomain for each component.

Correct Answer: 4


Question: You are creating an ASP.NET Web site. The site contains pages that are available to anonymous users. The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers. You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group.
Which configuration should you use

Correct Answer: 2


Question: The endpoint of a Windows Communication Foundation (WCF) service uses basicHttpBinding for its binding. Your company’s policies have changed to require that messages not be sent in clear text.
You must ensure that all messages are encrypted when traveling across the network. What should you do.

  1. Set the ProtectionLevel property on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding.
  2. Set the ProtectionLevel property on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to webHttpBinding.
  3. Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding.
  4. Set the PrincipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding.

Correct Answer: 1


Question: You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding.
New audit requirements dictate that callers must be authenticated on every call to ensure that their credentials have not been revoked. You need to ensure that the service will not cache the security request token. What should you do

  1. Apply a ServiceBehavior attribute to the service implementation class with the InstanceContextMode property set to Single.
  2. In the message security configuration, change clientCredentialType from IssuedToken to UserName.
  3. In the message security configuration, set establishSecurityContext to false.
  4. At the end of every operation, call the SessionStateUtility.RaiseSessionEnd method.

Correct Answer: 3

Tagged . Bookmark the permalink.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.