Api Developer Interview Questions

139 api developer interview questions shared by candidates

Write a RESTful web service that schedules messages to be printed. The web service should accept a message content and delivery time. The web service should return 202 status code (accepted) if the message was successfully scheduled. The web service should print the message content on the console at the delivery time specified.
avatar

Api Developer

Interviewed at The Globe & Mail

3.6
Jul 17, 2021

Write a RESTful web service that schedules messages to be printed. The web service should accept a message content and delivery time. The web service should return 202 status code (accepted) if the message was successfully scheduled. The web service should print the message content on the console at the delivery time specified.

You have a cluster of identical servers sharing a database. They each have a similar list of cron tasks that they might want to execute. Each task needs to run on a single machine, so the servers need to decide which one will run each job so that each task will perform on one server. The servers have no idea how many of them are in the cluster at any given moment. Suggest a distributed arbitration algorithm similar to all machines that have no single point of failure (besides the database if it uses it) to perform that arbitration task.
avatar

API Developer

Interviewed at Phone.com

2.8
Dec 5, 2016

You have a cluster of identical servers sharing a database. They each have a similar list of cron tasks that they might want to execute. Each task needs to run on a single machine, so the servers need to decide which one will run each job so that each task will perform on one server. The servers have no idea how many of them are in the cluster at any given moment. Suggest a distributed arbitration algorithm similar to all machines that have no single point of failure (besides the database if it uses it) to perform that arbitration task.

Viewing 71 - 80 interview questions

Glassdoor has 139 interview questions and reports from Api developer interviews. Prepare for your interview. Get hired. Love your job.