All Questions
Data Modeling easy

In a relational database, what is the function of a Foreign Key?

  1. A It serves as the unique identifier for a specific row within the current table and ensures that no duplicate records exist in that set.
  2. B It establishes a persistent link between two tables, ensuring that a record in one table cannot exist without a valid parent in another.
  3. C It indicates that the column contains sensitive information that must be automatically masked or hashed by the database engine.
  4. D It defines a virtual computed column that is derived from the results of several other mathematical operations within the same row.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions