← All CASE Flashcard Decks

Secure Error Handling & Logging Flashcards

7 cards from real CASE practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Secure Error Handling & Logging flashcards as text
  1. In ASP.NET web.config, which customErrors mode displays detailed error information, including stack traces, to remote users?

    Answer: Off

    mode="Off" shows detailed ASP.NET errors to all users, including remote ones, leaking internal information.

  2. Which login failure message best prevents username enumeration?

    Answer: "Invalid username or password."

    A generic message does not reveal whether the username or the password was wrong.

  3. What is the primary security risk of an empty catch block?

    Answer: Errors are silently ignored, so the application may continue in an unsafe or inconsistent state

    Swallowing exceptions hides failures and can let security-relevant errors go unhandled and undetected.

  4. Why should database connections and file handles be released in a finally block (or equivalent)?

    Answer: To ensure resources are freed even when an exception occurs, preventing resource exhaustion

    finally executes regardless of exceptions, so resources are always released and DoS via leaks is prevented.

  5. The Log4Shell vulnerability (CVE-2021-44228) allowed remote code execution through which mechanism?

    Answer: JNDI lookups processed in logged strings in Log4j 2

    Log4j 2 evaluated ${jndi:...} lookups in logged data, letting attackers load remote malicious classes.

  6. Why should DEBUG-level logging normally be disabled in production?

    Answer: It may record sensitive data and internal details and can degrade performance

    Verbose debug output often captures request bodies, secrets, and internals that should not persist in production logs.

  7. An application shows users a message like "An error occurred. Reference ID: 8F3A2C". What is the main purpose of the reference ID?

    Answer: To let support staff correlate the user's report with the detailed server-side log entry without exposing details

    A correlation ID links the generic user message to full internal logs while revealing nothing sensitive.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. cert.eccouncil.org — Score validity, eligibility, fees · verified Oct 2026
  2. eccouncil.org — Test delivery, exam format, passing score, time limit · verified Oct 2026