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 manage user passwords only
B. To design network cables
C. To store physical documents
D. To provide processing resources

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. Employee clothing
D. Printer brand

3 What does scalability mean in cloud computing?

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

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

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

5 What is an EC2 instance?

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

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

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

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

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

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. Increasing disk capacity
B. Creating a billing account
C. Secure instance access
D. Choosing an instance type

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

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

11 What is an On-Demand EC2 pricing model?

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

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

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

13 What are Spot Instances designed to use?

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

14 Which action can help reduce unnecessary EC2 costs?

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

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

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

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

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

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

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

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

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

19 What is a container?

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

20 Which AWS service is a managed container orchestration service?

Container services Easy
A. Amazon S3
B. Amazon Athena
C. Amazon ECS
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 EC2
B. AWS Lambda
C. AWS Outposts
D. Amazon Lightsail

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. Amazon EC2
B. AWS Lambda
C. AWS Elastic Beanstalk
D. AWS Fargate

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 a fixed fleet sized for the maximum expected traffic throughout the entire day
B. Use one large EC2 instance continuously
C. Use an Auto Scaling group with scheduled scaling
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. Amazon EC2
C. AWS Fargate
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. One Dedicated Host in a private subnet
B. One instance with multiple EBS volumes
C. Instances across multiple Availability Zones
D. Multiple instances in one Availability Zone

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. Memory optimized
B. Compute optimized
C. Storage optimized
D. Accelerated computing

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

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

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. Amazon S3 Glacier
B. Instance store
C. Amazon EBS
D. AWS Storage Gateway

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. Spot Instances
B. Dedicated Hosts
C. Capacity Reservations
D. On-Demand Instances

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. EC2 Instance Savings Plans
B. On-Demand pricing
C. Compute Savings Plans
D. Spot Instance 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. Keep the instance running and purchase additional EBS capacity to improve its utilization
B. Stop the instance outside working hours
C. Move the instance to a Dedicated Host
D. Reboot the instance outside working hours

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. $25
C. $20
D. $30

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. Amazon Machine Images
B. AWS Elastic Beanstalk
C. Amazon EC2 Auto Scaling
D. AWS CloudFormation

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. Invoke AWS Batch through an EBS volume event
D. Trigger AWS Lambda from an S3 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 Lambda
B. Amazon Lightsail
C. AWS Batch
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. Amazon EMR
B. AWS Lambda
C. AWS Batch
D. Amazon Lightsail

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 EKS
B. Amazon ECS
C. Amazon ECR
D. AWS CloudFormation

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 EKS
B. Amazon ECS
C. Amazon ECR
D. AWS App Runner

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. An Auto Scaling group that maintains and patches a permanent fleet of container instances
B. Amazon ECR
C. EC2 Dedicated Hosts
D. AWS Fargate

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 S3 Glacier
B. Amazon EFS
C. Amazon ECR
D. Amazon EBS

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. Amazon ECS on AWS Fargate
B. AWS Elastic Beanstalk worker tier
C. AWS Lambda with provisioned concurrency
D. Amazon EC2 with Dedicated Hosts

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 Hosts
B. Amazon ECS on AWS Fargate
C. Amazon EC2 Dedicated Instances
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. Invoke AWS Lambda from Amazon S3 events
B. Run fixed Amazon EC2 instances behind an ALB
C. Use an Amazon ECS EC2 service with two tasks
D. Deploy an AWS Batch multi-node parallel job

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 spread placement group
B. A Regional Auto Scaling group
C. A cluster placement group
D. A partition 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 volume is converted to gp3
B. The data persists after host migration
C. The instance store data is lost
D. The data is restored from the AMI

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. A key pair retrieved from AWS KMS
B. Temporary credentials from instance metadata
C. Credentials inherited from the security group
D. Static keys embedded in the user data

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. Create an AMI immediately before each stop
B. Enable termination protection after launch
C. Attach an instance store volume for RAM
D. Enable hibernation when launching the instance

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 an internet gateway
B. Peer the subnet with a public subnet
C. Attach an Elastic IP to each private instance
D. Route outbound traffic through a NAT 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. EC2 Instance Savings Plans
D. Zonal Convertible Reserved Instances

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. On-Demand Instances
B. Spot Instances
C. Dedicated Hosts
D. Standard Reserved 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. Capacity reservation affinity
B. Spot capacity rebalancing
C. Instance size flexibility
D. Host resource group sharing

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 Dedicated Hosts for the six baseline instances
C. Use Spot blocks for all ten instances' spend
D. Buy Standard RIs 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. Lambda borrows unlimited account concurrency
B. The invocations wait indefinitely inside Lambda
C. The additional synchronous invocations are throttled
D. The function automatically raises its reservation

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 Batch
C. AWS Lambda
D. Amazon Lightsail

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. A synchronous invocation mode
B. An increased visibility timeout only
C. Provisioned concurrency allocation
D. Partial batch response reporting

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. Create a second environment and swap CNAMEs
B. Replace instances manually through the EC2 console
C. Terminate the environment before redeployment
D. Use an all-at-once deployment in production

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. Task role for ECR; execution role for S3
B. Container instance role for both ECR and S3
C. Service-linked role for both ECR and S3
D. Execution role for ECR; task role for 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. Add the S3 policy to the EKS cluster role
C. Attach the S3 policy to the worker node role
D. Store an IAM user's access keys in a ConfigMap

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 daemon scheduling strategy on Fargate
B. A service desired count of 4 with multi-AZ subnets
C. A standalone task count of 4 in one subnet
D. A placement constraint limited to one zone