DB2 architecture includes databases, the database configuration file, tablespaces, buffer pools, and log files. Databases are independent collections of objects like tables and indexes. The database configuration file defines database properties. Tablespaces are logical storage areas for tables, and the default tablespaces are SYSCATSPACE, TEMPSPACE1, and USERSPACE1. Buffer pools in memory improve query performance by caching table data and logs record all database operations for recovery.