Data Protection and Encryption in Practice Questions
Protecting data at rest and in transit across real systems from an engineering rather than pure-cryptography standpoint. Covers encryption strategy and key management for stored and transmitted data, secrets and sensitive-data handling, tokenization and secure elements for payment and sensitive data, and secure data handling in application code. Applied data-protection controls, distinct from cryptographic primitive design and from privacy-regulation compliance.
Threat modeling exercise: an attacker compromises a CI runner and can access its filesystem and environment. Walk through the threat model, identify what secrets and capabilities the attacker can abuse, proposed mitigations (short-lived tokens, ephemeral runners, workspace isolation), and how you would detect and remediate such a breach.
Design a solution to provide ephemeral credentials to workloads across cloud providers using AWS STS, Azure Managed Identity, and GCP Workload Identity. Describe token issuance, trust relationships, credential refresh, caching strategies, and how to handle cross-account or cross-project access securely.
You discover that a production API key was leaked to a public paste site. Describe your emergency rotation procedure step-by-step: containment, validation, rotation, rolling updates, secrets revocation, communication, and post-incident actions to prevent recurrence.
Compare RBAC and ABAC models for access control to secrets. Give an example policy in each model that grants a microservice read access to secrets only in its own environment and explain strengths and weaknesses for large, dynamic cloud environments.
Describe what encryption 'at rest' and 'in transit' mean for secrets. For a cloud secret store integrate key management: explain how envelope encryption uses KMS (or equivalent) and why separate key rotation may be necessary in addition to rotating secrets themselves.
Unlock Full Question Bank
Get access to all 42 Data Protection and Encryption in Practice interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.