Curated

Design Resilient Architectures (2.1–2.2)

0 votes

Questions83

  1. Question 1

    Design Resilient Architectures

    EC2 workers in an Auto Scaling group process SQS messages with approximately equal processing times, but spend most of their time waiting for external responses. Arrival rates are unpredictable. Which scaling strategy BEST keeps queue waiting time near a target?

    Show the answer

    Correct answerB. Use target tracking based on visible messages per worker.

    AWhy not this: CPU utilization can stay low during external waits and fail to reflect increasing queue delays.

    BWhy this is right: Visible messages divided by worker count measures outstanding work relative to processing capacity.

    CWhy not this: A schedule based on historical peaks cannot respond reliably to unpredictable arrival rates.

    DWhy not this: Total backlog does not account for worker count and is not a suitable proportional target-tracking utilization metric.

    Backlog per worker relates outstanding work to available processing capacity, making it suitable for target tracking. CPU utilization can remain low while workers wait for external responses, even when the queue is growing.

    Open this question
  2. Question 2

    Design Resilient Architectures

    An order workflow reserves inventory, charges payment, and arranges shipping through separate microservices. Failed steps require retries, and a shipping failure must trigger a refund and inventory release without adding coordination logic to the microservices. Which design BEST meets these requirements?

    Show the answer

    Correct answerD. Use AWS Step Functions to coordinate steps and invoke compensating actions.

    AWhy not this: A shared queue distributes work but does not manage dependencies or compensate for completed steps.

    BWhy not this: EventBridge rules route events but do not by themselves coordinate stateful rollback across services.

    CWhy not this: SNS fanout delivers notifications but does not coordinate ordered steps, retries, and compensating actions.

    DWhy this is right: Step Functions maintains workflow state and supports retries and error paths that invoke compensating actions.

    AWS Step Functions can coordinate service calls, retries, and compensating actions for a distributed workflow. EventBridge routing alone does not maintain workflow state or coordinate refunds and inventory release after a later failure.

    Open this question
  3. Question 3

    Design Resilient Architectures

    An application publishes order events, and each downstream microservice must receive only events matching its own criteria. Which design supports adding consumers without changing the publisher?

    Show the answer

    Correct answerC. Publish events to Amazon EventBridge with a routing rule for each consumer.

    AWhy not this: Consumers compete for messages in a shared queue; it does not deliver matching events independently to each service.

    BWhy not this: Invoking every consumer does not provide the required selective event delivery.

    CWhy this is right: EventBridge rules filter event content and route matching events without requiring publisher changes.

    DWhy not this: An Application Load Balancer distributes requests among targets rather than publishing events to interested consumers.

    Amazon EventBridge rules route events to targets based on event content, keeping the publisher independent of consumers. A shared SQS queue distributes messages among competing consumers rather than routing matching events to each interested microservice.

    Open this question
  4. Question 4

    Design Resilient Architectures

    Which action is an example of vertical scaling for an Amazon EC2 application?

    Show the answer

    Correct answerB. Change an EC2 instance to a larger instance type.

    AWhy not this: Adding instances increases the number of workers, which is horizontal scaling.

    BWhy this is right: A larger instance type increases the compute or memory resources of an individual instance.

    CWhy not this: Distributing requests is load balancing, not increasing an individual instance's capacity.

    DWhy not this: Deploying additional instances expands horizontally and can improve Availability Zone resilience.

    Vertical scaling increases the resources available to an individual instance by using a larger instance type. Adding instances is horizontal scaling, which increases capacity by expanding the number of workers.

    Open this question
  5. Question 5

    Design Resilient Architectures

    A support application must locate names, email addresses, and phone numbers in incoming English chat messages before storing them. Which managed capability returns character offsets for these sensitive values without training a model?

    Show the answer

    Correct answerD. Amazon Comprehend PII detection

    AWhy not this: Macie discovers sensitive data in S3 objects, not incoming messages before they are stored.

    BWhy not this: Custom entity recognition requires a custom model; pretrained PII detection already supports the requested information types.

    CWhy not this: Textract extracts text from documents; it does not classify these values as personal information.

    DWhy this is right: PII detection identifies supported personal information in text and returns its offsets without custom training.

    Amazon Comprehend PII detection identifies supported personal information in text and returns character offsets using a pretrained model. Macie discovers sensitive data in Amazon S3, rather than inspecting incoming chat messages before storage.

    Open this question
  6. Question 6

    Design Resilient Architectures

    A company runs its workloads in one AWS Region. Video editors in a distant metro area work from a studio on wired connections and need single-digit millisecond latency to Amazon EC2 editing workstations. A factory in a country with no AWS Region must keep its production data on premises while using the same AWS APIs and tools. Which infrastructure choices meet these requirements? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Deploy the editing workstations in an AWS Local Zone in the editors' metro area.C. Install AWS Outposts at the factory.

    AWhy this is right: A Local Zone extends the Region with EC2 capacity near the metro area, giving nearby users single-digit millisecond latency.

    BWhy not this: Wavelength Zones serve devices on carriers' 5G networks, not wired studio users.

    CWhy this is right: Outposts runs AWS infrastructure and APIs on the customer's premises, keeping the data on site.

    DWhy not this: Edge locations cache and deliver content; they do not host EC2 workstations.

    EWhy not this: Every Availability Zone is in the parent Region, so the data would leave the factory and the country.

    AWS Local Zones place compute such as EC2 close to large metro areas for single-digit millisecond latency to local users. AWS Outposts brings AWS infrastructure, APIs and tools into a customer's own site, so data can stay on premises. Wavelength Zones sit inside carriers' 5G networks for mobile devices, edge locations deliver content rather than host EC2 workstations, and another Availability Zone is still in the parent Region.

    Open this question
  7. Question 7

    Design Resilient Architectures

    A news application must generate spoken versions of articles stored as text without managing speech synthesis servers. Which AWS service should the application use?

    Show the answer

    Correct answerC. Amazon Polly

    AWhy not this: Transcribe converts speech into text rather than generating speech from articles.

    BWhy not this: Translate converts text between languages rather than producing spoken audio.

    CWhy this is right: Polly synthesizes speech from text without requiring the application to manage speech synthesis servers.

    DWhy not this: Lex builds conversational interfaces rather than serving as a dedicated article-to-speech service.

    Amazon Polly converts text into lifelike speech as a managed service. Amazon Transcribe performs the reverse operation: it converts speech into text.

    Open this question
  8. Question 8

    Design Resilient Architectures

    An application runs in several AWS Regions. Which Amazon Route 53 routing policy directs users to a healthy regional endpoint based on the lowest network latency?

    Show the answer

    Correct answerB. Latency-based routing

    AWhy not this: Failover routing switches between primary and secondary resources rather than comparing regional latency.

    BWhy this is right: Latency-based routing uses latency data to direct users to an appropriate healthy regional endpoint.

    CWhy not this: Geolocation routing uses the user's geographic location rather than the latency to regional endpoints.

    DWhy not this: Weighted routing distributes responses according to assigned weights rather than network latency.

    Latency-based routing selects a healthy endpoint in the Region that provides the best latency for the user. Geolocation routing selects endpoints according to the user's geographic location, not measured network latency.

    Open this question
  9. Question 9

    Design Resilient Architectures

    Which Amazon RDS deployment provides a synchronously replicated standby in another Availability Zone with automatic failover?

    Show the answer

    Correct answerD. A Multi-AZ DB instance deployment

    AWhy not this: Automated backups support restoration but do not provide a running standby or automatic Availability Zone failover.

    BWhy not this: A cross-Region read replica uses asynchronous replication and is not an automatically failing-over Multi-AZ standby.

    CWhy not this: Manual snapshots are recovery points, not running standby instances.

    DWhy this is right: A Multi-AZ DB instance deployment provides synchronous standby replication and automatic failover across Availability Zones.

    An RDS Multi-AZ DB instance deployment maintains a synchronous standby in another Availability Zone and supports automatic failover. A cross-Region read replica uses asynchronous replication and is not the deployment's automatic standby.

    Open this question
  10. Question 10

    Design Resilient Architectures

    A CloudFormation-managed Auto Scaling group must replace instances in batches while keeping at least four serving traffic; new instances must finish application initialization before the next batch starts. Failed initialization must automatically roll back the stack update without a custom deployment controller. Which configuration meets these requirements?

    Show the answer

    Correct answerA. Use an UpdatePolicy with rolling updates, MinInstancesInService, WaitOnResourceSignals, and application readiness signals.

    AWhy this is right: Rolling updates preserve minimum capacity, wait for readiness signals, and fail the update if required signals do not arrive.

    BWhy not this: Scheduled scaling does not gate replacement batches on application readiness or trigger stack rollback on initialization failure.

    CWhy not this: A CreationPolicy alone does not govern rolling replacement of instances during updates to an existing Auto Scaling group.

    DWhy not this: Configuration remediation does not coordinate replacement batches or gate CloudFormation progress on application readiness.

    A rolling UpdatePolicy controls batch replacement and minimum in-service capacity. Waiting for application readiness signals gates progress, and a signal timeout fails the update so CloudFormation can roll back; a CreationPolicy alone does not control rolling updates to an existing group.

    Open this question
  11. Question 11

    Design Resilient Architectures

    An application runs behind Application Load Balancers in two AWS Regions, and either Region can serve all requests. Clients require fixed public IP addresses that their firewalls can allowlist and automatic routing away from an unhealthy Region. Which solution meets these requirements?

    Show the answer

    Correct answerA. AWS Global Accelerator with both load balancers as endpoints

    AWhy this is right: Global Accelerator provides static public IP addresses and health-based routing across regional endpoints.

    BWhy not this: Elastic IP addresses cannot be associated directly with Application Load Balancers.

    CWhy not this: A CloudFront distribution does not provide dedicated fixed public IP addresses for client allowlisting.

    DWhy not this: Latency-based DNS routing does not provide fixed public IP addresses for Application Load Balancers.

    AWS Global Accelerator provides static anycast IP addresses and routes traffic to healthy regional endpoints. Route 53 can provide health-aware DNS routing, but it does not give Application Load Balancers fixed public IP addresses.

    Open this question
  12. Question 12

    Design Resilient Architectures

    A company requires Amazon S3 bucket versioning to remain enabled even if administrators disable it manually. Which solution automatically detects and corrects this configuration change?

    Show the answer

    Correct answerD. Create an AWS Config rule with an AWS Systems Manager Automation remediation action.

    AWhy not this: S3 request errors do not reliably indicate that versioning was disabled, and a dashboard does not remediate configuration.

    BWhy not this: CloudTrail provides an audit record, but notifications alone do not restore the required configuration.

    CWhy not this: Backups support recovery but do not detect or correct changes to bucket versioning.

    DWhy this is right: AWS Config detects noncompliance and can automatically invoke a remediation runbook to enable versioning.

    AWS Config can evaluate bucket versioning and automatically invoke a Systems Manager Automation runbook to restore compliance. CloudTrail records configuration changes, but a notification alone does not correct them.

    Open this question
  13. Question 13

    Design Resilient Architectures

    A company exposes an Amazon API Gateway REST API to business partners. Each partner needs a separate request quota and throttling target. What should the company configure?

    Show the answer

    Correct answerA. Usage plans associated with partner API keys

    AWhy this is right: Usage plans provide per-client throttling targets and quotas through associated API keys.

    BWhy not this: IAM permissions control which API actions a partner can invoke, not request quotas.

    CWhy not this: Reserved concurrency controls function concurrency, not per-partner API request quotas.

    DWhy not this: Listener rules route requests; they do not provide API Gateway usage quotas.

    API Gateway usage plans associate API keys with request quotas and throttling targets. Lambda reserved concurrency limits concurrent function executions, not requests for individual partners. Usage-plan limits are best-effort, not hard ceilings.

    Open this question
  14. Question 14

    Design Resilient Architectures

    An Amazon CloudFront distribution caches a public product page whose language depends on the Accept-Language header. Users sometimes receive the wrong language. Which change preserves caching while separating language variants?

    Show the answer

    Correct answerD. Include Accept-Language in the cache policy's cache key

    AWhy not this: A shorter TTL reduces how long a wrong variant persists but does not distinguish languages.

    BWhy not this: Compression changes transfer size, not how language variants are distinguished.

    CWhy not this: Forwarding a header without including it in the cache key does not separate cached language variants.

    DWhy this is right: The cache key must include the value that determines which language representation is returned.

    Including Accept-Language in the cache key creates separate cached variants for different header values. Forwarding the header through an origin request policy alone does not make CloudFront distinguish those variants in its cache.

    Open this question
  15. Question 15

    Design Resilient Architectures

    An application retrieves Amazon RDS for MySQL credentials from AWS Secrets Manager and caches them briefly. During automatic rotation, previously retrieved credentials must remain valid while applications adopt the new credentials. Which approach BEST meets this requirement?

    Show the answer

    Correct answerC. Use alternating-users rotation for the database secret

    AWhy not this: Changing the same database user's password can invalidate cached credentials used for new connections.

    BWhy not this: Parameter expiration does not rotate the database password or maintain overlapping credentials.

    CWhy this is right: Alternating database users allows old and new credentials to overlap during the rotation transition.

    DWhy not this: KMS key rotation rotates encryption key material, not database passwords.

    Alternating-users rotation switches between database users, allowing the previous user's credentials to remain valid during the transition. Single-user rotation changes the same user's password, so cached old credentials can fail for new connections.

    Open this question
  16. Question 16

    Design Resilient Architectures

    Which AWS service provides managed SFTP access for partners uploading files directly into Amazon S3?

    Show the answer

    Correct answerA. AWS Transfer Family

    AWhy this is right: Transfer Family supports managed SFTP uploads to Amazon S3.

    BWhy not this: S3 File Gateway provides NFS and SMB access, not SFTP endpoints.

    CWhy not this: DataSync moves data between storage locations; it does not expose a partner-facing SFTP endpoint.

    DWhy not this: API Gateway manages APIs, not SFTP file transfers.

    AWS Transfer Family provides managed SFTP endpoints backed by Amazon S3 or Amazon EFS. AWS DataSync transfers data between storage locations but does not provide an SFTP endpoint for partners.

    Open this question
  17. Question 17

    Design Resilient Architectures

    An application repeatedly reads product records from a database, but many records are rarely requested. The team wants to cache only requested records and can tolerate a slower first read. Which caching strategy BEST fits?

    Show the answer

    Correct answerB. Cache-aside loading when a requested record is missing

    AWhy not this: Write-through populates records during writes, even when those records are never requested.

    BWhy this is right: Cache-aside fetches and caches a record on demand after a cache miss.

    CWhy not this: Preloading the entire catalog consumes cache capacity for rarely requested records.

    DWhy not this: Read replicas offload reads but do not implement the requested selective caching strategy.

    Cache-aside loads a record into the cache after a cache miss, so only requested records consume cache space. Write-through caching populates the cache during writes, including records that might never be read.

    Open this question
  18. Question 18

    Design Resilient Architectures

    Which practices allow a stateless microservice to handle successive requests on different instances? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Store session data in a shared external data store.D. Include necessary request context in each request.

    AWhy this is right: An external store makes session data available regardless of which instance handles the request.

    BWhy not this: Session data held only in memory is unavailable to other instances.

    CWhy not this: Required stickiness ties a session to an instance rather than removing instance dependence.

    DWhy this is right: Each instance receives the context needed to process the request without relying on previous local requests.

    External session storage and self-contained requests let any healthy instance handle a request. Instance-local sessions and required stickiness create dependence on a particular instance.

    Open this question
  19. Question 19

    Design Resilient Architectures

    Which action is an example of horizontal scaling for an application running on Amazon EC2?

    Show the answer

    Correct answerB. Add more EC2 instances to serve application traffic.

    AWhy not this: Increasing volume IOPS improves storage performance rather than adding application instances.

    BWhy this is right: Adding instances increases the number of compute resources sharing the workload.

    CWhy not this: Increasing volume capacity expands storage rather than the application's instance count.

    DWhy not this: A larger instance increases capacity within one server, which is vertical scaling.

    Horizontal scaling adds instances to distribute work across more compute resources. Replacing an instance with a larger type is vertical scaling because it increases the capacity of one instance.

    Open this question
  20. Question 20

    Design Resilient Architectures

    An AWS Lambda consumer updates a DynamoDB balance for each payment event, and failed deliveries or historical replays can deliver the same event again. Events have stable unique IDs, and processing must remain safe across concurrent invocations and crashes; which design meets these requirements?

    Show the answer

    Correct answerB. Atomically record each new event ID and update the balance in a DynamoDB transaction.

    AWhy not this: A crash after updating the balance can cause a retry to apply the payment again.

    BWhy this is right: A conditional insert and balance update in one transaction prevent duplicate effects and partial completion.

    CWhy not this: Lambda memory is neither durable nor shared across concurrent execution environments.

    DWhy not this: A crash after recording the ID can prevent a payment from ever updating the balance.

    A transaction with a conditional event-ID insert makes the deduplication record and balance update atomic. Separate writes leave a crash window that can either lose an update or apply it twice.

    Open this question
  21. Question 21

    Design Resilient Architectures

    An application uploads images to Amazon S3 and polls the bucket every minute to find images needing thumbnails. Which change would trigger processing when uploads complete without periodic polling?

    Show the answer

    Correct answerD. Configure an S3 ObjectCreated notification to invoke AWS Lambda.

    AWhy not this: Lifecycle rules manage object transitions and expiration, not thumbnail processing.

    BWhy not this: Scheduled object listing still checks periodically instead of responding to an upload event.

    CWhy not this: CloudFront accelerates content delivery but does not trigger thumbnail generation on upload.

    DWhy this is right: An object-created event triggers processing in response to the upload.

    S3 ObjectCreated notifications can invoke Lambda in response to completed object creation. More frequent scheduled listing remains polling rather than reacting to an event.

    Open this question
  22. Question 22

    Design Resilient Architectures

    Inventory and ordering microservices share database tables, so inventory schema changes frequently require coordinated releases. Which change BEST allows independent releases while preserving inventory's control over its data?

    Show the answer

    Correct answerB. Give inventory its own schema accessed through its service API.

    AWhy not this: Read replicas retain the shared schema dependency and do not establish data ownership.

    BWhy this is right: An API provides a stable contract while inventory controls its internal schema and data.

    CWhy not this: Independent container deployments do not remove coupling caused by direct access to shared tables.

    DWhy not this: Separate load balancers isolate request routing, not database schema dependencies.

    Service-owned data accessed through an API hides the internal schema and reduces release coupling. Separate ECS services enable independent compute scaling but do not remove dependencies on shared tables.

    Open this question
  23. Question 23

    Design Resilient Architectures

    A subnet route table contains 10.40.0.0/16 to a deleted VPC peering connection, 10.0.0.0/8 to a transit gateway, and a default route to a NAT gateway. The transit gateway has working connectivity to all of 10.40.0.0/16; which change restores access to that network while preserving other routing?

    Show the answer

    Correct answerC. Replace the 10.40.0.0/16 route target with the transit gateway.

    AWhy not this: The added route restores access only to 10.40.0.0/24, not the entire required network.

    BWhy not this: Recreating the broader route does not override the more specific route to the deleted connection.

    CWhy this is right: The specific route will select a working target for the entire destination network without changing other destinations.

    DWhy not this: The default route cannot override the more specific route to the deleted peering connection.

    Longest prefix matching selects the 10.40.0.0/16 route even when its target is unavailable. Replacing its target restores the full destination range; changing the default route cannot override a more specific route.

    Open this question
  24. Question 24

    Design Resilient Architectures

    A company requires service restoration within two hours of a regional disaster and can accept losing no more than 15 minutes of committed transactions. What recovery point objective should the architect specify?

    Show the answer

    Correct answerB. 15 minutes

    AWhy not this: Zero minutes would require no committed transaction loss, which is stricter than the stated requirement.

    BWhy this is right: The company explicitly permits losing at most 15 minutes of committed transactions.

    CWhy not this: Two hours describes the permitted restoration time, not the permitted data loss.

    DWhy not this: One hour of data loss would exceed the company's stated tolerance.

    The recovery point objective defines the maximum acceptable data loss measured in time, so it is 15 minutes. The two-hour restoration requirement is the recovery time objective.

    Open this question
  25. Question 25

    Design Resilient Architectures

    A workload continuously replicates data to another Region and has a 10-minute RTO; tests show that deploying its application tier takes 35 minutes, but scaling a running tier takes four minutes. Which DR strategy meets the RTO at the lowest ongoing compute cost?

    Show the answer

    Correct answerC. Warm standby with a reduced-capacity application tier running

    AWhy not this: Full-capacity active-active operation uses more ongoing compute than the reduced-capacity standby requires.

    BWhy not this: Keeping only the database running still requires the 35-minute application deployment.

    CWhy this is right: The running application tier can scale in four minutes without waiting for a 35-minute deployment.

    DWhy not this: Deploying the application after a disaster already exceeds the RTO, even before restoring data.

    Warm standby keeps a functional, reduced-capacity environment running and can scale within the tested RTO. Pilot light requires deploying the application tier, which takes longer than the allowed recovery time.

    Open this question
  26. Question 26

    Design Resilient Architectures

    What does a VPC route table determine?

    Show the answer

    Correct answerA. Where network traffic from a subnet is directed

    AWhy this is right: Route table entries specify targets for traffic matching destination address ranges.

    BWhy not this: Security groups control permitted connections for associated network interfaces.

    CWhy not this: DNS records determine how names resolve to addresses.

    DWhy not this: A load balancer distributes requests among application targets.

    A route table maps destination ranges to targets that direct network traffic. Security groups control permitted connections rather than selecting traffic destinations.

    Open this question
  27. Question 27

    Design Resilient Architectures

    An order-processing worker consumes messages from an Amazon SQS standard queue, which can deliver a message more than once. Which design prevents repeated deliveries from creating duplicate orders?

    Show the answer

    Correct answerD. Atomically record each request ID and create an order only once.

    AWhy not this: More workers increase processing capacity but do not prevent duplicate business operations.

    BWhy not this: Deleting before processing risks losing an order if the worker fails and does not reliably prevent duplicates.

    CWhy not this: A longer timeout can reduce premature redelivery but cannot guarantee that duplicate messages never arrive.

    DWhy this is right: Atomic deduplication ensures repeated processing of the same request does not create another order.

    An idempotent consumer uses a stable request ID and atomic processing to prevent duplicate business effects. A longer visibility timeout reduces some repeat deliveries but does not eliminate the standard queue's at-least-once delivery behavior.

    Open this question
  28. Question 28

    Design Resilient Architectures

    Several analytics applications must independently consume the same ordered stream of device events and replay events from any point within the previous seven days. Which design meets these requirements with the LEAST custom coordination?

    Show the answer

    Correct answerB. Use Amazon Kinesis Data Streams with seven-day retention.

    AWhy not this: Separate queues isolate consumers, but deleting processed messages removes their availability for arbitrary replay.

    BWhy this is right: Independent consumers can read retained records again; ordering is maintained within each shard.

    CWhy not this: Consumers sharing a queue compete for messages rather than each receiving the full stream, and deleted messages cannot be replayed.

    DWhy not this: Rules route events, but rules alone do not provide a retained, ordered stream with independent consumer positions.

    Kinesis Data Streams retains ordered records within shards and lets consumers independently read and replay them during the retention period. SNS with separate SQS queues provides fan-out, but consumed and deleted messages cannot be reread from an arbitrary position.

    Open this question
  29. Question 29

    Design Resilient Architectures

    An order API must accept work while processing workers are unavailable, retry work after worker crashes, and isolate repeatedly failing orders. Which design elements meet these requirements? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. An Amazon SQS queue between the API and workersC. An SQS dead-letter queue with a redrive policyE. An SQS visibility timeout covering normal processing

    AWhy this is right: The queue durably buffers accepted work independently of worker availability.

    BWhy not this: A load balancer routes requests to available targets but does not retain work during a worker outage.

    CWhy this is right: A redrive policy moves repeatedly unsuccessful messages to a separate queue for investigation.

    DWhy not this: Caching completed orders does not buffer pending work or isolate messages that repeatedly fail.

    EWhy this is right: A message becomes available again if the worker fails to delete it before the visibility timeout expires.

    SQS buffers work during outages, its visibility timeout permits retries after worker failure, and a dead-letter queue isolates messages after repeated unsuccessful receives. An Application Load Balancer distributes requests but does not durably buffer work when workers are unavailable.

    Open this question
  30. Question 30

    Design Resilient Architectures

    Which compute service can run a short function when an object reaches Amazon S3, without provisioning servers?

    Show the answer

    Correct answerC. AWS Lambda

    AWhy not this: EC2 provides virtual servers whose capacity and operating systems must be managed.

    BWhy not this: EKS on EC2 runs Kubernetes workloads using EC2 worker capacity that must be provisioned.

    CWhy this is right: Lambda supports S3 event triggers and manages the compute infrastructure for function execution.

    DWhy not this: ECS on EC2 orchestrates containers on provisioned EC2 instances rather than directly providing event-driven function execution.

    AWS Lambda runs event-driven functions without requiring server provisioning and can respond to S3 object-created events. ECS on EC2 runs containers but still requires EC2 compute capacity to be provisioned and managed.

    Open this question
  31. Question 31

    Design Resilient Architectures

    A company must run portable Linux processing images with conflicting library versions; jobs last two hours and require NVIDIA GPUs and a privileged host-monitoring container. Which deployment meets these requirements while minimizing custom container orchestration?

    Show the answer

    Correct answerB. Amazon ECS tasks on GPU-enabled EC2 instances

    AWhy not this: Container packaging does not remove Lambda's 15-minute invocation limit or provide GPU and privileged-host access.

    BWhy this is right: ECS manages container placement while EC2 supplies GPU capacity and support for privileged containers.

    CWhy not this: Fargate does not support the required GPUs or privileged containers.

    DWhy not this: EC2 can satisfy the runtime requirements, but manually managing containers adds orchestration work.

    ECS on GPU-enabled EC2 instances combines managed container scheduling with GPU access and privileged containers. Fargate removes host management but does not support GPU workloads or privileged containers; Lambda also cannot run two-hour invocations.

    Open this question
  32. Question 32

    Design Resilient Architectures

    Two Linux microservices require incompatible versions of a user-space library but can share the same kernel. The team wants reproducible deployments without maintaining a separate guest operating system for each service. Which approach BEST fits?

    Show the answer

    Correct answerD. Package each service and its dependencies in a container.

    AWhy not this: Moving application logic into a database does not solve packaging requirements for the existing Linux microservices.

    BWhy not this: A shared host environment does not isolate the incompatible library requirements.

    CWhy not this: Virtual machine images isolate dependencies but require a separate guest operating system for each virtual machine.

    DWhy this is right: Separate container images isolate the library dependencies while sharing the host operating system kernel.

    Containers package separate user-space dependencies while sharing the host kernel, supporting reproducible deployment without a guest OS per service. Separate virtual machines isolate dependencies too, but each introduces its own guest operating system.

    Open this question
  33. Question 33

    Design Resilient Architectures

    Application instances in private subnets across two Availability Zones call an external payment API through one zonal public NAT gateway. Which change preserves outbound connectivity for surviving instances if either Availability Zone fails?

    Show the answer

    Correct answerB. Place a NAT gateway in each Zone and route each private subnet through its local gateway

    AWhy not this: An internet gateway does not provide outbound IPv4 internet connectivity to instances that have only private IPv4 addresses.

    BWhy this is right: Each surviving Zone retains its own independent outbound path through its local NAT gateway.

    CWhy not this: Both gateways would remain dependent on the same Availability Zone, leaving a shared zonal failure point.

    DWhy not this: Moving the shared egress path changes its location but retains a single Availability Zone dependency.

    A zonal NAT gateway in each Availability Zone, with local private-subnet routing, removes the shared zonal egress dependency. Adding another NAT gateway in the same Zone still leaves both gateways exposed to that Zone's failure.

    Open this question
  34. Question 34

    Design Resilient Architectures

    A stateless website runs on one EC2 instance. Which design removes that instance as a single point of failure?

    Show the answer

    Correct answerC. Place instances in separate Availability Zones behind an Application Load Balancer

    AWhy not this: Snapshots preserve data for restoration but do not supply an active instance to serve requests.

    BWhy not this: A persistent public IP address does not keep the application running when its only instance fails.

    CWhy this is right: The load balancer can direct requests to a surviving instance if another instance or its Availability Zone fails.

    DWhy not this: Additional capacity does not remove dependence on a single running instance.

    Instances in separate Availability Zones behind an Application Load Balancer provide redundant serving capacity and traffic distribution. Snapshots support recovery but do not provide a running replacement when the instance fails.

    Open this question
  35. Question 35

    Design Resilient Architectures

    A retailer counts checkout as available only when an order is successfully confirmed within 3 seconds; failed requests often return quickly. Which metric BEST measures compliance with this requirement?

    Show the answer

    Correct answerA. Percentage of checkout requests successfully confirmed within 3 seconds

    AWhy this is right: This measures both successful order confirmation and the required response time for each checkout request.

    BWhy not this: A fast failed request meets the latency threshold but does not provide an available checkout experience.

    CWhy not this: Absence of an HTTP 5xx error does not establish successful order confirmation or compliance with the latency threshold.

    DWhy not this: Healthy targets indicate infrastructure readiness, not whether customers can successfully complete checkout within 3 seconds.

    The business requirement combines successful completion with a latency threshold, so the metric must measure both for each checkout request. Latency alone can count fast failures as available service.

    Open this question
  36. Question 36

    Design Resilient Architectures

    A company's ordering service must resume operation within 20 minutes after an outage begins. Which metric should the company compare with this limit during a recovery test?

    Show the answer

    Correct answerB. Elapsed time from outage start to service restoration

    AWhy not this: Request response time measures normal service performance rather than recovery duration.

    BWhy this is right: The measured outage-to-restoration interval can be compared directly with the 20-minute recovery requirement.

    CWhy not this: Backup age helps assess potential data loss rather than the duration of a service outage.

    DWhy not this: The interval between failures measures reliability frequency, not the time needed to restore service.

    A recovery time objective limits the time from disruption to restored service, so the test must measure that interval. Backup age relates to potential data loss, not how long service remains unavailable.

    Open this question
  37. Question 37

    Design Resilient Architectures

    An application runs a memory-intensive calculation that cannot be divided among instances. Its EC2 instance has insufficient memory, but larger instance types are available. Which change will allow the calculation to complete?

    Show the answer

    Correct answerD. Move the instance to a larger memory configuration.

    AWhy not this: A queue buffers work but does not increase the memory available to process each calculation.

    BWhy not this: Increasing desired capacity adds instances without increasing memory on an individual instance.

    CWhy not this: A load balancer distributes requests but cannot combine instance memory for one calculation.

    DWhy this is right: A larger memory configuration provides more memory to the single calculation.

    Vertical scaling increases the resources available to a single instance, allowing the calculation to fit in memory. Adding instances provides aggregate capacity but does not increase memory available to an indivisible calculation.

    Open this question
  38. Question 38

    Design Resilient Architectures

    A company serves public training videos from an S3 bucket in one AWS Region. Viewers worldwide repeatedly request the same videos. Which change BEST reduces viewer latency and requests reaching S3?

    Show the answer

    Correct answerC. Configure CloudFront with the bucket as its origin.

    AWhy not this: An Application Load Balancer does not provide worldwide edge caching or directly use S3 as a target.

    BWhy not this: A regional ElastiCache cluster is not a global content delivery service for S3 videos.

    CWhy this is right: CloudFront serves cached videos near viewers and reduces requests reaching the S3 origin.

    DWhy not this: Transfer Acceleration improves transfer paths but does not cache videos for repeated viewer requests.

    CloudFront caches videos at edge locations near viewers, reducing latency and requests to the S3 origin. S3 Transfer Acceleration accelerates transfers to and from S3 but does not cache repeatedly requested videos.

    Open this question
  39. Question 39

    Design Resilient Architectures

    A Linux application uses native libraries and a shared, writable POSIX file directory. It is moving from EC2 to multiple Linux tasks on AWS Fargate, and files must survive task replacement. Which migration actions meet these requirements? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Mount an Amazon EFS file system into each application task.C. Build an image containing libraries compatible with the task's OS and CPU architecture.

    AWhy not this: A virtual machine disk is not a runnable container image; the application must be packaged into a compatible image.

    BWhy this is right: EFS provides shared POSIX file access and retains files independently of task lifecycles.

    CWhy this is right: Compatible native libraries allow the application to execute in the selected task environment.

    DWhy not this: Tasks do not share their local files merely because they run in the same Availability Zone.

    EWhy not this: Ephemeral storage is local to a task and does not preserve shared files across task replacement.

    FWhy not this: An image is a deployment artifact, not a shared writable filesystem for runtime changes.

    Native libraries must match the container's operating system and CPU architecture. EFS supplies shared POSIX file storage that persists independently of tasks, whereas Fargate ephemeral storage is task-local and does not survive task replacement.

    Open this question
  40. Question 40

    Design Resilient Architectures

    A team is containerizing an application for Amazon ECS. Which AWS service provides a managed private registry for its container images?

    Show the answer

    Correct answerC. Amazon Elastic Container Registry

    AWhy not this: Secrets Manager stores sensitive configuration such as credentials, not container images.

    BWhy not this: Amazon EKS manages Kubernetes clusters rather than providing an image registry.

    CWhy this is right: Amazon ECR provides managed repositories from which container runtimes can pull images.

    DWhy not this: Amazon EFS provides shared file storage, not a managed container image registry.

    Amazon ECR stores and distributes container images in managed repositories. Amazon EKS orchestrates Kubernetes workloads; it is not a container image registry.

    Open this question
  41. Question 41

    Design Resilient Architectures

    A global multiplayer application uses UDP endpoints in two AWS Regions. Clients require fixed public IP addresses and routing to healthy regional endpoints over the AWS global network. Which service BEST meets these requirements?

    Show the answer

    Correct answerC. AWS Global Accelerator

    AWhy not this: API Gateway manages APIs but does not provide global acceleration for arbitrary UDP endpoints.

    BWhy not this: CloudFront supports HTTP-based delivery rather than arbitrary UDP application traffic.

    CWhy this is right: Global Accelerator provides static anycast IP addresses, UDP support, and health-based endpoint routing.

    DWhy not this: Latency-based DNS routing does not provide fixed anycast ingress addresses or the required AWS network routing.

    AWS Global Accelerator provides static anycast IP addresses and routes UDP or TCP traffic over the AWS global network to healthy endpoints. CloudFront accelerates HTTP-based content delivery, not arbitrary UDP application traffic.

    Open this question
  42. Question 42

    Design Resilient Architectures

    An application runs sporadic, indivisible processing jobs packaged as Linux containers, each requiring 40 minutes and 4 GB of memory. Which compute option meets these requirements without managing servers or keeping idle compute capacity?

    Show the answer

    Correct answerB. Amazon ECS on AWS Fargate

    AWhy not this: Lambda has a maximum execution timeout of 15 minutes, including functions packaged as container images.

    BWhy this is right: Fargate supports these container resource requirements and job duration without maintaining idle servers.

    CWhy not this: An Auto Scaling group still requires managing EC2 instances, even when its minimum capacity is zero.

    DWhy not this: EC2-backed ECS requires managing the underlying instances, and reserved capacity is poorly suited to sporadic jobs.

    AWS Fargate runs containers without managing servers and supports jobs lasting longer than Lambda's 15-minute limit. Packaging a Lambda function as a container image does not extend its execution timeout.

    Open this question
  43. Question 43

    Design Resilient Architectures

    A company receives files with evolving schemas in Amazon S3 and must automatically discover their schemas, maintain a shared metadata catalog, and run scheduled Apache Spark transformations. Which solution meets these requirements with the LEAST custom integration and infrastructure management?

    Show the answer

    Correct answerB. AWS Glue crawlers, Data Catalog, and ETL jobs

    AWhy not this: Athena queries data but manually defined tables do not provide automatic schema discovery or Spark ETL execution.

    BWhy this is right: Glue supplies integrated schema discovery, metadata cataloging, and managed Spark transformations.

    CWhy not this: EMR can run Spark, but custom discovery scripts and cluster operations add work compared with the integrated Glue solution.

    DWhy not this: Custom Lambda code adds cataloging work and does not provide a managed Apache Spark execution environment.

    AWS Glue integrates schema discovery, a shared Data Catalog, and serverless Spark ETL jobs. Amazon EMR supports Spark processing but would require additional discovery integration and cluster management in this design.

    Open this question
  44. Question 44

    Design Resilient Architectures

    A research team submits thousands of containerized simulation jobs with dependencies and different CPU and memory requirements. Which service provides managed job queues, dependency-aware scheduling, and compute provisioning with the LEAST custom development?

    Show the answer

    Correct answerD. AWS Batch

    AWhy not this: Step Functions orchestrates workflows but is not itself a batch scheduler with managed compute environments.

    BWhy not this: ECS runs containers, but a complete batch job queue and dependency scheduler would require additional components.

    CWhy not this: EventBridge routes events and schedules invocations rather than managing batch job dependencies and compute capacity.

    DWhy this is right: Batch queues jobs, respects job dependencies, and provisions compute resources for their resource requirements.

    AWS Batch provides job queues, dependency-aware scheduling, and compute environments for batch workloads. Amazon ECS runs containers but does not by itself provide the complete batch queueing and job-dependency scheduling layer.

    Open this question
  45. Question 45

    Design Resilient Architectures

    Linux application instances run across multiple Availability Zones and must concurrently read and update the same files using standard POSIX file operations. Which storage option meets these requirements with the LEAST operational overhead?

    Show the answer

    Correct answerB. Amazon EFS Regional

    AWhy not this: FSx for Windows File Server provides SMB storage with Windows file semantics rather than native POSIX file access.

    BWhy this is right: EFS Regional provides managed shared file storage for Linux clients across Availability Zones.

    CWhy not this: S3 provides object storage rather than a native shared file system with standard POSIX file operations.

    DWhy not this: EBS Multi-Attach cannot share a volume across Availability Zones and requires a suitable cluster-aware file system.

    Amazon EFS Regional provides a managed, shared NFS file system accessible from Linux instances across Availability Zones. EBS Multi-Attach is limited to instances in one Availability Zone and requires appropriate shared-storage coordination.

    Open this question
  46. Question 46

    Design Resilient Architectures

    A social application must find friends of friends and suggest new connections by following many-to-many relationships several levels deep with low latency. Which database meets this requirement with the least development effort?

    Show the answer

    Correct answerC. Amazon Neptune

    AWhy not this: DynamoDB answers key lookups quickly, but each hop of a traversal needs another query written in the application.

    BWhy not this: Redshift is built for analytical queries over large data sets, not low-latency traversal for each user request.

    CWhy this is right: Neptune stores relationships as graph edges and traverses several levels in one query.

    DWhy not this: Aurora PostgreSQL needs repeated self-joins for each level, which become complex and slow as depth grows.

    Amazon Neptune is a graph database that stores relationships directly and answers multi-level traversals with graph query languages such as Gremlin and openCypher. A relational database such as Aurora PostgreSQL can model the same data, but each level needs another self-join, which grows costly and complex as the depth increases.

    Open this question
  47. Question 47

    Design Resilient Architectures

    Administrators have applied different emergency patches to EC2 instances in an Auto Scaling group. Which approach restores consistent configuration while following immutable infrastructure principles?

    Show the answer

    Correct answerB. Build a tested AMI and replace instances using a new launch template version.

    AWhy not this: Individual snapshots can preserve the different configurations rather than establish a common baseline.

    BWhy this is right: A tested AMI and a new launch template version provide a consistent baseline for replacement instances.

    CWhy not this: Monitoring can reveal problems but does not remove configuration differences.

    DWhy not this: Remote patching modifies running instances rather than replacing them with a consistent image.

    Immutable infrastructure replaces instances with instances built from a consistent, tested image rather than modifying them in place. Remote patching changes existing instances and can preserve configuration drift.

    Open this question
  48. Question 48

    Design Resilient Architectures

    An immutable application release uses a parallel EC2 fleet behind an ALB and renames a database column that the current release requires. The company requires uninterrupted service and immediate rollback without restoring the shared database; which deployment approach meets these requirements?

    Show the answer

    Correct answerA. Add a compatible column, synchronize both representations, and defer removal until rollback ends.

    AWhy this is right: Compatible representations allow both releases to work until the rollback window closes and destructive cleanup is safe.

    BWhy not this: Renaming the required column breaks the old release, so retaining its fleet does not provide a working rollback.

    CWhy not this: Updating existing binaries violates immutable deployment and does not implement the required schema transition.

    DWhy not this: A snapshot requires database restoration for rollback, violating the recovery constraint.

    An additive, backward-compatible schema change lets the old and new immutable fleets operate against the shared database during deployment and rollback. Keeping the old fleet alone is insufficient if a destructive schema change has already made it unusable.

    Open this question
  49. Question 49

    Design Resilient Architectures

    Which distributed design pattern prevents repeated calls to a failing dependency while allowing periodic checks for recovery?

    Show the answer

    Correct answerD. Circuit breaker

    AWhy not this: Queue-based load leveling buffers work to smooth demand rather than detecting dependency failures and blocking calls.

    BWhy not this: Load balancing distributes requests across targets rather than temporarily blocking calls to a failing dependency.

    CWhy not this: Publish-subscribe distributes events to subscribers rather than controlling calls to an unhealthy dependency.

    DWhy this is right: A circuit breaker blocks calls after failures and permits trial requests to determine whether the dependency has recovered.

    A circuit breaker stops calls after repeated failures and later permits trial requests to detect recovery. Queue-based load leveling buffers work during demand spikes but does not itself stop calls to an unhealthy dependency.

    Open this question
  50. Question 50

    Design Resilient Architectures

    An application has regional endpoints and an Aurora cross-Region read replica; its secondary application is running but configured to use the primary database. TCP connections succeed during application failures, and recovery must support writes without manual changes; which measures are required? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Automate promotion of the cross-Region replica during regional recovery.B. Automate secondary application configuration to use the promoted database.C. Use Route 53 failover routing with application-level health checks.

    AWhy this is right: Promoting the cross-Region replica makes it writable when the primary Region is unavailable.

    BWhy this is right: The secondary must connect to the promoted database rather than continue using the unavailable primary.

    CWhy this is right: Application-level checks detect failures that successful TCP connections miss, while failover routing selects the secondary endpoint.

    DWhy not this: Equal weighting distributes normal traffic, and TCP checks would miss the stated application failures.

    EWhy not this: A read-only replica cannot accept writes merely because requests arrive through the secondary application.

    Application-level health checks support meaningful traffic failover, replica promotion enables writes, and configuration automation directs the secondary to the recovered database. TCP checks can miss application failures, and an unpromoted read replica cannot accept writes.

    Open this question