Podcast
Questions and Answers
What is the primary purpose of Amazon EC2?
What is the primary purpose of Amazon EC2?
What is an Amazon Machine Image (AMI)?
What is an Amazon Machine Image (AMI)?
What is the purpose of EC2 compute units (ECUs)?
What is the purpose of EC2 compute units (ECUs)?
What is the default setting for public IP assignment when launching an EC2 instance?
What is the default setting for public IP assignment when launching an EC2 instance?
Signup and view all the answers
What is the purpose of instance types in Amazon EC2?
What is the purpose of instance types in Amazon EC2?
Signup and view all the answers
What is termination protection in Amazon EC2?
What is termination protection in Amazon EC2?
Signup and view all the answers
What is the purpose of key pairs in Amazon EC2?
What is the purpose of key pairs in Amazon EC2?
Signup and view all the answers
What is the default monitoring period for EC2 instances?
What is the default monitoring period for EC2 instances?
Signup and view all the answers
What is the primary purpose of the Elastic Fabric Adapter (EFA)?
What is the primary purpose of the Elastic Fabric Adapter (EFA)?
Signup and view all the answers
Under what circumstance can you modify an EC2 instance's attributes?
Under what circumstance can you modify an EC2 instance's attributes?
Signup and view all the answers
Which of the following is NOT a feature of Enhanced Networking using Elastic Network Adapter (ENA)?
Which of the following is NOT a feature of Enhanced Networking using Elastic Network Adapter (ENA)?
Signup and view all the answers
What is the default network interface created when launching an EC2 instance?
What is the default network interface created when launching an EC2 instance?
Signup and view all the answers
What is the benefit of using BYOIP (Bring Your Own IP)?
What is the benefit of using BYOIP (Bring Your Own IP)?
Signup and view all the answers
When can you attach a network interface to an EC2 instance in a different subnet?
When can you attach a network interface to an EC2 instance in a different subnet?
Signup and view all the answers
What happens to manually added network interfaces when an EC2 instance is terminated?
What happens to manually added network interfaces when an EC2 instance is terminated?
Signup and view all the answers
What is the main difference between an Elastic Network Adapter (ENA) and an Elastic Fabric Adapter (EFA)?
What is the main difference between an Elastic Network Adapter (ENA) and an Elastic Fabric Adapter (EFA)?
Signup and view all the answers
What is the primary purpose of using a placement group in AWS EC2?
What is the primary purpose of using a placement group in AWS EC2?
Signup and view all the answers
Which of the following is NOT a valid placement group configuration in AWS EC2?
Which of the following is NOT a valid placement group configuration in AWS EC2?
Signup and view all the answers
What is the recommended way to achieve the best performance when communicating between instances within a placement group?
What is the recommended way to achieve the best performance when communicating between instances within a placement group?
Signup and view all the answers
Which of the following is a benefit of using IAM roles for EC2 instances instead of access keys?
Which of the following is a benefit of using IAM roles for EC2 instances instead of access keys?
Signup and view all the answers
What is the purpose of a bastion host in AWS EC2?
What is the purpose of a bastion host in AWS EC2?
Signup and view all the answers
Which of the following statements about EC2 status checks is TRUE?
Which of the following statements about EC2 status checks is TRUE?
Signup and view all the answers
What is the maximum number of IAM roles that can be attached to an EC2 instance at any given time?
What is the maximum number of IAM roles that can be attached to an EC2 instance at any given time?
Signup and view all the answers
Which of the following AWS services can be used as an alternative to bastion hosts for managing EC2 instances?
Which of the following AWS services can be used as an alternative to bastion hosts for managing EC2 instances?
Signup and view all the answers
What is a recommended approach for rebooting an EC2 instance?
What is a recommended approach for rebooting an EC2 instance?
Signup and view all the answers
What is the purpose of AWS CloudTrail?
What is the purpose of AWS CloudTrail?
Signup and view all the answers
What is the maximum number of tags that can be assigned to an AWS resource?
What is the maximum number of tags that can be assigned to an AWS resource?
Signup and view all the answers
What is the purpose of Amazon Route 53 health checks?
What is the purpose of Amazon Route 53 health checks?
Signup and view all the answers
What is the purpose of VM Import/Export?
What is the purpose of VM Import/Export?
Signup and view all the answers
What is AWS Server Migration Service (SMS) used for?
What is AWS Server Migration Service (SMS) used for?
Signup and view all the answers
What is a benefit of using Reserved Instances?
What is a benefit of using Reserved Instances?
Signup and view all the answers
What is the purpose of the unified CloudWatch agent?
What is the purpose of the unified CloudWatch agent?
Signup and view all the answers
When an EC2 instance is stopped, what happens to its public IPv4 address?
When an EC2 instance is stopped, what happens to its public IPv4 address?
Signup and view all the answers
Which pricing model allows users to pay a discounted rate for instances in exchange for committing to a certain usage period?
Which pricing model allows users to pay a discounted rate for instances in exchange for committing to a certain usage period?
Signup and view all the answers
What is the maximum number of On-Demand instances that can be run across an instance family in a single region?
What is the maximum number of On-Demand instances that can be run across an instance family in a single region?
Signup and view all the answers
What is the purpose of an Elastic IP address?
What is the purpose of an Elastic IP address?
Signup and view all the answers
What is the difference between dedicated instances and dedicated hosts?
What is the difference between dedicated instances and dedicated hosts?
Signup and view all the answers
What is the primary difference between EBS volumes and Instance Store volumes?
What is the primary difference between EBS volumes and Instance Store volumes?
Signup and view all the answers
When are EC2 instances billed?
When are EC2 instances billed?
Signup and view all the answers
Which type of IP address is assigned to EC2 instances by default?
Which type of IP address is assigned to EC2 instances by default?
Signup and view all the answers
Study Notes
Amazon EC2 Overview
- Amazon EC2 provides resizable compute capacity in the cloud
- Launch virtual server instances (instances) on the AWS cloud using preconfigured templates (Amazon Machine Images, AMIs)
- Each AMI includes information needed to launch an EC2 instance (operating system, software packages, etc.)
EC2 Instances
- Each instance type includes one or more instance sizes, allowing for scalability
- Choose an AMI, instance type, and configure settings (e.g., public IP, IAM role, monitoring)
- Instances can be assigned to IAM roles for access to AWS resources
- Termination protection can be enabled to prevent accidental termination
Storage Options
- Additional volumes can be added to instances
- Choose volume type (e.g., EBS, instance store)
- Use Amazon Elastic File System (EFS) for mounting a shared filesystem to multiple EC2 instances
- Root and non-root volumes can be encrypted
Billing and Provisioning
- On-demand, Reserved, and Spot pricing models available
- On-demand instances are charged by the hour or second
- Reserved instances provide a discount for committed usage
- Spot instances are discounted, but can be interrupted by AWS
Networking
- Three types of IP addresses: public IPv4, private IPv4, and IPv6
- Elastic IP addresses are static public IP addresses that can be remapped between instances
- IP addresses can be assigned, reassigned, or detached from instances
- Elastic Network Interfaces (ENIs) represent virtual network cards
- Enhanced Networking (ENA) provides higher bandwidth and lower latency
- Elastic Fabric Adapter (EFA) enables high-performance inter-node communications
Placement Groups
- Placement groups are logical groupings of instances for low-latency communication
- Three types: Cluster, Spread, and Partition
- Recommended for applications that benefit from low latency and high bandwidth
IAM Roles
- IAM roles provide secure access to AWS services
- Roles can be attached to instances at launch or later
- Only one IAM role can be attached to an instance at a time
Monitoring and Logging
- EC2 status checks detect problems with instances
- System status checks detect problems requiring AWS involvement
- Instance status checks detect problems requiring user involvement
- CloudWatch alarms can be triggered by status checks
- Unified CloudWatch Agent enables logging and monitoring
Security and Auditing
- AWS CloudTrail provides a record of actions taken in AWS
- CloudTrail captures API calls for EC2 and EBS as events
- Trails enable continuous delivery of events to an S3 bucket
Tagging and Resource Management
- Tags are labels assigned to AWS resources for metadata
- Tags can be used for cost allocation, security, automation, and more
- Resource groups are mappings of AWS assets defined by tags
High Availability Approaches
- Up-to-date AMIs are critical for rapid fail-over
- Horizontally scalable architectures are preferred for spreading risk
- Reserved instances guarantee resource availability when needed
- Auto Scaling and Elastic Load Balancing work together for automated recovery
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge of Amazon EC2, including its features, instance types, and configuration settings.