Final answer:
A foreign key is an attribute used to link two tables in a relational database, where it matches a primary key in a different table.
Step-by-step explanation:
The correct definition of a foreign key is option 4: An attribute that is used to link to another table through a matching value in a primary key field. A foreign key is a column or set of columns in a relational database table that provides a link between data in two tables. It does this by holding a value that matches a primary key in another table, ensuring referential integrity by enforcing a relationship between the data in the two tables.