High Auth Question 171 of 226

When would you use mTLS between microservices instead of only a gateway JWT?

Java Specialist · Speak this in 60–90 seconds · Faridabad & Delhi NCR

PICTURE THIS: A SENTENCE BECOMES TOKENS

The model does not read letters like humans. It reads these pieces, then predicts the next one.

Simple meaning

A gateway JWT proves the user to the first hop

1

WHY — Auth instead of guessing?

Why interviewers care about Auth:

They are checking judgment

on Auth.

A good answer names

the situation, the default choice, and one exception - that reads as experience.

Stay structured

Name the idea, why it exists, then one short example.

Close cleanly

End with when you use it and one common pitfall.

2

STEPS — What happens with tokens?

Before the model can read a sentence, it goes through these steps:

  1. 1
    A gateway JWT proves

    the user to the first hop

  2. 2
    east-west traffic can still

    be spoofed if the network is flat.

  3. 3
    mTLS proves service identity

    with certificates so inventory only accepts calls from the order service.

  4. 4
    Combine both: user context

    in a signed token, service identity in mTLS.

  5. 5
    Next token

    The model scores what should come next.

  6. 6
    Decode

    IDs turn back into readable text.

3

EXAMPLE — See it in action

Let's see how a real sentence is tokenized (tokens may vary by model):

Input text
“mTLS proves service identity with certificates so inventory only accepts calls f”
Tokenized output
mTLSprovesserviceidentitywithcertificates
Token IDs (example)
2987408337471632900

Note: Actual tokens and IDs depend on the tokenizer (e.g., GPT, Llama, etc.).

Key takeaway

A gateway JWT proves the user to the first hop east-west traffic can still be spoofed if the network is flat.

Chat with us