Unit 1: Introduction to Cloud Computing and AWS; Amazon EC2 and Amazon EBS - Practice Quiz

CSC301 — Introduction To Cloud Computing 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is virtualization in the context of cloud computing?

Cloud Computing and Virtualization Easy
A. The physical relocation of data center hardware to another region
B. A technique for compressing data before storing it in the cloud
C. A method of encrypting network traffic between two servers
D. The process of creating a software-based version of a physical resource such as a server

2 Which software component is responsible for creating and managing virtual machines?

Cloud Computing and Virtualization Easy
A. Firewall
B. Load balancer
C. Compiler
D. Hypervisor

3 Which cloud service model provides virtual machines, storage, and networking as fundamental building blocks?

Cloud Computing Architecture Easy
A. SaaS (Software as a Service)
B. FaaS (Function as a Service)
C. PaaS (Platform as a Service)
D. IaaS (Infrastructure as a Service)

4 In cloud computing, what does the term elasticity refer to?

Cloud Computing Architecture Easy
A. The ability to automatically scale resources up or down based on demand
B. The physical stretching of network cables in a data center
C. The permanent reservation of a fixed amount of compute capacity
D. The encryption strength applied to stored data

5 Which practice helps optimize cloud costs by matching instance size to actual workload needs?

Cloud computing optimization Easy
A. Over-provisioning
B. Right-sizing
C. Multi-threading
D. Hard-coding

6 What is an AWS Region?

AWS Platform Architecture Easy
A. A geographic area that contains multiple isolated Availability Zones
B. A single physical server rack in a data center
C. A virtual network inside a single data center
D. A billing account used to track AWS usage

7 What is an AWS Availability Zone (AZ)?

AWS Platform Architecture Easy
A. One or more discrete data centers with redundant power and networking within a Region
B. A global DNS service used to route end-user traffic
C. A pricing tier that offers discounted compute capacity
D. A command-line tool used to manage AWS resources

8 Under the AWS Shared Responsibility Model, which party is responsible for security of the cloud (the underlying infrastructure)?

AWS Reliability and Compliance Easy
A. The internet service provider
B. AWS
C. A third-party auditor
D. The customer

9 What does CLI stand for in AWS CLI?

Working with AWS CLI Easy
A. Compute Load Indicator
B. Command Line Interface
C. Cloud Logic Interpreter
D. Central Linking Infrastructure

10 Which command is used to configure your AWS CLI credentials and default settings?

Working with AWS CLI Easy
A. aws login
B. aws setup
C. aws configure
D. aws init

11 What does EC2 stand for?

Introduction to EC2 Easy
A. Elastic Container Cloud
B. Elastic Compute Cloud
C. Encrypted Cloud Computing
D. Enterprise Compute Center

12 What is user data used for when launching an EC2 instance?

Configure Instance Behavior Easy
A. Encrypting the root volume of the instance
B. Defining the billing account used for the instance
C. Storing the private SSH key for the instance
D. Running scripts or commands automatically when the instance first boots

13 Which EC2 placement group strategy packs instances close together on the same hardware to achieve low network latency?

Placement Groups Easy
A. Spread
B. Scatter
C. Partition
D. Cluster

14 Which EC2 pricing option offers the largest discounts in exchange for a one or three year usage commitment?

Instance Pricing Easy
A. Reserved Instances
B. Spot Instances
C. On-Demand Instances
D. Dedicated On-Demand Hosts

15 Which EC2 purchasing option uses spare AWS capacity at steep discounts but can be interrupted?

Instance Pricing Easy
A. Spot Instances
B. Reserved Instances
C. Dedicated Hosts
D. Savings Plans

16 What happens to data on an EC2 instance store volume when the instance is stopped?

Instance Lifecycle Easy
A. The data is automatically backed up to Amazon S3
B. The data is retained permanently until manually deleted
C. The data is migrated to an EBS volume
D. The data is lost because instance store is ephemeral

17 What is the main purpose of resource tags in AWS?

Resource Tags Easy
A. To label and organize resources using key-value pairs
B. To automatically scale resources based on load
C. To encrypt the data stored on a resource
D. To grant internet access to a resource

18 What are AWS service limits (quotas)?

Service Limits Easy
A. The number of users allowed to log in simultaneously
B. The amount of money you can spend per month on a service
C. The maximum number of resources you can create for a service in an account
D. The maximum network speed allowed between two instances

19 What does EBS stand for in Amazon EBS?

EC2 Storage volumes Easy
A. Enterprise Block Storage
B. Encrypted Buffer Store
C. Elastic Backup Service
D. Elastic Block Store

20 Which protocol is commonly used to securely connect to a Linux EC2 instance?

Accessing Your EC2 Instance Easy
A. SSH
B. FTP
C. SMTP
D. HTTP

21 A company runs 10 physical servers, each at about 15% CPU utilization. They adopt a hypervisor to consolidate these workloads onto fewer machines. Which benefit of virtualization is most directly responsible for the cost savings here?

Cloud Computing and Virtualization Medium
A. Automatic rewriting of application code for the cloud
B. Guaranteed zero downtime during hardware failure
C. Higher resource utilization through workload consolidation
D. Elimination of all network latency between servers

22 An application is designed so that compute, storage, and database tiers can each scale independently without affecting the others. Which cloud architectural principle does this best demonstrate?

Cloud Computing Architecture Medium
A. Loose coupling between components
B. Tight synchronous coupling
C. Single points of failure consolidation
D. Vertical scaling of a monolith

23 A workload runs 24/7 for the next 3 years with steady, predictable usage. To optimize cost, which EC2 purchasing approach is generally the best fit?

Cloud computing optimization Medium
A. On-Demand Instances only
B. Dedicated Hosts billed hourly
C. Spot Instances for all capacity
D. Reserved Instances or Savings Plans

24 A solution must remain available even if an entire data center loses power. Within a single AWS Region, what is the recommended way to achieve this?

AWS Platform Architecture Medium
A. Deploy resources across multiple Availability Zones
B. Use multiple edge locations in that Region
C. Deploy all resources in one Availability Zone
D. Rely on a single large instance type

25 Under the AWS Shared Responsibility Model, who is responsible for patching the guest operating system on an EC2 instance?

AWS Reliability and Compliance Medium
A. The customer
B. The AWS Marketplace vendor
C. The Availability Zone operator
D. AWS exclusively

26 You run an AWS CLI command and receive an UnauthorizedOperation error, yet the credentials are valid. Which is the most likely cause?

Working with AWS CLI Medium
A. The region flag was omitted
B. The output format is set to JSON
C. The CLI version is outdated
D. The IAM identity lacks permission for that action

27 A startup needs a mix of 4 vCPUs and high memory for an in-memory cache. Which EC2 instance family is best suited for this requirement?

Introduction to EC2 Medium
A. General purpose (T family burstable)
B. Memory optimized (R family)
C. Compute optimized (C family)
D. Storage optimized (I family)

28 You want an EC2 instance to automatically install software and run a script the first time it boots. Which feature should you use?

Configure Instance Behavior Medium
A. An Elastic IP association
B. A placement group
C. User data script
D. Instance metadata tags

29 An HPC workload requires the lowest possible network latency and highest packet-per-second performance between instances. Which placement group strategy should you choose?

Placement Groups Medium
A. Partition placement group
B. Spread placement group
C. Multi-AZ placement group
D. Cluster placement group

30 A batch job can tolerate interruption and restart at any time. To minimize cost, which pricing model offers the largest discount compared to On-Demand?

Instance Pricing Medium
A. Savings Plans
B. Reserved Instances
C. Dedicated Hosts
D. Spot Instances

31 When an EBS-backed EC2 instance is stopped (not terminated), what happens to data on its root EBS volume?

Instance Lifecycle Medium
A. The data is archived to Glacier automatically
B. The data is permanently deleted
C. The data is moved to an instance store
D. The data is preserved on the EBS volume

32 A finance team wants to break down the monthly AWS bill by department. What is the recommended way to enable this in Cost Explorer?

Resource Tags Medium
A. Use instance IDs as billing keys
B. Create a separate account per department only
C. Apply cost allocation tags such as Department
D. Rename each EC2 instance manually

33 Your team's deployment fails because you cannot launch more On-Demand instances in a Region. What is the first action to resolve this?

Service Limits Medium
A. Switch all instances to Spot
B. Request a service quota increase
C. Delete the VPC and recreate it
D. Move the workload to another AWS account permanently

34 An application needs block storage that persists independently of the instance lifecycle and can be detached and reattached to another instance. Which option fits?

EC2 Storage volumes Medium
A. Instance store volume
B. Amazon S3 bucket
C. Local RAM disk
D. Amazon EBS volume

35 An instance uses an instance store volume for a scratch cache. The instance is stopped and later started on different hardware. What happens to the cached data?

Instance store Volumes Medium
A. The data moves to EBS
B. The data is snapshotted to S3
C. The data is retained automatically
D. The data is lost

36 You launched a Linux EC2 instance and try to SSH in using ssh -i key.pem ec2-user@<ip> but get a Permission denied (publickey) error. The key file has mode 0644. What is the most likely fix?

Accessing Your EC2 Instance Medium
A. Change the key file permissions to 0400
B. Disable the security group entirely
C. Attach an Elastic IP to the instance
D. Use port 3389 instead of 22

37 A web server instance should accept HTTPS from the internet but allow SSH only from the company office IP. How should the security group be configured?

Securing Your EC2 Instance Medium
A. Allow 22 from 0.0.0.0/0 and 443 from the office CIDR
B. Deny all inbound and allow all outbound
C. Allow 443 and 22 both from 0.0.0.0/0
D. Allow 443 from 0.0.0.0/0 and 22 from the office CIDR

38 An Auto Scaling group has min=2, max=6, desired=4. A target tracking policy aims to keep average CPU at 50%. If CPU drops to 20% for a sustained period, what will Auto Scaling most likely do?

EC2 Auto Scaling Medium
A. Terminate all instances in the group
B. Change the desired capacity to 0
C. Scale in toward the minimum of 2 instances
D. Scale out toward the maximum of 6 instances

39 You need to run a shell command across 50 EC2 instances without opening SSH or managing keys. Which AWS Systems Manager capability enables this?

AWS System Manager Medium
A. CloudFront invalidation
B. EBS fast snapshot restore
C. Run Command
D. Elastic Load Balancing

40 Which AWS CLI command correctly lists all EC2 instances in the configured region?

AWS CLI Examples Medium
A. aws ec2 describe-instances
B. aws ec2 get-instances
C. aws ec2 list-instances
D. aws ec2 show-instances

41 A company runs a Type 1 hypervisor on bare-metal hosts. During a performance audit, they observe that CPU-bound workloads achieve near-native performance, but I/O-heavy workloads suffer. Which virtualization characteristic BEST explains this disparity?

Cloud Computing and Virtualization Hard
A. CPU-bound tasks are throttled by the hypervisor scheduler more aggressively than I/O
B. Hardware-assisted CPU virtualization (e.g., Intel VT-x) offloads instruction execution, while device I/O often traverses emulation or paravirtualized driver layers that add overhead
C. I/O workloads always bypass the hypervisor entirely, so overhead is impossible
D. Type 1 hypervisors cannot virtualize CPUs, so they fall back to full software emulation

42 In a well-designed cloud architecture following the shared responsibility model for IaaS, which combination of concerns remains the CUSTOMER's responsibility?

Cloud Computing Architecture Hard
A. Physical facility security, hypervisor patching, and network cabling
B. Edge location DDoS mitigation infrastructure and global backbone routing
C. Hardware lifecycle, host firmware, and data center cooling
D. Guest OS patching, application code, and configuration of security groups

43 An application has a steady baseline of 40 instances plus unpredictable spikes up to 100 instances for a few hours daily. To minimize cost while meeting demand, which purchasing strategy is MOST optimal?

Cloud computing optimization Hard
A. On-Demand for all 100 instances at all times to maximize flexibility
B. Reserved/Savings Plans for the 40 baseline instances and On-Demand or Spot for the variable spike capacity
C. Reserved Instances for all 100 instances to lock in the lowest rate
D. Spot Instances for all capacity including the steady baseline to minimize cost

44 A multi-region application must survive the complete failure of an entire AWS Availability Zone without downtime. Which design principle is NON-negotiable to achieve this within a single region?

AWS Platform Architecture Hard
A. Distribute resources across at least two AZs with load balancing and data replication between them
B. Deploy all resources in a single AZ but take frequent EBS snapshots
C. Rely on the AWS global backbone to automatically relocate instances
D. Use a larger instance type so the single AZ has more fault tolerance

45 An organization under HIPAA must prove that all API activity in its AWS account is logged immutably and retained. Which service combination directly satisfies the audit-logging requirement?

AWS Reliability and Compliance Hard
A. Amazon CloudWatch metrics with a 15-month retention dashboard
B. AWS Config rules evaluating resource compliance in real time only
C. VPC Flow Logs capturing all network packet payloads for inspection
D. AWS CloudTrail with log file integrity validation delivering to an S3 bucket with Object Lock

46 A script running on an EC2 instance uses the AWS CLI but you want it to never store long-lived credentials on disk. Which configuration achieves least-privilege, credential-free operation?

Working with AWS CLI Hard
A. Hardcode credentials in the script and encrypt the script file at rest
B. Export AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in /etc/environment
C. Store the access key and secret key in ~/.aws/credentials with 600 permissions
D. Attach an IAM role to the instance so the CLI retrieves temporary credentials from the instance metadata service

47 You launch an EC2 instance from an AMI in us-east-1. You then need an identical instance in eu-west-1. Why can't you simply reference the same AMI ID directly?

Introduction to EC2 Hard
A. AMIs expire after 24 hours and must always be recreated from scratch
B. AMIs can only be used in the Availability Zone where they were created
C. AMI IDs are globally unique and work in any region without changes
D. AMI IDs are region-scoped; you must copy the AMI to the target region, which generates a new AMI ID there

48 An EC2 instance must run a bootstrap script exactly once at first boot to install software, but the same script must NOT re-run on reboot. Which mechanism best enforces this?

Configure Instance Behavior Hard
A. A cron job added via the AMI that triggers on every system start
B. User data, which by default executes only on the first boot of the instance
C. User data with the [always] directive to force re-execution
D. Instance metadata, which runs scripts on every boot automatically

49 A tightly-coupled HPC workload needs the lowest possible inter-node network latency and highest packet-per-second performance. However, the team also fears correlated hardware failure. Which trade-off correctly describes a Cluster placement group?

Placement Groups Hard
A. It spreads each instance onto distinct hardware across AZs, maximizing both latency and fault isolation
B. It guarantees instances never share a rack while still delivering single-digit microsecond latency between them
C. It packs instances onto the same high-bisection-bandwidth rack for low latency, but concentrates them so a single hardware failure can affect many instances simultaneously
D. It is identical to a Spread placement group except it allows more than seven instances per AZ

50 A fault-tolerant batch job can checkpoint and resume at any point. It runs intermittently and can tolerate interruptions. The job runs ~6 hours per day with no fixed schedule. Which pricing model minimizes cost?

Instance Pricing Hard
A. A 3-year Standard Reserved Instance to lock in the deepest discount
B. Spot Instances, leveraging spare capacity at steep discounts with checkpointing to handle interruptions
C. On-Demand Instances to avoid any possibility of interruption
D. Dedicated Hosts billed hourly for compliance isolation

51 You stop (not terminate) an EBS-backed instance and start it again later. Which statement about the instance's state is CORRECT?

Instance Lifecycle Hard
A. The instance keeps the same host, same public IP, and all instance store data is preserved
B. The private IP changes but the public IPv4 address is always retained across a stop/start
C. The instance typically moves to new underlying hardware and receives a new public IPv4 address unless an Elastic IP is attached, while EBS data persists
D. Both the EBS root volume and any instance store volumes retain their data across the stop/start

52 A finance team needs per-project cost allocation in Cost Explorer. Developers already tag resources with Project=X, but the costs still appear ungrouped. What is the MOST likely missing step?

Resource Tags Hard
A. Cost allocation requires resources to be in a single AZ to be grouped
B. The tag key must be exactly aws:Project to be billable
C. The Project tag has not been activated as a cost allocation tag in the Billing console
D. Tags cannot be used for cost allocation; only account IDs can group costs

53 A deployment pipeline suddenly fails with a VcpuLimitExceeded error when launching On-Demand instances, even though you deleted old instances yesterday. What is the correct interpretation and remedy?

Service Limits Hard
A. On-Demand vCPU quotas are per-region and measured in aggregate vCPUs; request a quota increase via Service Quotas for the relevant instance family
B. The error means your account is suspended for abuse and needs support reinstatement
C. The limit is a hard cap that can never be raised; you must switch regions permanently
D. Deleting instances does not free quota for 30 days, so you must wait

54 A database needs sustained 20,000 IOPS at consistent low latency regardless of volume size. Among EBS volume types, which choice meets this requirement MOST directly?

EC2 Storage volumes Hard
A. Throughput Optimized HDD (st1), optimized for large sequential throughput
B. General Purpose SSD (gp2), relying on burst credits to reach the target
C. Provisioned IOPS SSD (io1/io2), where you specify IOPS independently of capacity
D. Cold HDD (sc1), the lowest-cost option for infrequently accessed data

55 An instance with an instance store volume is used as a high-speed scratch cache. The team is surprised data vanished. Which scenario does NOT cause instance store data loss?

Instance store Volumes Hard
A. The underlying host hardware failing
B. Terminating the instance
C. Rebooting the instance
D. Stopping and later starting the instance

56 You can no longer SSH to a Linux instance after losing the private key. Which approach recovers access WITHOUT losing the EBS data?

Accessing Your EC2 Instance Hard
A. Use the AWS console to display the original private key for download again
B. Terminate the instance and launch a new one from the same AMI with a new key pair
C. Reboot the instance repeatedly until SSH re-enables the old key
D. Stop the instance, detach its root EBS volume, attach it to a helper instance, inject a new public key into authorized_keys, then reattach and start

57 A web server's security group allows inbound TCP 443 from 0.0.0.0/0. Outbound rules are left at default. A request from a client on 443 arrives; the response leaves the instance. Why does the response succeed even though no explicit outbound rule for the ephemeral return port exists?

Securing Your EC2 Instance Hard
A. Security groups are stateful, so return traffic for an allowed inbound connection is automatically permitted
B. The response uses port 443 outbound, matching the inbound rule
C. Network ACLs override the security group and permit the return traffic
D. Security groups are stateless, so the default allow-all outbound rule is required to match the return port

58 An Auto Scaling group has a target tracking policy on 50% average CPU. During a brief spike, it scales out, then CPU drops and it immediately scales in, only to spike again moments later causing thrashing. Which single adjustment MOST directly reduces this flapping?

EC2 Auto Scaling Hard
A. Switch to a manual desired capacity and disable scaling policies
B. Set the maximum capacity equal to the minimum capacity
C. Configure appropriate cooldown/warm-up periods so metrics stabilize before further scaling actions
D. Lower the target CPU to 20% so scaling happens sooner

59 A fleet of EC2 instances in a private subnet with no internet access must receive patches and run remote commands centrally, without opening inbound ports or using SSH keys. Which Systems Manager setup satisfies this?

AWS System Manager Hard
A. Assign public IPs to all instances so the SSM Agent can reach the service
B. Use EC2 Instance Connect over a NAT gateway with a shared SSH key
C. Open inbound TCP 22 from the SSM service IP ranges in the security group
D. Install the SSM Agent, attach an instance role granting SSM permissions, and create VPC interface endpoints for the SSM services

60 Which AWS CLI command correctly returns ONLY the instance IDs of running instances tagged Env=prod, using server-side filtering?

AWS CLI Examples Hard
A. aws ec2 describe-instances --query "Instances[?Env=='prod']"
B. aws ec2 list-instances --tag Env=prod --state running --output ids
C. aws ec2 get-instances --filter Env=prod,running --field InstanceId
D. aws ec2 describe-instances --filters "Name=tag:Env,Values=prod" "Name=instance-state-name,Values=running" --query "Reservations[].Instances[].InstanceId"