InterviewStack.io LogoInterviewStack.io

Privacy Preserving Cryptography Questions

Techniques that combine cryptography and privacy engineering to enable secure computation and data protection. Core topics include homomorphic encryption for computing over encrypted data, secure multi party computation for collaborative computation without revealing inputs, differential privacy methods for statistical analysis with privacy guarantees, oblivious transfer and related secure protocol primitives, and zero knowledge proof systems for proving statements without revealing secrets. Coverage includes practical use cases, performance and scalability limitations, parameter and threat model selection, trade offs between privacy and utility, deployment challenges, and when to prefer one approach over another.

HardSystem Design
77 practiced
Architect a multi-region, privacy-preserving ML training system for cross-border collaborative training. Constraints: data must remain within each region's jurisdiction, support ~1000 concurrent training nodes, tolerate 10% node failures, and deliver final models with DP guarantees. Describe a high-level architecture that uses MPC (or hybrid MPC/HE), network topology, key management/rotation, bandwidth optimizations, privacy accounting across regions, and compliance controls for auditors.
MediumTechnical
83 practiced
Implement a prototype in Python for a two-party honest-but-curious protocol that computes the dot-product of two private integer vectors: A holds vector a, B holds vector b. Use additive secret sharing modulo a large prime: A and B create shares, exchange them via simulated channels (lists), and reconstruct the dot-product without revealing full vectors. Document how you handle modular arithmetic and vectorization.
HardTechnical
87 practiced
Prototype a privacy-preserving k-nearest-neighbors (kNN) search where the client holds a query vector and the server holds a dataset of indexed vectors. Using additive secret sharing as your primitive, implement a simulated server-side protocol that computes Euclidean distances without the server learning the client's query and without revealing dataset vectors to the client beyond the returned k nearest items. Provide code for share generation, pairwise distance computation using shares, and result reconstruction. Discuss communication and computation costs.
EasyTechnical
139 practiced
Explain differential privacy in the context of machine learning. Define (ε, δ)-differential privacy formally, describe the intuition behind the guarantee, and show a short example (a counting or mean query) illustrating how the Laplace or Gaussian mechanism achieves (ε, δ)-DP. In your answer, mention how sensitivity is computed for counts and means and discuss the trade-off between smaller ε and model utility.
HardTechnical
92 practiced
Design an automated privacy-testing framework to integrate into CI/CD for ML models. The framework must run membership inference, attribute inference, reconstruction attacks, and DP budget checks as part of pre-deployment validation. Specify attack implementations (black-box vs white-box), test data generation strategies, pass/fail thresholds, reporting and remediation actions, and how to avoid false positives blocking legitimate releases.

Unlock Full Question Bank

Get access to hundreds of Privacy Preserving Cryptography interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.