Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Secure a Public REST API

EasySecurity & Infrastructure00:00
Practice interviewer
In session
5 left
00:00

Your question is Secure a Public REST API. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Scenario

You own a public-facing REST API used by mobile and web clients to read and update customer policy data. The API sits behind an ingress layer and talks to internal services and a primary database. Over the last week, you have seen spikes in unauthorized requests, inconsistent retry behavior from clients, and concern that some endpoints expose more data than they should. You need to explain how the API works and how you would secure and operate it safely.

Question

How would you describe the way RESTful APIs work in practice, and why they matter in modern software development? As part of your answer, explain how you would design and secure such an API so that authentication, authorization, retries, and monitoring are handled correctly.

What This Tests

  • Understanding of REST semantics and stateless API design
  • Security controls for internet-exposed APIs
  • Authorization and data exposure risks
  • Operational handling of retries and idempotency