AWS Certified SysOps Administrator - Associate: EC2 Instance Types for Memcached Cache

Which EC2 Instance Type to Choose for Memcached Cache

Question

Your team is planning to host a set of EC2 Instances that will host Memcached which will be used as the Cache for several applications.

As the IT admin, you need to provision the EC2 Instances.

Which of the following Instance type would you provision for the underlying EC2 Instance?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - B.

This is given in the AWS Documentation.

Because of what the documentation clearly mentions, all other options are invalid.

For more information on Memory-optimized Instances, please refer to the below URL-

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/memory-optimized-instances.html
Memory Optimized Instances

Memory optimized instances are designed to deliver fast performance for workloads that process large data sets in memory.

R4, R5, and R5d Instances
These instances are well suited for the following applications:

* High-performance, relational (MySQL) and NoSQL (MongoDB, Cassandra) databases.

Distributed web scale cache stores that provide in-memory caching of key-value type data (Memcached and Redis).
In-memory databases using optimized data storage formats and analytics for business intelligence (for example, SAP HANA).
Applications performing real-time processing of big unstructured data (financial services, Hadoop/Spark clusters).
High-performance computing (HPC) and Electronic Design Automation (EDA) applications.

For hosting Memcached, the Instance type that would be best suited is the Memory Optimized Instance type.

Memcached is an in-memory key-value store that is used for caching data in applications. This means that the data is stored in memory rather than on disk. Therefore, Memory Optimized Instance types, which are optimized for memory-intensive workloads, would be the most appropriate choice.

Memory Optimized Instance types have high memory-to-CPU ratios and are designed to support memory-intensive workloads such as database caching, in-memory analytics, and high-performance computing.

Compute Optimized Instance types, on the other hand, are designed for CPU-intensive workloads such as high-performance web servers and batch processing.

Storage Optimized Instance types are designed for workloads that require high sequential read and write access to large datasets.

General Purpose Instance types are designed for a variety of workloads and provide a balance of CPU, memory, and network resources. However, for memory-intensive workloads such as Memcached, Memory Optimized Instance types would be the most appropriate choice.