← All ICC Flashcard Decks

Database Management Flashcards

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

Read the first 7 Database Management flashcards as text
  1. Which SQL statement is used to permanently remove a table and all its data from a database?

    Answer: DROP TABLE permits

    DROP TABLE permanently removes the table definition and all its data, while DELETE and TRUNCATE only remove rows.

  2. A jurisdiction's code enforcement database must be recovered after a server crash. Which log type is essential for point-in-time recovery?

    Answer: Transaction log

    The transaction log records all database changes sequentially, enabling recovery to a specific point in time by replaying committed transactions.

  3. In database design for building inspections, which relationship type describes one inspector assigned to many inspections?

    Answer: One-to-many

    A one-to-many relationship means one record in the parent table (inspector) is associated with multiple records in the child table (inspections).

  4. Which SQL aggregate function would return the total number of permits issued in a calendar year?

    Answer: COUNT(permit_id)

    COUNT() returns the number of rows matching the query criteria, making it the appropriate function to tally issued permits.

  5. What is the purpose of database connection pooling in a high-traffic permit portal?

    Answer: Reusing existing connections to reduce overhead

    Connection pooling maintains a pool of open connections that are reused by incoming requests, reducing the cost of repeatedly opening and closing connections.

  6. A building department queries inspection records and notices response times degraded after adding 5 million rows. Which action most directly improves SELECT query performance?

    Answer: Creating an index on the filtered column

    Adding an index on frequently filtered columns allows the database engine to locate matching rows without scanning the entire table.

  7. Which SQL clause is used to filter grouped results in a report of permits grouped by inspection type?

    Answer: HAVING

    The HAVING clause filters rows after GROUP BY aggregation, whereas WHERE filters individual rows before grouping.

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. iccsafe.org — Retake policy, score release, renewal, score validity, test delivery, passing score, exam format, time limit · verified Oct 2026
  2. shop.iccsafe.org — Fees · verified Oct 2026