Test Your Knowledge

Web Application Security (Full Section) Quiz

Answer all questions to test your understanding

1 Why is HTTPS important for websites?
2 What does HSTS stand for?
3 Which service provides free SSL certificates?
4 What does app.UseHttpsRedirection() do?
5 Which Azure feature provides free SSL certificates?
6 What is ASP.NET Core Identity?
7 What is the purpose of UserManager in ASP.NET Core Identity?
8 What does the SignInManager do?
9 Which attribute is used to restrict access based on roles?
10 What is the purpose of password hashing in Identity?
11 What is SQL Injection?
12 How can you prevent SQL Injection in C#?
13 Which method in ADO.NET prevents SQL injection?
14 Does Entity Framework Core prevent SQL Injection?
15 What is a best practice for validating user input?
16 What is Cross-Site Scripting (XSS)?
17 How does Razor Pages prevent XSS?
18 What is Cross-Site Request Forgery (CSRF)?
19 How does ASP.NET Core prevent CSRF?
20 What does the [ValidateAntiForgeryToken] attribute do?
21 What are security headers?
22 What does the Content-Security-Policy (CSP) header do?
23 What does X-Frame-Options: DENY do?
24 What is the purpose of X-Content-Type-Options: nosniff?
25 What does the Strict-Transport-Security header do?
26 What are secrets in application development?
27 What is User Secrets in ASP.NET Core?
28 What is Azure Key Vault?
29 Which command sets a User Secret in .NET?
30 What is a best practice for managing secrets?