Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your company is preparing for SOC 2 and PCI DSS audits across many Spring applications. How would you turn security configuration into auditable controls with evidence, without slowing teams down?

I would map each control requirement to concrete technical settings, authentication, authorization, TLS and logging, implemented once in the platform starter, and generate the evidence automatically: configuration reports, test results and dependency scans stored with every release. Drift is detected by automated checks in CI and at runtime instead of manual reviews, the scope of systems that handle card data is kept as small as possible, and teams get clear guidance on what they own and what the platform provides.

Why this question is asked

Audits like SOC 2 and PCI DSS ask two questions: do you have the right controls, and can you prove they worked throughout the period? Many companies can answer the first and struggle with the second, so the weeks before an audit turn into screenshot collecting and spreadsheet filling, which slows every team and proves little. Interviewers ask this leadership question to see whether we can make compliance a by-product of how we build, rather than a separate project. In this answer, we will recap what the two audits look for, map controls to settings, automate evidence, detect drift, reduce the card data scope, and divide responsibilities between teams and the platform.

1A Quick Recap: What the Auditors Look For

SOC 2 is an attestation report on a company's controls, organised around trust services criteria such as security, availability and confidentiality. A Type II report covers a period, often six to twelve months, so the auditor wants evidence that controls operated the whole time, not just on audit day. The company chooses and describes its own controls, and the auditor tests them.

PCI DSS is a prescriptive standard for anyone who stores, processes or transmits cardholder data. Version 4.0 sets specific requirements, for example strong authentication, encryption of card data in transit, restricted access on a need-to-know basis, logging and log review, and secure development. It applies to the cardholder data environment, the systems that touch card data and those connected to them, which is why scope matters so much. In both cases, what the auditor needs is evidence linking each requirement to something we actually do.

2Mapping Controls to Technical Settings

The first step is a control matrix: each requirement, the technical setting that satisfies it, and where that setting lives. The aim is that most rows point to the platform starter or shared infrastructure, so one implementation covers every service that uses it.

From control to setting to evidence
Control areaTechnical settingWhere it livesEvidence
AuthenticationOAuth2 resource server, MFA at the IdPstarter + IdPconfig report, IdP policy export
Authorizationdeny by default, declared public endpointsstarter + team rulesendpoint report, auth tests
Encryption in transitTLS 1.2+ at gateway, mTLS in meshplatformTLS scan results
Loggingauth events, admin actions, to central storestarterlog pipeline config, sample queries
Vulnerability managementdependency scanning per buildCI pipelinescan reports per release
Change managementreviewed PRs, CI gatessource controlPR and pipeline history

Notice the third column. A control that lives in the starter is implemented once and inherited by all services; a control that lives in each team's code is implemented 80 times and must be evidenced 80 times. Moving controls into the platform is the single biggest saving for both engineering and audit.

3Generating Evidence Automatically

Every release pipeline produces an evidence bundle and stores it with the release, in an immutable store with retention matching the audit period. The bundle contains the effective security configuration report from the starter, the authorization test results, the dependency and container scan results, and the link to the reviewed pull request.

YAML
# CI pipeline step, per service, per release
evidence:
- security-config-report.json # from the starter: chains, rules, public endpoints, headers
- authorization-tests.xml # shared test kit results, all endpoints
- dependency-scan.json # known vulnerabilities, with policy decision
- sbom.cdx.json # software bill of materials
- change.json # PR id, reviewers, approvals, commit
# stored as: evidence/<service>/<version>/ retention: 400 days
Step throughEvidence produced by every release
  1. Developer opens a pull requestreview and approval recorded
  2. CI runs authorization tests and scansresults attached to the build
  3. Policy gate: tests pass, no critical vulnerabilities?
    YesBuild the releaseNoBlock and notify the team
  4. Store the evidence bundle with the releaseimmutable, kept for the audit period
  5. Deploy; runtime checks continuedrift alerts go to the owning team

5 steps in order. Play them, or step through them one at a time.

Evidence is a side effect of shipping, not a separate task before the audit.

The configuration report is the most useful piece. The starter can expose a small report, at startup or through a build step, listing the active filter chains, the authorization rules, every endpoint marked public and why, the token issuer and the security headers. An auditor sampling three services and three releases gets three bundles in minutes, and the same report helps engineers answer 'what is actually configured here?' without reading code.

4Detecting Drift Without Manual Reviews

Controls decay between audits: a service drops off the starter, a team disables a header, a new endpoint is marked public without a reason. Manual quarterly reviews catch some of this late. Automated checks catch it as it happens. In CI, policy gates fail a build that turns off the starter's chain without an approved exception, or ships a dependency with a critical known vulnerability past its deadline.

At runtime, scheduled checks scan every service: does it reject a request without a token, does it serve the expected headers, is TLS configured correctly, is it on a supported starter version? Results go to a dashboard and drift opens a ticket for the owning team. For the auditor, the history of these checks is itself evidence that controls operated continuously through the period.

5Limiting the Card Data Scope

PCI DSS applies to every system in the cardholder data environment and those connected to it, so every service that touches a card number multiplies the audit work. The most effective step is to make sure almost none do. With a payment provider's hosted fields or tokenization, the card number goes from the browser straight to the provider, and our services only ever see a token that is useless to an attacker.

The few services that must remain in scope are isolated in their own network segment, with their own stricter controls, and the rest of the company is out of PCI scope, needing only SOC 2-level controls. Shrinking scope from fifty services to two does more for both security and audit cost than any amount of documentation.

6Clear Ownership: Teams and Platform

Teams move fastest when they know exactly what they own. I would publish a short responsibility guide: the platform provides authentication, default authorization, headers, TLS, logging pipelines, scanning and evidence collection; each team owns its declared public endpoints and their reasons, its object-level authorization rules, keeping the starter current, fixing vulnerabilities within the policy deadlines, and any controls specific to its data.

With that split, an audit request for a service turns into a list: the platform's evidence covers most rows, and the team supplies the few that are theirs. Most teams never see the audit at all, beyond a ticket when a check finds drift, which is how compliance should feel.

7Follow-up questions

How do we handle exceptions, such as a service that cannot use the starter?

Through a documented exception process: the team records why, which compensating controls it uses, and an expiry date, approved by security. The exception is listed in the evidence store, and the drift checks treat the service according to its exception rather than flagging it every day.

Does automated evidence satisfy auditors?

Generally yes, and auditors often prefer it, because system-generated records with timestamps are harder to fake than screenshots. We should walk the auditor through how the evidence is produced and protected early in the engagement, so they can rely on it for sampling.

Where does logging fit for PCI DSS?

PCI DSS requires logging access to cardholder data and security events, protecting logs from tampering and reviewing them. The starter emits authentication and authorization events in a standard format to a central store with restricted access and retention, and alert rules provide the review, which again turns a requirement into a platform setting.

8Conclusion

In this answer, we turned security configuration into auditable controls by mapping each requirement to a concrete setting, mostly in the platform starter, and generating evidence automatically with every release: configuration reports, test results, scans and change records. Automated checks in CI and at runtime detect drift continuously instead of manual reviews, tokenization keeps the card data scope to a few isolated services, and a clear split of responsibilities between platform and teams keeps compliance from slowing anyone down.

What to say in the interviewAbout 80 seconds aloud

Open with

I would make compliance a by-product of the platform rather than a project before each audit. First, a control matrix: for each SOC 2 criterion and PCI DSS requirement, the concrete technical setting that satisfies it, such as resource server authentication, deny-by-default authorization, TLS and mutual TLS, central security logging and dependency scanning, and where it lives.

Then, if they want more

Most rows should point to the platform starter or shared infrastructure, so one implementation covers every service. Second, automatic evidence: every release pipeline stores a bundle with the starter's configuration report, authorization test results, dependency scans, an SBOM and the reviewed pull request, kept for the audit period.

Third, drift detection: CI gates block releases that turn off the standard chain or ship critical vulnerabilities, and scheduled runtime checks verify tokens are required, headers and TLS are right and starter versions are current, which also proves controls operated continuously.

Fourth, I would shrink PCI scope with tokenization or hosted payment fields so only a couple of isolated services ever see card data. And finally a short responsibility guide, what the platform provides and what each team owns, so most teams only notice the audit as an occasional drift ticket.

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 documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Security reference
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 "Your company is preparing for SOC 2 and PCI DSS audits across many Spring applications....": https://scrivio-interview-library.netlify.app/spring-boot/security-architecture/c01e9c1969/