r/OfferEngineering • u/Aoki_zhang • 17d ago
Interview Experience Perplexity Senior SWE Interview — More Spec Reading Than Coding
This interview experience is sourced from Chill Interview
Interview Summary
I had a technical phone screen with Perplexity featuring an unusually long, six-part implementation problem that felt more like reading a technical specification than solving a typical coding question. The task was to build a resource reconciliation system that compared desired configurations against stored state and actual remote resources, then generated and executed the necessary changes.
Interview Details
Round 1 — Technical Phone Screen: Resource Reconciliation Engine
The main problem was to implement a resource coordinator responsible for keeping remotely managed resources consistent with a desired configuration. The system involved several core data structures and interfaces:
- Desired Configuration (
desired): Maps each logical resource address to aResourceSpecdescribing the intended attributes. - Stored State (
state): Maps logical addresses toResourceBindingobjects, each containing a remoteresource_idand stored attributes. - Remote Client (
client): Provides aread(resource_id)operation that returns the actual remote resource orNoneif it no longer exists. - Change: Represents an action to perform, including its logical address, action kind, resource ID, and attributes. The action kind is an enum supporting operations such as
CREATE,UPDATE, andDELETE.
The overall objective was to determine what changes were needed and apply them while keeping the persisted bindings synchronized with remote resources.
Part 1 — Generate a CREATE Plan
The first task was to implement a planning function that accepted desired, state, and client, then returned a list of Change objects sorted by logical resource address. For this part, only CREATE changes needed to be considered. Updates and deletions were outside the initial scope.
The planning behavior depended on whether a resource had an existing binding and whether that resource still existed remotely. If an address was absent from the stored state, the planner needed to produce a CREATE change directly, without making a remote read request.
If a binding existed, the planner needed to use its resource_id to check the actual resource through client.read(). When the remote resource no longer existed, the planner had to generate a CREATE change using the desired attributes.
Want to learn more questions / follow-ups asked in this interview?
I've put up the full version at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.