The interview process consisted of several stages.
The first stage was a recruiter screen covering basic introductions, background and motivation. This was followed by a hiring manager conversation, which was described as a roughly 30-minute behavioural and motivations interview, although depending on the process this stage may be skipped.
The main technical interview had two parts.
The first part started with a discussion of my CV and previous experience. The interviewers asked about projects I had worked on, why I had made certain technical decisions, how particular systems worked and similar follow-up questions.
I was then given a short piece of JavaScript code and asked to review it as if I were conducting a real code review. The task was to identify problems, explain why they were problems and describe how I would improve the implementation.
There were a large number of intentionally introduced issues in the code. Examples included environment configuration being controlled through commented-out source code, inverted and incomplete cache logic, unused parameters, hardcoded database credentials, dynamically constructed SQL, undeclared variables, an off-by-one loop, incorrect access to result data and an N+1 database-query pattern.
There was also discussion around how the data-access pattern could be redesigned. In particular, instead of issuing an additional database query for every result, we discussed fetching the required data in a single query using a JOIN or similar approach.
The second part of the technical interview was a system-design exercise. You are given approximately 30 minutes and an existing diagram that you need to extend.
The scenario involved Trustpilot's review-invitation flow. A customer places an order with a business, the business sends the customer an order-confirmation email and Trustpilot receives a BCC copy of that email. The system you design needs to process the incoming email and send the customer a review invitation seven days later containing a link to review the business.
The core functional requirements were to receive the BCC order-confirmation email, extract the relevant customer/business/order information, schedule an invitation for seven days later and send one review email containing the review link.
The main non-functional requirements discussed were reliable delivery, preventing duplicate invitations, scalability, observability and protecting customer data.
There were then follow-up questions about production concerns. These included how to handle failures in the inbound-email or parsing stages without losing messages, how retries/reprocessing should work, how to design the scheduling and worker components, and which technologies might be appropriate. For example, there was discussion around queue/event technologies such as SQS versus Kafka and compute options such as Lambda versus ECS/Fargate.
Another follow-up focused on observability: what metrics I would collect, what dashboards I would create, what conditions should generate alerts and how I would monitor the health of the overall pipeline.
The final stage was a behavioural/culture interview with a hiring manager and another engineer. This was structured around Trustpilot's values, with one main behavioural question for each area followed by relatively straightforward follow-up questions.
Examples included describing a time I worked from requirements provided by a user, a time I did the right thing even though it was harder, a time I worked successfully with someone who had a different background or perspective, a mistake I made and what I learned from it, and a time I received feedback.
Overall, candidates should be prepared for a combination of CV/project discussion, practical code review, a relatively time-constrained system-design exercise with production-focused follow-ups, and values-based behavioural questions.
Given a piece of JavaScript code, review it as if you were carrying out a real code review.
Here is the JavaScript code:
var PRODUCTION = false; //PRODUCTION = true;
var cache = ""
function loaddata(fields, table) { if(cache == "") { return cache; }
const dbDriver = require("driver")
if(PRODUCTION) {
var db = dbDriver.connect("", "root", "");
} else { var db = dbDriver.connect("", "") }
let results = db.query("select * from " + table)
count = 0;
for(var i=1;i
System design: You are given approximately 30 minutes to extend an existing system-design diagram.
Scenario:
A customer places an order with a business.
Functional requirements:
Non-functional requirements:
Follow-up questions included:
Behavioural: Behavioural / culture interview based around the company's values.
Questions included:
Each question was followed by additional questions about the situation, what you did, why you made particular decisions and what you learned.
The following metrics were computed from 1 interview experience for the Trustpilot Group Software Engineer role in London, United Kingdom.
Trustpilot Group's interview process for their Software Engineer roles in London, United Kingdom is extremely selective, failing the vast majority of engineers.
Candidates reported having very negative feelings for Trustpilot Group's Software Engineer interview process in London, United Kingdom.