70-340 Implementing Security for Applications with Microsoft Visual C# .NET Exam Review


Microsoft ™

70-340 Implementing Security for Applications with Microsoft Visual C# .NET



Note 1: 70-340 Exhibit and all related diagrams are not shown in demo questions.
Note 2: 70-340 Answers are not shown in demo questions.
Exhibits and Answers are only provided in the Full Version.


Demo Question 19.


You are an application developer for EliteCertify.com. You develop a library assembly that contains diagnostic utility classes. This library assembly is installed in the global assembly cache on all client computers on EliteCertify 's network. You develop a Windows Forms application that calls the library assembly. You successfully test the application on your computer, and then you deploy the application to a Web folder on the intranet. Further testing reveals that when you run this application from the intranet, a SecurityException exception is thrown when the application is loading. You need to correct the problem that is causing the SecurityException exception. What should you do?

A. Add the following code segment to the library assembly. [assembly: AllowPartialTrustedCallers]
B. Add the following code segment to the Windows Forms application assembly. [assembly: AllowPartiallyTrustedCallers]
C. Add the following code segment to the library assembly. [assembly: PermissionSet(SecurityAction.RequestOptional, Name = "Loca
D. Add the following code segment to the Windows Forms application assembly. [assembly: PermissionSet(SecurityAction.RequestMinimum, Name = "Local


Display Answer


Purchase Full Version:


70-340 Printable PDF Prep Guide $49.95 BUY NOW!

70-340 Test Simulation Engine $69.95 BUY NOW!

70-340 PDF & Test Simulation Engine $99.95 BUY NOW!




Answer: D

Explanation: .NET permissions are grouped into NamedPermissionSets. The platform includes the following non-modifiable built-in sets: Nothing, Execution, FullTrust, Internet, LocalIntranet, SkipVerification. The FullTrust set is a special case, as it declares that this code does not have any restrictions and passes any permission check, even for custom permissions. By default, all local code (found in the local computer directories) is granted this privilege. The above fixed permission sets can be demanded instead of regular permissions: [assembly:PermissionSetAttribute( SecurityAction.RequestMinimum, Name="LocalIntranet")] Here is a summary of some facts or rules: 7. If you want to restrict the permissions given to an assembly to only those contained in the associated permission set, you must tick the code group option "The policy level will only have the permissions from the permission set associated with this code group". Otherwise what is granted to the assembly is the permissions of the particular assocated permission set plus permissions of the associated permission set of the inherited code group ("All_Code" group). 8. All assemblies must be given "Enable assembly execution" security permission so that it can be run or launched. 9. Permissions included in an assembly's associated permission set that are above the logged-in user's previllege will not be granted. 10. A strongly named assembly can only be called by a fully-trusted caller, unless this assembly states AllowPartiallyTrustedCallers. When you use this attribute, it means that you have fully reviewed your code and there is no security flaw that may be used by luring attackers - such as a improperly used Assert. Not all system assemblies are marked with this attribute. You can look at the assembly's manifest to see whether it has that attribute. 11. However, an assembly belonging to the root "All_Code" code group can be called by partially-trusted callers, even if they are strongly named. This is probably because, if you don't impose a particular security control on an assembly, the runtime security thinks that this assembly is not extremely critical. 12. When you states AllowPartiallyTrustedCallers in an assembly, or let it stay in the "All_Code" code group, a permission-checking stack walk is still going to be triggered for every attempt to access any controlled resource. The only difference is if you improperly make a Assert you will make luring attacks possible.



  • Based on the latest 70-340 exam objectives!
  • Designed like actual 70-340 exam questions!
  • 100% Verified Realistic 70-340 Exam Questions and Answers!
  • Exhibits, Drag&Drop and Simulation 70-340 Questions Included!
  • Constantly Updated Guide to Reflect the Current 70-340 Exams!
  • Detailed Explanations for Most Guide Practice Exams!
 Sponsored Links
Japan Exam



HTI+
HT0-101 HT0-102

$59 Get Detail

MCTS
70-235 70-526
70-528 70-529
70-536 70-551
70-552 70-553

$239 Get Detail

SSBB
310-600
$49.95 Get Detail

MCA
1D0-450 1D0-460
1D0-470
$89 Get Detail

10g DBA
1Z0-040 1Z0-041
1Z0-042 1Z0-043
1Z0-045
$149 Get Detail


Demark
Took my last CCNP test last Friday. EliteCertify tests really made the difference, I passed every one on the first ...


England
Many thanks to your complete solution in 3Com Test Simulation Engine, Study Guides and PDF practice exams which are very ...


NY, USA
I wanted to take a few minutes to thank EliteCertify for passing 3 exams towards my MCSE. ...





Keyword
This site is both PayPal and VeriSign Verified. 128-bit SSL Encryption!
More questions about Order Security?