What is a key-value pair — CCA-F Exam Prep

×
L0.080
Real personA customs officer at JFK airport scanning a passport. On screen next to them: Name: Danny, Nationality: Canadian, DOB: 1990-03-15. Three clean lines of data. The officer glances at the screen, then at the traveler. Two seconds.

A customs officer at JFK scans your passport. Two seconds.

The screen shows three lines. Name: Danny. Nationality: Canadian. DOB: 1990-03-15. In two seconds, the officer knows who you are, where you're from, and how old you are.

Last two lessons, you learned labels (L0.06) and values (L0.07) separately. But look at that screen -- they never appear alone. "Name" doesn't float around looking for data. It's locked to "Danny." Always together.