Question You need to design a logger library for a new application. The design should be able to allow us to easily add future loggers, like a db...
Input: Array Output: Printed output
codingMediumVerified Question#3
3. [AI Enabled Coding] Food Delivery Company
Category: String coding problem
Question You are building a driver payment system for a food delivery company. The accounting team needs to track how much money is owed to drivers...
Input: String Output: Integer
codingHardVerified Question#4
4. [AI Enabled Coding] Rule Evaluator
Category: String coding problem
Question You need to build a rule evaluation system for a corporate credit card platform. Managers should be able to create rules that enforce...
Input: List Output: Computed result
codingHarddocker#1
1. [OA] Dockerfile Optimization — Improve the Dockerfile for Rippling’s microservices deployment
Rippling manages multiple microservices in containers. An optimized Dockerfile decreases image size and improves build times. Problem Statement: Revise an existing Dockerfile to ensure it follows best practices in minimizing layers and reducing the image size. Your Dockerfile should utilize multi-stage builds where applicable. Example 1: Input: Existing Dockerfile specifying base image node:14 with unnecessary layers. Output: Streamlined Dockerfile with multi-stage build implementation. Explanation: The revised Dockerfile should build the final image with only necessary runtime dependencies and exclude build-time dependencies. Constraints:
Final image size must not exceed 200MB.
Must support production and development environments.
Want to practise this one?
Create a free account to open the full question and practise Rippling questions with AI.
2. [OA] CI/CD Pipeline Optimization — Implement a robust CI script for Rippling’s deployment processes
Rippling deploys new features frequently, and an efficient CI script ensures that code changes are pushed seamlessly. The goal is to minimize build times while maintaining reliability. Problem Statement: You are tasked to write a CI script in Python that automates the build and test cycle for a microservice-based application. The script should:
Check out code from a Git repository.
Run unit tests and integration tests.
Deploy the service if all tests pass.
Send notifications for failed deployments.
Example 1: Input: Repository URL: https://github.com/example/repo, Branch: main Output: Success message if deployment succeeds Explanation: The script checks out the specified branch, runs the tests, and then proceeds with the deployment if tests pass. Constraints: