Database & data inspection
Database inspection is strongest when it answers a specific persistence question. A GUI such as DBeaver can browse schemas and run queries, but the transferable skill is safe SQL investigation and understanding transaction/state boundaries.
Observed UI/API value → identify entity/key → read-only query → inspect constraints/relations → compare source-of-truth timing/state → capture minimal evidenceSafe connection setup and read-only investigation habits
A database client can expose production-like data and powerful mutation capabilities. Connection profiles should make environment identity obvious and use the least privilege required for the investigation.
Practical use: Prefer read-only credentials for investigation, show host/database/schema visibly, and validate the target before running any query copied from elsewhere.
Caveat: A familiar database name is not enough to identify an environment; endpoints and credentials can change.
Querying, filtering and inspecting schema and constraints
Schema browsing reveals tables, columns, types, keys and constraints; targeted SELECT queries show stored records. Together they help distinguish invalid persistence from API mapping or UI presentation defects.
Practical use: Query by stable identifiers and select only relevant columns. Inspect foreign keys, uniqueness and nullability when the defect involves relationships or validation.
Caveat: SELECT * on large or sensitive tables is poor evidence and may create unnecessary load or data exposure.Transactions and accidental-write risk
Transactions control when a set of database changes becomes durable and visible. A SQL client can execute writes immediately depending on auto-commit settings, so the tester must know whether a query is observational or mutating.
Practical use: Check auto-commit and transaction mode before any allowed write. For investigation, prefer SELECT and database-side read-only enforcement rather than relying on personal discipline.
Caveat: A rollback is not a universal safety net: external effects, sequences, triggers or other sessions may make a mutation observable.
Exporting evidence and reconciling API/UI results with stored data
Reconciliation compares representations of the same business fact across layers: database row, service response and UI. Differences can reveal caching, eventual consistency, transformation or stale-client defects.
Practical use: Record identifiers and timestamps at each layer and account for expected propagation delay. Export only the rows/columns needed for the defect.
Caveat: The database is not always the sole source of truth; event-sourced, replicated or cached systems require understanding the data architecture.
Summary
- This chapter covers 4 required concepts while keeping tool/formula details tied to a practical decision.
- Definitions, scope, assumptions and caveats matter more than a number or a tool name by itself.
- Claims that depend on a standard or product are grounded in the source registry below.