Lyra
Learn
AI Learning Platform
π Midnight
π Comfort
π₯ Ember
π Paper
β Contrast
Exams
Sign in to track progress
β Back to the lesson
Module 2 Β· Quiz
Filters, Areas, and Configuration
1. What is the primary purpose of authorization filters in an ASP.NET application?
To handle exceptions during action execution
To log auditing information
To manage user access to actions
To modify the results of actions
2. How should you correctly specify links when working with areas in ASP.NET MVC?
Omit the area attribute to use default routing
Always include the area attribute in cross-area links
Use the area attribute only for routing issues
Controllers should never be referenced within areas
3. What is the recommended way to manage configuration settings in different environments?
Use a single configuration file for all environments
Hard-code settings directly in the application
Override defaults with environment-specific JSON files
Only use environment variables without any JSON files
4. What is a key rule regarding sensitive information in public sector applications?
Store all secrets in source control for convenience
Keep sensitive information in environment variables or User Secrets
Use plain text files to store connection strings
Ensure that secrets are available in the application code
Submit answers
Continue: Razor Views and Layouts β
Review this lesson
Retake quiz