Tüm alıştırma soruları

1462 soru

Soru 1201Soru

A company is developing a ticket booking application on AWS. When a customer purchases a ticket, the system must process the payment transaction and assign a seat. To avoid double-booking and payment discrepancies, the transaction messages must be processed in the exact order they are received. The company wants to decouple the front-end application from the back-end processing service.

Which solution meets these requirements with the least operational overhead?

Cevabı ve açıklamayı göster

Cevap: Send the transaction messages to an Amazon SQS FIFO queue, and configure the back-end service to consume the messages.

Cevap

Send the transaction messages to an Amazon SQS FIFO queue, and configure the back-end service to consume the messages.
The correct answer is to use an Amazon SQS FIFO queue. FIFO (First-In-First-Out) queues guarantee that messages are processed in the exact order in which they are sent. This native capability meets the ordering requirement with zero additional application logic and minimal operational overhead, while successfully decoupling the front-end and back-end services.

Adım Adım Çözüm

1
Identify the core requirements of the system: decoupling the application components and maintaining a strict processing order of transactions.
Decoupling requires an asynchronous message queuing service (like Amazon SQS), and strict ordering requires First-In-First-Out (FIFO) delivery.
Decoupling ensures the front-end remains responsive during high load, while strict ordering prevents race conditions like double-booking.
2
Select the service that meets both requirements with the lowest operational overhead.
Amazon SQS FIFO queues natively handle message ordering and deduplication without requiring custom application logic or server management.
SQS is a fully managed service, making it the most operationally efficient choice compared to self-managed or more complex streaming solutions.

Anahtar Kavram

Using Amazon SQS FIFO queues to decouple components while ensuring strict first-in, first-out message ordering.
Soru 1202Soru

A SaaS payroll application processes employee timesheet submissions. To ensure accurate cumulative tax and overtime calculations, all timesheet update events for any given employee must be processed in the exact order they are received. These events must be delivered to 22 independent downstream microservices: a payroll calculation engine and a compliance audit system. The application experiences traffic spikes of up to 450450 events per second. Which solution meets these requirements with the least operational overhead?

Cevabı ve açıklamayı göster

Cevap: Publish the events to an Amazon SNS FIFO topic, and subscribe 22 Amazon SQS FIFO queues to the topic, with 11 queue for each microservice. Enable the high-throughput FIFO feature on both the SNS topic and SQS queues, and use the employee ID as the Message Group ID.

Cevap

Publish the events to an Amazon SNS FIFO topic and subscribe 22 Amazon SQS FIFO queues to it, enabling high-throughput FIFO on both the topic and queues, and using the employee ID as the Message Group ID.
The correct solution leverages a native AWS serverless messaging pattern for fan-out with strict ordering. By publishing events to an Amazon SNS FIFO topic and subscribing 22 Amazon SQS FIFO queues (one for each microservice), the architecture decouples the services and guarantees exactly-once processing and FIFO delivery. The employee ID acts as the Message Group ID to ensure sequential ordering per employee. Enabling high-throughput FIFO on both the SNS topic and SQS queues allows the application to scale beyond the default limit of 300300 transactions per second to accommodate the peak traffic of 450450 events per second with minimal operational overhead.

Adım Adım Çözüm

1
Select a message fan-out service that supports ordered delivery.
Amazon SNS FIFO is selected to deliver events to multiple downstream queues while preserving strict first-in, first-out ordering.
Standard SNS topics do not guarantee message order and cannot fan out to SQS FIFO queues with order preservation.
2
Configure the logical grouping key for ordering.
Assign the employee ID as the Message Group ID on the messages published to the SNS FIFO topic.
This guarantees that all timesheet updates for a single employee are processed sequentially in the order received, while allowing concurrent processing across different employees.
3
Provision and subscribe target queues for downstream microservices.
22 SQS FIFO queues are subscribed to the SNS FIFO topic, with 11 queue dedicated to each microservice.
Dedicated queues decouple the downstream consumers and ensure each microservice receives all published events independently.
4
Configure throughput capacity to support traffic spikes.
Enable high-throughput FIFO on the SNS FIFO topic and both SQS FIFO queues.
By default, SQS FIFO queues support up to 300300 transactions per second (without batching). The expected traffic peaks at 450450 events per second, requiring high-throughput FIFO to prevent throttling.

Anahtar Kavram

Serverless event fan-out with guaranteed ordering using SNS FIFO, SQS FIFO, and High-Throughput FIFO.
Tahmini Süre:3m 0s
Soru 1203Soru

A company runs a car rental reservation portal in a single AWS Region. The application uses an Amazon RDS for MySQL DB instance. The company needs to establish a disaster recovery (DR) strategy in a secondary Region. The strategy must meet a Recovery Point Objective (RPO) of 24 hours and a Recovery Time Objective (RTO) of 4 hours. Which solution meets these requirements at the lowest cost?

Cevabı ve açıklamayı göster

Cevap: Configure automated daily snapshots of the RDS DB instance and copy them to the secondary Region. In the event of a disaster, use AWS CloudFormation to deploy the application resources and restore the database from the copied snapshot.

Cevap

Configure automated daily snapshots of the RDS DB instance and copy them to the secondary Region. In the event of a disaster, use AWS CloudFormation to deploy the application resources and restore the database from the copied snapshot.
The Backup and Restore strategy using daily cross-region RDS snapshots and AWS CloudFormation templates is the most cost-effective option because it incurs zero active database or compute charges in the secondary Region. The daily snapshots satisfy the 24-hour Recovery Point Objective (RPO), and restoring the database and infrastructure can be completed within the 4-hour Recovery Time Objective (RTO).

Adım Adım Çözüm

1
Analyze RPO and RTO requirements to determine the appropriate DR strategy.
An RPO of 24 hours indicates daily data loss is acceptable, pointing to daily backups/snapshots. An RTO of 4 hours allows enough time to provision infrastructure and restore the database from a backup.
Matching business continuity requirements with the correct DR strategy prevents over-engineering and minimizes costs.
2
Evaluate the cost of different DR options.
Backup and Restore (storing snapshots) is the most cost-effective strategy since it incurs only storage costs until a disaster occurs. Warm Standby and Read Replicas incur active, continuous compute and database instance costs.
The question asks for the lowest cost solution that meets the requirements.
3
Verify technical feasibility and correctness.
Daily snapshots meet the 24-hour RPO. Restoring RDS from a snapshot and launching resources via AWS CloudFormation can be easily completed within 4 hours. S3 Glacier Flexible Retrieval is ruled out because its 3-5 hour retrieval delay alone risks violating the 4-hour RTO.
Ensures the selected low-cost solution is technically capable of achieving the RTO and RPO targets.

Anahtar Kavram

Disaster Recovery (DR) strategies on AWS vary in cost and recovery times. Backup and Restore is the most cost-effective DR strategy for workloads that can tolerate an RTO and RPO of several hours, as it does not require running active compute or database instances in the recovery region.
Tahmini Süre:1m 0s
Soru 1204Soru

A company hosts a critical global multiplayer gaming backend in us-east-1. The backend utilizes Amazon Aurora MySQL for player profiles, session states, and game configuration data, and an Application Load Balancer (ALB) with Amazon ECS Fargate for the web API layer. The company needs to establish a Disaster Recovery (DR) strategy in us-west-2 with a Recovery Time Objective (RTO) of less than 1515 minutes and a Recovery Point Objective (RPO) of less than 11 minute. They also want to minimize monthly standby running costs. Which of the following architectures meets these requirements?

Cevabı ve açıklamayı göster

Cevap: Configure Amazon Aurora Global Database with the primary cluster in us-east-1 and a secondary cluster in us-west-2. In us-west-2, deploy the ECS Fargate service with the desired task count set to 00. Configure Amazon Route 53 failover routing with health checks. During a failover event, promote the secondary Aurora cluster to primary, scale the ECS Fargate task count to the required capacity, and update the DNS records.

Cevap

Configure Amazon Aurora Global Database with the primary cluster in us-east-1 and a secondary cluster in us-west-2. In us-west-2, deploy the ECS Fargate service with the desired task count set to 00. Configure Amazon Route 53 failover routing with health checks. During a failover event, promote the secondary Aurora cluster to primary, scale the ECS Fargate task count to the required capacity, and update the DNS records.
The configuration using Amazon Aurora Global Database and scaling ECS Fargate tasks to 00 in the secondary region represents a Pilot Light strategy. Aurora Global Database keeps the primary and secondary databases synchronized via storage-level replication with sub-second replication latency, meeting the 11-minute RPO. Since no Fargate tasks are running in the secondary region during normal operations, standby compute costs are minimized. During a disaster, promoting the Aurora secondary cluster takes less than a minute, and scaling up the ECS Fargate tasks to full capacity takes a few minutes, which easily meets the 1515-minute RTO requirement.

Adım Adım Çözüm

1
Analyze RPO requirements.
To meet an RPO of less than 11 minute, database changes must be replicated to the secondary region continuously. Amazon Aurora Global Database uses storage-based replication with a typical latency of less than 11 second, easily meeting this constraint.
Choosing the replication technology first ensures the data loss window (RPO) is minimized.
2
Analyze RTO and standby cost requirements.
To minimize standby running costs, compute resources (ECS Fargate tasks) in the disaster recovery region should be scaled to 00 when idle. Promoting an Aurora Global Database secondary cluster takes under 11 minute, and provisioning ECS Fargate containers takes 22 to 33 minutes. This easily fits within the 1515-minute RTO.
This establishes a Pilot Light strategy, which has minimal running standby costs while still satisfying the RTO.
3
Evaluate failover and DNS routing.
Using Route 53 active-passive failover routing policy allows traffic redirection once health checks fail. During failover, the secondary Aurora cluster is promoted to primary (becoming read-write), and the ECS Fargate tasks are scaled up to match the production workload.
A clean failover orchestration guarantees consistent application state and traffic redirection.

Anahtar Kavram

Disaster recovery (DR) strategies on AWS involve trading off cost (standby resources) against Recovery Time Objective (RTO) and Recovery Point Objective (RPO). For RPO < 11 minute and RTO < 1515 minutes with minimized costs, a Pilot Light strategy using Aurora Global Database (with secondary cluster running a minimal reader) and scaled-down compute (ECS Fargate task count set to 00) is the most optimal architecture.
Soru 1205Soru

A company hosts a security-hardened metadata retrieval service on a fleet of Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The application listens on TCP port 84438443, while a local diagnostic agent listens on TCP port 80808080 to respond with node status. The solutions architect configures the ALB target group with default health check settings. Custom Network ACLs (NACLs) and security groups are applied to the EC2 instances. During testing, the ALB marks all registered instances as unhealthy, even though local status checks on port 80808080 succeed. Additionally, after a recent failover to a secondary region due to network latency, Route 53 fails to route clients back to the primary region's ALB after its instances recover.

Which combination of configuration changes should the solutions architect implement to resolve these issues? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Modify the target group health check settings to query port 80808080 instead of the default traffic port.; Add an outbound rule to the subnet network ACL to allow outbound traffic to the ALB subnets on ephemeral ports 1024655351024-65535.

Cevap

To resolve the health check failure, update the target group health check settings to query port 80808080 instead of the default traffic port, and add an outbound rule to the stateless subnet network ACL to allow return traffic to the ALB subnets on ephemeral ports 1024655351024-65535.
The diagnostic agent runs on port 80808080, so the target group health check port must be explicitly updated to query port 80808080 instead of defaulting to the application traffic port of 84438443. Additionally, since network ACLs are stateless, an outbound rule must be added to the subnet network ACL to allow return traffic from the EC2 instances to the ALB subnets on ephemeral ports 1024655351024-65535.

Adım Adım Çözüm

1
Analyze the health check port configuration.
Identify that the health check is defaulting to the application traffic port (84438443) instead of the diagnostic agent port (80808080).
The target group must be modified to query port 80808080 explicitly so that the health check reaches the correct service.
2
Evaluate network access control lists (NACLs) and security group rules.
Recognize that the stateless subnet network ACL blocks return outbound traffic to the ALB because there is no rule allowing outbound traffic on ephemeral ports.
A stateless network ACL requires explicit rules for both inbound and outbound traffic paths, unlike stateful security groups.
3
Formulate the correction for the network ACL.
Create an outbound network ACL rule allowing traffic to the ALB subnets on ephemeral ports 1024655351024-65535.
This allows return packets from the EC2 instances to reach the ALB subnets and satisfy the health check.

Anahtar Kavram

Auto Scaling and Elastic Load Balancing health checks, stateless vs stateful network filtering, and Route 53 failover health check requirements.
Tahmini Süre:2m 0s
Soru 1206Soru

A financial services company hosts a credit-scoring application in the eu-west-1 Region. The application uses Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB), and a multi-node Amazon Aurora PostgreSQL DB cluster. The company needs to implement a disaster recovery (DR) strategy in the us-east-1 Region with a Recovery Time Objective (RTO) of 1515 minutes and a Recovery Point Objective (RPO) of 22 minutes. The solution must minimize ongoing operational costs in the secondary Region during normal operations. Which configuration should a solutions architect recommend to meet these requirements?

Cevabı ve açıklamayı göster

Cevap: Configure an Aurora Global Database with the primary DB cluster in eu-west-1 and a secondary DB cluster in us-east-1. In us-east-1, deploy an ALB and an Auto Scaling group with the minimum and desired capacity set to 00. During failover, promote the secondary Aurora DB cluster to primary and update the Auto Scaling group capacity to launch the EC2 instances.

Cevap

Configure an Aurora Global Database with the primary DB cluster in eu-west-1 and a secondary DB cluster in us-east-1. In us-east-1, deploy an ALB and an Auto Scaling group with the minimum and desired capacity set to 00. During failover, promote the secondary Aurora DB cluster to primary and update the Auto Scaling group capacity to launch the EC2 instances.
The correct architecture is a Pilot Light disaster recovery strategy using Aurora Global Database. Aurora Global Database replicates data asynchronously across AWS Regions with a typical latency of less than 11 second, easily meeting the 22-minute RPO. Since the business requires cost minimization under normal conditions and allows up to 1515 minutes for recovery (RTO), keeping the Auto Scaling group in the secondary Region at a desired capacity of 00 ensures no EC2 compute charges are incurred until a disaster occurs. During failover, the secondary Aurora cluster can be promoted to primary in under a minute, and the Auto Scaling group can quickly launch EC2 instances to begin serving traffic within the 1515-minute window.

Adım Adım Çözüm

1
Identify the database replication technology that meets the RPO requirement of 22 minutes.
Aurora Global Database provides sub-second cross-region replication, which easily satisfies the 22-minute RPO.
Alternative strategies like daily snapshots copied to Amazon S3 would yield an RPO of up to 2424 hours, which fails the business requirements.
2
Determine the minimum compute capacity in the secondary Region that satisfies the RTO of 1515 minutes while minimizing costs.
An Auto Scaling group with a desired capacity of 00 instances incurs zero EC2 costs during normal operations and can spin up instances within a few minutes.
This Pilot Light setup meets the 1515-minute RTO upon failover, making it more cost-effective than running instances continuously (Warm Standby).
3
Analyze the failover automation and network routing capabilities.
Aurora Global Database can be promoted to a standalone primary cluster in less than a minute, fitting well within the 1515-minute RTO.
DNS routing policies alone cannot automatically perform database promotion, meaning a scripted or manual orchestration process is necessary to complete the failover.

Anahtar Kavram

Disaster Recovery strategies (Pilot Light vs. Warm Standby) and database cross-region replication capabilities.
Tahmini Süre:2m 0s
Soru 1207Soru

A software company is redesigning the compute architecture for its multi-tenant application to optimize costs. The application runs on Amazon ECS on AWS Fargate and consists of two main workloads:

1. A suite of web APIs that runs continuously (24/724/7) to handle customer requests. This workload has a highly predictable baseline of 1010 ECS tasks, with occasional scaling peaks.
2. A background processing system that pulls video transcoding jobs from an Amazon SQS queue. The jobs are stateless, can be interrupted and resumed without issues, and run sporadically throughout the day.

Which combination of compute purchasing strategies will meet these requirements most cost-effectively? (Choose two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Purchase a Compute Savings Plan to cover the baseline usage of the continuously running ECS tasks.; Run the background video transcoding ECS tasks on Fargate Spot.

Cevap

The most cost-effective compute purchasing strategy combines a Compute Savings Plan for the baseline web API ECS tasks and Fargate Spot for the stateless, interruptible background video transcoding tasks.
Purchasing a Compute Savings Plan is the most cost-effective way to cover the continuously running Fargate tasks, as it provides a discount in exchange for a commitment to a consistent amount of compute usage. Running the stateless, queue-driven video transcoding tasks on Fargate Spot leverages spare capacity at a substantial discount, which is perfect since the workload can be interrupted and resumed via the Amazon SQS queue.

Adım Adım Çözüm

1
Analyze the baseline API workload requirements.
The API workload runs 24/724/7 continuously and has a predictable baseline of 1010 tasks, meaning it represents a stable, commit-friendly compute load.
Stable, predictable compute workloads are ideal candidates for commit-based discounts like Savings Plans.
2
Evaluate Savings Plans options for Fargate compute.
Only Compute Savings Plans apply discounts to AWS Fargate. EC2 Instance Savings Plans do not cover Fargate usage.
Compute Savings Plans offer up to 66% discount on Fargate, Lambda, and EC2 instances.
3
Analyze the background video transcoding workload requirements.
The transcoding jobs are stateless, interruptible, pull from SQS, and run sporadically.
Workloads that can tolerate interruption and run asynchronously are ideal for Spot compute models.
4
Select the appropriate Spot purchasing model for Fargate container tasks.
Fargate Spot is selected as it runs containers at a significantly reduced rate (up to 70% off standard Fargate pricing) while tolerating tasks being terminated with a 2-minute warning.
Fargate Spot matches ECS tasks on Fargate directly and offers the highest savings for interruptible containerized workloads.

Anahtar Kavram

Selecting the optimal compute purchasing model (Savings Plans vs. Spot Instances) for containerized ECS Fargate workloads based on predictability and tolerance to interruption.
Soru 1208Soru

A company is developing an event-driven system that writes audit logs from several AWS Lambda functions into a database. The log volume is extremely unpredictable; the database experiences hours of inactivity, but can suddenly receive spikes of up to 6,0006,000 write operations per second when upstream batch jobs trigger. The database must handle these sudden bursts immediately without throttling, and the solution must minimize operational costs. Which database capacity configuration is the most cost-effective for this workload?

Cevabı ve açıklamayı göster

Cevap: Configure an Amazon DynamoDB table using on-demand capacity mode.

Cevap

Configure an Amazon DynamoDB table using on-demand capacity mode.
Configuring the Amazon DynamoDB table with on-demand capacity mode is the most cost-effective choice. It automatically manages and scales the throughput capacity to meet the sudden spikes of 6,0006,000 write operations per second without any capacity planning or latency lag, preventing throttling. Since it charges only for the actual read/write requests consumed, no costs are incurred during the hours of inactivity.

Adım Adım Çözüm

1
Analyze the workload characteristics
The workload has hours of complete inactivity (idle) and sudden, unpredictable spikes of up to 6,0006,000 write operations per second.
Understanding the traffic pattern is critical for choosing between provisioned and on-demand capacity modes.
2
Evaluate the scaling latency of capacity modes
Provisioned capacity with Auto Scaling is rejected due to the lag in scaling up, which would cause write throttling during sudden spikes.
Auto Scaling requires multiple minutes and metrics evaluations to adjust capacity, failing to meet the zero-throttling requirement for instant bursts.
3
Calculate cost-efficiency across options
Statically provisioning for 6,0006,000 WCUs is rejected due to high idle costs. On-demand mode costs 00 during idle periods and scales instantly to support the 6,0006,000 requests per second.
On-demand mode eliminates the cost of idle capacity while providing the necessary burst performance.

Anahtar Kavram

Selecting the cost-optimal capacity mode in Amazon DynamoDB based on workload predictability and burst characteristics.
Soru 1209Soru

A logistics company is designing a real-time package tracking dashboard. The tracking system must ingest millions of package coordinates daily from IoT sensors. The database must support high-volume write throughput and deliver single-digit millisecond latency for read queries. A solutions architect needs to design a high-performing database architecture that avoids read and write bottlenecks during peak operation hours.

Which combination of configurations will achieve this objective? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Use Amazon DynamoDB with a composite primary key consisting of a high-cardinality Package ID as the partition key and a timestamp as the sort key.; Enable Amazon DynamoDB Accelerator (DAX) to cache read queries for the package status updates.

Cevap

Use Amazon DynamoDB with a composite primary key consisting of a high-cardinality Package ID as the partition key and a timestamp as the sort key, and enable Amazon DynamoDB Accelerator (DAX) to cache read queries for the package status updates.
The correct approach uses Amazon DynamoDB with a high-cardinality Package ID partition key and a timestamp sort key to distribute writes evenly across partitions and prevent write bottlenecks. It also leverages Amazon DynamoDB Accelerator (DAX) to cache read queries, reducing response times to microseconds for frequently requested package tracking updates.

Adım Adım Çözüm

1
Analyze the workload requirements for high write throughput and low-latency read queries.
Identify that the system requires a horizontally scalable database capable of handling high write rates and providing single-digit millisecond or better reads.
This guides the selection of a NoSQL database like DynamoDB over traditional relational databases for this specific scale.
2
Design the DynamoDB schema to prevent write bottlenecks.
Choose a high-cardinality attribute like Package ID as the partition key to distribute write traffic evenly across physical partitions, and use a timestamp as the sort key for historical tracking.
Distributing the writes prevents hot partitions, which cause ProvisionedThroughputExceededException or throttling.
3
Select a caching solution to optimize read performance and achieve sub-millisecond latency for hot keys.
Choose DynamoDB Accelerator (DAX) to cache reads in-memory.
DAX reduces read latency to microseconds for frequently accessed items without requiring application-side cache management code.

Anahtar Kavram

Designing partition keys with high cardinality and using in-memory caching to optimize NoSQL database performance under heavy read/write workloads.
Soru 1210Soru

A healthcare technology company hosts its patient record management system on AWS. The security team needs to monitor the environment to ensure that Network Access Control Lists (NACLs) and Security Groups do not accidentally allow unrestricted inbound traffic on port 22 from the public internet. The solution must continuously audit configuration history, evaluate compliance, and send near-real-time alerts when a non-compliant change is detected. Which architectural solution meets these requirements with the least administrative effort?

Cevabı ve açıklamayı göster

Cevap: Enable AWS Config to record configuration changes for security groups and Network ACLs, and use the managed compliance rule for restricted SSH. Configure Amazon EventBridge to detect non-compliant states and send alerts through Amazon Simple Notification Service (Amazon SNS).

Cevap

Enable AWS Config to record configuration changes for security groups and Network ACLs, and use the managed compliance rule for restricted SSH. Configure Amazon EventBridge to detect non-compliant states and send alerts through Amazon Simple Notification Service (Amazon SNS).
The correct solution uses AWS Config to monitor and record configuration history for security groups and Network ACLs. AWS Config features a managed rule (restricted-ssh) specifically designed to evaluate whether security groups permit unrestricted public access to port 22. Combining AWS Config with Amazon EventBridge and Amazon SNS provides a serverless, managed pipeline to send near-real-time alerts whenever a resource becomes non-compliant, satisfying all requirements with minimal administrative overhead.

Adım Adım Çözüm

1
Enable AWS Config recording
AWS Config tracks and records all configuration changes for security groups and Network ACLs, establishing an audit history.
Auditing configuration history is a key requirement of the security team.
2
Deploy the AWS Config managed rule for restricted SSH
AWS Config continuously evaluates whether security groups or NACLs permit unrestricted inbound traffic on port 22 (SSH).
This automates the compliance evaluation without requiring custom script development.
3
Configure an EventBridge rule and Amazon SNS topic
Non-compliant evaluation states trigger an EventBridge event, which forwards a notification to an SNS topic for immediate alert dispatch.
This establishes near-real-time alerting with a fully serverless, low-maintenance design.

Anahtar Kavram

Continuous security monitoring, compliance auditing, and near-real-time alerting using AWS Config, Amazon EventBridge, and Amazon SNS.
Soru 1211Soru

A company is designing a new microservices-based application on AWS. When an order is placed, the order details must be sent to two separate downstream systems: an inventory management service and a shipping coordination service. The orders must be processed by both services in the exact chronological sequence they were placed. Which combination of services should a solutions architect recommend to decouple these systems while preserving the message order? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Amazon SQS FIFO queues to buffer messages for each downstream service; Amazon SNS FIFO topics to fan out the messages to the queues

Cevap

Amazon SQS FIFO queues and Amazon SNS FIFO topics are the correct services to decouple the components and preserve the message order.
To decouple microservices while ensuring that messages are sent to multiple endpoints (fan-out) and processed in the exact chronological sequence, Amazon SNS FIFO topics and Amazon SQS FIFO queues must be used in combination. SNS FIFO topics manage ordering during distribution, and SQS FIFO queues ensure that consumers pull messages in the correct sequence.

Adım Adım Çözüm

1
Identify the decoupling and fan-out requirements.
The application needs to distribute messages to multiple distinct downstream services (fan-out pattern).
Amazon SNS is the standard service on AWS to achieve fan-out messaging to multiple consumers.
2
Determine the message ordering constraints.
The messages must be processed in the exact order they are received.
Standard SQS and SNS do not guarantee strict ordering. FIFO (First-In-First-Out) features must be used for both SNS and SQS to preserve end-to-end chronological sequence.
3
Combine SNS FIFO and SQS FIFO.
The solutions architect should deploy an Amazon SNS FIFO topic that publishes to Amazon SQS FIFO queues attached to each downstream microservice.
This architecture decouples the services, supports fan-out, and preserves message order.

Anahtar Kavram

Decoupling message-driven architectures while preserving strict message ordering using SNS and SQS FIFO configurations.
Tahmini Süre:1m 30s
Soru 1212Soru

A company is hosting a specialized IoT data receiver application on Amazon EC2 instances within an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The application receives data streams on port 5001, but the application's internal diagnostics and health status endpoint runs on port 8081. After launching the instances, the ALB target group reports all EC2 instances as unhealthy, and no traffic is forwarded to them, even though local logs show the application is running normally. Which of the following configuration changes will resolve this issue?

Cevabı ve açıklamayı göster

Cevap: Modify the Application Load Balancer target group's health check configuration to override the port and specify port 8081.

Cevap

Modify the Application Load Balancer target group's health check configuration to override the port and specify port 8081.
The correct solution is to modify the Application Load Balancer target group's health check configuration to override the port and specify port 8081. By default, target groups perform health checks on the port where they receive traffic (the 'traffic-port', which is port 5001). Since the application's health endpoint is hosted on port 8081, the health check requests sent to port 5001 fail, marking the instances as unhealthy. Overriding the health check port to 8081 allows the Application Load Balancer to query the correct endpoint while client traffic is successfully routed to port 5001.

Adım Adım Çözüm

1
Analyze the port configuration of the application and the health check endpoint.
The application listens for data on port 5001, but diagnostics run on port 8081.
To understand why health checks are failing under the default settings.
2
Determine the default behavior of the Elastic Load Balancing target group health check.
By default, the health check queries the 'traffic-port', which is port 5001.
Since the diagnostics endpoint is not on port 5001, the health check fails, marking the targets as unhealthy.
3
Identify the correct configuration change to target the health endpoint.
Override the target group's health check port setting to explicitly use port 8081.
This allows the load balancer to query the correct port for health checks while keeping the listener forwarding data traffic to port 5001.

Anahtar Kavram

Configuring custom health check ports in Elastic Load Balancing target groups to align with application-specific health endpoints.
Tahmini Süre:2m 0s
Soru 1213Soru

A global healthcare compliance SaaS provider hosts its core patient-tracking application on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The application database is hosted on Amazon Aurora MySQL-Compatible Edition. The application is currently deployed in the useast1us-east-1 Region. The provider needs to design a cross-region disaster recovery (DR) solution in the uswest2us-west-2 Region. The DR solution must meet a Recovery Time Objective (RTO) of 1515 minutes and a Recovery Point Objective (RPO) of 22 minutes, while minimizing ongoing infrastructure running costs in the secondary Region during normal operations. Which architecture will meet these requirements at the lowest cost?

Cevabı ve açıklamayı göster

Cevap: Configure Amazon Aurora Global Database with the primary cluster in us-east-1 and a secondary cluster in us-west-2. Deploy an ALB and an ASG in us-west-2 with the desired capacity set to 1 EC2 instance. Configure Route 53 failover routing with health checks. Use an AWS Systems Manager (SSM) Automation runbook to promote the secondary Aurora cluster and scale up the ASG during failover.

Cevap

The correct architecture uses Amazon Aurora Global Database for real-time cross-region replication, combined with a scaled-down Warm Standby EC2 application tier (desired capacity set to 1 instance) in the recovery Region, managed via Route 53 failover routing and AWS Systems Manager (SSM) Automation runbooks.
The architecture that configures Amazon Aurora Global Database alongside a Warm Standby application tier (desired capacity of 1 EC2 instance) is the only option that meets both RPO and RTO requirements while minimizing costs. Aurora Global Database replicates data asynchronously within seconds, satisfying the 22-minute RPO. Having a single pre-running EC2 instance ensures the application stack is initialized, allowing an SSM Automation runbook to promote the database and scale out the ASG in under 1010 minutes, satisfying the 1515-minute RTO. Keeping the ASG at 11 instance during normal operations minimizes running costs compared to a fully provisioned Active-Active setup.

Adım Adım Çözüm

1
Evaluate the database replication strategy to meet the 22-minute RPO.
Amazon Aurora Global Database provides asynchronous replication with typical latency of less than 11 second, satisfying the RPO. Hourly snapshots or backup-restore methods are ruled out because they cannot guarantee data loss under 22 minutes.
Choosing a replication method that guarantees an RPO under 22 minutes is the primary constraint for the data tier.
2
Evaluate the compute tier deployment strategy to meet the 1515-minute RTO.
A Warm Standby strategy with a minimum of 11 running EC2 instance ensures the OS, dependencies, and configuration are active and running. A Pilot Light strategy with 00 running instances requires cold starts, CloudFormation stack deployment, and bootstrapping, which exceed the 1515-minute RTO limit.
The RTO is highly aggressive for cross-region failover, requiring pre-warmed compute resources that only need to scale out rather than be provisioned from scratch.
3
Assess the failover automation and routing mechanism.
Route 53 active-passive failover routing policies dynamically redirect traffic based on health checks. AWS Systems Manager (SSM) Automation handles the orchestration of promoting the secondary Aurora cluster to primary and scaling up the EC2 Auto Scaling group.
Manual intervention takes too long and introduces errors. An automated runbook is required to meet the 15-minute RTO.

Anahtar Kavram

Cross-Region Disaster Recovery Strategies (Warm Standby vs. Pilot Light)
Tahmini Süre:3m 0s
Soru 1214Soru

A company runs a wellness tracking application. The backend API is hosted on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The API processes requests on TCP port 8443. Currently, clients cannot connect to the backend, and the instances are being marked as unhealthy by the target group, leading to continuous instance replacement by the ASG. The network configuration uses private subnets for the EC2 instances and public subnets for the ALB.

Which two configurations should a solutions architect verify to resolve the health check failures and ensure proper traffic flow? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Ensure that the target group health check port is configured to use port 8443 or the traffic port instead of defaulting to port 80.; Configure the EC2 instance security group to allow inbound traffic on TCP port 8443 from the security group of the Application Load Balancer.

Cevap

Verifying that the target group health check is set to port 8443 or the traffic port, and configuring the EC2 instance security group to allow inbound traffic on port 8443 from the Application Load Balancer security group.
The Application Load Balancer routes traffic to targets based on target group settings. Since the backend service is listening on custom TCP port 8443, the target group health check port must be configured to query port 8443 (or use the traffic port) so that health checks are sent to the correct active port. By default, health checks are sent to port 80, which will fail if no service is listening there. Additionally, because the EC2 instances are in private subnets and receive traffic from the ALB, the security group associated with the EC2 instances must allow inbound traffic on port 8443 from the ALB's security group to permit both user traffic and health check probes.

Adım Adım Çözüm

1
Analyze the port configuration of the application service and the load balancer target group.
Identify that the application processes traffic on port 8443, but target group health checks default to port 80.
Health checks sent to a port with no active service will fail, causing the ASG to terminate instances.
2
Examine security group settings between the ALB and the EC2 instances.
Determine that the instances must allow inbound traffic on port 8443 specifically from the ALB security group.
This permits the ALB to perform health check probes and forward application traffic to the backend instances.
3
Validate security group statefulness.
Recognize that return traffic does not require outbound security group rules.
Security groups track connections and state, so return traffic on ephemeral ports is allowed automatically.

Anahtar Kavram

Configuring health checks and security groups for Application Load Balancers with custom ports.
Soru 1215Soru

A corporate training platform hosts its web application in a single AWS Region. The platform's database is stored on Amazon RDS for PostgreSQL, and application data is on Amazon EBS volumes. The company wants to set up a cost-effective Backup and Restore disaster recovery (DR) strategy in a secondary Region. The company can tolerate a 2424-hour Recovery Point Objective (RPO) and a 2424-hour Recovery Time Objective (RTO). Which combination of actions will meet these requirements at the lowest cost? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure daily backups of Amazon Elastic Block Store (Amazon EBS) volumes and Amazon RDS DB instances, and copy the snapshots to the secondary AWS Region.; Use AWS CloudFormation templates to deploy the application infrastructure in the secondary AWS Region during a disaster, and restore the databases from the copied snapshots.

Cevap

The correct strategy is to configure daily backups of EBS volumes and RDS instances, copy them to a secondary region, and deploy the application infrastructure on-demand using CloudFormation while restoring the databases from those snapshots when a disaster occurs.
For a 2424-hour RPO and RTO, a Backup and Restore strategy is the most cost-effective option. The two correct options accomplish this by first setting up daily backups of EBS volumes and RDS databases and copying them to a secondary region (satisfying the 2424-hour RPO), and second, deploying the architecture on-demand during a disaster using AWS CloudFormation and restoring the databases from the copied snapshots (satisfying the 2424-hour RTO without incurring compute costs during normal operations).

Adım Adım Çözüm

1
Evaluate the RPO and RTO requirements to select the appropriate disaster recovery (DR) pattern.
An RPO of 2424 hours and an RTO of 2424 hours point to a Backup and Restore strategy as the most cost-effective solution.
Backup and Restore has the lowest cost because it does not require active compute or fully-scaled databases to run in the disaster recovery region during normal operations.
2
Identify the mechanism for meeting the 2424-hour RPO.
Daily snapshots of EBS volumes and RDS DB instances are copied to the secondary Region.
By taking and copying snapshots every 2424 hours, data loss is capped at a maximum of 2424 hours, satisfying the RPO.
3
Identify the mechanism for meeting the 2424-hour RTO.
Using CloudFormation to provision the network and compute resources, then restoring the database from the copied snapshots.
Rebuilding the environment on-demand easily fits within the generous 2424-hour RTO window, keeping disaster recovery costs minimal.

Anahtar Kavram

Backup and Restore Disaster Recovery Strategy
Soru 1216Soru

A company hosts a specialized analytics platform on Amazon EC2 instances within an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The application listens for HTTPS traffic on TCP port 8443. To monitor the application's internal status, a custom telemetry agent runs on the instances, listening on TCP port 9090. The Solutions Architect configures the ALB target group's health check settings to use TCP port 9090. The security group of the EC2 instances is configured to allow inbound TCP traffic on port 8443 from the ALB's security group. All outbound traffic from the instances is allowed. Despite the instances functioning correctly, the ALB marks all targets as unhealthy, and the ASG is repeatedly terminating and replacing the instances. Which action should the Solutions Architect take to resolve this issue?

Cevabı ve açıklamayı göster

Cevap: Update the EC2 instances' security group to allow inbound TCP traffic on port 9090 from the ALB's security group.

Cevap

Update the EC2 instances' security group to allow inbound TCP traffic on port 9090 from the ALB's security group.
The correct option is to update the security group of the EC2 instances to allow inbound TCP traffic on port 9090 from the Application Load Balancer's security group. Since the load balancer is configured to perform health checks on port 9090, but the instances only allow traffic on port 8443, the health check requests are blocked at the instance level. Allowing inbound traffic on port 9090 resolves the issue, and because security groups are stateful, the return traffic is automatically permitted.

Adım Adım Çözüm

1
Analyze the communication flow for ALB health checks.
The Application Load Balancer originates health check probes targeting TCP port 9090 on the EC2 instances.
The target group has been explicitly configured to perform health checks on TCP port 9090 instead of the standard application port.
2
Examine the security group configuration of the EC2 instances.
The security group only allows inbound traffic on port 8443 from the ALB security group, thereby blocking the health check probes on port 9090.
To resolve the unhealthy target state, the security group must permit inbound traffic on port 9090 from the ALB.
3
Evaluate the statefulness of security groups.
No outbound security group rule modification is needed because security groups are stateful and allow return traffic automatically.
Modifying only the inbound rule is sufficient and maintains the principle of least privilege.

Anahtar Kavram

ELB health checks can target a custom port, which must be explicitly allowed by the EC2 instance's security group.
Tahmini Süre:2m 0s
Soru 1217Soru

A biotechnology company is deploying a distributed molecular dynamics simulation pipeline on Amazon EC2 instances. The simulation nodes must communicate frequently with each other over a low-latency, high-throughput network to synchronize state. The application listens on custom TCP port 6006 and is placed behind a Network Load Balancer (NLB). During testing, the NLB marks all instances as unhealthy, and node-to-node communication latency is too high. Which combination of steps will resolve these performance and health check issues?

Cevabı ve açıklamayı göster

Cevap: Launch the EC2 instances in a cluster placement group, and update the NLB target group health check configuration to use the custom port 6006.

Cevap

Launch the EC2 instances in a cluster placement group, and update the NLB target group health check configuration to use the custom port 6006.
The correct option correctly addresses both issues. Using a cluster placement group packs instances close together within a single Availability Zone, which enables low-latency, high-throughput node-to-node communication. Configuring the NLB target group to perform health checks on the custom port 6006 ensures that the NLB successfully connects to the active application listener and marks the instances as healthy.

Adım Adım Çözüm

1
Analyze the network latency requirement.
Identify that the simulation nodes require low-latency, high-throughput node-to-node communication.
Tightly coupled HPC workloads require cluster placement groups to ensure instances are physically close together in the same Availability Zone.
2
Analyze the NLB health check failure.
Determine that the application is listening on custom port 6006, but the health check is failing.
By default, target groups may perform health checks on traffic ports or default ports like 80. If the custom port is not configured for health checks, the NLB cannot verify application health.
3
Select the correct combination of placement group and port configuration.
Select a cluster placement group for low latency and configure the target group health check to query port 6006.
This resolves both the high latency issue and the unhealthy target registration issue.

Anahtar Kavram

Selecting the correct EC2 placement group for low-latency communication and aligning ELB target group health check ports with custom application ports.
Soru 1218Soru

A SaaS payroll company hosts its platform in the us-east-1 Region. The architecture consists of Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB), and an Amazon RDS for PostgreSQL database. The company needs to design a disaster recovery (DR) plan in the us-west-2 Region. The solution must support a Recovery Time Objective (RTO) of 1515 minutes and a Recovery Point Objective (RPO) of 55 minutes while minimizing running infrastructure costs in the secondary Region during normal operations.

Which combination of actions should the solutions architect implement to meet these requirements? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Create an Amazon RDS cross-region read replica in the secondary Region, and promote it to a standalone DB instance during a failover event.; Create an Auto Scaling group in the secondary Region with a desired capacity of 0, and configure it to scale up using a pre-baked Amazon Machine Image (AMI) during a failover event.

Cevap

Create an Amazon RDS cross-region read replica in the secondary Region and promote it during failover, and create an Auto Scaling group in the secondary Region with a desired capacity of 0 that scales up using a pre-baked Amazon Machine Image (AMI) during failover.
To meet the RPO of 5 minutes, data must be continuously replicated to the secondary Region. Amazon RDS cross-region read replicas use asynchronous replication to achieve replication lags of just a few seconds. During a failover, the replica is promoted to primary. To achieve a 15-minute RTO while minimizing running costs, a Pilot Light architecture is used. By deploying an Auto Scaling group in the secondary Region with desired capacity set to 0, no compute instances run or charge during normal operations. Upon failover, the Auto Scaling group desired capacity is increased, spinning up instances from a pre-baked AMI in minutes.

Adım Adım Çözüm

1
Configure database replication to meet RPO.
An Amazon RDS cross-region read replica is created in us-west-2, replicating data asynchronously with a lag of seconds, satisfying the 5-minute RPO.
Asynchronous cross-region replication is required because snapshot copies would take too long and fail the RPO target.
2
Configure secondary compute resources for cost optimization.
An Auto Scaling group is set up in us-west-2 with desired capacity set to 0.
Setting the capacity to 0 prevents any running compute costs while idle, aligning with the Pilot Light disaster recovery strategy.
3
Define the failover orchestration steps.
In a failover event, promote the RDS read replica to a primary instance, update the Auto Scaling group capacity to launch instances from the pre-baked AMI, and update DNS records.
This process takes less than 15 minutes, successfully meeting the RTO target.

Anahtar Kavram

Implementing a cost-effective Pilot Light disaster recovery strategy using cross-region database replication and on-demand compute provisioning.
Tahmini Süre:2m 30s
Soru 1219Soru

A logistics company is migrating its operations platform to AWS. The workload consists of:

* A set of containerized web APIs running 24/7 on Amazon Elastic Container Service (Amazon ECS) using the AWS Fargate launch type.
* A fleet of Amazon EC2 instances performing continuous, stateful background queue processing.
* An Amazon RDS for MySQL database operating 24/7 to store transactional data.

The company wants to optimize its compute costs over a 1-year period while maintaining maximum flexibility for compute resource changes.

Which purchasing strategy will achieve the lowest cost while meeting these requirements?

Cevabı ve açıklamayı göster

Cevap: Purchase a Compute Savings Plan to cover the AWS Fargate tasks and Amazon EC2 instances, and purchase Amazon RDS Reserved Instances for the MySQL database.

Cevap

Purchase a Compute Savings Plan to cover the AWS Fargate tasks and Amazon EC2 instances, and purchase Amazon RDS Reserved Instances for the MySQL database.
The correct strategy combines a Compute Savings Plan (which dynamically covers both the Amazon EC2 instances and AWS Fargate tasks, providing flexibility across instance types and container configurations) with Amazon RDS Reserved Instances (which provide the required cost discounts for the 24/7 database since RDS is not covered by Compute Savings Plans).

Adım Adım Çözüm

1
Analyze the compute requirements for the containerized web APIs running on AWS Fargate and the background queue processors running on Amazon EC2.
Identify that a Compute Savings Plan is the most flexible discount model that applies to both Amazon EC2 and AWS Fargate container tasks, automatically applying discounts to usage regardless of instance family, size, or region.
Since flexibility is required and the workloads run continuously, Compute Savings Plans provide the optimal balance of discount and adaptability for both EC2 and Fargate.
2
Evaluate the database tier running 24/7 on Amazon RDS for MySQL.
Recognize that Amazon RDS usage is not covered by Compute Savings Plans. To optimize a 24/7 database, Amazon RDS Reserved Instances must be purchased.
Compute Savings Plans only apply to EC2, Fargate, and Lambda. Database compute optimizations require RDS Reserved Instances.
3
Combine the purchasing strategies to cover the entire workload cost-effectively.
Pair the Compute Savings Plan for EC2 and Fargate with RDS Reserved Instances for the database.
This combination ensures all 24/7 running components receive significant commitment-based discounts while avoiding coverage gaps.

Anahtar Kavram

Compute Savings Plans versus Amazon RDS Reserved Instances scope and applicability
Tahmini Süre:1m 30s
Soru 1220Soru

A company has a web application that receives financial transaction requests from clients. The application must decouple the request reception from the backend processing systems. The transaction volume is highly unpredictable, with sudden spikes throughout the day. It is critical that all transaction requests are processed in the exact order they are received to prevent account balance errors. Which solution meets these requirements while guaranteeing transaction ordering?

Cevabı ve açıklamayı göster

Cevap: Implement an Amazon SQS FIFO queue to buffer incoming transaction requests and process them in order.

Cevap

Implement an Amazon SQS FIFO queue to buffer incoming transaction requests and process them in order.
The solution that implements an Amazon SQS FIFO queue is correct because SQS FIFO queues are designed to guarantee that messages are processed in the exact order they are received, while also providing decoupling to handle sudden spikes in traffic without losing messages.

Adım Adım Çözüm

1
Analyze the requirements for decoupling, handling unpredictable traffic spikes, and strict ordering.
The solution must decouple the front-end application from the backend, scale to absorb spikes, and process messages in a strict first-in, first-out sequence.
Decoupling ensures the application remains responsive during spikes, while ordering is necessary to prevent balance calculation errors.
2
Compare the message ordering capabilities of Amazon SQS queue types.
Amazon SQS Standard queues do not guarantee order. Amazon SQS FIFO queues guarantee strict ordering and exactly-once processing.
This identifies the correct messaging technology that meets the strict chronological processing requirement.

Anahtar Kavram

Decoupling with Amazon SQS FIFO queues to guarantee message ordering and handle unpredictable workloads.
ÖncekiSayfa 61 / 74Sonraki
Tüm alıştırma soruları — AWS Certified Solutions Architect - Associate | Examkin