Software Engineer Principal Interview Questions

2,045 software engineer principal interview questions shared by candidates

Code Design – Rate Limiter. Here is the exact question I received. Problem Title: Rate Limiter Problem Description: Imagine we are building an application that is used by many different customers. We want to avoid one customer being able to overload the system by sending too many requests, so we enforce a per-customer rate limit. The rate limit is defined as: “Each customer can make X requests per Y seconds” Assuming that customer ID is extracted somehow from the request, implement the following function. // Perform rate limiting logic for provided customer ID. Return true if the // request is allowed, and false if it is not. boolean rateLimit(int customerId)
avatar

Principal Software Engineer

Interviewed at Atlassian

3.1
Sep 25, 2023

Code Design – Rate Limiter. Here is the exact question I received. Problem Title: Rate Limiter Problem Description: Imagine we are building an application that is used by many different customers. We want to avoid one customer being able to overload the system by sending too many requests, so we enforce a per-customer rate limit. The rate limit is defined as: “Each customer can make X requests per Y seconds” Assuming that customer ID is extracted somehow from the request, implement the following function. // Perform rate limiting logic for provided customer ID. Return true if the // request is allowed, and false if it is not. boolean rateLimit(int customerId)

Implement a service that tracks popularity of a given set of IDs (that represent some piece of content). Write code to increase/decrease popularity of a piece of content and a method that tells you the most popular content at any time.
avatar

Principal Software Engineer

Interviewed at Atlassian

3.1
Jan 12, 2024

Implement a service that tracks popularity of a given set of IDs (that represent some piece of content). Write code to increase/decrease popularity of a piece of content and a method that tells you the most popular content at any time.

Viewing 671 - 680 interview questions

Glassdoor has 2,045 interview questions and reports from Software engineer principal interviews. Prepare for your interview. Get hired. Love your job.