Sub topic 10
Questions and best practices: how the framework is structured
This chapter assumes you know the six pillars by name and have a working picture of what each one covers. It also assumes you can use the AWS CLI and read a simple IAM or S3 policy. Here you learn how the framework turns each pillar into something you can answer and measure.
Three layers: pillar, question, best practice
The framework is not a list of rules to memorize. It is a hierarchy with three layers:
- A pillar is a broad area such as Security or Reliability.
- A question is an open prompt inside a pillar, for example "How do you protect your data in transit?"
- A best practice is a specific, checkable practice that helps you answer a question well.
Each pillar contains between about 3 and 11 questions, grouped under named topics. A question is not answered with free text. It is answered by stating which of its best practices you follow.
Questions
Questions are phrased as "How do you..." on purpose. They ask the team to describe its own approach. They do not dictate a design.
Questions in the framework carry short identifiers made of a pillar prefix and a number, such as SEC 9 or REL 2. Treat these as labels in documentation and conversation. The API identifies a question with its own QuestionId value, which you read from the tool's output. Do not assume the two match.
A question is not always relevant. The review tool lets you mark a question as not applicable and requires a reason. Use this sparingly. A common mistake is to mark a question "not applicable" because the team has never considered it. If the question is hard to answer, that is usually a finding.
Best practices
A best practice is a concrete capability or behavior. Recent versions of the framework give each one an identifier built from the question number and a sequence number, for example SEC09-BP02 for "Enforce encryption in transit". Each best practice page in the framework documentation has the same parts:
- A description of the practice and the desired outcome.
- Common anti-patterns, which are habits that signal the practice is missing.
- The level of risk exposed if the practice is not established (high, medium or low).
- Implementation guidance, with links to AWS services and other resources.
Read the anti-patterns first when you are unsure whether you follow a practice. They are often easier to recognize than the positive description. For example, a bucket that accepts plain HTTP requests is a direct anti-pattern for enforcing encryption in transit.
From a practice to an artifact
Best practices are written at the level of intent, so one practice can be met in several ways. For SEC09-BP02, a bucket policy that denies requests that do not use TLS is one way to meet the intent for Amazon S3:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyInsecureTransport",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::example-bucket",
"arn:aws:s3:::example-bucket/*"
],
"Condition": {
"Bool": { "aws:SecureTransport": "false" }
}
}
]
}The policy covers one resource type. A reviewer who selects the practice for the whole workload should be confident that the same intent holds for load balancers, APIs and database connections too. The best practice is satisfied by the full set of controls, not by one example.
How answers become a risk rating
In the AWS Well-Architected Tool, each question lists its best practices as choices. The reviewer selects the ones the workload follows. Two special choices are always present:
- None of these, for when the workload follows none of the listed practices.
- Question does not apply to this workload, which needs a reason.
The tool derives a risk rating for the question from the selected choices. Each choice in the lens has a risk weight that reflects the exposure if it is missing. Selecting everything that matters gives no risk. Missing a high-impact practice gives high risk. Missing a less important one gives medium risk. The next chapter covers how to read and act on these ratings. For now, remember that the rating is computed from the choices, not typed in by hand.
The exact mapping from choices to a rating is defined by each lens, so you cannot assume a fixed rule such as "three missing practices equals medium". Read the question in the tool to see which choices are required.
Notes and evidence
Every answer has a notes field. Use it. A selected choice with no explanation is hard to defend at the next review, and a person who did not attend the session cannot tell what "we follow this" meant. A useful note states the evidence in one or two lines, such as the policy name, the runbook link, or the dashboard that shows the practice working.
Working with questions from the CLI
The console is the usual way to run a review, but the CLI exposes the same structure. This command lists the Security questions for a workload:
aws wellarchitected list-answers \
--workload-id <workload-id> \
--lens-alias wellarchitected \
--pillar-id securityEach item in AnswerSummaries includes the question ID, its title, the choices, the choices you selected, and a Risk value. The possible values are UNANSWERED, HIGH, MEDIUM, NONE and NOT_APPLICABLE.
To pull out only the questions that need attention, filter on the risk field with a JMESPath query:
aws wellarchitected list-answers \
--workload-id <workload-id> \
--lens-alias wellarchitected \
--pillar-id security \
--query 'AnswerSummaries[?Risk==`HIGH` || Risk==`MEDIUM`].[QuestionId,QuestionTitle,Risk]' \
--output tableTo record an answer, call update-answer with the question ID and the choice IDs you selected. Get both values from the list-answers output. Do not guess them.
aws wellarchitected update-answer \
--workload-id <workload-id> \
--lens-alias wellarchitected \
--question-id <question-id> \
--selected-choices <choice-id-1> <choice-id-2> \
--notes "TLS enforced by bucket policy; ALB redirects HTTP to HTTPS."Common mistakes when answering
- Answering for the best case. Teams often select a practice because it is done in the main production account. If a staging or legacy environment in the same workload skips it, the honest answer is "partially". Leave the choice unselected and explain in the notes.
- Confusing a tool with a practice. Having GuardDuty enabled does not by itself mean you detect and investigate security events. The practice includes who reviews findings and what they do.
- Marking questions as not applicable to skip work. Each such answer needs a reason, and reviewers at the next milestone will read it.
- Treating all choices as equal. Choices differ in risk weight. A review that leaves one high-weight practice unselected can show more risk than one that misses several minor ones.
- Skipping the notes. Without evidence, the answers cannot be audited or compared with a later review.
Why the structure matters
The three-layer structure lets different readers use the framework at different depths. Executives can read pillar-level risk counts. Architects can discuss questions. Engineers can open the best practice page and implement the guidance. Because every answer links to named practices, an improvement plan can point at specific work items, not at vague goals such as "improve security".
Exercise
A reviewer answers the question "How do you protect your data in transit?" by selecting only "Implement secure key and certificate management". The team's API gateway uses TLS, but one internal service still talks to its database over an unencrypted connection. What should the reviewer do with the choice "Enforce encryption in transit", and what should go in the notes?
Show answer
Leave "Enforce encryption in transit" unselected, because the practice does not hold for the whole workload. The unencrypted internal connection is a direct anti-pattern for that practice. In the notes, record which connection is unencrypted, which parts already use TLS (such as the API gateway), and what the plan is to fix it. The tool then calculates a risk rating from the unselected choice, and that rating drives the improvement plan.
Exercise
Write a list-answers command that shows only the Reliability questions of a workload that are still unanswered. Use the lens alias wellarchitected and display the question ID and title.
Show answer
aws wellarchitected list-answers --workload-id <workload-id> --lens-alias wellarchitected --pillar-id reliability --query 'AnswerSummaries[?Risk==UNANSWERED].[QuestionId,QuestionTitle]' --output table