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
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
The A is Incorrect.
The B is not good, controller.GetType().Attributes will not return custom attributes.
The C is not good, where the Any() can not be equal to null.
The D is good, because from scenario: 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.
Answer is D.
case study content https://examref.com/MCSD/70-486/142