AWS EC2 Tutorial Amazon Elastic Compute Cloud Quiz

Learn the essentials of Amazon EC2, including instance types, pricing models, security, and launching steps. Enhance your AWS knowledge for better cloud computing practices.

  1. Purpose of EC2

    What is the primary purpose of Amazon EC2 within a cloud environment?

    1. To deliver content globally using edge locations
    2. To offer managed relational databases
    3. To store large unstructured data objects
    4. To provide on-demand virtual servers

    Explanation: Amazon EC2 is designed to provide scalable virtual servers, allowing users to run application workloads without managing physical hardware. The other options refer to different services: storing unstructured data (often done by object storage), managed databases, and content delivery, which are not EC2's core function.

  2. EC2 Instance Types

    Which EC2 instance family is best suited for machine learning and AI workloads requiring GPU acceleration?

    1. Storage Optimized
    2. Accelerated Computing
    3. Memory Optimized
    4. General Purpose

    Explanation: Accelerated Computing instances include GPUs and are optimized for workloads like machine learning and AI. General Purpose is more for balanced use, Storage Optimized focuses on high disk performance, and Memory Optimized are for large RAM needs.

  3. EC2 Pricing Models

    Which EC2 pricing model typically offers the lowest cost but can be interrupted by AWS at any time?

    1. Spot Instances
    2. Reserved Instances
    3. On-Demand Instances
    4. Savings Plans

    Explanation: Spot Instances provide significant savings compared to other EC2 pricing models, but the tradeoff is that they can be interrupted if capacity is needed elsewhere. On-Demand Instances are pay-as-you-go, Reserved Instances require commitment, and Savings Plans need usage commitments but are not interruptible.

  4. EC2 Security Groups

    What is the main function of a security group when launching an EC2 instance?

    1. To automatically scale instances based on demand
    2. To define inbound and outbound network rules
    3. To balance application traffic between regions
    4. To create encrypted storage volumes

    Explanation: A security group acts as a virtual firewall for EC2 instances, controlling traffic allowed in and out. Auto scaling is unrelated to security groups, encryption relates to storage services, and traffic balancing is handled by load balancers, not security groups.

  5. Launching an EC2 Instance

    What is the purpose of selecting an AMI (Amazon Machine Image) during the EC2 launch process?

    1. To choose the operating system and initial software for the instance
    2. To configure load balancer settings
    3. To increase network performance
    4. To reserve storage in S3 buckets

    Explanation: An AMI determines the operating system and any pre-installed software on a new EC2 instance. It does not impact network performance, load balancer configurations, or S3 storage allocation.