0%
AWS Solutions Architect Associate (SAA-C03) Exam Prep: Secure, Resilient, High-Performing and Cost-Optimized Architectures
Domain 1: Design Secure Architectures
Domain 2: Design Resilient Architectures
Domain 4: Design Cost-Optimized Architectures
Final Review and Mock Exams
High-Performing Storage Choices
The design high-performing architectures domain asks you to pick storage that meets throughput, latency and access requirements at a sensible cost. The first decision is the type of storage, because block, file and object storage behave differently and most wrong answers in this area put data in the wrong type. This lesson covers S3 performance, EBS, instance store, EFS and FSx and hybrid storage. S3 Storage Classes and Lifecycle, EBS Volume Types and Instance Store and EFS and Shared Filesystems in the AWS in Practice course go deeper on each.
Block storage
Block storage presents a raw disk to an operating system, which formats it with a file system. Amazon EBS volumes are network attached block devices for EC2, and instance store volumes are disks physically attached to the host. Block storage gives the lowest latency for random reads and writes, which suits boot volumes, relational databases installed on instances and applications that expect a local disk. Most EBS volumes attach to one instance at a time in one Availability Zone, so block storage is not a way to share data between servers.
File storage
File storage provides a shared file system that many clients mount at once over a network protocol, with directories, permissions and file locking. Amazon EFS offers NFS for Linux, and the Amazon FSx family offers Windows File Server over SMB, Lustre for high performance computing, NetApp ONTAP for multiprotocol enterprise storage and OpenZFS. File storage suits content management systems, shared home directories, lift and shift applications that read and write files, and machine learning training data read by many nodes.
Object storage
Object storage keeps whole objects, each with a key, data and metadata, in a flat namespace accessed over HTTPS APIs. Amazon S3 scales to virtually unlimited capacity and very high request rates, stores data durably across zones and integrates with almost every AWS service. Objects cannot be edited in place; changing part of an object means writing a new version. S3 suits static website content, media, backups, data lakes, logs and any data accessed as whole files by applications over the network.
Signals in questions
Words in a question usually reveal the storage type. A shared file system, POSIX permissions, NFS or many Linux instances reading the same files point to EFS. SMB, Windows, Active Directory permissions or DFS point to FSx for Windows File Server. Highest throughput for a compute cluster, HPC or a link to an S3 data lake point to FSx for Lustre. Unlimited scale, static content, data lake or accessed over HTTP point to S3. A database on an instance or a boot disk points to EBS. Temporary scratch data with the highest IOPS points to instance store.
Performance dimensions
Storage performance is described by IOPS, the number of read and write operations per second, which matters for small random I/O such as databases; throughput, the amount of data moved per second, which matters for large sequential I/O such as log processing and media; and latency, the time per operation. A volume can have high IOPS and low throughput or the reverse, so the right measure depends on the workload. Exam questions usually say which one matters, for example a database with high random I/O or a log processing job reading large files sequentially.
Cost and durability trade-offs
Faster storage usually costs more per gigabyte. Provisioned IOPS SSD volumes cost more than general purpose SSD, which costs more than HDD volumes. S3 Standard costs more than infrequent access and archive classes. EFS Standard costs more than EFS Infrequent Access and Archive. A good design uses the fast tier for hot data and moves cold data to cheaper tiers automatically with lifecycle policies. The cost lessons later in the course cover these choices in more detail; here the focus is meeting performance targets.
Managed versus self managed storage
Running your own NFS server or storage software on EC2 is possible but rarely the best answer. Managed services such as EFS and FSx handle replication, patching, backups and scaling. When a question asks for the least operational overhead, the managed service that supports the required protocol is almost always correct.
Storage for containers and serverless
Containers and functions have their own storage considerations. ECS tasks on Fargate get ephemeral storage, 20 GB by default and up to 200 GB, which disappears when the task stops. For data that must persist or be shared across tasks, Fargate and EC2 tasks can mount EFS volumes. EKS uses the EBS CSI driver for persistent volumes tied to one zone and the EFS CSI driver for shared volumes across zones. Lambda functions get a /tmp directory of 512 MB by default, configurable up to 10 GB, which persists only for the life of an execution environment, and they can mount EFS through access points for larger or shared data. When a question asks how several Lambda functions or containers can share large reference files, such as machine learning models, EFS is the usual answer.
Databases versus storage services
Some questions offer a storage service where a database fits better, or the reverse. Storing many small records that are queried by attributes, updated individually and read with low latency belongs in a database such as DynamoDB or RDS, not in files or objects. Storing large binary content such as images, video and documents belongs in S3, with the database holding the object key and metadata. Putting large blobs in a relational database inflates storage costs, backups and replication lag. The common pattern is S3 for content and a database for the index.
Durability and availability of each type
EBS volumes are replicated within one zone and designed for 99.8 to 99.9 percent durability per year, or 99.999 percent for io2, so snapshots are needed for real protection. Instance store has no durability guarantee beyond the life of the instance. EFS Standard and S3 Standard store data across several zones, with S3 designed for eleven nines of durability. FSx durability depends on the deployment type: Multi-AZ deployments survive a zone failure, while single AZ and scratch deployments do not. Matching the durability of the storage to the importance of the data is part of choosing it.
Throughput limits beyond the storage service
A storage service can be fast while the path to it is slow. EC2 instance network bandwidth limits throughput to EFS and S3, and instance EBS bandwidth limits throughput to EBS. NAT gateways can become a bottleneck and a cost for S3 traffic, which gateway endpoints avoid. Cross-zone traffic to an EFS mount target in another zone adds latency and data transfer charges, so instances should use the mount target in their own zone. When a question describes storage that should be fast but is not, check the instance size and network path before changing the storage type.
Worked example
A media company runs a transcoding farm on EC2. Source videos arrive in S3, each job copies a file to local scratch space, transcodes it and writes the result back to S3, and a shared configuration directory is read by every worker. Storage optimised instances with NVMe instance store provide fast scratch space at no extra cost, S3 holds sources and outputs durably, and a small EFS file system holds the shared configuration. Each piece uses the storage type that matches how it is accessed.
Quick check
Before picking a storage service, answer four questions: is the data accessed as blocks, files or whole objects, how many clients share it, which performance measure matters most, and what happens if a copy is lost. Most storage questions are settled by those answers, with cost deciding between the options that remain.
Getting the type right first makes the later choices of class, size and performance settings much simpler.
Quick reference
Boot disk: EBS gp3. Shared Linux data: EFS. Shared Windows data: FSx for Windows. Web scale objects: S3. Scratch space: instance store.
NFS for Linux points to EFS, SMB for Windows to FSx for Windows File Server, HPC with S3 integration to FSx for Lustre, HTTP access at any scale to S3, a single instance disk to EBS.