← All articles
Compliance8 min read

DPDP and Cloud Architecture: Privacy by Design in Practice

Data minimization, access boundaries, and residency considerations for platforms operating under India’s DPDP expectations.

India's Digital Personal Data Protection Act, 2023 (DPDP Act) sets out how organisations—Data Fiduciaries—may process the digital personal data of individuals—Data Principals. It is built around consent and legitimate uses, purpose limitation, data minimisation, accuracy, storage limitation, reasonable security safeguards, breach notification, and rights for individuals to access, correct, and erase their data. Most of those obligations turn into concrete requirements for cloud architecture.

Privacy by design in the data lifecycle

  1. CollectNotice, consent records, and minimisation
  2. StoreClassification, encryption, location awareness
  3. UsePurpose-bound access and logging
  4. ShareProcessor contracts and controlled transfers
  5. EraseRetention limits and verified deletion
Every stage of the lifecycle needs a technical control that matches a legal obligation.

1. Know what personal data you hold

You cannot meet any DPDP obligation without a data inventory. Map which systems hold personal data, what categories it includes, the purpose each was collected for, where it is stored, who can access it, which processors receive it, and how long it is kept. Tag cloud resources with data classification and purpose so automation can enforce policy and find data when someone asks for access or erasure.

Classification and purpose tags enforced at the provider levelhcl
provider "aws" {
  region = "ap-south-1"
  default_tags {
    tags = {
      owner = "customer-platform"
    }
  }
}

resource "aws_s3_bucket" "kyc_documents" {
  bucket = "example-kyc-documents"
  tags = {
    data_classification = "personal-sensitive"
    processing_purpose  = "kyc-verification"
    retention_days      = "1825"
  }
}

Where processing relies on consent, the Act requires it to be free, specific, informed, unconditional, and unambiguous, with a clear affirmative action, and as easy to withdraw as to give. Engineering needs a consent ledger: an append-only record of what each person agreed to, for which purpose, when, through which notice version, and when they withdrew. Downstream systems check purpose before processing, and withdrawal propagates to them.

Append-only consent ledgersql
CREATE TABLE consent_events (
  id              bigserial PRIMARY KEY,
  principal_id    text        NOT NULL,
  purpose         text        NOT NULL, -- e.g. 'marketing-email', 'kyc-verification'
  action          text        NOT NULL CHECK (action IN ('granted', 'withdrawn')),
  notice_version  text        NOT NULL,
  channel         text        NOT NULL, -- web, app, call-centre
  occurred_at     timestamptz NOT NULL DEFAULT now()
);

-- Current consent state per principal and purpose
CREATE VIEW current_consent AS
SELECT DISTINCT ON (principal_id, purpose)
       principal_id, purpose, action, notice_version, occurred_at
FROM consent_events
ORDER BY principal_id, purpose, occurred_at DESC;

3. Minimise and separate

Collect only what each purpose needs, and keep identifying data separate from operational and analytical data. Pseudonymise records for analytics by replacing direct identifiers with tokens, and restrict the mapping table to a small number of services. This reduces the impact of any breach and makes erasure easier, because personal data lives in fewer places.

How does your cloud measure up?

Score your setup across foundation, delivery, reliability, security, and cost in 3 minutes—instant results, no email needed.

Take the free scorecard

4. Reasonable security safeguards

The Act requires Data Fiduciaries to protect personal data with reasonable security safeguards to prevent breaches. In cloud terms that means the fundamentals applied consistently: encryption at rest and in transit, least-privilege access with MFA, private networking for data stores, centralised audit logging, vulnerability management, and tested backups. Access to personal data should be logged at the application level—who viewed which record and why—not only at the infrastructure level.

5. Retention and erasure

Personal data should be erased when the purpose is no longer being served or consent is withdrawn, unless retention is required by law. Encode retention in infrastructure so it happens without manual effort, and build erasure workflows that remove a person's data from every system on the inventory—including search indexes, caches, analytics copies, and processor systems—while handling backups through defined expiry.

Lifecycle expiry for retention-bound datahcl
resource "aws_s3_bucket_lifecycle_configuration" "kyc_documents" {
  bucket = aws_s3_bucket.kyc_documents.id

  rule {
    id     = "expire-after-retention-period"
    status = "Enabled"
    filter {}
    expiration {
      days = 1825 # align with the documented legal retention period
    }
    noncurrent_version_expiration {
      noncurrent_days = 30
    }
  }
}

6. Rights requests at scale

Data Principals can request information about processing, correction, completion, updating, and erasure of their data, and can nominate another person to exercise rights. Treat these as product features: an authenticated request flow, a workflow that fans out to every system holding that person's data, verification of completion, and an auditable record of each request and response. The data inventory and consistent identifiers are what make this feasible.

7. Breach readiness

The Act requires notifying the Data Protection Board of India and affected Data Principals of personal data breaches. You cannot notify accurately if you cannot tell what was accessed. Make sure audit logs capture data access, detection services alert on unusual data movement, and your incident response plan includes privacy-specific steps: scoping affected individuals, preserving evidence, legal review, and notification templates prepared in advance.

8. Processors and transfers

When a processor—a SaaS tool, a cloud service, an outsourced support team—handles personal data on your behalf, you remain responsible. Keep processors on the data inventory with contracts that cover security and deletion. The Act generally permits transfers outside India except to countries the government restricts, and some sectors have their own localisation rules, so keep data location visible through tagging and region-restriction policies and check sector regulations for your industry.

Children's data and higher-risk processing

The Act places additional obligations on processing personal data of children, including verifiable parental consent and restrictions on tracking, behavioural monitoring, and targeted advertising directed at children. Organisations designated as Significant Data Fiduciaries face further duties such as appointing a Data Protection Officer, independent audits, and periodic impact assessments. If either applies, build age-assurance and consent flows, segregate the data, and plan for audit evidence from the start rather than retrofitting it.

Where to start

  1. Build the data inventory and tag cloud resources with classification and purpose.
  2. Stand up the consent ledger and connect it to the systems that send communications or run optional processing.
  3. Encode retention periods and test erasure end to end for one data subject.
  4. Close the biggest security gaps around personal data stores: public exposure, missing encryption, broad access.
  5. Rehearse a breach scenario, including scoping who was affected from logs.

Treat privacy requirements as backlog items with acceptance criteria, not as a one-off project. New features that collect personal data should include a short privacy review in their design: what data, for which purpose, which consent or legitimate use applies, where it is stored, and how it will be deleted.

Review the inventory each quarter so new systems and processors do not slip outside it.

Checklist

  1. A maintained inventory of personal data, purposes, locations, access, processors, and retention.
  2. Classification and purpose tags enforced on cloud resources.
  3. An append-only consent ledger with withdrawal propagated to processing systems.
  4. Minimisation and pseudonymisation for analytics and secondary uses.
  5. Encryption, least privilege, private networking, and application-level access logs.
  6. Retention encoded in infrastructure and complete erasure workflows.
  7. Rights request workflows with audit records.
  8. Breach detection, scoping capability, and notification-ready incident response.
  9. Processor contracts, transfer visibility, and sector-specific localisation checks.

Privacy by design is easier to build in than to retrofit. Our Control & Evidence Ready work helps teams implement DPDP-aligned data inventories, consent records, retention, and security safeguards on AWS, Azure, and GCP.

Key takeaways

  • Know what personal data you store, why, and where it flows.
  • Minimize collection; encrypt and tightly control access to personal data stores.
  • Build deletion and retention into the platform—not as a helpdesk afterthought.

FAQ

Does DPDP require data to stay in India?

Requirements evolve and depend on context. Architect for clear residency choices and documented cross-border paths rather than accidental replication.

What is privacy by design for engineers?

Default-deny access, purpose-limited fields, retention jobs, audit logs on personal data access, and product UX that does not collect unnecessary PII.

Need help putting this into practice?

Our engineers do this every week. Get a fixed-scope plan for compliance readiness—free scoping call, written price before you commit.

Get a free scoping call