Quick revision
The short answer
We map each framework's requirements to concrete engineering controls and run a gap assessment, then build those controls into the platform so teams inherit them: pipelines that enforce reviews and record approvals, standard logging and access management. Evidence is collected automatically from CI/CD, cloud configuration and identity systems, data residency is designed into the architecture with regional deployments or cells and data classification, every control has a named owner with a funded compliance engineering function, and the plan is sequenced by market entry dates and audit windows with regular reporting.
What to remember
In this answer, we planned the engineering side of SOC 2, ISO 27001 and data residency. We mapped requirements to one concrete control set with a gap assessment, built controls into the platform so teams inherit them, collected evidence automatically from CI/CD, identity and cloud systems, designed residency with regional cells and data classification, gave each control an owner with a funded compliance engineering function, and sequenced the work by market dates and audit windows.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
We map each framework's requirements to concrete engineering controls and run a gap assessment, then build those controls into the platform so teams inherit them: pipelines that enforce reviews and record approvals, standard logging and access management. Evidence is collected automatically from CI/CD, cloud configuration and identity systems, data residency is designed into the architecture with regional deployments or cells and data classification, every control has a named owner with a funded compliance engineering function, and the plan is sequenced by market entry dates and audit windows with regular reporting.
Why this question is asked
Entering regulated markets turns security and compliance from good practice into a sales requirement: large customers will not sign without a SOC 2 report or ISO 27001 certification, and some countries require personal data to stay inside their borders. Done badly, this becomes a yearly scramble of screenshots and spreadsheets that drains engineering. Done well, it becomes a property of the platform. Interviewers ask this to see whether a senior leader can plan it as engineering work. In this answer, we will recap what the frameworks ask for, map them to controls, build controls into the platform, automate evidence, design for data residency, assign ownership and sequence the plan.
1A Quick Recap of the Frameworks
SOC 2 is an attestation, not strictly a certification: an independent auditor reports on whether our controls meet the Trust Services Criteria, such as security and availability. A Type I report looks at controls at one point in time; a Type II report tests that they operated over a period, often six to twelve months. That period matters for planning, because the evidence must exist for the whole window.
ISO 27001 is a certification of an information security management system: a documented, risk-based way of running security, with a set of controls listed in Annex A of the 2022 edition. Certification involves an initial audit and yearly surveillance audits.
Data residency means certain data, usually personal data of a country's residents, must be stored, and sometimes processed, within a given region. It is driven by laws and by customer contracts, and it is an architecture problem, not a documentation one.
2Mapping Requirements to Controls and Finding Gaps
The frameworks overlap heavily, so we map their requirements to one set of concrete controls, each written in engineering terms. 'Changes are authorised and tested' becomes 'every production deployment comes from a merged pull request with an approving review and passing tests'. 'Access is reviewed' becomes 'quarterly review of access to production systems, recorded in the identity system'. Then a gap assessment, often with an external adviser, records which controls exist, which exist but leave no evidence, and which are missing.
| Requirement theme | Engineering control | Evidence source |
|---|---|---|
| Change management | PR review and tests required to deploy | CI/CD logs, repository settings |
| Access control | SSO, MFA, role-based access, quarterly reviews | identity provider exports |
| Encryption | TLS everywhere, KMS-managed keys at rest | cloud configuration scans |
| Logging and monitoring | standard audit logs, alerting, retention | log platform configuration |
| Vulnerability management | scanning, patch deadlines | scanner reports, ticket timings |
| Data residency | regional cells, data classification | deployment inventory, data maps |
3Building Controls Into the Platform
If every team implements controls separately, there will be 30 versions and 30 sets of evidence. So we put controls where every team already passes: the deployment pipeline enforces that only reviewed, tested commits from the main branch reach production and records who approved; branch protection is configured centrally; the service template brings standard audit logging and the observability starter; access to production goes through SSO with MFA and time-limited elevated access instead of permanent admin rights.
Teams then inherit compliance by using the paved road. The platform team's message becomes 'use the standard pipeline and you are covered', which is far easier to sell than a list of obligations.
4Automating Evidence Collection
Auditors ask for evidence: samples of changes with their approvals, access review records, configuration showing encryption. Gathering this by hand, with screenshots, does not scale and has to be repeated every audit. Instead, we collect it continuously from the systems that already record it: the CI/CD system's deployment history, the repository host's settings, the identity provider's audit logs and the cloud provider's configuration. Compliance automation tools can pull these into one place and alert when a control drifts, for example a repository whose branch protection was turned off.
- Control defined with an ownere.g. reviewed deploys only
- Platform enforces itpipeline and branch protection
- Systems record itCI logs, IdP logs, cloud config
- Evidence collected automaticallydaily, into one store
- Control drifted?YesAlert the control ownerNoEvidence ready for the auditor
5 steps in order. Play them, or step through them one at a time.
5Designing Data Residency Into the Architecture
Residency cannot be added by policy alone; the data has to live somewhere specific. A common design is cells: complete, independent deployments of the application stack per region, such as an EU cell and a US cell, each with its own databases and storage. Each customer is assigned a home region, and a thin global routing layer sends their requests to that cell.
This needs data classification: knowing which data is personal or regulated, which can be global (for example product catalogues), and which must never leave a region. Services tag data by class, and shared systems such as logging, analytics and backups are checked too, because a residency promise is broken just as easily by logs shipped to another continent as by a database in the wrong place. Each new market then becomes a question of whether an existing cell serves it or a new cell is needed.
6Ownership, Funding and Sequencing
Every control gets a named owner, a team or a role, responsible for keeping it working and answering the auditor about it. A small compliance engineering function, engineers who understand both the frameworks and the platform, works alongside the compliance or GRC team, translating requirements into controls and automation. Without it, compliance staff end up chasing engineers for screenshots.
Finally, we sequence by the business: which market opens first, which customer deals need which report, and when audit windows must start. A SOC 2 Type II report needs the observation period to have run, so if sales need the report in twelve months, controls must be operating within about three to six months. We report progress to leadership against those dates, with the gap list shrinking over time.
7Follow-up questions
Should we do SOC 2 or ISO 27001 first?
It depends on the markets and customers. US enterprise customers often ask for SOC 2; European and many international customers often ask for ISO 27001. Because the controls overlap, building one control set and evidence pipeline serves both, and the second audit is much cheaper than the first.
Does data residency mean we need a separate team per region?
No. With a cell architecture, the same code and pipelines deploy to every region; only the data and the infrastructure are separate. Operations may need regional access rules, for example limiting who can access production in a region.
What is the biggest mistake companies make here?
Treating compliance as a document project run by a few people before each audit. It produces controls on paper that nobody operates and a painful scramble every year. Building controls into the platform and automating evidence avoids both.
8Conclusion
In this answer, we planned the engineering side of SOC 2, ISO 27001 and data residency. We mapped requirements to one concrete control set with a gap assessment, built controls into the platform so teams inherit them, collected evidence automatically from CI/CD, identity and cloud systems, designed residency with regional cells and data classification, gave each control an owner with a funded compliance engineering function, and sequenced the work by market dates and audit windows.
Open with
I'd treat it as platform engineering, not a document project. First, map the requirements of SOC 2, ISO 27001 and the residency rules to one set of concrete controls, written in engineering terms, like every production deploy coming from a reviewed pull request with passing tests, and run a gap assessment to see what's missing or has no evidence.
Then, if they want more
Then build the controls into the platform so teams inherit them: the pipeline enforces reviews and records approvals, branch protection is central, access goes through SSO with MFA and time-limited elevation, and the service template brings standard audit logging.
Evidence should be collected automatically and continuously from CI/CD, the identity provider and cloud configuration, with alerts when a control drifts, because screenshots don't scale. For residency, I'd design regional cells with a home region per customer, plus data classification, and check logs, analytics and backups too.
Every control gets a named owner, and I'd fund a small compliance engineering group working with the compliance team. Finally, sequence by market entry and audit windows; a SOC 2 Type II needs an observation period, so controls must be running months before sales need the report. And I'd report progress to leadership against those dates.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "The company is entering regulated markets that require certifications (for example SOC...": https://scrivio-interview-library.netlify.app/architecture/platform-and-governance/5c9077fb91/