Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

Your payment card environment is subject to strict compliance. A proposal moves TLS termination from your own load balancers to a cloud provider's global edge to gain DDoS protection and lower latency, which means the provider's edge sees decrypted card data.

As the senior technical leader, how do you decide where TLS is terminated for regulated traffic?

I would start from what the edge would see in plaintext and what the compliance rules say about it: if the provider's edge decrypts card data, the provider and its systems enter our compliance scope and audits. Then I would look for options that keep card data protected through the edge, such as field-level encryption or tokenisation in the client, or passthrough for the payment paths only, check the provider's attestations, contract and key handling, weigh the DDoS and latency gains against scope, audit cost and lock-in, and decide per data class with security and compliance owners, documented and reviewed when rules or features change.

Why this question is asked

Moving TLS termination to a cloud edge is usually an easy win: better DDoS protection, lower latency, less hardware to run. For payment card traffic it is not easy, because whoever decrypts the traffic sees card numbers, and that changes who is in scope for the card industry's security standard. Interviewers ask this to see whether a senior leader can make a security and compliance decision with the right people and the right options, instead of a yes or no. In this answer, we will identify what the edge would see, look at ways to keep card data protected through it, check the provider, weigh the trade-offs, and set up how the decision is made and kept current.

1Start With What the Edge Would See

The first question is concrete: which requests carry sensitive data, and in what form? If the browser or app sends a card number in a JSON body over TLS, then whoever terminates TLS sees the card number in plaintext. Today that is our own load balancer, inside our audited card data environment. With the proposal, it would be the provider's edge servers in many countries.

Under PCI DSS, the standard for organisations handling card data, systems that store, process or transmit cardholder data, and systems connected to them, are in scope. An edge that decrypts card numbers transmits cardholder data, so the provider's edge becomes part of our assessment, and we must show that the provider meets the requirements for that service, usually through its own attestation and a clear division of responsibilities. That is not necessarily a blocker, but it is a real cost and a real dependency, and the compliance owner, not the engineering team alone, must agree.

2Options That Keep Card Data Protected Through the Edge

The best options remove the plaintext card number from the edge entirely, so the edge sees only encrypted or meaningless data. With client-side tokenisation, the card number is entered into a field provided by the payment processor's SDK or hosted page, sent directly to the processor, and our systems, edge included, receive only a token. With field-level encryption, the client encrypts the card fields with a public key whose private key lives only in our payment service, so the edge decrypts TLS but finds an encrypted blob inside.

A middle option is to split by path: let the edge terminate TLS for the website and general APIs, where it adds the most value, and use passthrough or a separate hostname that bypasses the edge for the payment endpoints. That keeps card data out of the edge, at the cost of losing edge protections on those paths.

Where TLS ends for card data
OptionEdge sees card numbers?Edge protection on paymentsMain cost
Status quo, own balancersno, we terminateonly what we run ourselvesless DDoS capacity, more latency
Provider edge terminates allyes, in plaintextfullprovider in scope, audits
Edge plus client tokenisationno, tokens onlyfullprocessor SDK, client changes
Edge plus field-level encryptionno, encrypted fieldsfullkey management, client changes
Edge, passthrough for payment pathsnolayer 4 only on those pathssplit routing, less protection there
Most of the gains with little scope expansion come from keeping card data unreadable at the edge.

3Check the Provider Before Trusting It

If the edge will see any regulated data, we examine the provider like any other service provider in scope. Does it hold a current PCI DSS attestation for the specific edge service we would use, not just for the company in general? What do the contract terms say about data handling, breach notification and audit rights? Where are the private keys held? Some edge providers support keeping TLS private keys in our own hardware security modules or key servers, so the edge asks our infrastructure to perform the signature and never holds the key itself. And who at the provider can access edge servers, debug logs and memory, and how is that controlled and logged?

4Weigh the Gains Against Scope, Cost and Lock-In

The benefits are real. A global edge absorbs volumetric DDoS attacks far larger than our own load balancers could, terminates TLS close to users so handshakes are faster, and offers bot protection and web application firewall rules. For a payment page, availability during an attack is itself a business requirement.

Against that: a larger compliance scope and higher audit effort every year, a dependency on the provider's controls that we cannot fully see, and lock-in, because edge rules, certificates and integrations are provider-specific. A decision that looks cheap in engineering time can be expensive in audit time. Often the combined option, edge for everything plus client tokenisation, gives most of the protection while removing card data from scope, and also shrinks our own scope, because our servers stop seeing card numbers too.

5Decide Per Data Class and Keep the Decision Alive

Rather than one decision for all traffic, I would classify the data: card data, other personal data, and public content, and decide where TLS ends for each. The decision is written down with the security and compliance owners, including the options considered, the scope impact and who accepted which risk. It becomes an architecture decision record that auditors can read.

Finally, it is reviewed when something changes: a new version of PCI DSS, a new provider feature such as key isolation, a change in our payment processor's offering, or an incident. What is the right answer this year may not be next year, and a documented decision makes that review quick.

6Follow-up questions

How would tokenisation in the client change the rest of the architecture?

Card numbers would no longer enter our systems at all. The client collects card details through the processor's hosted fields or SDK, receives a token, and sends only the token to our order service, which uses it to charge through the processor's API. Our databases, logs, queues and the edge then hold tokens, not card numbers, which shrinks the card data environment dramatically, often to the few systems that call the processor. The costs are a dependency on the processor's client libraries and hosted fields, some loss of control over the payment form's design, and work to migrate stored cards to tokens. Recurring payments and refunds then also work through tokens.

Who should make the final decision?

The accountable owners of the risk: the security lead and the compliance owner for the card environment, with the engineering leader presenting options and costs. Engineering should not accept a compliance scope change on its own, and compliance should not block an availability improvement without seeing the alternatives that keep data out of scope.

7Conclusion

In this answer, we saw that moving TLS termination to a provider edge for card traffic means the edge sees card data in plaintext and enters our compliance scope. We looked at options that keep card data unreadable at the edge, client tokenisation, field-level encryption and passthrough for payment paths, checked the provider's attestation, contract and key handling, weighed DDoS and latency gains against scope, audit cost and lock-in, and made the decision per data class, documented with security and compliance owners and reviewed when things change.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start by being precise about what the edge would see. If the client sends card numbers inside the TLS connection, then whoever terminates TLS sees them in plaintext, so the provider's edge would transmit cardholder data and enter our PCI DSS scope and audits.

Then, if they want more

That is a decision for the security and compliance owners together with engineering, not engineering alone. Then I would look for options that give us the edge benefits without exposing card data. The strongest is client-side tokenisation through the payment processor's fields or SDK, so our systems, edge included, only ever see tokens, which actually shrinks our scope.

Field-level encryption in the client works similarly, and a simpler option is passthrough or a separate hostname for just the payment paths. I would check the provider's PCI attestation for that specific service, the contract terms, whether private keys can stay in our own HSMs, and how its staff access is controlled.

Then I weigh the gains, DDoS absorption, global presence and lower latency, against scope expansion, ongoing audit cost and lock-in. My likely answer is edge for everything plus tokenisation in the client. Whatever we choose, I decide per data class, record it as an architecture decision with the owners, and review it when PCI DSS or the provider's features change.

About this answer

Last updated
13 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 "As the senior technical leader, how do you decide where TLS is terminated for regulated...": https://scrivio-interview-library.netlify.app/architecture/load-balancing-networking/4b40904c28/