Curated

Design High-Performing Architectures 1 (3.1–3.4)

0 votes

Questions55

  1. Question 1

    Design High-Performing Architectures

    A web application waits for an image-processing service to finish before acknowledging each upload, causing timeouts during traffic spikes. Users only need confirmation that processing was accepted; which change lets the web and processing tiers scale independently?

    Show the answer

    Correct answerC. Queue processing requests in Amazon SQS for background workers.

    AWhy not this: Faster processors may shorten processing time but do not remove the web tier's synchronous dependency.

    BWhy not this: A shared Auto Scaling group ties the tiers' capacity changes together instead of allowing independent scaling.

    CWhy this is right: The web tier can acknowledge queued work without waiting for workers, and worker capacity can scale separately.

    DWhy not this: Longer timeouts keep requests waiting and do not decouple the tiers or buffer processing work.

    An SQS queue separates request acceptance from background processing, so each tier can scale independently and bursts can be buffered. Larger processing instances may reduce execution time but preserve the synchronous dependency.

    Open this question
  2. Question 2

    Design High-Performing Architectures

    Which metric should trigger scale-out when an EC2 Auto Scaling group's CPU-bound application experiences sustained processor saturation?

    Show the answer

    Correct answerA. Average CPU utilization

    AWhy this is right: Sustained high average CPU utilization indicates processor pressure that additional instances can relieve.

    BWhy not this: Attached storage capacity measures provisioned space, not current processor demand.

    CWhy not this: Healthy instance count describes available capacity, not whether that capacity is CPU-saturated.

    DWhy not this: Network traffic measures data transfer, which may not reflect CPU demand for a CPU-bound application.

    Average CPU utilization directly measures processor demand across the group and can drive a target tracking scaling policy. Network traffic can correlate with load but does not directly indicate processor saturation.

    Open this question
  3. Question 3

    Design High-Performing Architectures

    An order service publishes events that billing and fulfillment must each process, even if either consumer is unavailable for several hours. Which architecture lets both consumers scale independently without losing their copies of events?

    Show the answer

    Correct answerB. Publish to an Amazon SNS topic subscribed to separate Amazon SQS queues for billing and fulfillment.

    AWhy not this: A shared worker group couples scaling, and a shared queue does not provide each service with its own event copy.

    BWhy this is right: Each queue receives its own event copy and retains it while its consumer is unavailable, allowing independent scaling.

    CWhy not this: Consumers compete for messages in a shared queue; billing and fulfillment would not each reliably receive every event.

    DWhy not this: Direct HTTP delivery lacks a durable per-consumer queue to buffer events throughout an extended outage.

    An SNS topic fans out each event to separate SQS queues, which buffer events independently during consumer outages. A shared SQS queue distributes messages among consumers rather than providing every consumer with its own copy.

    Open this question
  4. Question 4

    Design High-Performing Architectures

    A company needs to run existing Apache Spark applications that process large datasets across a cluster and use HDFS during execution. Which service provides a managed environment designed for this workload?

    Show the answer

    Correct answerD. Amazon EMR

    AWhy not this: AWS Batch manages job scheduling and compute capacity, not a managed Spark and HDFS environment.

    BWhy not this: Amazon ECS orchestrates containers but does not provide a managed Spark and HDFS environment.

    CWhy not this: AWS Lambda runs event-driven functions rather than providing a persistent distributed processing cluster.

    DWhy this is right: Amazon EMR supports distributed data processing with frameworks such as Spark and storage components such as HDFS.

    Amazon EMR provides a managed big data environment with Apache Spark and HDFS. AWS Batch schedules batch jobs but does not provide a managed Spark and HDFS environment.

    Open this question
  5. Question 5

    Design High-Performing Architectures

    Which service provides publish/subscribe messaging that pushes each published message to multiple subscribed endpoints?

    Show the answer

    Correct answerC. Amazon SNS

    AWhy not this: ECS orchestrates containers rather than distributing published messages to subscribers.

    BWhy not this: SQS stores messages for consumers to retrieve; consumers of one queue generally compete for messages rather than receive a broadcast.

    CWhy this is right: SNS delivers messages published to a topic to its subscribed endpoints.

    DWhy not this: Step Functions orchestrates workflow steps rather than providing a publish/subscribe messaging service.

    Amazon SNS distributes published messages to subscribed endpoints using publish/subscribe messaging. Amazon SQS queues messages for consumers to retrieve rather than pushing each message to multiple subscribers.

    Open this question
  6. Question 6

    Design High-Performing Architectures

    A company serves a global website through Amazon CloudFront. On every viewer request, lightweight JavaScript must rewrite the URL and add a header based on request headers. The logic needs no network calls and does not read the request body, and it must run at edge locations with sub-millisecond startup and the lowest cost at millions of requests per second. Which solution should the company use?

    Show the answer

    Correct answerB. CloudFront Functions on the viewer request event

    AWhy not this: Lambda@Edge can modify viewer requests, but it has longer startup and higher cost than needed for lightweight header and URL logic.

    BWhy this is right: CloudFront Functions run sub-millisecond JavaScript on viewer events at edge locations at high scale and low cost.

    CWhy not this: An origin-side function runs only on requests that reach the origin, not at the edge on every viewer request.

    DWhy not this: Global Accelerator routes traffic to endpoints over the AWS global network; it does not run request-manipulation code.

    CloudFront Functions run lightweight JavaScript on viewer request and viewer response events at CloudFront edge locations, start in under a millisecond, scale to millions of requests per second, and cost less than Lambda@Edge. Lambda@Edge also runs on viewer requests but suits heavier logic that needs network access, the request body, or origin events, at higher latency and cost.

    Open this question
  7. Question 7

    Design High-Performing Architectures

    A company runs containerized simulation jobs that require NVIDIA GPUs and take several hours each. It needs managed job queues and automatic compute provisioning without building a scheduler; which solution meets these requirements with the LEAST operational overhead?

    Show the answer

    Correct answerA. AWS Batch with a managed EC2 compute environment

    AWhy this is right: AWS Batch supplies job scheduling and automatically provisions GPU-capable EC2 capacity in a managed compute environment.

    BWhy not this: Lambda does not provide GPUs and has a maximum invocation duration of 15 minutes.

    CWhy not this: Fargate does not support the GPUs required by these simulation jobs.

    DWhy not this: ECS can run GPU containers on EC2, but services do not provide Batch's managed job-queue scheduling.

    AWS Batch provides job queues and managed EC2 compute provisioning, including GPU-capable instances. Batch on Fargate removes instance management but does not support GPU workloads.

    Open this question
  8. Question 8

    Design High-Performing Architectures

    A database engine manages its own on-disk layout and must overwrite individual 8 KiB pages without replacing an entire stored object. It requires a raw storage device rather than a mounted directory. Which storage type meets these requirements?

    Show the answer

    Correct answerC. Block storage

    AWhy not this: Virtual tape storage provides sequential backup access rather than random page updates.

    BWhy not this: Object storage does not expose a raw device or conventional in-place block writes.

    CWhy this is right: Block storage exposes a raw device with addressable blocks that the database can update independently.

    DWhy not this: Network file storage exposes files and directories, not the raw device required by the database.

    Block storage exposes an addressable device that supports updates to individual blocks and lets the database manage its layout. File storage supports random writes but exposes files and directories rather than the required raw device.

    Open this question
  9. Question 9

    Design High-Performing Architectures

    A company uses backup software that writes to a physical tape library. It wants to retire the library while retaining the software and storing backups in AWS. Which solution meets these requirements?

    Show the answer

    Correct answerA. AWS Storage Gateway Tape Gateway

    AWhy this is right: Tape Gateway provides a virtual tape library that compatible tape backup software can use without physical tapes.

    BWhy not this: Volume Gateway presents iSCSI block volumes rather than virtual tape devices.

    CWhy not this: S3 File Gateway exposes file shares through NFS or SMB, not a virtual tape library.

    DWhy not this: EFS provides NFS file storage; Direct Connect does not turn it into a tape library.

    Tape Gateway presents a virtual tape library to compatible backup software and stores virtual tapes in AWS. Volume Gateway presents block volumes, not the tape interface required by the existing software.

    Open this question
  10. Question 10

    Design High-Performing Architectures

    Which AWS storage service is designed to store large collections of images as objects accessible through HTTP APIs?

    Show the answer

    Correct answerB. Amazon S3

    AWhy not this: EFS provides a shared NFS file system rather than an HTTP object store.

    BWhy this is right: S3 stores images as objects and provides HTTP API access.

    CWhy not this: FSx for Lustre provides a parallel file system rather than native HTTP object storage.

    DWhy not this: EBS provides block volumes for EC2 instances, not native HTTP object storage.

    Amazon S3 stores objects and supports HTTP API access, making it suitable for large image collections. Amazon EFS stores files accessed through NFS rather than a native object API.

    Open this question
  11. Question 11

    Design High-Performing Architectures

    A company is moving a Windows application to Amazon EC2. The application requires shared SMB storage with Windows NTFS permissions and integration with its existing Microsoft Active Directory. Which storage service should it use?

    Show the answer

    Correct answerC. Amazon FSx for Windows File Server

    AWhy not this: S3 provides object storage rather than native Windows SMB file shares.

    BWhy not this: FSx for Lustre supports high-performance Lustre workloads, not native Windows SMB file shares.

    CWhy this is right: FSx for Windows File Server supports SMB, NTFS permissions, and Microsoft Active Directory integration.

    DWhy not this: EFS provides NFS access, not SMB shares with Windows NTFS permissions.

    Amazon FSx for Windows File Server provides SMB shares, NTFS permissions, and Microsoft Active Directory integration. Amazon EFS provides NFS file access rather than the required Windows file system features.

    Open this question
  12. Question 12

    Design High-Performing Architectures

    An analytics platform accesses Amazon S3 from EC2 in the same AWS Region without traversing the internet, uploading 100-GB objects over unreliable connections and downloading independent object ranges concurrently. It also needs high sustained write-request rates without concentrating traffic on one prefix; which design choices BEST meet these requirements? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Distribute write requests across multiple key prefixes.E. Download object ranges with parallel byte-range GETs.F. Use multipart uploads with retries for failed parts.

    AWhy not this: Intelligent-Tiering optimizes storage cost through access-tier changes, not active-read acceleration.

    BWhy this is right: Distributing requests across prefixes supports higher aggregate request rates without concentrating the workload.

    CWhy not this: Transfer Acceleration benefits long-distance internet transfers, not the specified same-Region access path.

    DWhy not this: Versioning preserves object versions; it does not increase the documented per-prefix request performance.

    EWhy this is right: Parallel byte-range GETs retrieve independent portions concurrently and can improve download throughput.

    FWhy this is right: Multipart uploads support large objects and retry individual failed parts rather than restarting the entire upload.

    Multipart uploads allow failed parts to be retried, parallel byte-range GETs accelerate independent reads, and multiple prefixes distribute request load. S3 Transfer Acceleration targets long-distance internet transfers, not this same-Region access path.

    Open this question
  13. Question 13

    Design High-Performing Architectures

    A Linux application needs shared NFS storage that automatically grows as files are added. Which service should a solutions architect choose?

    Show the answer

    Correct answerC. Amazon EFS

    AWhy not this: FSx for Windows File Server provides SMB file shares rather than the required NFS storage.

    BWhy not this: Instance store provides temporary storage attached to a host, not an automatically growing shared NFS service.

    CWhy this is right: EFS provides shared NFS storage and automatically adjusts storage capacity as files are added or removed.

    DWhy not this: EBS provides block volumes with provisioned capacity, not a managed shared NFS file system.

    Amazon EFS provides shared NFS file storage that automatically grows and shrinks as files change. Amazon EBS provides block storage with provisioned volume capacity rather than an automatically expanding shared NFS file system.

    Open this question
  14. Question 14

    Design High-Performing Architectures

    An application uses a 500-GiB Amazon EBS gp3 volume configured for 3,000 IOPS and 125 MiB/s throughput. Monitoring shows throughput saturation with IOPS below the limit and sufficient EC2 bandwidth; which change MOST cost-effectively removes the bottleneck?

    Show the answer

    Correct answerD. Increase provisioned throughput to 500 MiB/s.

    AWhy not this: Increasing gp3 capacity does not automatically raise its provisioned throughput.

    BWhy not this: Additional IOPS do not raise the separately configured throughput limit.

    CWhy not this: A larger instance does not remove the volume's configured throughput limit.

    DWhy this is right: Increasing provisioned throughput directly addresses the saturated limit without unnecessary capacity or compute.

    A gp3 volume allows throughput to be provisioned independently of capacity and IOPS. Increasing capacity does not increase gp3 throughput, and the instance already has sufficient bandwidth.

    Open this question
  15. Question 15

    Design High-Performing Architectures

    An application checks Amazon ElastiCache before reading its database. After a cache miss, it repeatedly queries the database for the same unchanged record because the cache remains empty. Which change should the application make?

    Show the answer

    Correct answerA. Store the database result in the cache after each cache miss

    AWhy this is right: Saving the fetched result allows subsequent requests for the same record to be served from the cache.

    BWhy not this: More database connections do not prevent repeated database reads for an uncached record.

    CWhy not this: A read replica changes where database reads execute but leaves the cache empty.

    DWhy not this: Preloading every record can waste capacity and is unnecessary when records can be cached on demand.

    Cache-aside populates the cache with data fetched from the database after a miss, allowing later requests to use the cached result. A read replica can offload the primary database but does not populate the cache.

    Open this question
  16. Question 16

    Design High-Performing Architectures

    An application uses Aurora PostgreSQL in one AWS Region and is expanding to another continent. It needs local database reads on both continents and a recovery database that remains available if the entire primary Region fails; a small replication lag is acceptable. Which architecture meets these requirements?

    Show the answer

    Correct answerC. An Aurora global database with a secondary cluster in another Region

    AWhy not this: Readers in the primary Availability Zone share its geographic location and failure boundary.

    BWhy not this: Availability Zones belong to one Region, so distributing readers across them does not protect against complete Region failure.

    CWhy this is right: A secondary Region provides geographically local reads and a recovery target outside the primary Region's failure boundary.

    DWhy not this: A larger writer adds capacity but does not provide geographically local reads or protection from Region failure.

    An Aurora global database places secondary clusters in other Regions, supporting local reads and cross-Region disaster recovery. Readers in different Availability Zones improve regional availability but cannot survive the loss of their entire Region.

    Open this question
  17. Question 17

    Design High-Performing Architectures

    A catalog receives 20,000 product lookups and 20 product updates per minute. Which access pattern does this workload exhibit?

    Show the answer

    Correct answerD. Read-intensive access

    AWhy not this: Updates are a small fraction of operations, so writes do not dominate the workload.

    BWhy not this: The workload includes many product lookups, so it is not write-only.

    CWhy not this: The read and write rates differ by a factor of 1,000, rather than being approximately balanced.

    DWhy this is right: Product lookups are reads, and they vastly outnumber product updates.

    The workload is read-intensive because product lookups vastly outnumber updates. Write-intensive workloads have writes as the dominant operation, not merely some ongoing updates.

    Open this question
  18. Question 18

    Design High-Performing Architectures

    An ElastiCache-backed catalog has frequent updates, synchronized cache-expiration bursts, and repeated lookups for nonexistent IDs. Cached results must never remain valid more than 60 seconds after loading; which changes reduce database load while preserving this freshness limit? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Invalidate affected cached entries after successful database updatesC. Randomize entry TTLs between 40 and 60 secondsE. Cache not-found results for 5 seconds and invalidate them when records are created

    AWhy this is right: Invalidating after a successful update removes outdated results so later reads can load committed data.

    BWhy not this: Flushing everything at once sends every lookup to the database together, creating a larger synchronized burst.

    CWhy this is right: Varying TTLs spreads expiration-driven database reads while keeping every TTL within the 60-second limit.

    DWhy not this: A 5-minute negative cache keeps a result valid far beyond 60 seconds after loading, violating the freshness limit.

    EWhy this is right: Briefly caching missing results avoids repeated database lookups; creation-time invalidation prevents hiding new records.

    FWhy not this: Sliding expiration can keep a hot entry valid beyond 60 seconds after loading, violating the freshness limit.

    Bounded TTL jitter spreads expirations, negative caching absorbs repeated missing-ID lookups, and post-commit invalidation prevents updated values from lingering. Resetting TTL on every hit can keep a frequently accessed stale result valid indefinitely, a 5-minute negative cache breaks the 60-second limit, and flushing the whole cache at once creates the same synchronized miss burst the design must avoid.

    Open this question
  19. Question 19

    Design High-Performing Architectures

    A company runs a UDP application in two AWS Regions. Clients must allowlist fixed public IP addresses, and traffic must automatically shift away from an unhealthy regional deployment. Which architecture meets these requirements?

    Show the answer

    Correct answerB. AWS Global Accelerator with regional Network Load Balancers

    AWhy not this: CloudFront supports HTTP and HTTPS delivery, not arbitrary UDP application traffic.

    BWhy this is right: Provides fixed global IP addresses and health-based routing to regional endpoints for UDP traffic.

    CWhy not this: Cross-zone load balancing distributes traffic within one Region; it does not provide cross-Region failover.

    DWhy not this: DNS failover does not provide fixed global entry IP addresses, and cached answers can delay traffic shifts.

    AWS Global Accelerator provides static anycast IP addresses, supports UDP, and redirects traffic to healthy regional endpoints. Route 53 failover changes DNS responses rather than providing a fixed global IP entry point, and clients can retain cached answers.

    Open this question
  20. Question 20

    Design High-Performing Architectures

    An application's subnet route table contains 0.0.0.0/0 to a NAT gateway, 10.40.0.0/16 to a transit gateway, and 10.40.8.0/24 to a VPC peering connection. Where does the VPC router send traffic destined for 10.40.8.25?

    Show the answer

    Correct answerD. The VPC peering connection

    AWhy not this: The /16 route matches, but the /24 peering route is more specific.

    BWhy not this: An attached internet gateway is not selected without an applicable route targeting it.

    CWhy not this: The default route applies only when no more specific route matches the destination.

    DWhy this is right: The destination matches 10.40.8.0/24, which is the longest matching prefix.

    VPC routing uses the longest matching destination prefix. The 10.40.8.0/24 route to the peering connection is more specific than the matching /16 transit gateway route and the /0 default route.

    Open this question
  21. Question 21

    Design High-Performing Architectures

    A dual-stack VPC has private application subnets and separate public subnets in two Availability Zones, with an internet gateway attached. Applications need outbound IPv4 and IPv6 internet access without accepting unsolicited inbound connections, and IPv4 egress must survive either Availability Zone failing without route changes. Which configuration actions meet these requirements? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersB. Route each public subnet's IPv4 default traffic to the internet gateway.C. Route each private subnet's IPv6 default traffic to an egress-only internet gateway.E. Route each private subnet's IPv4 default traffic to its same-AZ NAT gateway.F. Deploy a public NAT gateway in each Availability Zone's public subnet.

    AWhy not this: A regular internet gateway does not enforce outbound-only IPv6 connectivity.

    BWhy this is right: Public NAT gateways require an internet gateway route in their subnets to reach the internet.

    CWhy this is right: An egress-only internet gateway supports outbound IPv6 connections while blocking unsolicited inbound connections.

    DWhy not this: A single zonal NAT gateway fails with its Availability Zone, and moving traffic elsewhere would need route changes.

    EWhy this is right: Same-AZ routing preserves the surviving Availability Zone's IPv4 egress without route changes.

    FWhy this is right: A NAT gateway in each Availability Zone avoids dependence on another Availability Zone for IPv4 egress.

    Same-AZ NAT gateways and public-subnet internet gateway routes provide independent IPv4 egress paths. An egress-only internet gateway permits outbound IPv6 connections without permitting unsolicited inbound connections; a regular internet gateway does not enforce that outbound-only behavior. Sending both private subnets to one zonal NAT gateway makes IPv4 egress depend on that Availability Zone.

    Open this question
  22. Question 22

    Design High-Performing Architectures

    Which IPv4 subnet CIDR block provides the most addresses for future resource growth?

    Show the answer

    Correct answerD. /20

    AWhy not this: A /26 contains 64 total addresses, fewer than a /20.

    BWhy not this: A /28 contains only 16 total addresses, making it the smallest address space listed.

    CWhy not this: A /24 contains 256 total addresses, fewer than a /20.

    DWhy this is right: A /20 contains 4,096 total addresses, providing the greatest capacity listed.

    A /20 subnet has more host-address bits and therefore more addresses than the other choices. A /28 has the largest prefix length listed but the smallest address space.

    Open this question
  23. Question 23

    Design High-Performing Architectures

    A company connects its data center to a central VPC through AWS Site-to-Site VPN and peers that VPC with application VPCs. The application VPCs cannot reach the data center through the central VPC. Which topology change resolves this limitation?

    Show the answer

    Correct answerC. Attach the VPCs and VPN to a transit gateway.

    AWhy not this: NAT gateways translate outbound traffic addresses; they do not provide connectivity through a peer VPC's VPN.

    BWhy not this: A Network Load Balancer distributes application traffic; it does not provide transitive network routing.

    CWhy this is right: A transit gateway can route traffic between attached application VPCs and the VPN connection.

    DWhy not this: Additional peering connections do not allow application VPCs to use the central VPC's VPN connection.

    AWS Transit Gateway provides transitive routing between attached VPCs and a Site-to-Site VPN connection. VPC peering does not support routing through a peer VPC to its VPN connection, so additional peering connections do not resolve the limitation.

    Open this question
  24. Question 24

    Design High-Performing Architectures

    A company's aggregate hybrid traffic exceeds the capacity of one AWS Site-to-Site VPN tunnel, but individual flows remain below that capacity. Its customer gateway supports BGP and equal-cost multipath routing. Which configuration can increase aggregate throughput across VPN tunnels?

    Show the answer

    Correct answerD. Terminate VPNs on a transit gateway and enable VPN ECMP with equal-cost BGP routes.

    AWhy not this: Additional static routes on a virtual private gateway do not enable ECMP across VPN tunnels.

    BWhy not this: A virtual private gateway does not support ECMP across VPN tunnels, even with equal-cost BGP advertisements.

    CWhy not this: Unequal BGP preferences select a preferred path rather than distribute traffic across equal-cost tunnels.

    DWhy this is right: Transit gateway VPN ECMP distributes flows across equal-cost tunnels, increasing aggregate throughput.

    A transit gateway supports VPN equal-cost multipath routing (ECMP), allowing flows to use multiple equal-cost tunnels for higher aggregate throughput. A virtual private gateway does not support VPN ECMP; a single flow also cannot combine tunnel capacities.

    Open this question
  25. Question 25

    Design High-Performing Architectures

    Which business requirements can Amazon RDS for MySQL read replicas support? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Provide a replica that can become an independent databaseD. Offload reporting queries from the primary databaseE. Serve reads closer to users in another Region

    AWhy not this: Read replicas use asynchronous replication, so they do not guarantee zero-data-loss failover.

    BWhy this is right: Promoting a read replica makes it an independent database that accepts writes.

    CWhy not this: Read replicas do not accept application writes while operating as replicas.

    DWhy this is right: Reporting queries can run on a read replica instead of consuming the primary database's resources.

    EWhy this is right: A cross-Region read replica can serve reads nearer to geographically distant users.

    RDS for MySQL read replicas can offload reads, support cross-Region reads, and be promoted to independent databases. Replication is asynchronous, and replicas do not provide multi-writer scaling.

    Open this question
  26. Question 26

    Design High-Performing Architectures

    An AWS Lambda application uses Amazon RDS for PostgreSQL. Bursts of concurrent invocations exhaust database connections, although query CPU usage remains low. Which architecture change BEST addresses this problem?

    Show the answer

    Correct answerB. Place Amazon RDS Proxy between Lambda and the database

    AWhy not this: Additional storage and IOPS address storage capacity or I/O limits, not connection exhaustion.

    BWhy this is right: RDS Proxy pools database connections and reuses them across application connections.

    CWhy not this: A Multi-AZ DB instance standby provides availability rather than connection pooling.

    DWhy not this: Caching can reduce database reads but does not directly solve excessive database connections.

    RDS Proxy pools and reuses database connections, helping absorb bursts of Lambda connections. ElastiCache can reduce repeated reads, but it does not directly manage the application's database connection pool.

    Open this question
  27. Question 27

    Design High-Performing Architectures

    A DynamoDB table stores events using customer ID as its partition key and timestamp as its sort key. One customer's sustained writes exceed a single partition's capacity despite sufficient table capacity; events must remain queryable by customer and time range. Which design BEST addresses this bottleneck?

    Show the answer

    Correct answerB. Add random suffixes to customer keys and query across suffixes

    AWhy not this: On-demand capacity scales table throughput but does not remove a hot partition's throughput limit.

    BWhy this is right: Suffixes distribute writes across partition key values while fan-out queries preserve customer-and-time access.

    CWhy not this: DynamoDB Accelerator caches reads; it does not resolve concentrated write throughput.

    DWhy not this: An index does not redistribute writes to the base table's hot partition key.

    Write sharding distributes one customer's events across multiple partition key values; queries retrieve and merge results across those values. On-demand capacity does not eliminate a single partition's throughput limit.

    Open this question
  28. Question 28

    Design High-Performing Architectures

    An application requires the PostGIS extension for spatial SQL queries. Which Amazon RDS database engine should a solutions architect choose?

    Show the answer

    Correct answerD. PostgreSQL

    AWhy not this: MySQL has spatial capabilities but does not support the PostGIS extension.

    BWhy not this: MariaDB has spatial capabilities but does not support the PostGIS extension.

    CWhy not this: Oracle has spatial capabilities but does not use the PostGIS extension.

    DWhy this is right: RDS for PostgreSQL supports PostGIS for spatial data types, indexing, and queries.

    Amazon RDS for PostgreSQL supports the PostGIS extension for spatial data and queries. MySQL supports spatial features, but it does not support the PostgreSQL-specific PostGIS extension.

    Open this question
  29. Question 29

    Design High-Performing Architectures

    A tightly coupled simulation runs across multiple EC2 instances and frequently exchanges data between nodes. Which placement option provides the low-latency inter-instance communication this workload requires?

    Show the answer

    Correct answerA. A cluster placement group

    AWhy this is right: Cluster placement places instances close together within an Availability Zone for low-latency inter-instance communication.

    BWhy not this: Dedicated Hosts provide physical server allocation for isolation and licensing, not a low-latency placement strategy.

    CWhy not this: Spread placement separates instances across hardware to reduce correlated failures, not to minimize communication latency.

    DWhy not this: Partition placement isolates groups of instances on separate racks for distributed workloads and fault isolation.

    A cluster placement group packs instances close together within one Availability Zone to support low-latency communication. Spread placement groups separate instances across distinct hardware to reduce correlated failures rather than optimize communication.

    Open this question
  30. Question 30

    Design High-Performing Architectures

    Tests of a Lambda function show durations of 4 seconds at 512 MB, 1.5 seconds at 1,024 MB, and 1 second at 2,048 MB. With architecture and other charges unchanged, which memory setting has the lowest compute cost while meeting a 2-second duration requirement?

    Show the answer

    Correct answerD. 1,024 MB

    AWhy not this: The 4-second duration exceeds the 2-second requirement despite the smaller memory allocation.

    BWhy not this: The settings have different compute costs, and the 512 MB setting fails the duration requirement.

    CWhy not this: The function meets the duration requirement but consumes 2 GB-seconds rather than 1.5 GB-seconds.

    DWhy this is right: The function meets the duration requirement and has the lowest memory-duration product among qualifying settings.

    Lambda compute charges depend on allocated memory multiplied by duration. At 1,024 MB, the function uses 1.5 GB-seconds and meets the requirement; 2,048 MB uses 2 GB-seconds, while 512 MB misses the duration requirement.

    Open this question
  31. Question 31

    Design High-Performing Architectures

    An EC2 Auto Scaling group processes an SQS queue, with each instance processing one message every 20 seconds. Queue waiting time must stay near 120 seconds as the number of workers changes; which target tracking configuration BEST meets this requirement?

    Show the answer

    Correct answerD. Target 6 visible messages per instance

    AWhy not this: A backlog of 120 messages per instance represents approximately 2,400 seconds of waiting at the stated processing rate.

    BWhy not this: Total queue depth does not account for the number of instances available to process messages.

    CWhy not this: A fixed total backlog represents different waiting times as the number of processing instances changes.

    DWhy this is right: Six messages per instance corresponds to approximately 120 seconds of waiting at 20 seconds per message.

    Backlog per instance accounts for changing processing capacity. Dividing the acceptable waiting time by processing time gives 120 ÷ 20 = 6 messages per instance; a total queue-depth target does not adjust for the number of workers.

    Open this question
  32. Question 32

    Design High-Performing Architectures

    A Lambda function needs 2 GB of temporary local scratch space. Which setting should be increased from its 512 MB default?

    Show the answer

    Correct answerB. Ephemeral storage

    AWhy not this: Function timeout controls execution duration, not local scratch space.

    BWhy this is right: Ephemeral storage determines the temporary filesystem capacity available in the /tmp directory.

    CWhy not this: Reserved concurrency controls concurrent executions, not temporary storage capacity.

    DWhy not this: Function memory changes RAM and proportional CPU allocation, not the capacity of the /tmp directory.

    Lambda ephemeral storage controls the capacity of the /tmp directory and defaults to 512 MB. Function memory controls RAM and CPU allocation, not the size of this temporary filesystem.

    Open this question
  33. Question 33

    Design High-Performing Architectures

    A latency-sensitive Lambda function has lengthy initialization, and a downstream system permits at most 100 concurrent executions of that function. Other functions share the account; which configuration supports an immediate burst of 100 executions without initialization delays while enforcing the downstream limit?

    Show the answer

    Correct answerD. Set reserved concurrency to 100 and provisioned concurrency to 100.

    AWhy not this: The initialized capacity meets the burst requirement, but the function could exceed 100 concurrent executions.

    BWhy not this: Reserved concurrency enforces the limit but does not prepare initialized execution environments.

    CWhy not this: The concurrency cap is appropriate, but half of the immediate burst could require new environment initialization.

    DWhy this is right: Provisioned concurrency prepares 100 environments, and reserved concurrency prevents execution beyond that limit.

    Provisioned concurrency supplies initialized execution environments, while reserved concurrency caps the function's concurrent executions. Reserved concurrency alone does not preinitialize environments, and a higher reserved limit would allow the downstream limit to be exceeded.

    Open this question
  34. Question 34

    Design High-Performing Architectures

    A workflow must run an existing container for 40 minutes, then perform five seconds of validation, with durable sequencing and automatic retries. Which components meet these requirements without managing servers? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersD. AWS Step Functions Standard Workflow for orchestrationE. AWS Lambda for the validation stepF. Amazon ECS on AWS Fargate for the container execution

    AWhy not this: EC2 Auto Scaling still requires managing EC2 instances and does not satisfy the serverless requirement.

    BWhy not this: A Lambda invocation cannot run for 40 minutes because its maximum execution timeout is 15 minutes.

    CWhy not this: Express Workflows have a five-minute maximum duration, which is insufficient for this workflow.

    DWhy this is right: Standard Workflows support long-running orchestration, durable state, and configurable retries.

    EWhy this is right: A five-second validation operation fits Lambda's short-lived, serverless execution model.

    FWhy this is right: Fargate runs ECS containers without requiring the customer to manage the underlying servers.

    A Standard Workflow provides durable orchestration and retries, Fargate runs the long-lived container without server management, and Lambda handles short validation. Lambda's 15-minute execution limit prevents it from running the 40-minute container task.

    Open this question
  35. Question 35

    Design High-Performing Architectures

    An application must process each customer's updates in order while processing different customers concurrently. Producers send updates in order to one Amazon SQS FIFO queue; how should message groups and consumers be configured?

    Show the answer

    Correct answerC. Use each customer's ID as the message group ID and multiple consumers.

    AWhy not this: Deduplication IDs prevent duplicate sends; they do not define ordering groups or provide concurrent processing.

    BWhy not this: Separate groups for individual updates do not preserve processing order across a customer's updates.

    CWhy this is right: Grouping by customer preserves that customer's update order while allowing other customer groups to progress independently.

    DWhy not this: One shared message group serializes processing across customers rather than allowing customer-level concurrency.

    SQS FIFO preserves ordering within each message group while allowing different groups to be processed concurrently. A unique group for every update permits updates for the same customer to be processed out of order.

    Open this question
  36. Question 36

    Design High-Performing Architectures

    Which AWS service provides managed Kubernetes orchestration for applications that use Kubernetes manifests?

    Show the answer

    Correct answerA. Amazon Elastic Kubernetes Service (Amazon EKS)

    AWhy this is right: EKS provides a managed Kubernetes control plane for deploying and orchestrating Kubernetes workloads.

    BWhy not this: ECR stores container images; it does not deploy or orchestrate containers.

    CWhy not this: Fargate supplies serverless compute for containers rather than a Kubernetes orchestration control plane.

    DWhy not this: ECS provides AWS-native container orchestration rather than a Kubernetes control plane.

    Amazon EKS provides managed Kubernetes orchestration and supports Kubernetes manifests. Amazon ECS is a container orchestrator but uses ECS task and service definitions rather than the Kubernetes API.

    Open this question
  37. Question 37

    Design High-Performing Architectures

    An application's traffic rises sharply at unpredictable times, and new EC2 instances spend 15 minutes running startup scripts before they can serve requests. The company wants new capacity to serve sooner without paying to run extra instances all the time. Which Auto Scaling feature meets these requirements?

    Show the answer

    Correct answerA. Add a warm pool of pre-initialized instances kept in the Stopped state.

    AWhy this is right: Warm pool instances have already initialized, so scaling out only starts them, and stopped instances incur no instance charges.

    BWhy not this: Predictive scaling forecasts recurring patterns and cannot anticipate spikes that do not repeat.

    CWhy not this: Scheduled actions fit known busy times, not spikes that arrive at unpredictable times.

    DWhy not this: A lower target starts scaling earlier but adds idle capacity and does not shorten the 15-minute startup.

    A warm pool keeps instances that have already run their startup scripts in the Stopped state, so a scale-out only starts them, and stopped instances cost only their EBS storage and any Elastic IP addresses. Predictive and scheduled scaling need a recurring pattern, which unpredictable spikes do not have.

    Open this question
  38. Question 38

    Design High-Performing Architectures

    An application must perform 100 strongly consistent reads per second from a DynamoDB table. Each read retrieves one 6 KB item. What minimum provisioned read capacity is required?

    Show the answer

    Correct answerD. 200 read capacity units

    AWhy not this: This ignores rounding each 6 KB item up to two 4 KB read-capacity increments.

    BWhy not this: This capacity is insufficient; even eventually consistent reads of 6 KB items would require 100 RCUs at this rate.

    CWhy not this: This incorrectly treats each kilobyte as a separate read capacity unit.

    DWhy this is right: Each read consumes two RCUs, so 100 strongly consistent reads per second require 200 RCUs.

    A read capacity unit supports one strongly consistent read per second for an item up to 4 KB. Each 6 KB item requires two units, so 100 reads require 200 RCUs; 100 RCUs would cover only items up to 4 KB.

    Open this question
  39. Question 39

    Design High-Performing Architectures

    An RDS for PostgreSQL database has rising write latency despite low CPU usage and ample free memory. Storage throughput consistently reaches the DB instance class's EBS bandwidth limit, while IOPS remain below the provisioned storage limit. Which change will MOST directly improve write performance?

    Show the answer

    Correct answerB. Move to an instance class with higher EBS bandwidth

    AWhy not this: Additional storage IOPS cannot overcome the DB instance class's EBS bandwidth limit.

    BWhy this is right: Higher instance-level EBS bandwidth addresses the measured throughput bottleneck.

    CWhy not this: A read replica offloads reads but does not increase the writer's EBS bandwidth.

    DWhy not this: RDS Proxy manages database connections rather than increasing storage throughput.

    The DB instance's EBS bandwidth is the bottleneck, so an instance class with higher EBS bandwidth can improve throughput. Increasing provisioned IOPS does not remove an instance-level bandwidth limit.

    Open this question
  40. Question 40

    Design High-Performing Architectures

    A company moves a database from Oracle to Amazon RDS for PostgreSQL. Which migration type does this represent?

    Show the answer

    Correct answerC. Heterogeneous migration

    AWhy not this: Multi-AZ replication describes replication across Availability Zones, not conversion between database engines.

    BWhy not this: A homogeneous migration retains the same database engine at the source and destination.

    CWhy this is right: Oracle and PostgreSQL are different database engines, making the migration heterogeneous.

    DWhy not this: Cross-Region replication describes geographic data replication, not a change between database engines.

    A heterogeneous migration changes database engines, such as Oracle to PostgreSQL. A homogeneous migration retains the same engine, even when the hosting environment changes.

    Open this question
  41. Question 41

    Design High-Performing Architectures

    An application uses RDS Proxy with RDS for MySQL. Monitoring shows extensive session pinning after the application starts storing request-specific state in database session variables. Which change will BEST improve connection reuse?

    Show the answer

    Correct answerC. Remove reliance on request-specific session variables

    AWhy not this: Multi-AZ improves availability but does not remove the session-state dependency.

    BWhy not this: Read replicas provide read capacity but do not eliminate session state that causes connections to remain pinned.

    CWhy this is right: Removing session-specific state allows the proxy to reuse database connections more effectively.

    DWhy not this: Provisioned IOPS affects storage performance, not connection reuse or session pinning.

    Session-specific state can pin a client session to a database connection, limiting RDS Proxy's connection reuse. Removing that dependency improves multiplexing; adding read replicas does not remove the session-pinning cause.

    Open this question
  42. Question 42

    Design High-Performing Architectures

    An application uses Amazon DynamoDB Accelerator (DAX) for product reads. Checkout must retrieve the latest successfully written price, while product browsing can tolerate stale prices. Which approach BEST meets these requirements?

    Show the answer

    Correct answerD. Use strongly consistent reads for checkout requests.

    AWhy not this: Eventually consistent reads can return stale prices and do not meet the checkout requirement.

    BWhy not this: A shorter TTL reduces the stale-data window but does not guarantee current values.

    CWhy not this: Additional DAX nodes increase capacity, not the consistency of cached values.

    DWhy this is right: DAX passes strongly consistent reads to DynamoDB, which returns the latest successfully written value.

    DAX passes strongly consistent reads through to DynamoDB without serving them from its cache. Reducing the cache TTL limits how long stale values remain cached but cannot guarantee the latest successfully written price.

    Open this question
  43. Question 43

    Design High-Performing Architectures

    Which service provides an in-memory cache for frequently requested Amazon RDS query results?

    Show the answer

    Correct answerA. Amazon ElastiCache

    AWhy this is right: Applications can store frequently requested query results in ElastiCache to avoid repeated database queries.

    BWhy not this: Aurora is a relational database, not a separate query-result caching service.

    CWhy not this: RDS Proxy manages database connections rather than caching query results.

    DWhy not this: Redshift is a data warehouse for analytics, not an application query-result cache.

    Amazon ElastiCache provides an in-memory data store that applications can use to cache query results. Amazon RDS Proxy pools database connections; it does not cache query results.

    Open this question
  44. Question 44

    Design High-Performing Architectures

    A fraud detection application must find connections between accounts, devices, and payment recipients by traversing a variable number of relationships. Which database service is BEST suited to these queries?

    Show the answer

    Correct answerA. Amazon Neptune

    AWhy this is right: Neptune provides a graph model and query capabilities for traversing connected entities.

    BWhy not this: DynamoDB supports key-value and document access, not native variable-depth graph traversals.

    CWhy not this: Aurora supports relational joins, but a graph database better fits variable-depth relationship traversals.

    DWhy not this: DocumentDB stores documents rather than providing a native graph traversal model.

    Amazon Neptune is a graph database designed for querying connected entities and traversing relationships. Aurora can represent relationships in tables, but variable-depth traversals are more naturally served by a graph database.

    Open this question
  45. Question 45

    Design High-Performing Architectures

    A company is moving an Oracle database to Amazon RDS and wants to minimize application changes. Most business logic resides in Oracle PL/SQL packages, although the tables use standard relational data types. Which database engine BEST meets the requirement?

    Show the answer

    Correct answerC. Amazon RDS for Oracle

    AWhy not this: PostgreSQL supports procedural logic, but Oracle PL/SQL packages require conversion.

    BWhy not this: MySQL compatibility does not provide compatibility with Oracle PL/SQL packages.

    CWhy this is right: Keeping the Oracle engine avoids converting the application's Oracle PL/SQL packages.

    DWhy not this: MariaDB supports relational tables but does not directly preserve Oracle PL/SQL package compatibility.

    Amazon RDS for Oracle preserves compatibility with Oracle PL/SQL packages, minimizing changes to database business logic. PostgreSQL supports procedural programming, but its PL/pgSQL language does not make existing Oracle packages directly compatible.

    Open this question
  46. Question 46

    Design High-Performing Architectures

    A SaaS provider must offer one internal API, which runs behind a Network Load Balancer, to hundreds of customer VPCs. Several customer VPCs use CIDR blocks that overlap the provider's VPC, and customers must not reach any other provider resources. Which solution meets these requirements?

    Show the answer

    Correct answerD. Publish the API as an AWS PrivateLink endpoint service

    AWhy not this: VPC peering cannot connect VPCs with overlapping CIDR blocks and exposes the whole VPC.

    BWhy not this: A transit gateway routes between whole networks, which fails with overlapping CIDR blocks and exposes more than the API.

    CWhy not this: VPN connections join networks rather than exposing a single service, and overlapping CIDR blocks still break routing.

    DWhy this is right: PrivateLink exposes only the service behind the load balancer and works with overlapping CIDR blocks.

    AWS PrivateLink lets each customer create an interface endpoint in its own VPC that reaches only the provider's Network Load Balancer, and it works even when CIDR blocks overlap. VPC peering and transit gateways route between whole networks, so they need nonoverlapping CIDR blocks and expose more than the one API.

    Open this question
  47. Question 47

    Design High-Performing Architectures

    A provider exposes a TCP service through a Network Load Balancer to customers whose VPC CIDR blocks overlap the provider's CIDR block. Customers need private access only to that service without changing IP addresses; which design meets these requirements?

    Show the answer

    Correct answerB. Publish an endpoint service for customer interface endpoints.

    AWhy not this: VPC peering cannot connect VPCs with overlapping CIDR blocks.

    BWhy this is right: PrivateLink connects customer interface endpoints to the NLB-backed service despite overlapping CIDR blocks.

    CWhy not this: A transit gateway does not resolve overlapping VPC address spaces or provide service-specific access by itself.

    DWhy not this: A Site-to-Site VPN alone does not resolve overlapping address spaces between the connected networks.

    AWS PrivateLink exposes an NLB-backed endpoint service through interface endpoints and supports overlapping VPC CIDR blocks. VPC peering requires nonoverlapping CIDR blocks and provides network connectivity rather than service-specific access.

    Open this question
  48. Question 48

    Design High-Performing Architectures

    A company serves api.example.com and shop.example.com from one HTTPS listener on a single load balancer. Requests for each domain must go to that domain's own target group. Which configuration meets this requirement?

    Show the answer

    Correct answerB. Host-based listener rules on an Application Load Balancer

    AWhy not this: Path rules match the URL path, which does not tell the two domains apart.

    BWhy this is right: Host-header rules match each domain name and forward its requests to the matching target group.

    CWhy not this: An NLB listener forwards to one target group and does not read the HTTP Host header.

    DWhy not this: Sticky sessions keep a client on the same target but do not choose a target group by domain.

    Application Load Balancer listener rules can match the Host header, so each domain is forwarded to its own target group, and the listener serves the right certificate for each domain through SNI. A Network Load Balancer can present several certificates, but it forwards each listener to one target group without reading HTTP headers.

    Open this question
  49. Question 49

    Design High-Performing Architectures

    An HTTPS application requires a fixed public IPv4 address per enabled Availability Zone, path-based routing to microservices, and AWS WAF inspection. TLS must terminate on an Application Load Balancer, and the company will not operate proxy instances. Which load balancing design meets these requirements?

    Show the answer

    Correct answerC. An internet-facing Network Load Balancer with TCP listeners targeting an Application Load Balancer

    AWhy not this: A Network Load Balancer alone cannot perform HTTP path-based routing or integrate with AWS WAF.

    BWhy not this: An Application Load Balancer cannot use Elastic IP addresses; assigning them to subnets does not provide fixed frontend addresses.

    CWhy this is right: The Network Load Balancer supplies fixed addresses while the Application Load Balancer handles TLS, WAF, and path routing.

    DWhy not this: Placing the Application Load Balancer first leaves its changing public IP addresses exposed to clients.

    A Network Load Balancer provides static public IP addresses and can forward TCP traffic to an Application Load Balancer, which terminates TLS, applies AWS WAF inspection, and routes by path. An Application Load Balancer alone cannot be assigned Elastic IP addresses.

    Open this question
  50. Question 50

    Design High-Performing Architectures

    A company runs stable and candidate versions of an HTTP application in separate target groups behind an Application Load Balancer. It wants approximately 10% of requests sent to the candidate version without changing application code. Which configuration should a solutions architect use?

    Show the answer

    Correct answerB. A forward action with target group weights of 90 and 10

    AWhy not this: Least outstanding requests selects targets within a target group, not the percentage of traffic sent to each group.

    BWhy this is right: Weighted forwarding distributes requests between the stable and candidate target groups in the desired approximate proportions.

    CWhy not this: Health check intervals affect failure detection speed, not the proportion of requests assigned to a healthy target group.

    DWhy not this: Host-header routing requires a matching hostname and does not randomly allocate a percentage of ordinary requests.

    An Application Load Balancer forward action can distribute requests among target groups according to configured weights. Least outstanding requests selects targets within a target group; it does not set the traffic split between application versions.

    Open this question