
EC-CouncilCertified Application Security Engineer (.NET)
Domain 4Objective 2
Authentication and Authorization in Web Forms, ASP.NET Core, and MVC CASENET Practice Questions (Page 6)
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 26–30
- 26
An ASP.NET Core application needs to support both cookie authentication for its MVC views and JWT bearer authentication for its Web API. The application has a single login endpoint that issues both a cookie and a JWT. What is the correct way to configure authentication?
Select an answer first - 27
An ASP.NET Web Forms application uses Forms Authentication. The application has an Admin folder that should only be accessible to users in the 'Admin' role. Currently, the web.config in the Admin folder has <allow roles="Admin" />. What else must be configured to ensure that only Admin users can access the folder?
Select an answer first - 28
An MVC application has a controller action that is accessible to both authenticated users and anonymous users, but the action returns different data based on the user's role. The team wants to ensure that anonymous users cannot access data meant for authenticated users. What is the most secure approach?
Select an answer first - 29
An MVC application has a custom authorization filter that checks if the current user has a specific permission. The filter is applied to multiple controllers. The team wants to ensure that the permission check is consistent and maintainable. What is the best approach?
Select an answer first - 30
In ASP.NET Core, which method is used to register an authorization policy that can be applied to controllers or actions?
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.