Explore the fundamentals of launching and managing EC2 instances with this beginner-friendly quiz. Perfect for users seeking to understand key features, essential settings, and operational best practices for EC2 instance deployment and management.
Which factor is most important to consider when selecting an EC2 instance type for a resource-intensive web application?
Explanation: Choosing an EC2 instance type should primarily depend on the needed CPU and memory resources for your application. Physical location affects latency but doesn't directly relate to instance type. The color of the dashboard is purely cosmetic and irrelevant. EC2 pricing is generally hourly or per-second, not set to a weekly cycle.
What is the primary purpose of an Amazon Machine Image (AMI) when launching a new EC2 instance?
Explanation: An AMI acts as a template that contains the operating system and any pre-installed software needed for your instance. Access logs and security settings are managed elsewhere. AMIs do not impact network bandwidth.
Which best describes the function of a security group when launching an EC2 instance?
Explanation: Security groups function as virtual firewalls, controlling allowed traffic. They do not perform backups or software updates, nor do they influence CPU performance. Their main role is network security.
When you stop an EC2 instance, which of the following is true?
Explanation: Stopping an instance means you are no longer billed for compute resources, though storage costs still apply. Data on attached volumes generally persists unless deleted. IP addresses may change unless it's an Elastic IP. Stopping an instance does not increase memory.
If you need extra storage space for an existing EC2 instance, what should you do?
Explanation: Attaching a new storage volume directly provides more storage. Changing the type might improve performance but doesn't add space. Resetting passwords and cloning security groups do not affect storage capacity.
When launching a Linux-based EC2 instance, why is a key pair required?
Explanation: A key pair is used to securely connect via SSH to a Linux instance. It does not affect networking, cost, or automate updates. The main function is authentication and secure access.
What is the main advantage of using an Elastic IP address with an EC2 instance?
Explanation: Elastic IP addresses provide a persistent public address for your instance, even after reboot or stop/start. They don’t affect speed, do not encrypt data, and are unrelated to traffic filtering.
Why might you include a user data script when launching an EC2 instance?
Explanation: User data scripts allow automated setup, such as installing software, during the initial launch. They do not ensure faster boot time, lower costs, or guarantee no downtime. Their role is automation at launch.
What happens to the data stored on the instance store (ephemeral storage) when you terminate an EC2 instance?
Explanation: Data on instance store is ephemeral and is lost when the instance is terminated. It is not backed up, moved, or archived automatically. To retain important data, use persistent storage solutions.
Which tool provides basic CPU, disk, and network metric monitoring for EC2 instances?
Explanation: A basic monitoring dashboard shows essential performance metrics like CPU, disk, and network statistics. The other options either don't exist or are unrelated to EC2 instance monitoring. Proper monitoring helps track and troubleshoot system health.