Question 1
A company wants to run a short data processing job every night that needs 64 GB of memory and up to 45 minutes of runtime. The company wants the simplest serverless option. Which service should be used?
- AWS Fargate tasks started by an EventBridge schedule — Correct
- Amazon EC2 Reserved Instances that run all night
- Amazon API Gateway with a Lambda proxy integration
- AWS Lambda functions started by an EventBridge schedule
Correct answer
AWS Fargate tasks started by an EventBridge schedule
Explanation
Fargate supports larger memory and long-running tasks without servers. Lambda is limited to 15 minutes and 10 GB of memory. Reserved Instances are not serverless and cost money when idle. API Gateway is not a batch trigger.
Question 2
A company wants to run an existing .NET web application on AWS with the LEAST operational overhead, without managing infrastructure details such as load balancers, scaling, and patching of the platform. Which service should be used?
- AWS Elastic Beanstalk — Correct
- Amazon EC2 with user data
- AWS Outposts racks
- Amazon EKS with Fargate profiles
Correct answer
AWS Elastic Beanstalk
Explanation
Elastic Beanstalk deploys and manages web applications, including load balancing, scaling, and platform updates. EC2 and EKS require more setup. Outposts is for on-premises AWS infrastructure.
Question 3
A company runs an online game whose players connect over UDP. The company needs to improve performance and availability for players worldwide with automatic failover between Regions. Which service should be used?
- Amazon CloudFront
- Route 53 simple routing
- AWS Global Accelerator — Correct
- Application Load Balancer
Correct answer
AWS Global Accelerator
Explanation
Global Accelerator supports UDP and fails over between Regional endpoints using the AWS network. CloudFront is for HTTP. Simple routing has no failover. ALBs handle HTTP and are Regional.
Question 4
A company wants a data warehouse to run complex analytic queries across petabytes of structured data with high performance, and to query data in S3 without loading it. Which service should be used?
- Amazon RDS for PostgreSQL with read replicas
- Amazon Redshift with Redshift Spectrum — Correct
- Amazon ElastiCache for Redis with cluster mode
- Amazon DynamoDB with global secondary indexes
Correct answer
Amazon Redshift with Redshift Spectrum
Explanation
Redshift is a petabyte-scale data warehouse, and Spectrum queries data directly in S3. RDS, DynamoDB, and ElastiCache are not designed for petabyte-scale analytics.
Question 5
A company is building an application that needs to store and retrieve JSON documents with flexible schema and query them with millisecond latency at very large scale. Which service fits BEST?
- Amazon S3 Glacier
- Amazon Redshift
- Amazon RDS for Oracle
- Amazon DynamoDB — Correct
Correct answer
Amazon DynamoDB
Explanation
DynamoDB stores flexible JSON-like items with millisecond latency at scale. Glacier is archival. Redshift is analytics. RDS for Oracle is relational with fixed schemas.
Question 6
A company wants to distribute static and dynamic web content to users worldwide with low latency, protect the origin from direct access, and terminate TLS close to users. Which solution meets these requirements?
- Amazon CloudFront, with origin access control or a secret header to block direct origin access. — Correct
- An Application Load Balancer with cross-zone load balancing enabled and an ACM certificate in one Region.
- Route 53 latency-based routing to copies of the application in several Regions, each with its own certificate.
- AWS Global Accelerator with static IP addresses pointing to an Application Load Balancer in one Region.
Correct answer
Amazon CloudFront, with origin access control or a secret header to block direct origin access.
Explanation
CloudFront caches content at edge locations, terminates TLS at the edge, and can restrict origin access. Multi-Region copies add cost and complexity. Global Accelerator does not cache content. An ALB alone serves from one Region.
Question 7
A company needs to run Windows-based desktop applications for remote employees with persistent desktops that the company manages centrally. Which service should be used?
- Amazon AppStream 2.0
- Amazon EC2 Mac instances
- AWS Elastic Beanstalk
- Amazon WorkSpaces — Correct
Correct answer
Amazon WorkSpaces
Explanation
WorkSpaces provides managed persistent virtual desktops. AppStream 2.0 streams individual applications. EC2 Mac instances run macOS. Elastic Beanstalk deploys web applications.
Question 8
A company wants to run Apache Spark jobs on large datasets in S3 without managing clusters. Which service should be used?
- Amazon EC2 Spot Fleet
- AWS Elastic Beanstalk
- Amazon EMR Serverless — Correct
- Amazon RDS for MySQL
Correct answer
Amazon EMR Serverless
Explanation
EMR Serverless runs Spark jobs without cluster management. The other options are not managed Spark runtimes.
Question 9
A company runs an application that stores IoT sensor readings and needs to query recent data quickly and older data at lower cost, with built-in time-series functions. Which service fits BEST?
- Amazon DocumentDB
- Amazon Timestream — Correct
- Amazon Neptune
- Amazon QLDB
Correct answer
Amazon Timestream
Explanation
Timestream is a time-series database with memory and magnetic tiers and time-series functions. The other services are not designed for time-series data.
Question 10
A company wants to quickly build a REST API that invokes Lambda functions, with request validation, throttling, and custom domain support, at the lowest cost for simple proxy routes without usage plans. Which option fits BEST?
- API Gateway REST API with caching
- Amazon CloudFront with Lambda@Edge
- API Gateway HTTP API — Correct
- Application Load Balancer with EC2
Correct answer
API Gateway HTTP API
Explanation
HTTP APIs are cheaper and support Lambda integrations, JWT authorizers, throttling, and custom domains. REST APIs cost more and are needed only for features such as usage plans or caching. ALB with EC2 and Lambda@Edge are different designs.