This prompt is designed for infrastructure engineers, SREs, and cloud architects who need to perform a structured gap analysis on a documented backup and disaster recovery strategy. The core job-to-be-done is validating whether the current backup configuration—including frequency, retention, replication, and restore testing—can actually meet the stated Recovery Time Objectives (RTO) and Recovery Point Objectives (RPO). Use this when you have a DR plan, a backup tool configuration export, or a set of infrastructure specifications and you need a prioritized list of risks and remediation steps before a production launch, a compliance audit, or a scheduled DR test. The prompt reasons strictly from the text you provide; it does not connect to live monitoring systems.
Prompt
Backup and Restore RTO/RPO Analysis Prompt

When to Use This Prompt
A practical guide for infrastructure engineers and SREs to validate backup strategies against RTO and RPO targets before an audit or DR test.
To use this effectively, you must supply two categories of input: the target objectives and the current state. The target objectives should include the maximum tolerable data loss in time (RPO) and the maximum tolerable downtime (RTO) for each critical system or data store. The current state should describe the backup schedule, backup type (full, incremental, snapshot), retention period, cross-region or cross-account copy status, restore testing cadence, and encryption key management. The prompt will cross-reference these inputs to identify gaps such as a backup frequency that exceeds the RPO window, a restore process that cannot meet the RTO due to data transfer time, or a lack of tested restores that invalidates the entire strategy. It will also flag operational risks like missing encryption key access in a secondary region.
Do not use this prompt when the backup configuration is unknown or when you need real-time validation against live infrastructure metrics. It is a reasoning tool for documented configurations, not a monitoring agent. For high-risk regulated environments, always require a human to review the generated gap analysis and verify the findings against the actual infrastructure before taking any action. The output is a decision-support artifact, not a substitute for a full DR exercise. After running the analysis, the recommended next step is to feed the identified gaps into your remediation backlog and schedule a restore test for the highest-risk items.
Use Case Fit
Where this prompt works and where it does not. Use these cards to quickly assess whether the Backup and Restore RTO/RPO Analysis Prompt fits your current infrastructure review workflow.
Good Fit: Structured DR Reviews
Use when: you have a documented backup strategy and stated RTO/RPO targets. The prompt excels at comparing frequency, retention, and restore testing cadence against those targets. Guardrail: provide both the backup configuration and the target objectives as separate input blocks so the model can perform a true gap analysis rather than inferring targets.
Bad Fit: Real-Time Monitoring
Avoid when: you need live backup job status or real-time replication lag analysis. This prompt analyzes static configurations and plans, not streaming operational data. Guardrail: pair this prompt with a monitoring system for runtime data; use the prompt only for design and plan reviews during change windows or audits.
Required Inputs
What to watch: incomplete inputs produce vague or misleading gap analyses. The prompt needs backup frequency, retention policy, restore testing cadence, cross-region copy status, and encryption key availability. Guardrail: create a pre-flight checklist that validates all required fields are present before invoking the prompt. If any field is missing, route to a human for clarification instead of generating a partial analysis.
Operational Risk: Untested Restores
What to watch: the prompt flags untested restores as a gap, but teams may ignore this finding if restore testing is politically or operationally difficult. Guardrail: escalate any finding of zero restore tests to a mandatory review queue. The prompt output should include a severity rating that triggers a human approval workflow before the analysis is accepted.
Operational Risk: Encryption Key Availability
What to watch: backups that depend on keys stored in the same region or account as the primary workload create a single point of failure during a region loss. Guardrail: the prompt should explicitly check for key replication, cross-account access, and key rotation status. Flag any configuration where key loss would make backups unrecoverable.
Variant: Compliance Evidence Generation
Use when: you need to produce audit evidence for SOC2, HIPAA, or ISO 27001 backup controls. This prompt can be adapted to generate a compliance mapping alongside the gap analysis. Guardrail: add a compliance framework input parameter and require the output to cite specific control IDs. Always route compliance outputs through a human reviewer before submission to auditors.
Copy-Ready Prompt Template
A copy-ready prompt that instructs the model to produce a structured gap analysis comparing backup and restore capabilities against stated RTO/RPO targets.
The prompt below is designed to be copied directly into your AI harness. It forces the model to act as an infrastructure resilience auditor, comparing your actual backup configuration against your recovery objectives. The output is a structured gap analysis with severity ratings, evidence requirements, and specific remediation steps. Every finding must be tied to a stated objective or an industry-accepted resilience principle.
textYou are an infrastructure resilience auditor. Your task is to perform a structured gap analysis comparing the provided backup and restore configuration against the stated Recovery Time Objective (RTO) and Recovery Point Objective (RPO) targets. ## INPUT [BACKUP_CONFIGURATION_DETAILS] ## TARGETS - Recovery Time Objective (RTO): [RTO_TARGET] - Recovery Point Objective (RPO): [RPO_TARGET] ## CONSTRAINTS - Classify each finding as CRITICAL, HIGH, MEDIUM, or LOW severity. - A CRITICAL finding means the current configuration cannot meet the stated RTO or RPO under a plausible failure scenario. - A HIGH finding means the configuration can likely meet the target but has a single point of failure or an untested assumption. - Every finding must cite specific evidence from the [BACKUP_CONFIGURATION_DETAILS] or state explicitly that evidence is missing. - Do not invent configuration details. If information is missing to assess a risk, flag it as a finding with the evidence listed as "MISSING". - Include specific checks for: untested restores, encryption key availability, cross-region copy status, and backup immutability. ## OUTPUT_SCHEMA Return a valid JSON object with the following structure: { "summary": "A one-paragraph executive summary of the overall gap status.", "findings": [ { "id": "F-001", "severity": "CRITICAL|HIGH|MEDIUM|LOW", "category": "RTO|RPO|Restore Testing|Key Management|Replication|Immutability|Other", "description": "Clear description of the gap.", "evidence": "Quote from INPUT or 'MISSING'.", "impact": "How this gap affects RTO or RPO achievement.", "remediation": "Specific, actionable step to close the gap." } ], "overall_assessment": "MEETS_TARGETS|AT_RISK|CANNOT_MEET_TARGETS", "requires_human_review": true }
To adapt this prompt, replace the square-bracket placeholders with your actual data. [BACKUP_CONFIGURATION_DETAILS] should contain a structured dump of your backup schedules, retention policies, replication settings, restore test history, and key management practices. [RTO_TARGET] and [RPO_TARGET] should be your stated objectives in hours or minutes. If your configuration details are long, place them in a separate [CONTEXT] block and reference them in the prompt. The output schema is strict JSON, which makes it suitable for direct ingestion into a compliance dashboard or an automated remediation tracker.
Before deploying this prompt into a production workflow, wire the output through a JSON schema validator. A common failure mode is the model omitting the evidence field or using free-text instead of the required severity enum. Add a retry step that feeds the validation error back to the model with a correction instruction. For high-risk environments, always set requires_human_review to true in your post-processing logic and route CRITICAL findings to an on-call channel. Never treat this prompt's output as a substitute for an actual restore test.
Prompt Variables
Inputs the prompt needs to work reliably. Provide as much detail as possible for each placeholder.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[BACKUP_POLICY_DOCUMENT] | Full text of the current backup policy, including frequency, retention, and storage targets. | Daily snapshots retained for 30 days; weekly full backups to S3 Standard retained for 90 days; monthly archives to Glacier Deep Archive retained for 7 years. | Must be non-empty text. Parse check for presence of frequency, retention, and storage class keywords. If missing, prompt should request clarification. |
[RTO_TARGET] | The stated Recovery Time Objective in minutes or hours. | 4 hours | Must parse to a valid duration. If null or 'not defined', prompt must flag as a critical gap. Accepts integer minutes or ISO 8601 duration. |
[RPO_TARGET] | The stated Recovery Point Objective in minutes or hours. | 1 hour | Must parse to a valid duration. If null or 'not defined', prompt must flag as a critical gap. Accepts integer minutes or ISO 8601 duration. |
[RESTORE_TEST_LOG] | Summary or full log of the most recent restore test, including date, scope, and outcome. | 2024-11-15: Full database restore test from weekly backup. Successful. Duration: 2h 15m. 3 tables verified. | Parse for date, outcome, and duration. If older than RTO target or missing, flag as 'untested restore' risk. Null allowed if no tests exist. |
[ENCRYPTION_KEY_INVENTORY] | List of encryption keys used for backups, including key IDs, rotation status, and access control. | arn:aws:kms:us-east-1:123456789:key/abc-123; Rotation: enabled; Access: backup-service-role, break-glass-admin. | Parse for key identifiers and rotation status. If empty or missing, flag as 'key availability risk'. Check for 'break-glass' or emergency access procedure. |
[CROSS_REGION_COPY_STATUS] | Boolean or status string indicating whether backups are replicated to a secondary region. | true; us-west-2; lag < 15 minutes | Accept 'true', 'false', or a status string. If 'false' or missing, flag as 'single-region failure domain' risk. If true, validate region name is present. |
[APPLICATION_DEPENDENCY_MAP] | List of services, databases, and stateful components required for a successful restore. | PostgreSQL primary, Redis cache, S3 asset bucket, Auth0 tenant config. | Must be a non-empty list. If empty, prompt must flag as 'incomplete dependency map' risk. Each entry should be a distinct component name. |
Implementation Harness Notes
How to wire the Backup and Restore RTO/RPO Analysis Prompt into a reliable application workflow with validation, retries, logging, and human review.
This prompt is designed for a single-turn completion within a structured analysis pipeline. Assemble the final prompt by injecting the infrastructure inventory, stated RTO/RPO targets, backup configuration details, and restore test history into the [BACKUP_CONFIGURATION], [RTO_RPO_TARGETS], and [RESTORE_TEST_EVIDENCE] placeholders. The model expects a clear, delimited input block and will return a JSON gap analysis. Do not use this prompt in a multi-turn chat session without resetting the context window; prior turns can leak stale configuration data or override the current analysis constraints.
Call the LLM with the assembled prompt and parse the JSON output immediately. Validate the response against a strict schema that requires: a top-level gap_analysis array, each element containing finding_id, severity (one of critical, high, medium, low), category (one of frequency, retention, restore_testing, cross_region, encryption_key_access), gap_description, current_state, target_state, and recommendation. If the output fails schema validation, retry exactly once by appending the validation error message to the original prompt as a new [VALIDATION_ERROR] block. If the retry also fails, log the failure and route the raw output to a human operator queue—do not loop indefinitely.
Every analysis result must be logged with an input configuration hash (SHA-256 of the normalized input parameters) for auditability. This allows operators to trace which specific backup configuration produced which gap findings over time. Store the full prompt, model response, validation status, and timestamp in a structured log. For high-compliance environments where backup gaps could represent regulatory findings, route all outputs—even schema-valid ones—to a human reviewer queue before publishing to a compliance dashboard. The reviewer should confirm that critical findings are not false positives caused by stale input data or misinterpreted backup schedules.
Model choice matters for this workflow. Use a model with strong JSON-following capability and a context window large enough to hold the full backup configuration plus the output schema. If the backup configuration is extensive, consider pre-processing it into a summarized canonical form before injection. Do not use this prompt with models that have known difficulty with structured output or that tend to hallucinate specific technical findings. For production deployments, pair this prompt with a retrieval step that pulls the latest backup configuration from your infrastructure-as-code repository or cloud API rather than relying on manually pasted configuration data.
Expected Output Contract
Fields, format, and validation rules for the generated gap analysis. Use this contract to parse, validate, and store the model output before surfacing it to a user or downstream system.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
rto_target | string (ISO 8601 duration) | Must parse as a valid duration. Compare against [RTO_TARGET] input if provided; flag mismatch. | |
rpo_target | string (ISO 8601 duration) | Must parse as a valid duration. Compare against [RPO_TARGET] input if provided; flag mismatch. | |
current_rto_estimate | string (ISO 8601 duration) | Must parse as a valid duration. If null or unparseable, set to 'unknown' and raise a confidence warning. | |
current_rpo_estimate | string (ISO 8601 duration) | Must parse as a valid duration. If null or unparseable, set to 'unknown' and raise a confidence warning. | |
gap_severity | enum: critical | high | medium | low | none | Must be one of the listed values. If current estimate is 'unknown', severity must be 'high' or 'critical'. | |
findings | array of objects | Each object must contain 'id' (string), 'category' (enum), 'description' (string), and 'evidence' (string or null). Array must not be empty if gap_severity is not 'none'. | |
untested_restores | boolean | Must be true or false. If true, a corresponding finding with category 'restore_testing' must exist in the findings array. | |
encryption_key_status | object | Must contain 'available' (boolean) and 'location' (string or null). If available is false, a finding with category 'key_management' is required. |
Common Failure Modes
What breaks first when analyzing backup and restore strategies against RTO/RPO targets, and how to guard against it.
Untested Restore Assumptions
What to watch: The prompt accepts stated restore procedures as effective without flagging that they have never been tested. It may produce a clean gap analysis that ignores the single biggest predictor of recovery failure. Guardrail: Add a mandatory check in the prompt instructions that requires the model to explicitly note whether each recovery path has been tested in the last 90 days, and to downgrade confidence for any untested path.
RPO vs Backup Frequency Mismatch
What to watch: The model confuses backup frequency with achievable RPO. A daily backup does not guarantee a 24-hour RPO if the backup window takes 6 hours and the last successful backup was 30 hours ago. Guardrail: Require the prompt to calculate effective RPO from last successful backup timestamp plus backup duration, not from the scheduled frequency. Include a validation step that compares stated RPO against this calculated value.
Cross-Region Copy Lag Omission
What to watch: The analysis treats cross-region copies as synchronous or ignores replication lag entirely. When a region fails, the most recent cross-region copy may be hours behind, blowing past RPO targets. Guardrail: Add a specific instruction to check replication lag metrics or, if unavailable, to flag cross-region RPO as unknown and require manual verification before accepting the analysis.
Encryption Key Availability Blind Spot
What to watch: The prompt analyzes backup completeness but never checks whether the encryption keys required to decrypt those backups are available in the recovery region or account. Restores fail silently when keys are in the lost region's KMS. Guardrail: Include a mandatory key availability check in the prompt template: for each backup target, verify that decryption keys exist in the recovery destination and that key rotation policies do not orphan old backups.
Retention Policy vs Compliance Gap
What to watch: The model compares retention periods against RPO/RTO targets but misses regulatory or compliance retention requirements that exceed operational needs. A 30-day retention may satisfy RPO but fail audit requirements for 7-year retention. Guardrail: Add a [COMPLIANCE_REQUIREMENTS] input field to the prompt template and instruct the model to flag any retention policy shorter than the stated compliance minimum, even if it satisfies operational RPO/RTO.
Partial Failure Recovery Gaps
What to watch: The analysis assumes all-or-nothing recovery scenarios and misses partial failures where only some services, databases, or volumes need restoration. Restoring everything to fix one corrupted table violates RTO for unaffected services. Guardrail: Require the prompt to evaluate granular recovery capability: can individual databases, volumes, or objects be restored independently? Flag any dependency where restoring a single component requires a full stack recovery.
Evaluation Rubric
Run these checks on a golden dataset of 10 known backup configurations with pre-identified gaps. Each row targets a specific failure mode common in RTO/RPO analysis prompts.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
RTO Gap Detection | Every configuration where backup frequency exceeds stated RTO is flagged with the specific gap in minutes | Any missed RTO gap in the golden set; or a false positive flag on a compliant configuration | Assert exact match on gap presence for all 10 golden records |
RPO Gap Detection | Every configuration where replication lag or snapshot interval exceeds stated RPO is flagged with the specific gap in minutes | Any missed RPO gap; or a gap reported with incorrect delta calculation | Assert exact match on gap presence and delta value for all 10 golden records |
Untested Restore Detection | Every configuration where last restore test date is older than [RESTORE_TEST_THRESHOLD_DAYS] is flagged with days since last test | Any missed stale restore test; or a flag on a configuration tested within threshold | Assert exact match on flag presence and days-since value for all 10 golden records |
Cross-Region Copy Status | Every configuration missing cross-region replication where [REQUIRE_CROSS_REGION] is true is flagged with missing region detail | Any missed missing-region flag; or a flag on a configuration that has valid cross-region copy | Assert exact match on flag presence for all 10 golden records |
Encryption Key Availability | Every configuration where backup encryption key is stored in the same region or account as the backup is flagged with key co-location risk | Any missed co-location flag; or a flag on a configuration with proper key separation | Assert exact match on flag presence for all 10 golden records |
Output Schema Compliance | Every output conforms to the defined [OUTPUT_SCHEMA] with all required fields present and correctly typed | Any missing required field; any field with wrong type; any extra field not in schema | Validate all 10 outputs against JSON Schema; assert zero validation errors |
Source Grounding | Every gap finding includes a reference to the specific configuration field that triggered it | Any finding without a source field reference; any hallucinated field name not present in input | Check each finding for a valid field path present in the corresponding input configuration |
Confidence Calibration | No finding is reported with high confidence when the input data is ambiguous or missing the relevant field | High-confidence finding on a configuration where the relevant field is absent or null | For each finding, verify the input contains the referenced field with a non-null value; flag mismatches |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a single recovery scenario and lighter validation. Replace [RTO_TARGET] and [RPO_TARGET] with hardcoded values. Remove the cross-region copy and encryption key checks to focus on the core gap analysis. Accept free-text output instead of enforcing the structured schema.
Watch for
- Missing schema checks leading to inconsistent output formatting
- Overly broad instructions that produce vague findings like "improve backups"
- No evidence grounding—the model may invent backup configurations that don't exist

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us