Unit 5: AWS Compute Services - Practice Quiz

CSE423 — Virtualization And Cloud Computing 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main purpose of a cloud compute service?

Overview of compute services Easy
A. To provide processing resources
B. To manage user passwords only
C. To store physical documents
D. To design network cables

2 Which factor commonly helps determine the type of compute service needed?

Overview of compute services Easy
A. Workload requirements
B. Office wall color
C. Printer brand
D. Employee clothing

3 What does scalability mean in cloud computing?

Overview of compute services Easy
A. Using only one server forever
B. Removing all application data
C. Blocking users from applications
D. Changing resources with demand

4 Which AWS service is primarily used to run virtual servers?

Overview of compute services Easy
A. Amazon EC2
B. Amazon S3
C. Amazon Route 53
D. Amazon RDS

5 What is an EC2 instance?

Amazon EC2 Easy
A. A DNS record
B. A virtual server
C. A storage bucket
D. A database table

6 What does an Amazon Machine Image (AMI) provide?

Amazon EC2 Easy
A. A network address list
B. A template for instances
C. A billing invoice
D. A user support ticket

7 Which component controls the processing capacity of an EC2 instance?

Amazon EC2 Easy
A. Key pair
B. Security group
C. Instance type
D. Availability Zone

8 What is the purpose of an EC2 security group?

Amazon EC2 Easy
A. To create database backups
B. To select an operating system
C. To control network traffic
D. To calculate monthly taxes

9 What is an EC2 key pair commonly used for?

Amazon EC2 Easy
A. Creating a billing account
B. Choosing an instance type
C. Increasing disk capacity
D. Secure instance access

10 Which action changes the size or capacity of an existing EC2 instance?

Amazon EC2 Easy
A. Changing the account email
B. Deleting the key pair
C. Resizing the instance
D. Renaming the region

11 What is an On-Demand EC2 pricing model?

EC2 pricing and cost optimization Easy
A. Paying only for data storage
B. Using instances at no charge
C. Paying once for permanent ownership
D. Paying for usage without commitment

12 Which EC2 pricing option can provide discounts for a commitment to a consistent amount of usage?

EC2 pricing and cost optimization Easy
A. Reserved Instances
B. Dedicated DNS records
C. Free Tier storage
D. Spot notifications

13 What are Spot Instances designed to use?

EC2 pricing and cost optimization Easy
A. Exclusive customer hardware
B. Unused EC2 capacity
C. Permanent database licenses
D. Only physical data centers

14 Which action can help reduce unnecessary EC2 costs?

EC2 pricing and cost optimization Easy
A. Selecting the highest price
B. Stopping unused instances
C. Running test servers continuously
D. Increasing every instance size

15 Which AWS tool helps estimate the cost of planned AWS resources?

EC2 pricing and cost optimization Easy
A. AWS Pricing Calculator
B. AWS CloudFormation
C. Amazon CloudFront
D. Amazon Inspector

16 What is a key feature of a managed compute service?

Managed compute services Easy
A. Users build all physical servers
B. Applications cannot scale
C. Customers replace data center hardware
D. AWS manages more infrastructure

17 Which AWS service runs code without requiring users to manage servers?

Managed compute services Easy
A. Amazon VPC
B. AWS Lambda
C. Amazon EBS
D. Amazon EC2

18 What type of computing model does AWS Lambda primarily use?

Managed compute services Easy
A. Manual hardware computing
B. Offline desktop computing
C. Tape-based computing
D. Event-driven computing

19 What is a container?

Container services Easy
A. A physical network switch
B. A cloud billing document
C. A packaged application environment
D. A type of database password

20 Which AWS service is a managed container orchestration service?

Container services Easy
A. Amazon S3
B. Amazon ECS
C. Amazon Athena
D. Amazon Polly

21 A company wants to run an application without managing servers and pay only when the application code executes. Which AWS compute service best meets these requirements?

Overview of compute services Medium
A. Amazon Lightsail
B. AWS Lambda
C. AWS Outposts
D. Amazon EC2

22 A development team needs complete control over the operating system, installed software, and network configuration of its compute environment. Which service should it use?

Overview of compute services Medium
A. AWS Fargate
B. AWS Elastic Beanstalk
C. Amazon EC2
D. AWS Lambda

23 An application experiences predictable traffic during business hours but very little traffic overnight. Which compute design best balances availability and resource efficiency?

Overview of compute services Medium
A. Use one large EC2 instance continuously
B. Use an Auto Scaling group with scheduled scaling
C. Use a fixed fleet sized for the maximum expected traffic throughout the entire day
D. Use Dedicated Hosts for all application servers

24 A company must run a legacy application that requires a custom kernel module. Which AWS compute option is most appropriate?

Overview of compute services Medium
A. AWS App Runner
B. AWS Fargate
C. Amazon EC2
D. AWS Lambda

25 An EC2-based web application must remain available if one Availability Zone fails. Which deployment provides the required resilience?

Amazon EC2 Medium
A. Instances across multiple Availability Zones
B. One instance with multiple EBS volumes
C. Multiple instances in one Availability Zone
D. One Dedicated Host in a private subnet

26 A workload performs continuous video encoding and requires consistently high CPU performance. Which EC2 instance family is the best starting point?

Amazon EC2 Medium
A. Accelerated computing
B. Compute optimized
C. Memory optimized
D. Storage optimized

27 An EC2 instance needs permission to read objects from a specific Amazon S3 bucket. What is the recommended approach?

Amazon EC2 Medium
A. Attach an IAM role to the EC2 instance
B. Create an administrator account specifically for the instance and rotate its password monthly
C. Store an IAM user's access keys in the application
D. Add the instance's private IP to the bucket policy

28 A database on EC2 requires a persistent block storage volume whose data must survive an instance stop and start. Which storage option should be used?

Amazon EC2 Medium
A. AWS Storage Gateway
B. Amazon EBS
C. Amazon S3 Glacier
D. Instance store

29 A fault-tolerant data-processing job can be interrupted and restarted from checkpoints. Which EC2 purchasing option is generally the most cost-effective?

EC2 pricing and cost optimization Medium
A. Capacity Reservations
B. Spot Instances
C. On-Demand Instances
D. Dedicated Hosts

30 A company expects a steady EC2 workload for the next three years but wants flexibility to change instance families and Regions. Which pricing model is most suitable?

EC2 pricing and cost optimization Medium
A. Spot Instance pricing
B. Compute Savings Plans
C. EC2 Instance Savings Plans
D. On-Demand pricing

31 A test server is needed for 10 hours each weekday and can remain stopped at other times. What is the most direct cost-optimization action?

EC2 pricing and cost optimization Medium
A. Reboot the instance outside working hours
B. Stop the instance outside working hours
C. Keep the instance running and purchase additional EBS capacity to improve its utilization
D. Move the instance to a Dedicated Host

32 An EC2 instance costs $0.20 per hour On-Demand and runs for 150 hours during a month. Ignoring storage and data transfer, what is the compute cost?

EC2 pricing and cost optimization Medium
A. $35
B. $30
C. $25
D. $20

33 A developer wants to deploy a web application by uploading code while AWS handles capacity provisioning, load balancing, scaling, and health monitoring. Which service fits this requirement?

Managed compute services Medium
A. AWS Elastic Beanstalk
B. Amazon Machine Images
C. AWS CloudFormation
D. Amazon EC2 Auto Scaling

34 An image-processing function must run automatically whenever a new image is uploaded to an S3 bucket. Which architecture is most appropriate?

Managed compute services Medium
A. Start an EC2 instance from an S3 lifecycle rule
B. Deploy Elastic Beanstalk and continuously poll every bucket in the account for newly created objects
C. Trigger AWS Lambda from an S3 event
D. Invoke AWS Batch through an EBS volume event

35 A research team needs to run thousands of queued, independent simulation jobs with varying CPU and memory requirements. Which managed compute service is designed for this workload?

Managed compute services Medium
A. AWS Batch
B. AWS Lambda
C. Amazon Lightsail
D. AWS Elastic Beanstalk

36 A startup wants a simple virtual server bundle that includes compute, storage, networking, and predictable monthly pricing for a small website. Which service is the best fit?

Managed compute services Medium
A. AWS Batch
B. AWS Lambda
C. Amazon Lightsail
D. Amazon EMR

37 A team wants to run Docker containers using AWS-managed orchestration without operating a Kubernetes control plane. Which service should it choose?

Container services Medium
A. Amazon ECR
B. AWS CloudFormation
C. Amazon ECS
D. Amazon EKS

38 A company has standardized on Kubernetes and wants a managed AWS service that integrates with its existing Kubernetes tools. Which service is appropriate?

Container services Medium
A. Amazon ECR
B. AWS App Runner
C. Amazon EKS
D. Amazon ECS

39 A team wants to run ECS tasks without provisioning or managing EC2 worker instances. Which launch option should it use?

Container services Medium
A. AWS Fargate
B. Amazon ECR
C. An Auto Scaling group that maintains and patches a permanent fleet of container instances
D. EC2 Dedicated Hosts

40 A CI/CD pipeline builds container images that must be stored privately and then pulled by ECS tasks. Which AWS service should store the images?

Container services Medium
A. Amazon EBS
B. Amazon ECR
C. Amazon S3 Glacier
D. Amazon EFS

41 A workload receives unpredictable bursts, processes each request for up to 18 minutes, requires 6 GiB of memory, and must run an unmodified Linux container. Which AWS compute option best satisfies these constraints with the least infrastructure management?

Overview of compute services Hard
A. AWS Elastic Beanstalk worker tier
B. Amazon ECS on AWS Fargate
C. Amazon EC2 with Dedicated Hosts
D. AWS Lambda with provisioned concurrency

42 A company must run a licensed network appliance that requires access to a physical CPU socket count and does not support virtualized license mobility. Which compute model is most appropriate?

Overview of compute services Hard
A. Amazon EC2 Dedicated Instances
B. Amazon EC2 Dedicated Hosts
C. Amazon ECS on AWS Fargate
D. AWS Lambda provisioned concurrency

43 An event-driven image pipeline has no persistent server state, takes 40 seconds per image, and has traffic ranging from zero to thousands of requests per minute. Which design most directly aligns cost with actual execution?

Overview of compute services Hard
A. Deploy an AWS Batch multi-node parallel job
B. Run fixed Amazon EC2 instances behind an ALB
C. Invoke AWS Lambda from Amazon S3 events
D. Use an Amazon ECS EC2 service with two tasks

44 A tightly coupled HPC application uses MPI and requires consistently low-latency, high-throughput communication between instances in one Availability Zone. Which EC2 placement strategy is most suitable?

Overview of compute services Hard
A. A partition placement group
B. A Regional Auto Scaling group
C. A spread placement group
D. A cluster placement group

45 An application writes temporary data to an instance store volume. The instance is stopped and later started on different underlying hardware. What should the architect expect?

Amazon EC2 Hard
A. The instance store data is lost
B. The data is restored from the AMI
C. The volume is converted to gp3
D. The data persists after host migration

46 An EC2 instance has an IAM role attached. An application on the instance must call Amazon S3 without storing long-term credentials. Which mechanism supplies the credentials?

Amazon EC2 Hard
A. Static keys embedded in the user data
B. A key pair retrieved from AWS KMS
C. Credentials inherited from the security group
D. Temporary credentials from instance metadata

47 A stateful EC2 application requires the operating system and in-memory process state to resume after a planned shutdown. The selected instance family and AMI support the feature. Which action is required?

Amazon EC2 Hard
A. Enable hibernation when launching the instance
B. Attach an instance store volume for RAM
C. Create an AMI immediately before each stop
D. Enable termination protection after launch

48 Instances in a private subnet need outbound access to operating-system repositories, but unsolicited inbound internet connections must remain blocked. Which architecture meets the requirement without assigning public IPv4 addresses to the instances?

Amazon EC2 Hard
A. Route outbound traffic through a NAT gateway
B. Peer the subnet with a public subnet
C. Attach an Elastic IP to each private instance
D. Route outbound traffic through an internet gateway

49 A company has a steady $10/hour EC2 On-Demand baseline in one Region and wants a one-year commitment that can also apply to future AWS Fargate usage. Which discount model best fits?

EC2 pricing and cost optimization Hard
A. Compute Savings Plans
B. Regional Standard Reserved Instances
C. Zonal Convertible Reserved Instances
D. EC2 Instance Savings Plans

50 A fault-tolerant batch job checkpoints every two minutes and can resume on another instance. Its completion deadline is flexible. Which purchasing option usually provides the largest EC2 discount for this workload?

EC2 pricing and cost optimization Hard
A. Dedicated Hosts
B. Spot Instances
C. Standard Reserved Instances
D. On-Demand Instances

51 A Linux Regional Standard Reserved Instance has matching attributes for an instance family, but the workload changes to a different size within that family. Which property can preserve the discount automatically?

EC2 pricing and cost optimization Hard
A. Spot capacity rebalancing
B. Capacity reservation affinity
C. Host resource group sharing
D. Instance size flexibility

52 An Auto Scaling group runs 10 instances continuously. Six are a stable baseline; four vary among instance families and may later move to Fargate. Which commitment strategy minimizes lock-in while covering the predictable baseline?

EC2 pricing and cost optimization Hard
A. Buy a Compute Savings Plan for six instances' spend
B. Buy Standard RIs for all ten instances' spend
C. Buy Dedicated Hosts for the six baseline instances
D. Use Spot blocks for all ten instances' spend

53 A Lambda function has reserved concurrency set to 40 and currently has 40 concurrent invocations. Additional events arrive synchronously through an API. What is the immediate expected result?

Managed compute services Hard
A. The invocations wait indefinitely inside Lambda
B. The function automatically raises its reservation
C. The additional synchronous invocations are throttled
D. Lambda borrows unlimited account concurrency

54 A team submits thousands of containerized scientific jobs with CPU and memory requirements that vary by job. Jobs may queue until capacity is available. Which managed service is designed to schedule this workload?

Managed compute services Hard
A. AWS Elastic Beanstalk
B. AWS Lambda
C. Amazon Lightsail
D. AWS Batch

55 A Lambda function processing SQS messages fails a subset of records in a batch. The team wants successfully processed records removed while only failed records become visible for retry. What should the function use?

Managed compute services Hard
A. Partial batch response reporting
B. A synchronous invocation mode
C. Provisioned concurrency allocation
D. An increased visibility timeout only

56 A web application deployed with AWS Elastic Beanstalk needs zero-downtime replacement of its environment and a quick rollback path. Which deployment approach best fits?

Managed compute services Hard
A. Replace instances manually through the EC2 console
B. Use an all-at-once deployment in production
C. Terminate the environment before redeployment
D. Create a second environment and swap CNAMEs

57 An ECS task on Fargate must pull a private image from Amazon ECR and then access an S3 bucket from application code. Which IAM roles should grant these permissions?

Container services Hard
A. Execution role for ECR; task role for S3
B. Task role for ECR; execution role for S3
C. Container instance role for both ECR and S3
D. Service-linked role for both ECR and S3

58 An ECS service uses both On-Demand and Spot Fargate capacity. Two tasks must always run on On-Demand capacity, while additional tasks should prefer Spot. Which capacity-provider strategy element guarantees the two baseline tasks?

Container services Hard
A. Set the service minimum healthy percent to 2
B. Set the FARGATE_SPOT provider weight to 0
C. Set the FARGATE provider weight to 2
D. Set the FARGATE provider base to 2

59 An EKS pod needs read-only access to one S3 bucket, but other pods on the same worker node must not receive that permission. Which approach provides the narrowest identity boundary?

Container services Hard
A. Associate an IAM role with the pod's service account
B. Store an IAM user's access keys in a ConfigMap
C. Attach the S3 policy to the worker node role
D. Add the S3 policy to the EKS cluster role

60 An ECS service must keep exactly four healthy tasks during an Availability Zone failure and distribute replacements across the remaining zones. Which combination is essential?

Container services Hard
A. A service desired count of 4 with multi-AZ subnets
B. A placement constraint limited to one zone
C. A daemon scheduling strategy on Fargate
D. A standalone task count of 4 in one subnet