QuizzesProduction Checklist — Logging, Monitoring & Hardening — Concept Check
intermediate
fastapi

Production Checklist — Logging, Monitoring & Hardening — Concept Check

Questions on Production Checklist — Logging, Monitoring & Hardening. The launch gate: structured JSON logs with request IDs, error tracking (Sentry), metrics + alerts on the RED trio, security headers and rate limits, timeouts on everything external — and the checklist that ties all 40 chapters together.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Production Checklist — Logging, Monitoring & Hardening — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A service is experiencing high latency during peak hours. Logs show request IDs but no obvious errors. What should you check first?

    • ADisable security headers to reduce overhead.
    • BIncrease the CPU resources to handle more requests.
    • CReduce the logging level to decrease I/O operations.
    • DCheck the latency percentiles (p99) for bottlenecks.
  2. 2.You notice a high error rate in your service's metrics dashboard. What is the most immediate action to take?

    • AInvestigate the grouped issues in Sentry for context.
    • BAdd more logging to capture detailed request information.
    • CRestart the service to clear any transient issues.
    • DIncrease the timeout for external calls.
  3. 3.A user reports an error with reference ID 'abc123'. How do you efficiently trace the issue?

    • AManually search through logs for any errors around the reported time.
    • BDisable CORS to see if the issue persists.
    • CCheck the CPU and memory usage graphs for anomalies.
    • DFilter logs by request_id 'abc123' to find the request's details.
  4. 4.Your service's /metrics endpoint shows a 5xx error ratio over 1% for the last 5 minutes. What does this indicate?

    • AThe database is running out of connections.
    • BThere is a significant issue affecting user experience.
    • CThe service is experiencing a memory leak.
    • DThe CPU usage is too high, causing errors.
  5. 5.What is the primary purpose of structured JSON logging with request IDs?

    • ATo improve application performance.
    • BTo make incident investigation more efficient.
    • CTo reduce the size of log files.
    • DTo comply with data protection regulations.
  6. 6.Why is it important to set timeouts on every external call?

    • ATo increase the speed of external calls.
    • BTo comply with API rate limits.
    • CTo ensure security headers are applied correctly.
    • DTo prevent one slow upstream from exhausting workers.
  7. 7.A developer suggests logging passwords for debugging purposes. What is the best response?

    • AAgree, as it helps in debugging authentication issues.
    • BLog passwords only in a secure environment.
    • CLog passwords but encrypt them first.
    • DReject the suggestion due to security risks.
  8. 8.What should you alert on to ensure users' experience is prioritized?

    • ACPU and memory usage spikes.
    • BThe frequency of log entries.
    • CSymptoms users feel, like high error rates and latency.
    • DThe number of active connections to the database.