Which is the most secure way of giving access to AWS services to applications running on EC2 instances?

In this article, we’ll explain the concept of high availability and how to measure availability for IT systems. We’ll show how AWS can help you achieve high availability for cloud workloads, across compute, SQL databases and storage services.

Read on to learn how Amazon’s Infrastructure as a Service (IaaS) capabilities such as elastic load balancing, availability zones and auto-scaling can help you achieve high availability for enterprise workloads. In this blog post, we’ll also examine how NetApp Cloud Volumes ONTAP can help to achieve highly available storage in AWS.

In this article, you will learn:

  • What is high availability?
  • High availability in AWS compute, databases and storage
  • AWS high availability for EC2 instances
  • AWS high availability for SQL databases on Amazon RDS
  • AWS high availability for storage services
  • Achieve AWS high availability with Cloud Volumes ONTAP

What Is High Availability?

Highly available systems are reliable in the sense that they continue operating even when critical components fail. They are also resilient, meaning that they are able to simply handle failure without service disruption or data loss, and seamlessly recover from such failure.

High availability is commonly measured as a percentage of uptime. The number of “nines” is commonly used to indicate the degree of high availability. For example, “four nines” is indicative of a system that is up 99.99% of the time, meaning it is down for only 52.6 minutes during an entire year.

The following elements help you implement highly available systems:


  • Redundancy—ensuring that critical system components have another identical component with the same data, that can take over in case of failure.
  • Monitoring—identifying problems in production systems that may disrupt or degrade service.
  • Failover—the ability to switch from an active system component to a redundant component in case of failure, imminent failure, degraded performance or functionality.
  • Failback—the ability to switch back from a redundant component to the primary active component, when it has recovered from failure.

AWS helps you achieve high availability for cloud workloads, across three different dimensions:

  • Compute—Amazon EC2 and other services that let you provision computing resources, provide high availability features such as load balancing, auto-scaling and provisioning across Amazon Availability Zones (AZ), representing isolated parts of an Amazon data center.
  • SQL databases—Amazon RDS and other managed SQL databases provide options for automatically deploying databases with a standby replica in a different AZ.
  • Storage services—Amazon storage services, such as S3, EFS and EBS, provide built-in high availability options. S3 and EFS automatically store data across different AZs, while EBS enables deployment of snapshots to different AZs.

AWS High Availability for EC2 Instances

If you are running instances on Amazon EC2, Amazon provides several built-in capabilities to achieve high availability:

  • Elastic Load Balancing—you can launch several EC2 instances and distribute traffic between them.
  • Availability Zones—you can place instances in different AZs.
  • Auto Scaling—use auto-scaling to detect when loads increase, and then dynamically add more instances.

These capabilities are illustrated in the diagram below. The Elastic Load Balancer distributes traffic between two or more EC2 instances, each of which can potentially be deployed in a separate subnet that resides in a separate Amazon Availability Zone. These instances can be part of an Auto-Scaling Group, with additional instances launched on demand.

Which is the most secure way of giving access to AWS services to applications running on EC2 instances?

AWS High Availability for SQL Databases on Amazon RDS

If you are running an SQL database as part of your AWS application, you are probably running it using Amazon RDS.

RDS provides high availability using Multi-Availability Zone (Multi-AZ) deployments. This means RDS automatically provisions a synchronous replica of the database in a different availability zone. When the main database instance goes down, users are redirected transparently to the other availability zone.

This provides two levels of redundancy:

  • In case the active database fails, there is a standby replica ready to receive requests
  • In case of a disruption in the AZ your main database instance is running in, there is failover to another AZ.

The following diagram illustrates Multi-AZ database deployment.

Which is the most secure way of giving access to AWS services to applications running on EC2 instances?

Source: Amazon Web Services

You can turn on this capability by specifying ‘Multi-AZ Deployment’ when creating an RDS database instance, either via the RDS Console or the Amazon CLI. Multi-AZ deployments are managed fully automatically, with no administrative intervention.

Note that Multi-AZ deployment is not supported for read-only instances, and you should use read replicas to enable high availability for those instances.

RDS provides the following capabilities per database type:

  • For Oracle, PostgreSQL, MySQL, and MariaDB—high availability using Amazon Multi-AZ technology.
  • For SQL Server—mirroring to another Availability Zone using Microsoft’s SQL Server Database Mirroring technology.

AWS High Availability for Storage Services

Here is a brief summary of the high availability capabilities Amazon offers for other popular storage services:

Amazon S3
S3 guarantees 99.999999999% (twelve 9’s) durability, by redundantly storing objects on multiple devices across a minimum of three AZs in an Amazon S3 Region.

Amazon EFS
EFS guarantees 99.9% availability, otherwise between 10-100% of the service fee is discounted. Every file system object is redundantly stored across multiple AZs.

Amazon EBS
EBS volumes are created in a specific AZ. You can make a volume available in another AZ and it can then be attached to other instances in that same Availability Zone. To make a volume available outside the AZ, or to create redundancy, you can create a snapshot and restore it in another AZ within the same region. You can also copy snapshots to other AWS regions, to create redundancy across Amazon data centers.

Achieve High Availability in AWS with Cloud Volumes ONTAP

NetApp Cloud Volumes ONTAP, the leading enterprise-grade storage management solution, delivers secure, proven storage management services on AWS, Azure and Google Cloud. The software-only service combines data control with enterprise-class storage features such as high availability, data protection, file share services, storage efficiencies, Kubernetes integration, and more.

In this blog post, we looked into the high availability capabilities of AWS storage services.

Using Cloud Volumes ONTAP, customers can leverage data protection and high availability, and operate non-disruptively while reducing the risks. Cloud Volumes ONTAP High Availability configuration will ensure business continuity with no data loss (RPO=0) and minimal recovery times (RTO < 60 secs).

Cloud Volumes ONTAP high availability ensures your applications run smoothly 24/7. Through its dual-node configuration with synchronous replication, the solution provides 100% data integrity, enabling zero RPO and reduction of RTO below 60 seconds.

Which is the most secure way of giving access to AWS services to applications running on EC2 instances?

Want to learn more about AWS high availability? Read our articles:

AWS Availability Zones, Regions, & Placement Groups Explained

Business organizations make use of applications that require different levels of availability and different SLA objectives. Learn how AWS Availability Zones, regions, multi-AZ deployments, and placement groups can help you improve availability and resilience for your workloads.

Read AWS Availability Zones, Regions, & Placement Groups Explained to learn more.

AWS GovCloud Services: Sensitive and Classified Data on the Public Cloud

AWS GovCloud is a separate AWS Region aimed for the use of USA government agencies, organizations working with the United States government, or projects that need to adhere to stringent standards or regulations. GovCloud helps users move sensitive workloads to the Amazon cloud, while adhering to their specific regulatory and compliance requirements. 

In addition to its special security and access capabilities, GovCloud is a regular Amazon region that provides all the basic Amazon services.

Learn how AWS GovCloud services provide enhanced security for sensitive and classified data used by US government agencies and their partners and vendors.

Read more: AWS GovCloud Services: Sensitive and Classified Data on the Public Cloud

High Availability Cluster: Concepts and Architecture

High availability clusters provide continuous availability. Learn how high availability clusters work, what concepts you should understand before adoption, and what are the most important requirements. 

Read more: High Availability Cluster: Concepts and Architecture

Creating high availability systems in AWS

Mission-critical systems require a recovery point objective (RPO) of 0. Both cloud and on-premise storage solutions need to ensure no data is lost when an outage occurs. There are many solutions that can help you create highly available systems in the cloud. However, choosing and coordinating these services is challenging.

Read How to Create High Availability Systems in AWS to Reach RPO 0 to learn about AWS high availability services and how they compare with Cloud Volumes ONTAP HA.

Data redundant sites

Even after moving your workloads to AWS, the shared responsibility model states that you are responsible for some portions of your stored data. This means you need to ensure your secondary site has redundancy for data storage. Cloud Volumes ONTAP can help you deal with the challenges of creating data redundant sites in AWS.

Cloud Volumes ONTAP allows you to easily create secondary copies of your on-premises deployments, and make sure that if one site fails, you can failover and failback between copies with no data loss.

Read Data Redundancy with AWS and Cloud Volumes ONTAP to learn more.

AWS high availability architecture

AWS has a global infrastructure to provide high availability for cloud workloads. The key components of this architecture include:

  • Regions—21 geographical zones each containing at least three availability zones.
  • Availability zones—66 global zones, which are self-sufficient data centers with redundant power, networking and cooling. Deploying across several AZs can protect your applications and provide you with resiliency in case failures occur.
  • Compliance and data residency—Amazon provides full control over AWS regions to help you comply with data sovereignty requirements.

Read Making the Most of AWS High Availability Architecture for Enterprise Workloads to learn more about availability zones, including best practices for AWS high availability.

Setting Up Cloud Volumes ONTAP HA Configuration in Multiple Availability Zones

You can deploy Cloud Volumes ONTAP HA for AWS in multiple AWS Availability Zones, to ensure high availability in case a single availability zone fails. 

Normally, Cloud Volumes ONTAP HA restricts access to one VPC. Read this guide to learn how to allow multiple VPCs to use the same Cloud Volumes ONTAP HA configuration.

AWS Data Loss Prevention (DLP)

DLP refers to tools and protocols used for protection against data loss or theft. Data loss can be caused by viruses and malware, power failures or insider threats. There are multiple approaches you can adopt to protect your data in AWS, all of which require security monitoring and a general understanding of security patterns.

Common DLP patterns in AWS include:

  • Encrypting S3 data
  • Monitoring S3 buckets
  • Protecting S3-based data with policies

To learn more about DLP approaches and tools in AWS read AWS Data Loss Prevention: Tools and Strategies.

Maintaining Application Availability in the Cloud

Keeping applications up and running continuously is a major concern for enterprises. This requires not only taking steps to prevent downtime, but also recovering from failure as quickly as possible with minimal data loss. When relying solely on cloud service providers, enterprises struggle to reach near-zero recovery point objectives (RPO) and recovery time objectives (RTO). Attempting to meet these requirements with tools such as application layers, OS or databases often result in high costs, risks and complications.

Cloud Volumes ONTAP high availability ensures your applications run smoothly 24/7. Through its dual-node configuration with synchronous replication, the solution provides 100% data integrity, enabling zero RPO and reduction of RTO below 60 seconds.

Read Application Availability in the Cloud: Meeting the Challenges of High Availability and Continuous Operation to learn more.

Windows Server Failover Clustering on AWS with NetApp Cloud Volumes ONTAP

One way that companies can ensure high availability in their data centers is with Windows Server Failover Clustering, also known as WSFC. By providing a native HA platform through By using Active / Passive servers with shared access to the same storage, WSFC provides applications with assured uptime.

In this post we take an in-depth look at WSFC and its benefits for AWS HA when using Cloud Volumes ONTAP.

Read more in Windows Server Failover Clustering on AWS with NetApp Cloud Volumes ONTAP

See Our Additional Guides on Key IaaS Topics

We have authored in-depth guides on several other topics that can also be useful as you explore the world of IaaS.

Cloud Migration

Learn about cloud migration and what major challenges to expect when implementing a cloud migration strategy in your organization. 

See top articles in our cloud migration strategy guide:

  • Cloud Migration Tools: Transferring Your Data with Ease
  • Cloud Data Integration 101: Benefits, Challenges, and Tools
  • 3 Cloud Migration Approaches and Their Pros and Cons

AWS Migration

Learn about Amazon’s basic framework for migration, and how to plan for common challenges that affect almost every migration project.

See top articles in our AWS migration guide:

  • 5 Steps to the Cloud: AWS Migration Checklist
  • AWS Case Studies with NetApp Cloud Volumes ONTAP
  • AWS Database Migration Service: Copy-Paste Your Database to Amazon

AWS EBS

Learn what is AWS EBS and how to perform common EBS operations. Including five highly useful EBS features that can help you optimize performance and billing. 

See top articles in our guide to AWS EBS:

  • Are You Getting Everything You Can from AWS EBS Volumes?: Optimizing Your Storage Usage
  • AWS EBS Volume Backup with EBS Snapshots
  • Cloning Amazon EBS Volumes: A Solution to the AWS EBS Cloning Problem

AWS EFS

Learn about AWS EFS, your backup options, how to optimize performance, see a brief comparison of EFS vs EBS vs S3, and discover how Cloud Volumes ONTAP can help.

See top articles in our guide to AWS EFS:

  • EFS Performance Do’s and Don’ts
  • Understanding AWS Shared Storage for Files, Block Storage, Object Storage and VDI
  • AWS NFS File Shares with Amazon EFS: 5 Key Considerations

Azure Cost Management

Learn about tools and practices that can help you manage and optimize costs on the Microsoft Azure cloud.

See top articles in our Azure cost management:

  • Azure Cost Management: Visualize, Predict and Optimize Your Azure Bill
  • Azure Cost Optimization: 12 Ways to Save on Azure
  • Azure Storage Pricing: Blobs, Files, Tables and Managed Disks

AWS Cost Optimization

Learn how AWS cost optimization works, free Amazon tools that can help manage costs, and best practices for reducing your cloud bill.

See top articles in our AWS cost optimization guide:

  • AWS Costs: 3 Ways to Save Big and 10 Price Variations to Watch Out For
  • AWS Storage Costs: All in One Place
  • AWS Cost Saving Guidebook Shows How You Can Optimize EBS Costs

Azure Migration

Learn about aspects of considerations when implementing Azure migration: migration models, state assessment, storage configuration, security, and maintenance. 

See top articles in our Azure migration guide:

  • 11-Step Azure Migration Checklist
  • Moving Clouds: Migration from AWS to Azure and Azure to AWS
  • Azure Migration Tools: One-Click Migration for VMs and Data

Azure High Availability

High availability is one of the major benefits of cloud services. The guarantee that your data will remain accessible is critical to supporting high priority workloads and applications and is the reason many move to the cloud in the first place.

This guide explains what high availability is and how to optimize Azure high availability.

See top articles in our Azure high availability guide:

  • Azure Availability Zones: An In-Depth Look
  • Azure High Availability with Cloud Volumes ONTAP
  • Azure Proximity Placement Groups and Cloud Volumes ONTAP

Linux on Azure

Learn how to use Linux on Azure, including guides for cloud-based enterprise Linux deployments and performance tips.

See top articles in our guide to Linux on Azure:

  • Solve Enterprise Linux File Requirements in Azure
  • Build Your Own Enterprise NFS Service
  • Linux on Azure Workload Migration: Challenges and Solutions

HPC on Azure

Discover services and techniques for cloud-based HPC, including unique Azure HPC features and use cases. 

See top articles in our guide to HPC on Azure:

  • Cloud Architects: Supercharge Your HPC Workloads in Azure
  • Migrate Legacy Apps to the Cloud
  • Solve Azure HPC Challenges eBook

SAP on Azure

Learn about all SAP solutions offered as a service on Azure, including HANA, S/4HANA, NetWeaver and Hybris, migration considerations and best practices.

See top articles in our guide to SAP on Azure:

  • SAP HANA Architecture: Components, Storage Types, and Cloud Offerings
  • Start Your SAP on Microsoft Azure Cloud Journey
  • SAP HANA Certification for Azure NetApp Files

VDI on Azure

Learn what options are available for VDI on Azure. Understand how the architecture works and discover best practices for VDI deployments.

See top articles in our guide to VDI on Azure:

  • FSLogix: An In-Depth Look
  • Azure Windows Virtual Desktop: How to Setup, Deploy, and Manage a Cloud-Based VDI
  • Azure VDI Pricing: Understand Windows Virtual Desktop Costs

AWS Big Data

Learn about the tools AWS provides for building big data infrastructure, including data lakes and big data analytics systems.

See top articles in our guide on AWS Big Data:

  • AWS Data Lake: End-to-End Workflow in the Cloud
  • AWS Data Analytics: Choosing the Best Option for You
  • AWS ElastiCache for Redis: How to Use the AWS Redis Service

Google Cloud Migration

Learn how to migrate your workloads and data to Google Cloud, including in-depth comparisons between GCP and other cloud providers, tools, strategies, costs, and more.

See top articles in our guide on Google Cloud migration:

  • AWS vs Azure vs Google Cloud: Choosing the Best Cloud Provider for You
  • Google Cloud Costs: Understanding and Managing Your GCP Bill
  • Google Cloud Migration Tools: Copying 1GB or 500TB? Learn How 

Which of the following is the most secure way of giving access to AWS service to application running on EC2 instances?

EC2 Instance Connect provides a simple and secure way to connect to your EC2 instances using one-time SSH keys. It removes the need to share and manage long-term SSH keys. The architecture described is applicable for customers who: Require SSH access to EC2 instances running in a private subnet.

What is the best method to give privilege to an EC2 instance to access other AWS?

You can use IAM to control how other users use resources in your AWS account, and you can use security groups to control access to your Amazon EC2 instances. You can choose to allow full use or limited use of your Amazon EC2 resources.

What is the most secure way to provide applications temporary access to your AWS resources?

You can use the AWS Security Token Service (AWS STS) to create and provide trusted users with temporary security credentials that can control access to your AWS resources.

Which one would be the most secure approach for AWS console access?

MFA is the best way to protect accounts from inappropriate access. Always set up MFA on your Root user and AWS Identity and Access Management (IAM) users. If you use AWS IAM Identity Center to control access to AWS or to federate your corporate identity store, you can enforce MFA there.