The interview problem
An AI document integration works on your laptop but fails inside a customer's container platform. The customer requires an outbound proxy and approved destinations. Small requests sometimes work, while streamed answers arrive all at once or disconnect. Diagnose the integration and define evidence for a safe production launch.
Original FDE practice, not a reported company interview. Timings and capacity are hypothetical. Primary curl documentation retrieved September 27, 2026; publication date not established.
1. Map the actual connection path
List the workload, runtime identity, resolver, proxy, destination hostname and port, TLS trust store and application credential source. Include identity-token endpoints, object-upload destinations and telemetry only where the integration actually needs them. A working model endpoint alone does not prove the whole workflow can authenticate or upload documents.
The laptop result narrows the problem but does not prove the application is correct in the container. Different DNS views, CA bundles, SDK proxy support and network policy can change behavior. Reproduce with the same image, service account, namespace and egress path as production, using a small synthetic request with no customer content.
Assign owners: customer networking owns the approved path, identity administrators own service access, the application team owns SDK settings and the provider owns endpoint behavior. The FDE assembles evidence across these boundaries rather than requesting an unrestricted exception.
2. Diagnose one layer at a time
runtime configuration → name resolution → proxy connection
↓
tunnel/transport establishment
↓
certificate and hostname verification
↓
application authentication and request
↓
streamed response and completionFirst distinguish DNS failure, proxy refusal, connection timeout, TLS verification error, HTTP rejection and response-body interruption. Capture elapsed phases, status codes, sanitized request IDs and the component generating the response. A 403 may come from the proxy or application; the number alone does not identify the owner.
For an explicit proxy, the destination may be resolved by the proxy rather than the local client, depending on protocol and configuration. A local DNS lookup therefore does not prove the proxy can resolve the destination. Likewise, connecting to the proxy proves neither a permitted CONNECT tunnel nor successful destination TLS.
Compare one controlled difference per test: host versus container, interactive user versus service identity, or small versus large payload. Preserve the rest of the path. Do not publish verbose traces containing authorization headers, cookies, signed URLs or document text into a shared ticket.
3. Repair trust without suppressing verification
curl's documentation distinguishes certificate trust and hostname checks, and notes that the chosen trust store depends on its TLS backend and build. A browser trusting the customer CA does not mean a container SDK uses the same store. Determine the runtime's actual CA source rather than assuming the operating system setting propagates.
If the approved path includes TLS inspection, obtain the customer-authorized trust chain through their trusted administration process. Install it in the intended runtime scope, retain hostname verification and test renewal. Do not trust an arbitrary certificate merely because the failed connection presented it. Expired certificates, wrong hostnames and missing intermediates require different fixes.
An HTTPS proxy can have its own TLS connection and trust configuration in addition to the destination connection. Keep these layers separate in the diagnosis. Mutual TLS or certificate pinning may be incompatible with interception; coordinate an approved tunnel or compatible architecture instead of quietly disabling the protection.
Record certificate ownership and rotation procedure. Rebuild an immutable container or update its managed trust configuration through the customer's release process; a manual fix inside one running pod will disappear on restart.
4. Trace a buffered or interrupted stream
Suppose the server emits first output at two seconds, but the client receives nothing until the complete answer at twenty seconds. End-to-end completion is twenty seconds while time to first visible output is also twenty, despite a two-second server first-byte measurement. Use a common request-relative timing definition; unsynchronized wall clocks across machines cannot establish this difference reliably. A buffering proxy, client buffering or response transformation could explain it; compare approved observations on both sides before identifying a cause.
For a disconnect, distinguish connect timeout, read-idle timeout, total-request deadline and proxy maximum connection age. A thirty-second idle timeout can interrupt a ninety-second task if no bytes flow for thirty seconds. A heartbeat helps only if permitted, forwarded promptly and actually counted by the relevant timeout; it does not extend an absolute lifetime limit.
If 120 requests arrive per minute and each stream remains open for an average of forty-five seconds, mean concurrency is 2×45=90 open streams in a stable system. If each connection carries only one active stream, a fifty-connection limit cannot sustain that workload under those assumptions. With HTTP/2 multiplexing, distinguish the connection limit from concurrent-stream and proxy-tunnel limits; ninety streams need not mean ninety TCP connections. Queuing, rejection or shorter occupancy changes the outcome; do not infer safe capacity from a successful single-user test.
Partial output must remain visibly incomplete. Retrying a streaming request can repeat content or external actions. Use supported request identity and recovery semantics; when completion is unknown, reconcile before repeating side effects. For long jobs, consider an approved asynchronous submit/status/result workflow rather than stretching every network timeout.
5. Specify the narrow required access
Create an endpoint matrix with purpose, hostname, port, protocol, data class, credential owner and dependency. Distinguish application authorization from network reachability. A connection allowed through the firewall must still authenticate with the correct scoped identity.
Document redirect and signed-upload behavior. An initial allowed API call may return an upload destination on another host; validate that host through the agreed policy before sending data. Do not blindly follow a server-provided URL with an application credential attached. Changing DNS or using an IP literal can also break hostname verification and service routing.
Test private DNS and proxy-bypass settings deliberately. A broad bypass rule can accidentally send traffic outside the required inspection path. Destination IPs may change, so use the provider's documented networking contract and the customer's supported allowlisting mechanism rather than assuming an observed IP is permanent.
6. Produce a reviewable acceptance packet
Attach a sanitized connection diagram, endpoint matrix, tested runtime versions, trust-store source and expected failure behavior. Include a successful synthetic end-to-end transaction from the production-equivalent workload identity, not just a developer terminal.
Exercise token renewal, pod restart, approved certificate rotation, streamed responses, maximum supported payload, cancellation and a proxy outage. Confirm rejected destinations remain rejected. Measure first visible output, completion time and error rates at representative concurrency, with retry limits active. Establish rollback to the prior configuration without opening unrestricted egress.
A hypothetical acceptance criterion might require the supported synthetic workflow to finish under sixty seconds at a stated load and never send customer documents to an unapproved host. The customer and application owner must agree on the actual thresholds and evidence. Passing one test does not establish availability under every network failure.
7. Trade-offs and self-review
A managed proxy centralizes policy but can alter streaming and add dependencies. Direct private connectivity may reduce some exposure while adding DNS and routing complexity. Asynchronous jobs tolerate short connection lifetimes but require durable job state and polling or callback permissions. Broader trust stores simplify connectivity while widening trust; keep changes justified and scoped.
Follow-ups: Does laptop success prove container connectivity? No. Does importing a CA fix a hostname mismatch? No. Does a heartbeat defeat all timeouts? No. Is a proxy 403 necessarily an API permission error? No. Does increasing retries fix a saturated connection pool? It can make the problem worse.
Score 0–2 each for layered diagnosis, correct trust handling, streaming arithmetic, scoped endpoint policy and production-equivalent acceptance evidence.
Sources and next steps
- curl: TLS certificate verification — trust-store selection, hostname verification and separate HTTPS-proxy trust.
The customer scenario, diagnostic workflow and calculations are original. See air-gapped delivery for a deployment with no approved external connection at all.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.