← 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 Java, which exception is unchecked (does not need to be declared or caught)?

    Answer: NullPointerException

    NullPointerException extends RuntimeException, making it unchecked.

  2. In a classic ASP.NET application, which event in Global.asax can be used for centralized handling of unhandled exceptions?

    Answer: Application_Error

    Application_Error fires for unhandled exceptions, allowing central logging and a safe redirect.

  3. Which set of fields forms a minimal useful security audit record?

    Answer: User identity, timestamp, event type, resource affected, and outcome

    Audit records should answer who, what, when, where, and whether it succeeded.

  4. Which technique helps provide tamper-evidence for audit logs to support non-repudiation?

    Answer: Cryptographic hash chaining or digital signing of log entries

    Hash chains or signatures make any modification or deletion of entries detectable.

  5. In Spring MVC, which approach provides centralized exception handling across all controllers?

    Answer: A class annotated with @ControllerAdvice containing @ExceptionHandler methods

    @ControllerAdvice applies @ExceptionHandler methods globally for consistent, safe error responses.

  6. What does Java's try-with-resources statement guarantee?

    Answer: Any AutoCloseable resource declared in it is closed automatically, even if an exception occurs

    Introduced in Java 7, it closes declared AutoCloseable resources automatically, preventing leaks.

  7. Why do detailed database error messages returned to the browser increase SQL injection risk?

    Answer: They enable error-based SQL injection by revealing query structure and data

    Verbose DB errors let attackers infer schema and extract data through error output.

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