
EC-CouncilCertified Application Security Engineer (.NET)
Domain 4Objective 2
Authentication and Authorization in Web Forms, ASP.NET Core, and MVC CASENET Practice Questions (Page 5)
Part of the Secure Coding: Authentication and Authorization domain, which makes up ~7% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~4–6 in this domain), expect 1–2 from this objective — we provide 41 practice questions to prepare you well beyond it. (estimate)
41questions here
9free pages
8concepts
Questions 21–25
- 21
An ASP.NET Core application uses policy-based authorization. They have a policy 'CanEdit' that requires the user to have a claim 'Permission' with value 'Edit' OR be in the 'Admin' role. They want to implement this policy. What is the correct way to define it?
Select an answer first - 22
An ASP.NET Core application uses policy-based authorization. They have a policy 'Over18' that requires a claim 'DateOfBirth' and checks that the user is at least 18 years old. They want to apply this policy to a Razor Page. What is the correct way to do this?
Select an answer first - 23
Which attribute in ASP.NET Core allows you to restrict access to a controller action based on a specific claim?
Select an answer first - 24
An ASP.NET Core application uses cookie authentication. After a user changes their password, the application should invalidate all existing sessions immediately. What is the most effective way to achieve this?
Select an answer first - 25
A developer is building an ASP.NET Core application that uses cookie authentication. The security policy requires that the authentication cookie be protected from cross-site request forgery (CSRF) and be transmitted only over HTTPS. What should the developer configure?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “CASENET” is a trademark of its owner, used for identification only.