New: AI engineering, Kubernetes, cybersecurity, family learning, and expert community pathways.Explore

Practice Mode • Cloud & DevOps • medium

Audit Archive RPO

180 points

Measure audit-archive backup compliance.

Problem

You are implementing measure audit-archive backup compliance. The input is one JSON value. Return exactly the JSON or scalar result described by the examples, with stable ordering and no extra logging. Measure observed backup gaps and determine whether the configured RPO is met. Explain your reasoning and complexity during interview review; the judge evaluates only the returned result.
Input contract

One UTF-8 JSON value matching the structures shown in the examples.

Output contract

One deterministic JSON value or scalar with no explanatory text.

Target complexity

O(n) time, O(1) space

Judge protocol

function-stdin-json-v1

Examples

Example 1
Input: {"now":93,"rpoMinutes":40,"snapshots":[0,30,63]}
Output: {"maxObservedGap":33,"rpoMet":true}

This example demonstrates the core cloud devops invariant.

Example 2
Input: {"now":100,"rpoMinutes":30,"snapshots":[]}
Output: {"maxObservedGap":100,"rpoMet":false}

This example covers the empty or minimum boundary.

Constraints

  • Input is valid UTF-8 JSON and is at most 64 KB.
  • Output must be deterministic for identical input.
  • Do not use network access, persistent filesystem writes, subprocesses, or environment secrets.
  • Handle the empty or minimum boundary shown in the examples.
Progressive hints

Sign in to reveal hints one at a time.

Integrity: hidden tests, editorial solutions, and assessment-only cases are never sent to the browser as answer keys. Final execution occurs only in the separately isolated runner.
Execution unavailable until runner deployment and certificationdisabled • pending

Sign in to code

You can review the complete problem publicly. Sign in to save encrypted drafts and submit to the isolated runner.

Sign in