πŸ”’ Guided

Pre-launch preview. Authorised access only.

Incorrect code

Guided by A Guide to Cloud
Explore AB-900 AI-901 aws-aif-c01
Guided AZ-120 Domain 3
Domain 3 β€” Module 3 of 6 50%
18 of 28 overall

AZ-120 Study Guide

Domain 1: Migrate SAP Workloads to Azure

  • SAP on Azure: The Big Picture Free
  • Assessing SAP Workloads for Migration Free
  • Migration Strategies: The Decision Framework Free
  • RISE with SAP on Azure Free
  • Migration Execution: DMO, Classical, and Beyond Free
  • HANA System Replication for Migration Free
  • Post-Migration: Validation, Health, and HLI Migration Free

Domain 2: Design and Implement an Infrastructure to Support SAP Workloads

  • SAP-Certified Virtual Machines on Azure
  • Storage Architecture for SAP on Azure
  • Networking for SAP on Azure
  • HANA Architecture on Azure
  • SAP Application Tier on Azure
  • Proximity Placement and Availability Options
  • Azure Center for SAP Solutions (ACSS)
  • SAP Deployment Automation Framework (SDAF)

Domain 3: Design and Implement High Availability and Disaster Recovery

  • High Availability Concepts for SAP
  • High Availability for ASCS/SCS
  • HANA System Replication for HA
  • Shared Storage and Load Balancer Deep Dive
  • Disaster Recovery Strategy for SAP
  • Disaster Recovery Implementation

Domain 4: Maintain SAP Workloads on Azure

  • Azure Monitor for SAP Solutions
  • Backup for SAP HANA
  • Backup for SAP Application Servers
  • Security and Encryption for SAP
  • Microsoft Sentinel for SAP
  • Cost Optimization for SAP on Azure
  • SAP Operations and Lifecycle Management

AZ-120 Study Guide

Domain 1: Migrate SAP Workloads to Azure

  • SAP on Azure: The Big Picture Free
  • Assessing SAP Workloads for Migration Free
  • Migration Strategies: The Decision Framework Free
  • RISE with SAP on Azure Free
  • Migration Execution: DMO, Classical, and Beyond Free
  • HANA System Replication for Migration Free
  • Post-Migration: Validation, Health, and HLI Migration Free

Domain 2: Design and Implement an Infrastructure to Support SAP Workloads

  • SAP-Certified Virtual Machines on Azure
  • Storage Architecture for SAP on Azure
  • Networking for SAP on Azure
  • HANA Architecture on Azure
  • SAP Application Tier on Azure
  • Proximity Placement and Availability Options
  • Azure Center for SAP Solutions (ACSS)
  • SAP Deployment Automation Framework (SDAF)

Domain 3: Design and Implement High Availability and Disaster Recovery

  • High Availability Concepts for SAP
  • High Availability for ASCS/SCS
  • HANA System Replication for HA
  • Shared Storage and Load Balancer Deep Dive
  • Disaster Recovery Strategy for SAP
  • Disaster Recovery Implementation

Domain 4: Maintain SAP Workloads on Azure

  • Azure Monitor for SAP Solutions
  • Backup for SAP HANA
  • Backup for SAP Application Servers
  • Security and Encryption for SAP
  • Microsoft Sentinel for SAP
  • Cost Optimization for SAP on Azure
  • SAP Operations and Lifecycle Management
Domain 3: Design and Implement High Availability and Disaster Recovery Premium ⏱ ~14 min read

HANA System Replication for HA

Configure HANA System Replication (HSR) for high availability with synchronous replication, active/read-enabled secondary, Pacemaker resource agents SAPHana and SAPHanaTopology, hook scripts, and Azure Load Balancer integration.

Protecting the HANA database

πŸ›‘οΈ Lars points to the architecture diagram. β€œWe have ASCS protected. Now the database. If our HANA VM fails, GlobalPharma loses access to all data. Dr. Schmidt wants automatic failover β€” no manual intervention, no 30-minute restart from disk.”

☁️ Mei draws two HANA nodes. β€œThat is exactly what HANA System Replication gives us. HSR continuously copies data from the primary HANA instance to a secondary instance on a separate VM. If the primary fails, Pacemaker triggers failover and the secondary becomes the new primary β€” usually within minutes.”

β˜• Simple explanation

Think of it like two identical notebooks.

You write every transaction in your primary notebook. A colleague sits next to you, copying every entry into their notebook in real time (synchronous replication). If you suddenly cannot continue, your colleague already has an identical copy and takes over immediately. With the β€œread-enabled” option, your colleague can even answer questions from their notebook while they are still copying β€” so the backup is not just sitting idle.

HANA System Replication (HSR) is a built-in HANA feature that replicates data from a primary to a secondary instance at the database layer. For HA on Azure, synchronous replication with memory preload is recommended: every transaction is committed on both nodes before the application receives confirmation, and the secondary preloads data into memory for fast takeover. Combined with Pacemaker for automated failover and Azure Load Balancer for traffic redirection, HSR delivers RPO=0 and RTO in the range of 2-10 minutes.

πŸ“ Architecture diagram: Open the HANA HA Cluster diagram in Excalidraw to see the full Pacemaker cluster with HSR, Azure Load Balancer, and STONITH fencing.

HSR replication modes for HA

HANA System Replication supports multiple modes. For HA, you need to know:

SYNC (synchronous) β€” the primary waits for the secondary to acknowledge the write before committing. Guarantees zero data loss (RPO=0). Recommended for HA.

SYNCMEM (synchronous in-memory) β€” the primary waits for the secondary to receive the data in memory (but not persist to disk). Slightly faster than SYNC with RPO=0 when only the primary fails. Note: in the unlikely event of a simultaneous dual-node failure, in-flight data that has not been persisted on the secondary could be lost.

ASYNC (asynchronous) β€” the primary does not wait for the secondary. Used for DR across regions where latency makes synchronous impractical. Potential data loss (RPO > 0).

HSR replication modes
FeatureSYNCSYNCMEMASYNC
Primary waits for secondaryYes β€” write to diskYes β€” write to memoryNo β€” fire and forget
Data loss on failover (RPO)ZeroZero when only the primary fails (simultaneous dual failure could lose in-flight data)Possible β€” depends on lag
Performance impactHigher latency on writesModerate latencyMinimal impact on primary
Network requirementLow latency (same region/zone)Low latency (same region/zone)Tolerates higher latency (cross-region)
Use caseHA within a regionHA within a region (alternative to SYNC)DR across regions
Exam recommendationPrimary choice for HAKnow it exists as HA alternativeKnow it for DR scenarios
πŸ’‘ Exam tip: SYNC + memory preload for HA

When the exam asks about HANA HA configuration, the answer is synchronous replication (SYNC or SYNCMEM) with memory preload enabled on the secondary. Memory preload means the secondary loads data tables into memory so it can serve queries immediately after takeover, reducing RTO significantly.

Active/read-enabled secondary

Starting with HANA 2.0 SPS01, the secondary node in an HSR pair can serve read-only queries while actively receiving replication data. This is called the active/read-enabled secondary.

Benefits:

  • Offload read-heavy reporting queries to the secondary
  • Better utilization of the secondary VM (it is not just idle standby)
  • Reduces load on the primary for better write performance
  • No additional licensing cost for HANA Enterprise Edition

Limitations:

  • Read queries on the secondary may see slightly stale data during replication lag
  • If the secondary needs to take over as primary, read sessions are disconnected
  • Only available with HANA 2.0 SPS01 or later

πŸ›‘οΈ Lars considers. β€œSo GlobalPharma’s auditors can run their compliance reports against the secondary node without slowing down production?”

☁️ Mei nods. β€œExactly. And if the primary fails, the secondary drops the read connections and becomes the new primary. It is a much better use of the standby hardware than having it sit idle.”

Pacemaker for HANA HA

On Linux, Pacemaker automates HANA HSR failover using two specialized resource agents:

SAPHana β€” manages the HANA primary/secondary roles. It monitors HSR status and orchestrates takeover when the primary fails. This agent understands HANA-specific states and replication status.

SAPHanaTopology β€” monitors the HANA replication topology (which node is primary, which is secondary, replication status). It feeds information to SAPHana for decision-making.

Both agents work together:

  1. SAPHanaTopology continuously checks replication status on both nodes
  2. SAPHana uses this information to determine cluster health
  3. If the primary fails, SAPHana promotes the secondary to primary
  4. STONITH fences the failed node
  5. Azure Load Balancer health probe detects the new primary

Hook scripts

HANA hook scripts are Python scripts that HANA calls during replication events (takeover, registration, status changes). They integrate HANA’s internal replication awareness with Pacemaker:

  • SAPHanaSR hook β€” notifies Pacemaker about HSR status changes
  • Runs inside the HANA process, providing faster notification than polling
  • Reduces the time Pacemaker needs to detect a replication issue
  • Must be configured on both primary and secondary nodes
Hook scripts improve failover speed

Without hook scripts, Pacemaker relies on periodic polling to detect HSR status changes. With hook scripts, HANA proactively notifies Pacemaker the moment a replication event occurs. This can reduce failover detection time from 30+ seconds to near-instant. The exam may test whether you know that hook scripts complement (not replace) the Pacemaker resource agents.

Azure Load Balancer for HANA

The Load Balancer configuration for HANA HA follows the same principles as ASCS:

  • Standard SKU, internal β€” HANA cluster IPs are private
  • Floating IP enabled β€” mandatory for the HANA virtual IP
  • Health probe on port 625xx β€” where xx is the HANA instance number (e.g., 62503 for instance 03)
  • Backend pool β€” contains both HANA VMs
  • HA ports rule β€” forwards all HANA ports (3xx13, 3xx14, 3xx15, etc.) through a single rule

Applications connect to the Load Balancer’s frontend IP, which always resolves to the active HANA primary. After failover, the health probe detects the new primary and traffic switches automatically.

Testing failover

πŸ›‘οΈ Lars insists. β€œWe need to test this before going live. Dr. Schmidt requires documented evidence that failover works.”

Testing approaches:

  • Graceful takeover β€” use hdbnsutil -sr_takeover to trigger a planned failover
  • Simulate VM failure β€” stop the primary VM from the Azure portal
  • Kill HANA process β€” terminate the HANA indexserver process to test Pacemaker detection
  • Network isolation β€” block network between nodes to test fencing
  • Document results: failover time, data loss verification, client reconnection behavior
Question

What HSR replication mode is recommended for HANA HA on Azure?

Click or press Enter to reveal answer

Answer

Synchronous (SYNC or SYNCMEM) with memory preload on the secondary. Synchronous replication guarantees zero data loss (RPO=0). Memory preload ensures the secondary can serve as primary immediately after takeover, reducing RTO.

Click to flip back

Question

What are the two Pacemaker resource agents for HANA HA?

Click or press Enter to reveal answer

Answer

SAPHana manages the primary/secondary roles and orchestrates failover. SAPHanaTopology monitors the replication topology and status. Both work together β€” SAPHanaTopology provides status information that SAPHana uses to make failover decisions.

Click to flip back

Question

What is the active/read-enabled secondary in HANA HSR?

Click or press Enter to reveal answer

Answer

Starting with HANA 2.0 SPS01, the secondary HSR node can serve read-only queries while still receiving replication data. This offloads reporting workloads from the primary and utilizes the standby VM more efficiently. Read connections are dropped if failover occurs.

Click to flip back

Question

What do HANA hook scripts do in an HA configuration?

Click or press Enter to reveal answer

Answer

Hook scripts are Python scripts that HANA calls during replication events (takeover, status changes). They notify Pacemaker about HSR status changes faster than polling, reducing failover detection time from 30+ seconds to near-instant. They complement the SAPHana and SAPHanaTopology resource agents.

Click to flip back

Question

What health probe port pattern does Azure Load Balancer use for HANA HA?

Click or press Enter to reveal answer

Answer

625xx where xx is the HANA instance number. For example, HANA instance 03 uses probe port 62503. This is different from the ASCS pattern (620xx) and the ERS pattern (621xx).

Click to flip back

Knowledge check

Knowledge Check

GlobalPharma needs HANA HA with zero data loss. Which HSR configuration should Lars use?

Knowledge Check

Lars notices that Pacemaker takes 45 seconds to detect an HSR status change. What should he configure to improve detection speed?

Knowledge Check

GlobalPharma's auditors want to run compliance reports against the HANA database without impacting production users. What HANA feature enables this?

Knowledge Check

Lars is configuring the Pacemaker cluster for GlobalPharma's HANA HA setup. Which two Pacemaker resource agents are required for HANA HA on Azure?

Summary

You now know how to protect the HANA database: HSR with synchronous replication for zero data loss, memory preload for fast takeover, active/read-enabled secondary for report offloading, Pacemaker with SAPHana and SAPHanaTopology resource agents, hook scripts for fast detection, and Azure Load Balancer for traffic routing. Combined with the ASCS HA from the previous module, you have a fully protected SAP system.

Next, we take a deep dive into shared storage and Load Balancer configuration details that apply to both ASCS and HANA clusters.

🎬 Video coming soon

← Previous

High Availability for ASCS/SCS

Next β†’

Shared Storage and Load Balancer Deep Dive

Guided

I learn, I simplify, I share.

A Guide to Cloud YouTube Feedback

© 2026 Sutheesh. All rights reserved.

Guided is an independent study resource and is not affiliated with, endorsed by, or officially connected to Microsoft. Microsoft, Azure, and related trademarks are property of Microsoft Corporation. Always verify information against Microsoft Learn.