Personal data protection
Персональные данные
Protecting personal data means controlling how information that can identify someone is collected, used, shared, stored, and deleted. It also means keeping that information safe from unauthorized access.
Also known as: 152-ФЗ, GDPR
What counts as personal data?
Think of a customer record with a name, phone number, and shipping address. Those fields are personal data, but removing the name does not necessarily change that. An account ID can identify someone indirectly if the company can look it up. A combination of fields can do the same: job title and office location might point to one employee, even if neither field does so on its own.
Data protection goes beyond keeping a database secure. A system can encrypt every record and still collect more information than it needs or keep it longer than justified. The GDPR is the EU’s General Data Protection Regulation; Russia’s Federal Law No. 152-FZ is a separate legal framework. Neither is another name for data protection itself. Which rules apply depends on the organization and the processing. Consent is one possible legal basis, not a blanket requirement for every use.
What engineering teams do
- Start with the purpose. If a form only needs an email address to send a receipt, don’t add a date-of-birth field just in case it’s useful later.
- Map where the data goes. Include logs, queues, caches, exports, backups, and vendors. A retention rule on the main database won’t remove a CSV from an analyst’s shared folder.
- Limit access and protect each copy. TLS protects data in transit, while storage encryption helps protect stored data. Authorization determines which people and services may read or change it. Encryption doesn’t fix an overly broad support role.
- Design for the end of the lifecycle. Set retention periods, automate expiry where practical, and account for any records that must be kept by law. Plan how a restore will avoid reintroducing records already deleted from live systems.
Example: product analytics without raw emails
Suppose a team wants to count how many users complete onboarding. Its analytics events need a step name and, if it needs to connect steps from the same account, an identifier. They don’t need the user’s raw email. A dedicated analytics ID limits what appears in the event stream. But if the company can link the ID back to the person, this is pseudonymization, not anonymization. Hashing an email does not automatically make it anonymous either: someone may be able to hash candidate addresses and match the results.
How it comes up in interviews
A system design interviewer might ask how you would handle account deletion when a profile service, search index, and analytics pipeline all hold copies. Identify the data flows before proposing a deletion job. Explain how downstream services learn about the deletion, how you verify completion and retry failures, and what happens to backups and records subject to retention requirements. The key distinction is between deleting the primary record and handling the full lifecycle of its copies.