How do you make a database that answers complex business questions instantly, instead of making the finance team wait until the next morning? That is the core challenge that SAP HANA solves, and it is the reason you need to understand in-memory technology for the PAS-C01 exam. If you cannot explain how SAP HANA uses memory differently from traditional databases — and how AWS EC2 instances and storage support that — you will fail the questions on Domain 3.3.
Jump to a section
A simple way to picture SAP HANA and In-Memory Database Technologies on AWS
When you decide to cook a gourmet meal, the first thing you do is not run to the pantry — you spend most of your time pulling out every ingredient and laying them all out on the counter. Because when you have everything within arm's reach, you can chop, sear, and plate in seconds without ever opening a cupboard. That is exactly what happens in an in-memory database like SAP HANA. A traditional database is like a chef who keeps ingredients in a giant warehouse down the street — every time a customer orders a dish, the chef jogs to the warehouse, grabs one ingredient, runs back, and repeats this for every single item. That slowness is why your bank might take minutes to generate a year-end statement. SAP HANA flips this by loading the entire dataset into RAM — what AWS calls Elastic Compute Cloud (EC2) instances with huge amounts of memory — so all the data sits on the counter of the EC2 instance's memory. Once a query runs, the data is fetched in microseconds rather than milliseconds.
This is not just a speed hack. It means SAP HANA can perform complex calculations — like calculating thousands of sales reports across multiple currencies — in real time during a meeting, not overnight. AWS supports this by offering special EC2 instance types (the ‘x1e’ series, for example) built specifically for SAP HANA, with up to 4 TB of RAM. The catch is that RAM is expensive and volatile — if your EC2 instance stops, the data vanishes — so AWS storage like Amazon Elastic Block Store (EBS) becomes the backup pantry, saving snapshots of the memory just in case the power goes out.
Let’s start with what ‘in-memory database’ actually means. In traditional databases (like Oracle or Microsoft SQL Server), data lives on a hard drive or solid-state drive (SSD) — slow storage that can take milliseconds to retrieve a single row. When you run a query, the database engine has to locate the file on disk, read it into memory, process it, and then return the result. This works fine for small datasets, but when a business has billions of rows of sales data, those milliseconds add up to hours. An in-memory database, by contrast, stores all data in the computer’s main memory — RAM (Random Access Memory). RAM is the ultra-fast workspace your computer uses to hold what you are working on right now — open browser tabs, a running video game, or the document you are typing. It is about 100,000 times faster than reading from a hard drive. SAP HANA is designed from the ground up to live entirely in RAM. When you load data into HANA, it compresses and stores it in memory in a column-oriented format — meaning each column of a table (e.g., ‘Sales Amount’) is stored together, not each row (e.g., ‘Order 1: date, customer, amount’). This columnar approach makes it extremely fast for analytical queries (like ‘sum all sales for January’) because only the relevant column needs to be scanned.
Now, where does AWS come into this? SAP HANA cannot run on just any laptop. It needs enormous amounts of RAM — often terabytes — and certified hardware. AWS offers specific EC2 instance families that are certified by SAP to run HANA. The key ones are:
- ‘x1e’ instances: Up to 4 TB of RAM, designed for large production HANA deployments. - ‘x2idn’ and ‘x2iedn’ instances: Newer, faster instances with up to 4 TB of RAM and better networking. - ‘u-6tb1’, ‘u-9tb1’, ‘u-12tb1’ instances: Bare metal servers with 6, 9, or 12 TB of RAM for the largest HANA workloads. They are called ‘bare metal’ because you get the physical server entirely to yourself — no virtualisation layer. You must choose the right instance size during deployment. This is called ‘sizing’. If you pick an instance with too little RAM, HANA will crash. If you pick too much, you waste money. AWS provides a tool called the ‘AWS SAP HANA Sizing Tool’ that takes your on-premises database size (the total amount of data you currently store) and estimates how much RAM you need on AWS (typically 2 to 3 times the compressed data size).
Performance optimisation on AWS involves three major areas: instance choice, storage configuration, and network setup. HANA relies on persistent storage for logs and backups. You attach Amazon Elastic Block Store (EBS) volumes — virtual hard drives in the cloud — to your EC2 instance. For HANA, you must use ‘io1’ or ‘io2’ EBS volumes (provisioned IOPS SSD) because they guarantee a consistent number of I/O operations per second (IOPS). You also use ‘Amazon Elastic File System (EFS)’ for shared file storage if you have a multi-node HANA setup (a scale-out cluster).
Let’s talk about sizing more concretely. Suppose your on-premises SAP HANA database is 3 TB uncompressed. SAP says that HANA compresses data by about 2.5x to 5x, so your working memory footprint might be 600 GB to 1.2 TB. You then add overhead for the operating system, HANA processes, and temporary space — SAP recommends 1.5x the compressed data size. So ‘sizing’ might lead you to pick an x1e.32xlarge instance with 4 TB RAM. On the exam, they will give you a scenario where a company has a 2 TB SAP HANA database running on-premises and ask you to choose the correct EC2 instance. The trap is that you must first estimate the compressed size, not just use the raw 2 TB number.
Another critical concept is ‘HANA memory management’. HANA reserves memory for different purposes: the column store (the actual data), row store (for metadata and small tables), and the redo log buffer (for crash recovery). If the redo log buffer fills up because the EBS volume’s IOPS is too low, HANA pauses and writes data to disk slowly — this is called ‘log flushes pending’ and is a common performance bottleneck. To fix this, you increase the IOPS of the ‘/hana/log’ EBS volume. On the exam, you will see questions where the HANA system is slow and you diagnose the issue by looking at CloudWatch metrics for ‘DiskQueueLength’ or ‘Average Write Latency’ being high. The correct answer is almost always to increase the EBS volume IOPS or switch to a faster instance type.
Sizing Assessment
Use the AWS SAP HANA Sizing Tool (or a manual calculation) to estimate the compressed RAM footprint. Take the on-premises uncompressed database size, divide by 3 (conservative compression), then add 50% overhead. The result tells you the minimum RAM needed on the EC2 instance.
Instance Selection
Choose a certified EC2 instance family (x1e, x2idn, etc.) and a size that provides at least the estimated compressed RAM plus overhead. For example, a 2 TB raw database compresses to ~600 GB, so choose an x1e.32xlarge with 4 TB RAM.
Storage Configuration
Attach three EBS volumes: /hana/data (main data), /hana/log (redo logs), and /hana/shared (for scale out). Use io1 or io2 type with provisioned IOPS: minimum 1 IOPS per GB for data, and 5 IOPS per GB for log. For example, if /hana/data is 1 TB, set 1000 IOPS.
Deploy SAP HANA
Launch the EC2 instance with an SAP-certified AMI (Amazon Machine Image). Install the HANA database software from an S3 bucket using SAP HANA Database Lifecycle Manager (HDBLCM). Configure network rules in a security group to allow only necessary ports (like 3<instance>15 for HANA Studio).
Performance Tuning
After deployment, monitor CloudWatch metrics like VolumeQueueLength and AverageWriteLatency. If the log volume shows high latency, increase the provisioned IOPS. Also adjust HANA parameters like redo_log_buf_size if the system frequently pauses for log flushes.
High Availability Setup
Enable SAP HANA System Replication (HSR). Deploy a second EC2 instance in a different Availability Zone (AZ) with the same storage configuration. Configure HSR to asynchronously replicate the primary database to the secondary. Then set up Route 53 DNS failover so traffic automatically routes to the secondary if the primary fails.
Imagine you are a cloud architect at a retail company called ‘GlobalMart’. They run SAP S/4HANA on-premises, but the board has mandated moving everything to AWS within six months. The SAP system handles real-time inventory, pricing, and financial reporting. Every Monday morning, the CFO runs a profit-and-loss statement for all 50 countries, which currently takes three hours. The CEO wants it in under five minutes.
You start by assessing the current on-premises HANA server. It has 2 TB of RAM and is 80% utilised. You use the AWS SAP HANA Sizing Tool (a simple web form) to input the current database size (2 TB raw uncompressed). The tool estimates a compressed size of 500 GB and recommends an x1e.32xlarge instance with 4 TB of RAM. Next, you need to choose storage. SAP HANA on AWS requires at least three separate EBS volumes for performance:
- ‘/hana/data’: for the column store data. Needs high IOPS (at least 1 IOPS per GB of data). - ‘/hana/log’: for the redo logs. Needs even higher IOPS (at least 5 IOPS per GB of redo log size). - ‘/hana/shared’: for shared binaries (only needed for scale-out). You choose io2 EBS volumes with 10,000 IOPS for data and 5,000 IOPS for logs. Then you configure the EC2 instance: you select an Amazon Linux AMI (the base operating system) that is SAP-certified, install the HANA database software from an Amazon S3 bucket, and use AWS Systems Manager to run the installation script.
After deployment, you notice the system performs poorly during end-of-month reporting. You check Amazon CloudWatch metrics and see that ‘Average Write Latency’ on the /hana/log volume is consistently above 10 milliseconds, and the HANA alerts log shows ‘Log Flush Pending’. This is a classic exam scenario. You increase the provisioned IOPS on the /hana/log volume from 5,000 to 10,000, and the latency drops to 1 millisecond. The reporting jobs now finish in under two minutes.
You also set up high availability using a ‘HANA System Replication’ (HSR) architecture — a second EC2 instance in a different Availability Zone (AZ) that continuously receives data from the primary. If the primary fails, AWS Route 53 (the DNS service) redirects traffic to the secondary. You use Amazon Elastic Block Store (EBS) snapshots for daily backups, stored in Amazon S3 for long-term retention. Finally, you enable ‘Multitenant Database Containers (MDC)’ — a feature that lets you run multiple separate HANA databases (one for each subsidiary) on a single HANA system, each isolated in its own tenant. This reduces costs because you share the same EC2 instance and EBS storage.
The PAS-C01 exam tests Domain 3.3 with about 10-15% of the total questions, and they tend to focus on very specific traps. Here is what you must memorise cold:
- ‘Instance types for SAP HANA’: You must know which EC2 families are certified. The exam will give you a list of four instance types (e.g., r5, m5, x1e, c5) and ask which is suitable for a production HANA database. The correct answer is x1e (or x2idn/x2iedn/u-*). The trap is that r5 and m5 are not certified for HANA — they lack the required memory bandwidth or are not SAP-certified. - ‘Sizing logic’: They love giving you a ‘raw uncompressed’ database size and asking you to pick the right instance. The trap is that you must apply the compression ratio (HANA compresses 2.5-5x) before comparing to RAM. The wrong answers always use the raw uncompressed size directly. - ‘Storage types’: You must know that only ‘io1’ or ‘io2’ (provisioned IOPS SSD) EBS volumes are suitable for HANA data and log. The exam will offer ‘gp2’ or ‘st1’ as options — those are wrong because they cannot sustain the IOPS HANA needs. - ‘Log flushes’ and ‘redo log buffer’: This is the number one performance question. They describe a HANA system with high latency during writes. The correct answer is always to increase the IOPS on the ‘/hana/log’ EBS volume or increase the redo log buffer size in HANA. The trap is they might suggest upgrading the EC2 instance type, but that does not affect EBS IOPS limits. - ‘HANA System Replication (HSR)’: They ask about disaster recovery (DR). You need to know that HSR copies data to a secondary instance in another AZ or region. The correct answer will involve using HSR, not just backing up to S3. - ‘Multitenant Database Containers (MDC)’: They test this by describing a company that wants to run separate databases for different business units on one HANA system. The correct answer is ‘MDC’ or ‘multitenant’. The trap is they offer ‘multiple EC2 instances’ as the solution, which is more expensive. - ‘CloudWatch metrics to monitor’: They ask which metric indicates a disk bottleneck. The correct ones are ‘VolumeQueueLength’ and ‘AverageWriteLatency’. The trap is ‘CPUUtilization’ or ‘MemoryUtilization’, which point to compute or memory issues, not disk.
Exam question patterns:
- Multiple choice single answer: ‘A company has a 3 TB SAP HANA database on-premises. They want to migrate to AWS. Which EC2 instance is most cost-effective?’ - Multiple choice multiple answer: ‘Which two storage configurations are suitable for SAP HANA?’ (Correct: io1 and io2 EBS volumes). - Scenario-based: ‘A customer reports that SAP HANA queries are slow. CloudWatch shows high VolumeQueueLength on the log volume. What should you do?’ Key definitions to memorise:
- ‘Column store’: Data stored by columns, not rows. Optimised for analytical queries. - ‘Redo log’: A file that records every transaction to ensure recoverability after a crash. - ‘IOPS’: Input/Output operations per second. Measures how fast a storage volume can read/write. - ‘Scale-out’: Adding more EC2 instances to a HANA cluster to increase capacity. - ‘Scale-up’: Moving to a larger EC2 instance with more RAM.
SAP HANA is an in-memory, column-oriented database that stores all active data in RAM, not on disk, which allows sub-second analytical queries.
Only specific EC2 instance families are certified for SAP HANA: x1e, x2idn, x2iedn, and the bare-metal u-6tb1, u-9tb1, u-12tb1 series.
When sizing SAP HANA on AWS, you must apply HANA’s compression ratio (typically 2.5x to 5x) to the raw data size before comparing to the instance’s RAM.
The most common performance bottleneck for SAP HANA on AWS is insufficient IOPS on the /hana/log EBS volume, which causes log flush pending and high write latency.
SAP HANA on AWS requires EBS volumes with provisioned IOPS — specifically io1 or io2 — for both /hana/data and /hana/log.
For high availability, you must configure SAP HANA System Replication (HSR) to a secondary EC2 instance in a different Availability Zone, combined with Route 53 failover.
Multitenant Database Containers (MDC) let you run multiple separate HANA databases on one EC2 instance, reducing cost without sacrificing isolation.
These come up on the exam all the time. Here's how to tell them apart.
SAP HANA (In-Memory)
Stores all active data in RAM, enabling sub-second analytical queries.
Uses column-oriented storage for fast aggregation and filtering.
Requires large amounts of certified RAM on specific AWS instances.
Traditional Disk-Based DB (e.g., Oracle)
Stores data on disk (HDD/SSD), leading to millisecond-to-second retrieval times.
Uses row-oriented storage, which is slower for analytical queries that scan many rows.
Can run on general-purpose EC2 instances (e.g., r5) without special certification.
x1e Instance Family
Certified by SAP for HANA production workloads.
Offers up to 4 TB of RAM per instance.
Designed for memory-intensive, high-throughput workloads.
r5 Instance Family
Not certified for SAP HANA production use.
Offers up to 768 GB of RAM per instance.
Optimised for general-purpose memory-bound applications, not HANA.
io1 EBS Volume
Provides provisioned IOPS (guaranteed performance).
Suitable for SAP HANA /hana/data and /hana/log volumes.
More expensive but essential for consistent latency.
gp2 EBS Volume
Provides burstable IOPS (baseline + credits).
Not suitable for SAP HANA because IOPS can drop below the required threshold.
Cheaper but can cause log flush pending and performance degradation.
HANA System Replication
Provides near-real-time data replication to a secondary instance.
Supports automatic failover with minimal data loss (configurable sync mode).
Requires a second EC2 instance and ongoing network bandwidth.
EBS Snapshots
Provides point-in-time backup of the entire EBS volume.
Requires manual or scheduled snapshots; does not automate failover.
Lower cost but recovery time is significantly longer (minutes to hours).
Columnar Storage (HANA)
Stores data by columns; ideal for analytical queries that aggregate across rows.
Achieves high compression ratios because same-type data compresses better.
Slower for single-row inserts or updates (but HANA uses delta storage to mitigate).
Row-Based Storage (Traditional DB)
Stores data by rows; ideal for transactional queries that retrieve entire records.
Compression is less effective because data types in a row are mixed.
Faster for single-row INSERT/UPDATE operations.
Mistake
SAP HANA is just like any other database, only faster because it runs on AWS.
Correct
SAP HANA is a fundamentally different architecture: an in-memory, column-oriented database that keeps all active data in RAM, not on disk. It requires specially certified EC2 instances and specific EBS volume configurations.
Many beginners assume all databases work the same way, but HANA’s reliance on RAM makes it unique. The exam punishes anyone who treats HANA like a traditional disk-based database.
Mistake
You can run SAP HANA on any large EC2 instance, like r5.8xlarge, because it has lots of RAM.
Correct
Only certain EC2 families (x1e, x2idn, x2iedn, u-* and the older x1) are certified by SAP for HANA. Using an uncertified instance violates SAP support agreements and will cause runtime errors.
People see ‘large RAM’ and think it is enough. The exam tests whether you know the certified list — not just any instance with enough memory.
Mistake
To speed up a slow HANA system, you should always upgrade the EC2 instance type to one with more vCPUs.
Correct
The most common performance bottleneck for HANA on AWS is the storage IOPS, not the CPU. You must first check CloudWatch metrics for disk queue length and latency, and then increase the EBS volume IOPS.
This misconception comes from traditional IT thinking where a slow server means ‘buy a faster CPU’. HANA’s performance is often disk-bound because of the redo log writes.
Mistake
SAP HANA on AWS automatically backs up data to S3, so you do not need to configure backups.
Correct
SAP HANA does not automatically back up to S3. You must manually configure backups using HANA Studio or AWS Backup. You also set up EBS snapshots and S3 lifecycle policies for long-term retention.
Cloud hype leads beginners to think everything is ‘automatic’. The exam expects you to know that backup is a manual step managed by the customer.
Mistake
If you have multiple SAP HANA databases, you must deploy a separate EC2 instance for each one.
Correct
With Multitenant Database Containers (MDC), you can run multiple isolated HANA databases (tenants) on a single EC2 instance, which saves costs. Only one HANA system (process) per instance is needed.
This is a common confusion because in traditional databases you often run separate server instances. HANA’s MDC feature is specifically tested on the exam.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
Column store stores all values of a column together, making it very fast for analytical queries like summing sales across all regions. Row store stores all columns of a row together, which is better for transaction processing where you need to see all details of a single order. HANA uses column store for most tables and row store for metadata.
SAP certifies only certain EC2 families because they have the exact memory bandwidth, CPU per socket, and hardware profile that HANA needs for consistent performance and support. Using an uncertified instance means SAP will not provide support and the system may crash.
Check two CloudWatch metrics: VolumeQueueLength (how many I/O operations are waiting) and AverageWriteLatency (how long each write takes). If both are high, it is a storage bottleneck. If CPUUtilization is near 100% but disk metrics are normal, the bottleneck is CPU.
Yes, EFS can be used for the /hana/shared mount point in a multi-node (scale-out) HANA cluster, but it is not recommended for /hana/data or /hana/log because EFS latency is higher than EBS. The exam expects you to use EBS for data and log, and EFS only for shared binaries.
SAP HANA System Replication (HSR) continuously copies data from a primary HANA instance to a secondary instance. You use it for high availability (failover within a region) or disaster recovery (across regions). It is required for the PAS-C01 exam when the question asks about fault tolerance.
You must manually configure backups using HANA Studio or command-line tools to create backups to an S3 bucket or EBS snapshots. Alternatively, you can use AWS Backup to automate EBS snapshots. The exam tests that backups are not automatic.
You've finished SAP HANA and In-Memory Database Technologies on AWS. Continue through the PAS-C01 study guide to build a complete picture of the exam.
Done with this chapter?