
EC-CouncilCertified Application Security Engineer (.NET)
Domain 6Objective 3
ViewState-based Session Management CASENET Practice Questions (Page 3)
Part of the Secure Coding: Session Management domain, which makes up ~10% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~5–8 in this domain), expect 1–2 from this objective — we provide 38 practice questions to prepare you well beyond it. (estimate)
38questions here
8free pages
5concepts
Questions 11–15
- 11
A security audit of an ASP.NET application finds that ViewState is enabled on all pages, including login and public pages. The application uses ViewState for a few controls on authenticated pages. The auditor recommends disabling ViewState on public pages. The developer is concerned that disabling ViewState on a public page might break a control that uses it. What is the best way to handle this?
Select an answer first - 12
How can ViewState be used in conjunction with session state in an ASP.NET application?
Select an answer first - 13
Which of the following is a common security risk associated with ViewState in ASP.NET?
Select an answer first - 14
An ASP.NET application is deployed on a web farm with two servers. The developer configured a machineKey in web.config, but users intermittently receive 'Validation of viewstate MAC failed' errors. The developer suspects the machineKey is not being used. What is the most likely cause?
Select an answer first - 15
An ASP.NET page has a control that needs to maintain its state across postbacks. The developer notices that the ViewState is large and contains data that is not needed after the postback. The developer wants to reduce the ViewState size without affecting the control's functionality. What is the best approach?
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.