Applied Cryptography and Key Management Questions

Selecting and applying cryptographic primitives correctly: symmetric and asymmetric encryption, hashing, digital signatures, key derivation, secure random number generation, and public key infrastructure. Covers key lifecycle management, key exchange and distribution, choosing appropriate algorithms for a given constraint set including resource-constrained environments, and the forward-looking side of algorithm lifecycle: cryptographic agility and algorithm-migration strategy, forward secrecy, and the post-quantum cryptography transition and planning upgrades without breaking existing data or interoperability. The applied-crypto engineering layer, distinct from compliance-driven crypto standards.

EasyBehavioral
27 practiced

Behavioral: describe a concrete project where you designed or implemented cryptography in production. Using the STAR format, explain the problem, what you built, the algorithms and libraries you used, the trade-offs you weighed (security, performance, developer ergonomics), and the measurable outcome. If you don't have direct experience, describe a hypothetical project in the same level of detail.

EasyTechnical
51 practiced

Why can't you just hash a password with SHA-256 and call it done? Walk through what a key derivation function actually is (how it differs from a plain hash or a PRF) and compare PBKDF2, bcrypt, scrypt, and Argon2 as password-storage choices: the core mechanism each relies on (iteration count vs memory hardness), typical parameter knobs, and strengths/weaknesses. Then explain how the calculus changes when you're deriving a session key from an already-random shared secret instead of a low-entropy password, and where HKDF fits that case.

HardTechnical
30 practiced

Analyze the performance and scalability trade-offs of envelope encryption at internet scale: the CPU cost of AEAD on service hosts, the latency and overhead of KMS calls to unwrap key-encryption keys, client-side caching strategies for unwrapped keys, TTL selection, and throttling policies to protect the KMS from being overwhelmed. When fetching wrapped keys per request becomes a bottleneck, what do you actually cache, how do you invalidate that cache safely on rotation (including using mlock-style in-memory secure caches), and what monitoring signals would tell you the cache itself has become a security risk?

MediumTechnical
31 practiced

A cloud VM image was restored from a snapshot, and you discover weak keys were generated on boot because of low entropy. Describe your immediate detection and mitigation steps for affected instances, and the longer-term architectural changes you'd make to prevent entropy-starvation problems across the fleet.

MediumTechnical
26 practiced

Write a Terraform configuration snippet that provisions an AWS KMS symmetric key with automatic key rotation enabled, a dedicated admin role with restricted permissions, and a grant that lets a Lambda function encrypt/decrypt without ever exposing the key material. Include the relevant IAM policy and explain how this enforces separation of duties.

Unlock Full Question Bank

Get access to all 24 Applied Cryptography and Key Management interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.