exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 15 discussion

Actual exam question from Microsoft's 70-483
Question #: 15
Topic #: 2
[All 70-483 Questions]

You are developing code for an application that retrieves information about Microsoft .NET Framework assemblies.
The following code segment is part of the application (line numbers are included for reference only):

You need to insert code at line 04. The code must load the assembly. Once the assembly is loaded, the code must be able to read the assembly metadata, but the code must be denied access from executing code from the assembly.
Which code segment should you insert at line 04?

  • A. Assembly.ReflectionOnlyLoadFrom(bytes);
  • B. Assembly.ReflectionOniyLoad(bytes);
  • C. Assembly.Load(bytes);
  • D. Assembly.LoadFrom(bytes);
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Mitsoshima
Highly Voted 6 years ago
The Assembly.Load() function grants full access to the loaded assembly. To deny the execution access, you have to use Assembly.ReflectionOnlyLoad() (see https://docs.microsoft.com/de-de/dotnet/api/system.reflection.assembly.reflectiononlyload?view=netframework-4.8) Therefore, the correct answer should be: B
upvoted 33 times
ShockWorker
5 years, 5 months ago
English docs: https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.reflectiononlyload?view=netframework-4.8
upvoted 3 times
...
...
supersunny
Highly Voted 5 years, 11 months ago
B is voted for.
upvoted 19 times
...
M62
Most Recent 4 years, 5 months ago
To B or not to B
upvoted 2 times
...
DaGrooveNL
4 years, 5 months ago
FINAL ANSWER: B.
upvoted 2 times
...
slobex
5 years, 1 month ago
B is answ. https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.reflectiononlyload?view=netcore-3.1
upvoted 6 times
...
LorenzCleymans
5 years, 4 months ago
B has a type it should be ReflectionOnlyLoad instead ReflectionOniyLoad
upvoted 8 times
...
jose1024
5 years, 6 months ago
+1 for B
upvoted 9 times
...
osaki
5 years, 6 months ago
it should be B
upvoted 10 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...