# Data Lifecycle Management

## Introduction

Welcome to Trusst AI's data lifecycle management documentation. This guide will help you understand how data inputs and outputs are handled, stored, and managed within Trusst AI, leveraging DynamoDB and Amazon Redshift Serverless.

## Data Inputs

**1. Audio Recordings**

Audio recordings from customer conversations are ingested and processed using Trusst Lissten, a feature within Trusst AI. These recordings are transcribed and translated before storage.

**2. Transcripts and Text Data**

Transcripts from various sources, such as call transcripts, verbatim feedback, survey results, emails, and live chat transcripts, are ingested into Trusst AI.

**3. Unstructured Documents**

Unstructured documents, including claim forms and snail mail, are processed and converted into structured data for further analysis.

## Data Storage

#### **1. DynamoDB**

DynamoDB is used for storing metadata and indexing information related to the data ingested by Trusst AI. This allows for efficient querying and retrieval of data.

**Configuration**

* **Time to Live (TTL):** To manage the lifecycle of data, we configure DynamoDB's TTL settings to automatically delete items after a specified period. This helps in managing storage costs and ensuring compliance with data retention policies.
  * Placeholder: DynamoDB Time to Live Configuration
* **Indexing:** We utilize Global Secondary Indexes (GSI) and Local Secondary Indexes (LSI) to enable efficient querying based on different attributes.
  * Placeholder: DynamoDB Indexing

#### **2. Amazon Redshift Serverless**

Amazon Redshift Serverless is used for storing large volumes of structured data and performing complex analytical queries. This is particularly useful for generating reports and insights from the ingested data.

**Configuration**

* **Data Retention and Automatic Backup:** By default Amazon Redshift takes a snapshot about every eight hours or following every 5 GB per node of data changes, or whichever comes first. to ensure durability and availability.
  * Configuring [Amazon Redshift Snapshots and Backups](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html)

## **Data Archival**

For long-term storage, data can be archived to Amazon S3, ensuring that it is available when needed but not consuming expensive storage resources in DynamoDB or Redshift Serverless.

* Placeholder: Amazon S3 Data Archival

## **Data Deletion**

Data that is no longer needed can be permanently deleted from both DynamoDB and Redshift Serverless. This is managed through configurable data retention and TTL policies.

* [Deleting data from an Amazon DynamoDB table](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SQLtoNoSQL.DeleteData.html)
* [Truncate/Delete Data from Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/dg/r_TRUNCATE.html)

#### Conclusion

Effective data lifecycle management is crucial for ensuring data integrity, compliance, and cost management. By leveraging DynamoDB and Amazon Redshift Serverless, Trusst AI provides robust solutions for storing, managing, and analyzing data. For detailed configurations and more information, please refer to the respective AWS documentation linked throughout this guide.

For further assistance, please contact our support team via the [Trusst Customer Support Portal](https://trusst.atlassian.net/servicedesk/customer/portal/1).&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trusst.ai/product-guides/data-lifecycle-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
