Design Secure Architectures is domain 1 of the Solutions Architect exam and accounts for 30% of the exam, more than any other domain. An architecture is the way the pieces of an application fit together: where it runs, where it stores its data and how its users reach it. For example, the architecture of an online store says which AWS computers the site runs on, where the orders are stored and what path customers follow to reach it. To design it securely you need to know which part of security is your job and which principles AWS uses to check that an architecture is secure.
Which part of security is your job?
In AWS, security is split between AWS and you, and that split is called the shared responsibility model. AWS protects the cloud, which includes its data centers (the buildings where its computers are), the machines and the network that connects them, and you protect what you put in it: your data, who gets into your account and how you configure each service. For example, if someone gets into an AWS data center without permission, that is AWS's problem; if the store leaves its customer list open to anyone on the internet, that is the store's problem.
On this exam that model becomes more concrete, because each question gives you an architecture and asks for the most secure version that meets a requirement. That is why you have to know which part is yours in each service, and that part gets smaller the more managed the service is. A managed service is one where AWS does part of the work of maintaining it for you, such as installing updates. For example, if the store installs its database on a server it rents in Amazon EC2, the store itself has to update that server's system; if it uses Amazon RDS, which is a managed database service, AWS does that work.
Although the line changes from one service to another, there are three things that are your job in any of them: who gets in, what data you store and how you encrypt it, and what traffic you let through. Those three decisions are still yours even when the service is managed. For example, even if the store uses RDS, it decides which employees can see the orders database, whether the orders are stored encrypted and whether the database accepts connections from anywhere on the internet or only from the store's site.
AWS Well-Architected Framework
The AWS Well-Architected Framework is the AWS guide for reviewing an architecture, and it divides its recommendations into pillars, where each pillar is a topic with its own questions. Each of the four exam domains corresponds to a pillar: security, reliability, performance efficiency and cost optimization. For example, the question "if one of its machines shuts down, does the store keep selling?" belongs to the reliability pillar, and the question "who can delete the orders?" belongs to the security pillar. Domain 1 corresponds to the security pillar, which sums up its recommendations in seven design principles.
The seven design principles

Each principle sets a condition for the architecture:
- Implement a strong identity foundation, which calls for least privilege, separation of duties and a single place where identities are managed. It also calls for nothing to depend on long-term static credentials, which are passwords or keys that don't change on their own and work for months or years. For example, at the store each employee signs in with their own user, and the program that charges for orders gets a permission that expires and renews on its own, instead of a password saved in a file.
- Maintain traceability, which means knowing who did what and when: monitoring, alerting on and auditing actions and changes in real time, with logs and metrics connected to systems that investigate and act on their own. For example, if someone deletes the product catalog in the middle of the night, there is a record of who it was and the store's team gets an alert.
- Apply security at all layers, which is also called defense in depth and calls for controls at the network edge, in the VPC (your account's private network), at the load balancer, on every instance, in the operating system, in the application and in the code. For example, the store doesn't rely on a single filter: it checks traffic before it reaches its site and, on top of that, each server only accepts the connections it needs.
- Automate security best practices, which calls for defining the controls as code: the security rules are written in a file, called a template, that creates the resources the same way every time, and version control keeps every change to that file along with who made it. For example, instead of someone setting the permissions of each of the store's servers by hand, a template creates them the same on all of them, and if someone changes them it is recorded.
- Protect data in transit and at rest, where data is classified by sensitivity and, depending on its level, protected with encryption, tokenization and access control. Tokenization replaces a sensitive piece of data with a worthless code that only the system knows how to translate back. For example, a customer's card number is more sensitive than a product name, so the store keeps it encrypted and only lets the payment process see it.
- Keep people away from data, which calls for tools that reduce or eliminate direct access and manual processing. For example, instead of an employee opening the database to pull the sales report, a program generates it on its own and the employee only receives the result.
- Prepare for security events, which calls for incident response processes, simulations and automation to detect, investigate and recover faster. An incident is any event that puts security at risk, such as a stolen password, and a simulation is practicing the plan before you need it. For example, the store decides ahead of time what it will do if an employee's password is stolen and rehearses it, so on the day it happens it already knows whom to notify and what to shut down.
The first principle relies on two terms. Least privilege means that each person and each application has only the permissions it uses, and separation of duties means that nobody approves their own work. For example, the employee who answers customers can see the orders but not delete them, and the programmer who writes a change to the site is not the one who approves it for publishing.
Principles 5 and 6 deal with data from two sides. Data in transit is data that travels over the network and data at rest is data that is stored, and principle 5 calls for protecting it in both states. For example, the card number is in transit while it travels from the customer's phone to the store's site, and it is at rest once it is saved in the database. Principle 6 adds that it is better for nobody to touch the data by hand, because every time someone does there is a risk of a mistake or an improper change.
Security at all layers
In a web application, principle 3 is met with four layers that a request crosses in order: the AWS edge, CloudFront with AWS WAF, the load balancer and the instance. A request is each message the customer's browser sends to the site, such as "show me the cart". Each layer stops a different kind of attack.

In the first layer, Shield Standard absorbs network DDoS attacks at the AWS edge, which are the points where internet traffic enters the AWS network. After that, AWS WAF, a filter that checks the content of each request, stops SQL injection and bots. Next, the load balancer only accepts traffic that comes from CloudFront, and the security group of the instance, which works like a list of who can connect to it, only accepts the application port from the load balancer. That way, if someone gets past a layer or a layer fails, the next one keeps stopping them. For example, if one of the store's WAF rules is misconfigured and lets an odd request through, that request still doesn't reach the instance unless it comes through the load balancer.
The principles in AWS services
In exam questions, a principle shows up as the service or the architecture decision that meets it, and each one has its own:
| Principle |
Services and decisions that meet it |
| Strong identity |
IAM roles, which provide temporary credentials; federation with IAM Identity Center, where people sign in with their user from an identity provider; least-privilege policies and SCPs in AWS Organizations |
| Traceability |
AWS CloudTrail, Amazon CloudWatch, AWS Config and VPC Flow Logs |
| All layers |
AWS Shield, AWS WAF, security groups, network ACLs and private subnets |
| Automate |
AWS CloudFormation templates, AWS Config rules that remediate on their own and AWS Control Tower controls |
| Protect data |
AWS KMS for data at rest, TLS with AWS Certificate Manager for data in transit and Amazon Macie to find sensitive data |
| People away from data |
Session Manager instead of SSH, and automated processes instead of someone opening the database by hand |
| Prepare |
Amazon GuardDuty with Amazon EventBridge and AWS Lambda, so the response starts without waiting for a person |
Several of these services are covered in the next lessons of the step, so for now it is enough to place which principle each one belongs to. For example, CloudTrail records every API call made in the account, that is, every action someone takes, so if the store needs to know who deleted a product, the answer involves CloudTrail. SSH is a way to get into a server from another computer to type commands on it, and Session Manager lets you do the same without opening inbound ports or storing SSH keys.
In a new experience account
If you practice in a new experience account, which is the way to open an AWS account with Google, GitHub, Apple, Amazon or email, the principles are the same, but several of the tools in the table are missing. GuardDuty, Macie, Security Hub, your own organization in AWS Organizations, Control Tower and IAM Identity Center require turning on the advanced features, and in the case of Identity Center, AWS also manages it for you. Shield appears on the list of unavailable services.
On the other hand, CloudTrail, CloudWatch, AWS Config, KMS, WAF and CloudFormation are included in the free plan. For example, in that account you can practice traceability by checking in CloudTrail who created a resource, but you can't turn on GuardDuty without the advanced features. To practice threat detection and working with multiple accounts you need a full account.
How do the principles show up on the exam?
A question in this domain gives you a scenario and four architectures, and it almost never names the principle it assesses. That is why it pays to recognize the phrases in the question that point to the answer:
| If the question says |
The answer |
| "Long-term credentials" or "access keys in the code" |
The option that keeps them is wrong, and the right one uses a role |
| "Audit who made a change" |
CloudTrail |
| "Protect the application from SQL injection" and "restrict the database port" |
Two layers, with WAF and security groups |
| "Without anyone accessing the data directly" |
Automation or Session Manager |
For example, if the question says the store keeps its database password inside the site's code, the right answer will be the one that removes it from there and uses a role or a service that provides temporary credentials.