Prepare for AWS certification or enhance your cloud computing skills with this comprehensive set of AWS EC2 MCQ questions and answers. This guide covers key topics, including Amazon EBS, creating and managing volumes, snapshots and backups, instance store volumes, and integration with Amazon S3. Ideal for both beginners and advanced learners.
Overview of Amazon EBS (Elastic Block Store) (7 MCQs)
What is the primary purpose of Amazon EBS in AWS EC2? a) Storing object-based data b) Providing block storage for EC2 instances c) Hosting static websites d) Managing virtual private clouds
Which type of EBS volume offers the best performance for transactional workloads? a) Magnetic b) General Purpose SSD (gp3) c) Cold HDD (sc1) d) Throughput Optimized HDD (st1)
How are EBS volumes charged in AWS? a) By IOPS only b) By size and duration of use c) By API calls d) Based on EC2 instance type
What is the maximum size of an EBS volume? a) 1 TB b) 10 TB c) 16 TB d) 64 TB
Which EBS volume type is optimized for high throughput applications? a) General Purpose SSD (gp3) b) Provisioned IOPS SSD (io2) c) Throughput Optimized HDD (st1) d) Cold HDD (sc1)
What happens to an EBS volume when an EC2 instance is terminated by default? a) The volume is deleted automatically b) The volume remains attached but stops working c) The volume is detached but preserved d) The volume is moved to Amazon S3
Which feature allows attaching multiple EC2 instances to a single EBS volume? a) Multi-Attach b) Cross-Zone Replication c) Auto Scaling d) Elastic Load Balancer
Creating and Managing Volumes (7 MCQs)
What must you specify when creating an EBS volume? a) VPC ID b) Security group c) Availability Zone d) Instance Type
How can you increase the size of an existing EBS volume? a) Create a new volume and attach it b) Use the AWS Management Console or CLI to modify the volume c) Replace the existing EC2 instance d) It is not possible to increase the size
Which AWS CLI command is used to create an EBS volume? a) aws ec2 create-instance b) aws ec2 create-volume c) aws ec2 create-storage d) aws ec2 add-disk
When attaching an EBS volume, what must the volume and instance have in common? a) Same tag name b) Same Availability Zone c) Same instance type d) Same key pair
What is the purpose of a device name when attaching an EBS volume to an instance? a) To specify the operating system version b) To identify the volume for the EC2 instance c) To set the encryption key d) To control instance launch permissions
What action is required before detaching a root volume? a) Stop the EC2 instance b) Create a snapshot c) Resize the volume d) Change the Availability Zone
How do you ensure data durability when detaching an EBS volume? a) Encrypt the volume b) Create a snapshot before detaching c) Use a multi-attach volume d) Use a magnetic volume
Snapshots and Backups (6 MCQs)
What is an EBS snapshot? a) A backup of an EC2 instance state b) A point-in-time copy of an EBS volume c) A replication of an S3 bucket d) A snapshot of instance metadata
Where are EBS snapshots stored in AWS? a) Amazon EBS b) Amazon S3 c) Amazon Glacier d) Local storage on EC2
Which AWS service simplifies automated EBS snapshot creation? a) AWS Backup b) AWS CloudFormation c) Amazon CloudWatch d) AWS Storage Gateway
How can you restore an EBS volume from a snapshot? a) Use the AWS CLI to attach the snapshot b) Create a new EBS volume from the snapshot c) Restart the EC2 instance d) Use the snapshot directly as a volume
What is a primary benefit of incremental snapshots in EBS? a) Reduced cost and time for backups b) Enhanced network security c) Faster instance launch times d) Higher storage durability
What should you do before deleting a snapshot? a) Verify if it’s used by other services b) Encrypt the snapshot c) Share it with another account d) Modify the snapshot name
Instance Store Volumes (5 MCQs)
What is a characteristic of instance store volumes? a) Data persists after instance termination b) Provides temporary storage c) Encrypted by default d) Charged based on usage
Which type of storage is suitable for caching data in EC2? a) Instance store volumes b) EBS volumes c) S3 Standard d) AWS Backup
What happens to the data in an instance store volume when an instance is stopped? a) Data is retained indefinitely b) Data is lost c) Data is archived in Amazon Glacier d) Data is copied to S3
How are instance store volumes attached to an EC2 instance? a) They are automatically provisioned b) Through the AWS Management Console c) By attaching them like EBS volumes d) By enabling an encryption key
Which EC2 instance type typically includes instance store volumes? a) General-purpose b) Compute-optimized c) Storage-optimized d) Memory-optimized
Integrating with Amazon S3 (5 MCQs)
How can EC2 instances access S3 securely? a) By using public URLs b) Through IAM roles c) Using Access Keys in the user data d) By enabling CloudFront
Which AWS tool is used to sync data between EC2 and S3? a) AWS CLI b) AWS CloudWatch c) AWS Backup d) Amazon Athena
What is an advantage of storing backups in S3 instead of EBS? a) Reduced storage costs b) Faster snapshot restoration c) Automatic encryption d) Persistent data upon instance termination
How can an EC2 instance write directly to an S3 bucket? a) Configure a lifecycle policy b) Attach an IAM role with appropriate permissions c) Enable versioning on the bucket d) Use Elastic Load Balancing
What S3 storage class is ideal for long-term backup storage? a) S3 Standard b) S3 Intelligent-Tiering c) S3 Glacier d) S3 One Zone-IA
Here is the answer list again for the AWS EC2 MCQs:
Qno
Answer (Option with the text)
1
b) Providing block storage for EC2 instances
2
b) General Purpose SSD (gp3)
3
b) By size and duration of use
4
d) 64 TB
5
c) Throughput Optimized HDD (st1)
6
a) The volume is deleted automatically
7
a) Multi-Attach
8
c) Availability Zone
9
b) Use the AWS Management Console or CLI to modify the volume
10
b) aws ec2 create-volume
11
b) Same Availability Zone
12
b) To identify the volume for the EC2 instance
13
a) Stop the EC2 instance
14
b) Create a snapshot before detaching
15
b) A point-in-time copy of an EBS volume
16
b) Amazon S3
17
a) AWS Backup
18
b) Create a new EBS volume from the snapshot
19
a) Reduced cost and time for backups
20
a) Verify if it’s used by other services
21
b) Provides temporary storage
22
a) Instance store volumes
23
b) Data is lost
24
a) They are automatically provisioned
25
c) Storage-optimized
26
b) Through IAM roles
27
a) AWS CLI
28
a) Reduced storage costs
29
b) Attach an IAM role with appropriate permissions