C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
Deployment - Lesson 1: Preparing for Deployment Quiz
Answer all questions to test your understanding
1
What is the purpose of appsettings.json in ASP.NET Core?
To store application configuration
To store user data
To store database records
To store HTML templates
2
Which file is used for environment-specific configuration overrides?
appsettings.json
appsettings.Development.json
appsettings.Production.json
Both B and C
3
What is the purpose of environment variables in deployment?
To store sensitive configuration securely
To make the application run faster
To store user preferences
To cache data
4
What does HSTS stand for?
HTTP Strict Transport Security
HTTP Secure Transfer System
Hypertext Secure Transport Service
HTTP Standard Transfer Security
5
Which middleware should be enabled in production for error handling?
UseDeveloperExceptionPage()
UseExceptionHandler()
UseStatusCodePages()
UseRuntimeInfo()
6
What is the purpose of health checks in a deployed application?
To monitor application health and availability
To check user health
To monitor database performance only
To check server CPU usage
7
Which command builds an ASP.NET Core application in Release mode?
dotnet build
dotnet build -c Release
dotnet publish
dotnet run
Submit Quiz