DVA-C02

Introduction to Amazon EC2

Virtual servers, and what developers need to know to run code on them.

  • 1 lesson
  • Module quiz

Amazon Elastic Compute Cloud (Amazon EC2) provides virtual servers, called instances. The customer chooses the instance type, which sets the CPU and memory, the operating system image and the storage, and is responsible for everything running on the instance, from operating system patches to the application. Each instance runs in one Availability Zone and is charged for its running time, per second for Linux, plus storage and data transfer.

The Developer Associate exam rarely asks developers to administer servers. It does expect them to know how applications on EC2 obtain AWS credentials and information about their instance, how instances are configured at launch, and how instances behave when they are stopped or terminated.

Where EC2 fits

EC2 offers the most control of any AWS compute option and also the most operational work. It suits applications that need full control of the operating system, long-running processes or specialised hardware. Applications on EC2 must obtain credentials from an IAM role attached to the instance, never from access keys stored on it, and fault-tolerant work can use Spot Instances at a large discount.

How this module is organised

The module has a single lesson, Providing Credentials, Configuration and Access to Applications on EC2, which explains instance roles and the instance metadata service, user data and machine images, the difference between stopping and terminating, and access and monitoring.

  1. Providing Credentials, Configuration and Access to Applications on EC2 Lesson 1
  2. Practise and review
  3. Test your knowledge 5 questions