Publicis Sapient | Senior Associate Platform L1
Summary
I went through an interview process for a Senior Associate Platform L1 role at Publicis Sapient, which included a Hackerrank test followed by a technical round covering various Java, multithreading, OOP, and system design topics.
Full Experience
I interviewed for the Senior Associate Platform L1 position at Publicis Sapient. The process began with a Hackerrank test, which I found to be quite easy, although I don't recall the exact problems.
The second round was a comprehensive technical discussion covering a wide array of topics. I was asked several coding problems, including finding the nearest number in a sorted array and designing a multithreaded program to print numbers in a specific sequence. Additionally, there were numerous conceptual questions on Java serialization, creating immutable classes, Functional Interfaces, CompletableFuture vs. Future, different ways to create thread pools with ExecutorService, CachedThreadPool vs. FixedThreadPool, Stream API, fail-fast vs. fail-safe mechanisms, Kubernetes Helm charts, Factory design pattern, AWS services, and API Gateway.
Interview Questions (14)
Design a program where three threads (t1, t2, t3) print numbers in a specific interleaved sequence: t1 -> 1, t2 -> 2, t3 -> 3, t1 -> 4, t2 -> 5, and so on.
Discuss concepts and aspects related to Java serialization.
Given the following Java class, explain and demonstrate how to convert it into an immutable class:
class Employee {
private String name;
private Integer age;
private Address address;
}Discuss concepts and usage of Functional Interfaces in Java.
Explain the differences between Java's CompletableFuture and Future interfaces.
Describe the different ways to create a thread pool using ExecutorService in Java.
Explain the differences between CachedThreadPool and FixedThreadPool in Java's ExecutorService.
Discuss concepts and usage of Java Stream API.
Explain the concepts of fail-fast and fail-safe iterators in Java collections.
Discuss concepts and usage of Kubernetes Helm charts.
Demonstrate or explain the implementation of the Factory design pattern.
Discuss various AWS services and their use cases.
Discuss concepts and functionalities of an API Gateway.