Amazon ElastiCache | Security Flashcards

1
Q

Can I cancel a reservation?

Security

Amazon ElastiCache | Database

A

The one-time payment for Reserved Nodes is not refundable. However, you can choose to terminate your node at any time, at which point you will not incur any hourly usage charges if you are using Light and Medium Utilization Reserved Nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do I control access to Amazon ElastiCache?

Security

Amazon ElastiCache | Database

A

When not using VPC, Amazon ElastiCache allows you to control access to your clusters through Cache Security Groups. A Security Group acts like a firewall, controlling network access to your cluster. By default, network access is turned off to your clusters. If you want your applications to access your cluster, you must explicitly enable access from hosts in specific EC2 security groups. This process is called ingress.

To allow network access to your cluster, create a Security Group and link the desired EC2 security groups (which in turn specify the EC2 instances allowed) to it. The Security Group can be associated with your cluster at the time of creation, or using the “Modify” option on the AWS Management Console.

Please note that IP-range based access control is currently not enabled for clusters. All clients to a cluster must be within the EC2 network, and authorized via security groups as described above.

When using VPC, please see here for more information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Can programs running on servers in my own data center access Amazon ElastiCache?

Security

Amazon ElastiCache | Database

A

No. Currently, all clients to an ElastiCache Cluster must be within the Amazon EC2 network, and authorized via security groups as described here.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can programs running on EC2 instances in a VPC access Amazon ElastiCache?

Security

Amazon ElastiCache | Database

A

Yes, EC2 instances in a VPC can access Amazon ElastiCache if the ElastiCache cluster was created within the VPC. Details on how to create an Amazon ElastiCache cluster within a VPC are given here.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Amazon Virtual Private Cloud (VPC) and why may I want to use with Amazon ElastiCache?

Security

Amazon ElastiCache | Database

A

Amazon VPC lets you create a virtual networking environment in a private, isolated section of the Amazon Web Services (AWS) cloud, where you can exercise complete control over aspects such as private IP address ranges, subnets, routing tables and network gateways. With Amazon VPC, you can define a virtual network topology and customize the network configuration to closely resemble a traditional IP network that you might operate in your own datacenter.

One of the scenarios where you may want to use Amazon ElastiCache in a VPC is if you want to run a public-facing web application, while still maintaining non-publicly accessible backend servers in a private subnet. You can create a public-facing subnet for your webservers that has access to the Internet, and place your backend infrastructure in a private-facing subnet with no Internet access. Your backend infrastructure could include RDS DB Instances and an Amazon ElastiCache Cluster providing the in-memory layer. For more information about Amazon VPC, refer to the Amazon Virtual Private Cloud User Guide.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do I create an Amazon ElastiCache Cluster in VPC?

Security

Amazon ElastiCache | Database

A

For a walk through example of creating an Amazon ElastiCache Cluster in VPC, refer to the Amazon ElastiCache User Guide.

Following are the pre-requisites necessary to create a cluster within a VPC:

You need to have a VPC set up with at least one subnet. For information on creating Amazon VPC and subnets refer to the Getting Started Guide for Amazon VPC.

You need to have a Subnet Group defined for your VPC.

You need to have a VPC Security Group defined for your VPC (or you can use the default provided).

In addition, you should allocate adequately large CIDR blocks to each of your subnets so that there are enough spare IP addresses for Amazon ElastiCache to use during maintenance activities such as cache node replacement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do I create an Amazon ElastiCache Cluster in an existing VPC?

Security

Amazon ElastiCache | Database

A

Creating an Amazon ElastiCache Cluster in an existing VPC is the same as that for a newly created VPC. Please see this for more details.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do I connect to an ElastiCache Node in VPC?

Security

Amazon ElastiCache | Database

A

Amazon ElastiCache Nodes, deployed within a VPC, can be accessed by EC2 Instances deployed in the same VPC. If these EC2 Instances are deployed in a public subnet with associated Elastic IPs, you can access the EC2 Instances via the internet.

If you want to access Amazon ElastiCache Nodes, deployed within a VPC, from the Internet or from EC2 Instances outside the VPC, please see guidelines here.

We strongly recommend you use the DNS Name to connect to your ElastiCache Node as the underlying IP address can change (e.g., after a cache node replacement).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a Subnet Group and why do I need one?

Security

Amazon ElastiCache | Database

A

A Subnet Group is a collection of subnets that you must designate for your Amazon ElastiCache Cluster in a VPC. A Subnet Group is created using the Amazon ElastiCache Console. Each Subnet Group should have at least one subnet. Amazon ElastiCache uses the Subnet Group to select a subnet. The IP Addresses from the selected subnet are then associated with the Node Endpoints. Furthermore, Amazon ElastiCache creates and associates Elastic Network Interfaces to nodes with the previously mentioned IP addresses.

Please note that, we strongly recommend you use the DNS Names to connect to your nodes as the underlying IP addresses can change (e.g., after cache node replacement).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can I change the Subnet Group of my ElastiCache Cluster?

Security

Amazon ElastiCache | Database

A

An existing Subnet Group can be updated to add more subnets either for existing Availability Zones are for new Availability Zones added since the creation of the ElastiCache Cluster. However, changing the Subnet Group of a deployed cluster is not currently allowed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How is using Amazon ElastiCache inside a VPC different from using it outside?

Security

Amazon ElastiCache | Database

A

The basic functionality of Amazon ElastiCache remains the same whether VPC is used or not. Amazon ElastiCache manages automatic failure detection, recovery, scaling, auto discovery, and software patching whether your ElastiCache Cluster is inside or outside a VPC.

Within a VPC, nodes of an ElastiCache cluster only have a private IP address (within a subnet that you define). Outside of a VPC, the access to the ElastiCache cluster can be controlled using Security Groups as described here.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can I move my existing ElastiCache Cluster from outside VPC into my VPC?

Security

Amazon ElastiCache | Database

A

No, you cannot move an existing Amazon ElastiCache Cluster from outside VPC into a VPC. You will need to create a new Amazon ElastiCache Cluster inside the VPC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can I move my existing ElastiCache Cluster from inside VPC to outside VPC?

Security

Amazon ElastiCache | Database

A

Currently, direct migration of ElastiCache Cluster from inside to outside VPC is not supported. You will need to create a new Amazon ElastiCache Cluster outside VPC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do I control network access to my cluster?

Security

Amazon ElastiCache | Database

A

Amazon ElastiCache allows you to control access to your cluster and therefore the nodes using Security Groups in non-VPC deployments. A Security Group acts like a firewall controlling network access to your node. By default, network access is turned off to your nodes. If you want your applications to access your node, you can set your Security Group to allow access from EC2 Instances with specific EC2 Security Group membership or IP ranges. This process is called ingress. Once ingress is configured for a Security Group, the same rules apply to all nodes associated with that Security Group. Security Groups can be configured with the “Security Groups” section of the Amazon ElastiCache Console or using the Amazon ElastiCache APIs.

In VPC deployments, access to your nodes is controlled using the VPC Security Group and the Subnet Group. The VPC Security Group is the VPC equivalent of the Security Group.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What precautions should I take to ensure that my ElastiCache Nodes in VPC are accessible by my application?

Security

Amazon ElastiCache | Database

A

You are responsible for modifying routing tables and networking ACLs in your VPC to ensure that your ElastiCache Nodes are reachable from your client instances in the VPC. To learn more see the Amazon ElastiCache Documentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Can I use Security Groups to configure the clusters that are part of my VPC?

Security

Amazon ElastiCache | Database

A

No, Security Groups are not used when operating in a VPC. Instead they are used in the non VPC settings. When creating a cluster in a VPC you will need to use VPC Security Groups.

17
Q

Can I associate a regular EC2 security group with a cluster that is launched within a VPC?

Security

Amazon ElastiCache | Database

A

No, you can only associate VPC security groups that are part of the same VPC as your cluster.