Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
After our pillars have been defined, we start to work on related key items and best practices we want to focus in each pillar. For each best practice, we can define the logic associated with each question and associate a particular answer with the creation of either a high or medium risk.
Lets go to the first custom pillar – Operational Readiness.*
We can start by collecting feedback from key stakeholders who hold an operational role in the organization, like cloud operators, DevOps engineers, managers and tech leads. If these domain sponsors indicated that a valid backup for their DynamoDB table is extremely important, we should start from this as a check point. From operational excellence perspective, we will deep dive into the process flow related to this table backup asking questions such as:
Then we aggregate all the related questions and information into a bigger question which in this case would be ‘How Do you backup your DynamoDB tables?’
Using JSON syntax, we assigned an unique id to this question and put the question into the Title field of our “question” in JSON structure.
...
"questions":[
{
"id":"ddbops1",
"title":"How do you backup DynamoDB tables?",
"description":"With proper backup process, you will be able to prevent unexpected data lost.",
"choices":[
After reading the Amazon DynamoDB Developer Guide, we found clear guidance on Backing Up a DynamoDB Table providing two options: Create a table backup from Console and Create a Table backup from CLI. These two options both require manual processes.
So now we can append one “Choice”:
Manually trigger Amazon DynamoDB Backup process
- Means the backup process been handled by it’s native backup feature, a full backup.
To improve the operating process as a long term goal, and to align with the design principle - “Perform operations as code” (AWS Well-Architected Framework, Operational Excellence Pillar), we start to collect more possible options on backup automation.
We found that DynamoDB natively supports the Point-in-time recovery (PITR) feature, and provides continuous backups for DynamoDB table data. AWS Backup is another fully-managed service that can automate the backup process. Thus, we have two more “Choices”:
Enable Amazon DynamoDB PITR Feature
- A native support feature, but it provides point-in-time restore.
Use AWS Backup for Amazon DynamoDB tables
- Leverage another service, which might aligned with broader backup purpose and multiple data sources.
In some cases, we found the operating team could use the Amazon DynamoDB Data Export feature to have full duplication of the table. This documentation also gives us an insight that this can also be achieved with a direct API call or table scan. We can append a new choice to cover the option to export and store the backup into our preferred storage media.
Export DynamoDB to other storage media
After researching and collecting all the relevant options for this question, the structure for this question will now look like this:
.....
"choices": [
{
"id": "ddbops_1",
"title": "Manually trigger Amazon DynamoDB Backup process",
...
},
"improvementPlan": {
"displayText": "This is text that will be shown for improvement of this choice."
}
},
{
"id": "ddbops_2",
"title": "Enable Amazon DynamoDB PITR Feature",
...
},
{
"id": "ddbops_3",
"title": "Use AWS Backup for Amazon DynamoDB tables",
...
},
{
"id": "ddbops_4",
"title": "Export DynamoDB to other storage media",
...
}
....
Here you can see we assigned a unique choice id for each choice in this question. The id represents a primary key and cannot be duplicated within the JSON document.
We need to setup a default option if none of the options have been selected. Adding a choice with a suffix of _no will act as a None of these choice for the question.
{
"id": "choice5_no",
"title": "None of Above",
...
}
In next step we will explain how to setup the conditional logic for the risk level for AWS Well-Architected Tool.
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool