NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
Express.js Framework Engineering
Production Resilience & Observability
Quiz
Chapter Quiz: Production Resilience & Observability
Mastery Assessment: Deployment
Complete this assessment with 100% score to master this chapter.
01
Why is it recommended to use PM2 for running Express in production?
It makes the code run faster.
It provides automatic restarts on crashes and supports cluster mode for horizontal scaling.
It replaces the need for Nginx.
It is the only way to run Node.js.
02
What is 'Blue-Green Deployment'?
A deployment where the UI colors are changed.
A strategy where you run two identical production environments and switch traffic between them.
Deploying only on weekends.
A way to test code directly in production.
03
In production observability, what is the purpose of 'Scraping' in Prometheus?
It deletes old log files.
It is the process of periodically fetching metrics from the /metrics endpoint of your Express app.
It searches for security vulnerabilities.
It compresses the application code.
04
Why use Testcontainers for integration testing?
To make tests run in the browser.
To provide real, throwaway instances of databases or services (Redis, DB) in Docker during the test run.
To write documentation automatically.
To replace unit tests entirely.
Submit Answers
Back to Lesson
Return to Syllabus