QuizzesLogging Best Practices — Concept Check
intermediate
system-design

Logging Best Practices — Concept Check

Questions on Logging Best Practices. Structured, centralised logging with correlation IDs is essential for debugging distributed systems. Log at appropriate levels, include context, and aggregate logs in a searchable platform (ELK, Loki).

7 minutes 7 questions Pass at 70%
Time Limit
7 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

7 questions on Logging Best Practices — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A developer is troubleshooting an issue where a request fails across multiple microservices. What should they use to trace the request across services?

    • AUser IDs
    • BCorrelation IDs
    • CSession Tokens
    • DService IDs
  2. 2.Which log level should be used to record a successful user login event?

    • AERROR
    • BWARN
    • CINFO
    • DDEBUG
  3. 3.A system is logging sensitive user data, including passwords. What is the primary concern with this practice?

    • AIt increases storage costs
    • BIt makes logs harder to search
    • CIt slows down the logging process
    • DIt violates security best practices
  4. 4.A developer notices that logs from different services are not easily searchable. What is likely missing from their logging setup?

    • ASynchronous logging
    • BStructured logging
    • CVerbose logging
    • DLocal logging
  5. 5.A developer sets up log aggregation using the ELK stack. Which component is responsible for storing and indexing logs?

    • AElasticsearch
    • BLogstash
    • CFilebeat
    • DKibana
  6. 6.A team is using unstructured text logs. What is a significant drawback of this approach?

    • ALogs are harder to parse and search
    • BLogs are generated more slowly
    • CLogs take up more storage space
    • DLogs are less secure
  7. 7.Which of the following is NOT recommended to include in log entries?

    • ATrace IDs
    • BOrder IDs
    • CUser IDs
    • DPasswords