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 (Full Section) 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
8
Which Azure service provides free hosting for web applications?
Azure Virtual Machines
Azure App Service
Azure Functions
Azure Kubernetes Service
9
What is the bandwidth limit for Netlify's free tier?
100GB per month
50GB per month
500GB per month
Unlimited
10
Which platform is best suited for static websites and JAMstack applications?
Azure App Service
Netlify
Heroku
Render
11
What is the maximum number of web apps available in Azure Free tier?
5
10
15
Unlimited
12
Which platform offers free PostgreSQL database hosting?
Netlify
Vercel
Render
GitHub Pages
13
What is the main limitation of Heroku's free tier?
No SSL support
App sleeps after 30 minutes of inactivity
No custom domain support
No database support
14
Which platform is best for deploying Next.js applications?
Azure
Netlify
Vercel
GitHub Pages
15
What is required to create an Azure free account?
Only an email address
A phone number and credit card for verification
A business license
A Microsoft partner account
16
Which Azure App Service plan tier is free?
F1 (Free)
B1 (Basic)
S1 (Standard)
P1 (Premium)
17
How long does the Azure free account last?
6 months
12 months
24 months
Indefinitely
18
Which tool can be used to deploy to Azure from Visual Studio?
Git
Publish profile
Azure CLI
All of the above
19
How do you store production connection strings in Azure?
In appsettings.json
In Azure Application Settings
In a text file
In the database
20
What is the purpose of Azure Application Insights?
To monitor application performance and errors
To store application data
To deploy applications
To manage user authentication
21
What does the 'az' command do?
Deploys applications
Manages Azure resources
Creates databases
Builds applications
22
Which extension is available for free from Freenom?
.com
.org
.tk
.net
23
What is the purpose of a CNAME record?
Maps a domain to another domain
Maps a domain to an IP address
Points to a mail server
Verifies domain ownership
24
How long does DNS propagation typically take?
A few minutes
1-2 hours
24-48 hours
1 week
25
Which service provides free SSL certificates?
Let's Encrypt
SSL.com
Verisign
Symantec
26
What is required to add a custom domain to Azure App Service?
Only the domain name
Domain verification and DNS configuration
A paid subscription
A certificate
27
Which file is used to configure custom domains for GitHub Pages?
CNAME
config.yml
settings.json
domains.txt
28
What is Cloudflare primarily used for?
DNS management and CDN
Web hosting
Database hosting
Email hosting
29
What does CI/CD stand for?
Continuous Integration / Continuous Deployment
Code Integration / Code Deployment
Continuous Improvement / Continuous Delivery
Code Infrastructure / Code Development
30
Where are GitHub Actions workflows defined?
In the .github/workflows directory
In the root directory
In the src directory
In the config directory
31
What is the purpose of 'secrets' in GitHub Actions?
To store sensitive information securely
To store code
To store configuration
To store dependencies
32
Which event triggers a GitHub Actions workflow on code push?
workflow_dispatch
push
pull_request
schedule
33
What is the purpose of the 'needs' keyword in GitHub Actions?
To define job dependencies
To install dependencies
To run parallel jobs
To skip jobs
34
Which command runs tests in a .NET GitHub Actions workflow?
dotnet test
dotnet run
dotnet build
dotnet publish
35
What does the 'actions/checkout@v3' action do?
Checks out the repository code
Checks for errors
Checks dependencies
Checks the build status
36
What is the purpose of the 'azure/webapps-deploy@v2' action?
Deploys to Azure App Service
Creates an Azure account
Manages Azure databases
Configures Azure security
37
What does the 'workflow_dispatch' event allow?
Manual workflow triggering
Automatic workflow triggering
Scheduled workflow triggering
Event-based triggering
38
How do you make a job run only on the main branch?
if: github.ref == 'refs/heads/main'
if: github.branch == 'main'
if: github.ref == 'main'
if: github.branch == 'refs/heads/main'
39
What is the purpose of 'actions/upload-artifact@v3' in a workflow?
To store build artifacts
To upload code to GitHub
To deploy to Azure
To run tests
Submit Quiz