Tüm alıştırma soruları

1462 soru

Soru 481Soru

A company is deploying a containerized microservice for processing real-time IoT telemetry data. The service runs on Amazon EC2 instances managed by an Auto Scaling group (ASG). An Application Load Balancer (ALB) routes traffic to the instances. The telemetry service is configured to listen on port 8080. The target group is configured to route traffic to port 8080. The security group associated with the EC2 instances allows inbound traffic on port 8080 from the ALB security group. After deployment, the ALB registers all EC2 instances as unhealthy, and users receive a 502 Bad Gateway error. The solutions architect verifies that the service is running and healthy on the instances when tested locally on port 8080. Which action should the solutions architect take to resolve this issue?

Cevabı ve açıklamayı göster

Cevap: Update the target group health check settings to query port 8080 instead of the default port 80.

Cevap

Update the target group health check settings to query port 8080 instead of the default port 80.
The correct answer is to update the target group health check settings to query port 8080. By default, unless specified, the health check port may default to port 80. Since the microservice is listening on port 8080, the load balancer's health check requests to port 80 fail, causing the instances to be marked as unhealthy. Explicitly setting the health check port to 8080 resolves the issue.

Adım Adım Çözüm

1
Identify the port on which the service is listening on the EC2 instances.
The application listens and runs healthy on port 8080.
This establishes the target port that health checks and routing should target.
2
Check the default target group health check port settings.
By default, health check configurations often default to port 80 rather than the traffic port if not explicitly overridden.
This identifies the source of the health check failure (requesting port 80 instead of 8080).
3
Modify the health check port to 8080.
The load balancer begins successfully checking the application on port 8080 and marks instances as healthy.
Aligning the health check port with the active application port resolves the unhealthy status and the 502 Bad Gateway errors.

Anahtar Kavram

ELB Target Group Health Check Port Alignment
Soru 482Soru

A collaborative document editing platform stores document metadata and change logs in Amazon DynamoDB. The platform experiences write bottlenecks during active collaboration sessions, causing throttling, while users also experience latency greater than 5050 milliseconds when retrieving the latest document updates. The database currently uses a low-cardinality attribute, the project creation date, as the partition key. Which two actions should the solutions architect take to resolve these performance issues? (Select two.)

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

Cevabı ve açıklamayı göster

Cevap: Change the partition key to a high-cardinality attribute, such as a unique document UUID, to distribute write traffic evenly across partitions.; Deploy an Amazon DynamoDB Accelerator (DAX) cluster to cache read responses and reduce retrieval latency to microseconds.

Cevap

Changing the partition key to a high-cardinality attribute like a unique document UUID, and deploying an Amazon DynamoDB Accelerator (DAX) cluster to cache read responses.
The correct options recommend changing the partition key to a high-cardinality attribute like a unique document UUID and deploying Amazon DynamoDB Accelerator (DAX). Changing the partition key distributes the write workload evenly across physical partitions, eliminating the partition-level bottlenecks that cause throttling. Deploying DAX introduces an in-memory caching layer that handles frequent read requests, reducing retrieval latency from milliseconds to microseconds and offloading read traffic from the database.

Adım Adım Çözüm

1
Analyze the database configuration and partition key design to identify the cause of the write bottlenecks.
The use of a low-cardinality partition key (project creation date) results in all write operations for documents created on the same day hitting the same physical partition, causing a hot partition.
DynamoDB distributes data across partitions based on the partition key value. Low-cardinality keys lead to uneven traffic distribution and throttling.
2
Identify the correct design to resolve the write throughput limitations.
Choosing a high-cardinality attribute, such as a unique document UUID, distributes the write operations evenly across all available physical partitions.
High-cardinality partition keys ensure even distribution of reads and writes, maximizing the utilization of provisioned throughput.
3
Determine the appropriate caching solution to reduce read latency below the millisecond threshold.
Deploying Amazon DynamoDB Accelerator (DAX) provides an in-memory cache that intercepts read requests.
DAX reduces read latency from milliseconds to microseconds, offloads the read load from the main DynamoDB table, and does not require modifying application query logic.

Anahtar Kavram

High-performing DynamoDB database design relies on choosing high-cardinality partition keys to prevent hot partitions, and using in-memory caching layers like DAX to achieve microsecond read latency.
Tahmini Süre:2m 0s
Soru 483Soru

A company runs a read-heavy content management application on AWS. The application database is deployed on an Amazon RDS for MySQL DB instance. The workload consists of a steady, low-volume write rate of 1010 transactions per second, but read requests regularly spike up to 5,0005,000 queries per second during peak hours. The database currently uses a db.r6g.4xlarge Multi-AZ instance to handle the peak read traffic, but the company wants to optimize the high database costs while maintaining high availability. Which database architecture is the most cost-effective while meeting the application's availability and performance needs?

Cevabı ve açıklamayı göster

Cevap: Modify the primary database instance to a smaller Multi-AZ instance class, such as db.r6g.large, to handle the steady write workload, and deploy RDS Read Replicas to offload the peak read traffic.

Cevap

Modify the primary database instance to a smaller Multi-AZ instance class, such as db.r6g.large, to handle the steady write workload, and deploy RDS Read Replicas to offload the peak read traffic.
The correct architecture scales down the primary database instance to a smaller Multi-AZ instance class to handle the steady write workload, and uses cheaper RDS Read Replicas to offload the peak read traffic. This aligns the compute capacity with the actual query demands, leading to significant cost savings compared to maintaining a large db.r6g.4xlarge primary instance that cannot offload reads to its Multi-AZ standby.

Adım Adım Çözüm

1
Analyze the database workload characteristics and the current configuration constraints.
The application has a low write volume (1010 transactions per second) and a spiky read volume (5,0005,000 queries per second). The current db.r6g.4xlarge Multi-AZ instance is oversized and expensive because Multi-AZ standbys cannot serve read traffic.
Identifying that the primary database is oversized for writes and that Multi-AZ does not scale reads is key to optimizing the architecture.
2
Evaluate scale-out options for read traffic and scale-down options for write traffic.
By deploying a smaller db.r6g.large Multi-AZ primary instance, high availability is maintained for the write path at a much lower cost. Adding Read Replicas (which are single-AZ and cheaper) allows scaling the read performance to 5,0005,000 queries per second only when needed.
Separating read scaling from write high-availability requirements is the standard AWS best practice for cost-optimized database design.
3
Identify and eliminate options that violate AWS pricing or architectural rules.
Compute Savings Plans do not cover RDS. Read Replicas do not support automatic failover. Provisioning static high capacity in DynamoDB leads to expensive idle resources.
Eliminating options with architectural misconceptions ensures the chosen solution is correct and feasible.

Anahtar Kavram

Read replicas should be used to offload read traffic from the primary instance, allowing the primary instance to be downsized and reducing overall database costs while maintaining high availability via Multi-AZ.
Tahmini Süre:2m 0s
Soru 484Soru

An enterprise runs a critical API workload on Amazon EC2 instances managed by an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The ALB is configured with an HTTPS listener forwarding traffic to a target group on port 84438443. The application on the EC2 instances processes user traffic on port 84438443. However, the application's internal health status is exposed only via a lightweight management server running on port 80808080 on the same instances. Currently, the EC2 security group allows inbound TCP traffic on port 84438443 from the ALB security group. The target group health check is set to its default configuration, and the instances are consistently marked as unhealthy by the ALB, causing the ASG to terminate and relaunch them. Which configuration change should a solutions architect implement to resolve the health check failures while maintaining the principle of least privilege?

Cevabı ve açıklamayı göster

Cevap: Modify the target group health check configuration to override the port to 8080, and add a rule to the EC2 security group allowing inbound TCP traffic on port 8080 from the ALB security group.

Cevap

Modify the target group health check configuration to override the port to 8080, and add a rule to the EC2 security group allowing inbound TCP traffic on port 8080 from the ALB security group.
The correct option addresses both the network connectivity and the application configuration. By overriding the target group health check port to 8080, the Application Load Balancer (ALB) is directed to send health probes to the correct port where the application health endpoint resides. Furthermore, adding an inbound rule to the EC2 security group for port 8080 allows the ALB's stateful health probes to successfully reach the instances, resolving the health check failures under the principle of least privilege.

Adım Adım Çözüm

1
Analyze the target group port mapping.
The target group uses port 8443 by default for traffic and health checks ('traffic-port').
Identify why the ALB is sending health check requests to port 8443 instead of the management port 8080.
2
Configure the health check port override.
Modify the target group settings to explicitly perform health checks on port 8080.
Ensure that the load balancer queries the correct port where the application's health status is exposed.
3
Update security group rules.
Add an inbound rule to the EC2 instance security group allowing TCP port 8080 traffic from the ALB security group.
Since security groups are stateful and evaluate traffic at the instance level, the ALB's health check queries on port 8080 will be blocked unless explicitly permitted by the security group.

Anahtar Kavram

ELB Target Group Health Check Port Configuration and Security Group Integration
Tahmini Süre:2m 30s
Soru 485Soru

A financial services firm hosts a web application on Amazon EC2 instances in an Auto Scaling group (ASG). The instances are registered as targets in a target group for an Application Load Balancer (ALB). The application listens on TCP port 8080. The EC2 instance security group allows inbound traffic on TCP port 8080 from the ALB security group. However, the ALB health checks are failing, and the ALB is marking all instances as unhealthy. The systems administrator verifies that the application is running normally on the instances and accepting traffic. Which configuration change will resolve this issue?

Cevabı ve açıklamayı göster

Cevap: Update the target group health check settings to use port 8080 or the 'traffic-port' option.

Cevap

Update the target group health check settings to use port 8080 or the 'traffic-port' option.
The correct option is to update the target group health check settings to use port 8080 or the 'traffic-port' option. Since the application runs on port 8080, any health probe sent to a different port (such as the default port 80) will fail because no process is listening on that port. Aligning the health check port to the traffic port ensures the Application Load Balancer successfully probes the running application.

Adım Adım Çözüm

1
Identify the application's listening port.
The application listens on TCP port 8080.
Health check probes must reach a port where the application is actively listening.
2
Analyze the load balancer target group configuration.
The target group is default-configured or misconfigured to probe a port other than 8080 (such as port 80).
If the ALB health check port does not match the application port, the health check fails.
3
Update the health check settings in the target group.
Setting the health check port to 8080 or 'traffic-port' restores successful health checks.
This aligns the load balancer's probes with the active application port, resolving the unhealthy status.

Anahtar Kavram

ELB Target Group Health Check Port Alignment
Tahmini Süre:1m 30s
Soru 486Soru

A digital media agency uses a fleet of Amazon EC2 instances to run a distributed 3D rendering engine. The rendering nodes require sub-millisecond, low-latency network communication to synchronize frame buffers during active renders. Additionally, a central scheduler distributes tasks to the rendering nodes on port 80808080 behind an Application Load Balancer. The rendering service is configured to start and bind to port 80808080 only after the instance finishes loading its local textures. Which two configuration steps must a solutions architect implement to ensure optimal performance and prevent the load balancer from marking active nodes as unhealthy? (Select TWO.)

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

Cevabı ve açıklamayı göster

Cevap: Provision the EC2 instances within a cluster placement group.; Modify the health check port in the target group to match the application port of 80808080.

Cevap

To achieve the required low-latency performance and prevent the load balancer from marking healthy instances as unhealthy, the EC2 instances should be provisioned within a cluster placement group, and the target group health check port must be modified to match the application port of 80808080.
The correct configurations involve provisioning the instances within a cluster placement group and specifying the health check port as 80808080 in the ALB target group. A cluster placement group ensures that instances are physically close together in a single Availability Zone, which delivers the low-latency network connection needed for the rendering engine. Modifying the target group health check port to 80808080 ensures the load balancer queries the correct port where the application is listening, preventing healthy nodes from being marked as unhealthy.

Adım Adım Çözüm

1
Analyze network latency requirements for the distributed rendering workload.
Identify that the rendering nodes require tightly coupled, low-latency network communication to synchronize frame buffers.
This dictates the choice of EC2 placement group to optimize node-to-node network performance.
2
Select the appropriate EC2 placement group type.
Select a cluster placement group, which places instances close together inside a single Availability Zone.
Cluster placement groups allow instances to achieve low-latency, high-performance networking, whereas spread and partition placement groups focus on high availability and fault isolation.
3
Align the ALB target group health check port with the application service port.
Configure the target group health check port explicitly to port 80808080.
By default, target groups perform health checks on the traffic port or port 8080. Since the rendering application runs on custom port 80808080 and is not listening on port 8080, using the default port would cause the ALB to mark healthy instances as unhealthy.

Anahtar Kavram

Optimizing EC2 instance placement for low-latency networking while correctly configuring load balancer health checks for custom application ports.
Soru 487Soru

A retail company is launching a promotional website for a new product line. The website serves static content and retrieves product catalog information via an API. The website traffic is highly unpredictable, with extreme spikes during marketing campaigns and long periods of inactivity. Additionally, a nightly inventory synchronization process runs continuously for 33 hours to update the catalog database. The company wants to design a serverless architecture that minimizes costs, especially during idle periods, while scaling automatically.

Which architecture should a solutions architect recommend to meet these requirements?

Cevabı ve açıklamayı göster

Cevap: Host static content on Amazon S3 with an Amazon CloudFront distribution, use Amazon API Gateway with AWS Lambda for the API, run the nightly inventory sync as an Amazon ECS task on AWS Fargate, and store product catalog data in Amazon DynamoDB configured in on-demand capacity mode.

Cevap

Host static content on Amazon S3 with an Amazon CloudFront distribution, use Amazon API Gateway with AWS Lambda for the API, run the nightly inventory sync as an Amazon ECS task on AWS Fargate, and store product catalog data in Amazon DynamoDB configured in on-demand capacity mode.
The correct solution recommends Amazon S3 and Amazon CloudFront for static hosting, AWS Lambda and Amazon API Gateway for lightweight API requests, Amazon ECS on AWS Fargate for the 33-hour inventory sync, and Amazon DynamoDB in on-demand capacity mode. This aligns the billing model of each service with the workload profile: compute costs scale to zero during idle periods, the long-running inventory task runs safely without timeout limits, and database costs reflect actual request volume rather than provisioned capacity.

Adım Adım Çözüm

1
Analyze the web hosting and API requirements.
Amazon S3 combined with Amazon CloudFront provides highly scalable, low-latency static hosting. Amazon API Gateway with AWS Lambda provides a serverless API that scales instantly and costs nothing during periods of inactivity.
To ensure maximum cost-efficiency during idle periods and automatic scaling during marketing spikes.
2
Evaluate the database scaling and capacity requirements.
Select Amazon DynamoDB on-demand capacity mode.
Since traffic is highly unpredictable with long idle periods, on-demand capacity mode prevents paying for unused provisioned capacity, ensuring cost-efficiency.
3
Evaluate the backend processing requirements for the nightly inventory synchronization.
Select Amazon ECS on AWS Fargate.
The task runs continuously for 33 hours, which exceeds the AWS Lambda maximum execution limit of 1515 minutes. Amazon ECS on Fargate runs containers serverlessly and only incurs charges for the exact duration of the container execution, making it the most cost-effective choice for long-running batch processes.

Anahtar Kavram

Selecting cost-optimized compute, integration, and database services by aligning performance profiles with automated scaling and serverless architectures.
Tahmini Süre:1m 30s
Soru 488Soru

A company hosts a web application on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The EC2 instances reside in a private subnet, and the ALB is in a public subnet. The application is configured to listen on port 8080. A security engineer updates the private subnet's Network Access Control List (NACL) to allow inbound traffic from the public subnet on TCP port 8080, and outbound traffic to the public subnet on TCP port 8080. Shortly after, the ALB target group health checks begin failing, and the EC2 instances are marked unhealthy. What is the reason for this health check failure?

Cevabı ve açıklamayı göster

Cevap: Network ACLs are stateless, and the outbound Network ACL is blocking the return traffic because it does not allow traffic to the ephemeral ports used by the ALB.

Cevap

Network ACLs are stateless, and the outbound Network ACL is blocking the return traffic because it does not allow traffic to the ephemeral ports used by the ALB.
The correct answer identifies that Network ACLs (NACLs) are stateless. When the Application Load Balancer sends a health check request from an ephemeral port to the instances on port 8080, the request is allowed inbound. However, because NACLs are stateless, the return traffic from the instances back to the ALB's ephemeral port range (1024-65535) is blocked by the outbound NACL, which is restricted to port 8080. Opening the outbound NACL to ephemeral ports resolves the issue.

Adım Adım Çözüm

1
Identify the key network security component mentioned in the failure.
The scenario focuses on the update to the Network Access Control List (NACL) of the private subnet.
Since the health check failures began immediately after the NACL change, the root cause must be related to the stateless nature of NACLs.
2
Analyze how stateless network devices process traffic flow.
Inbound rules allow the request in, but outbound rules must explicitly permit the response to go back to the source port (ephemeral ports 1024-65535).
Because the outbound NACL was only configured to allow port 8080, it blocked the return traffic to the ALB.
3
Differentiate security groups from NACLs.
Security groups are stateful and automatically permit return traffic, while NACLs require explicit two-way configuration.
This confirms the issue lies solely with the stateless Network ACL configuration.

Anahtar Kavram

Understanding the stateless nature of Network Access Control Lists (NACLs) and how they affect Elastic Load Balancing (ELB) health check traffic.
Soru 489Soru

A financial services provider hosts a transactional processing application on Amazon EC2 instances within an Auto Scaling group behind an Application Load Balancer (ALB). The application requires a complex bootstrap process—including downloading security certificates and loading a large dataset into local memory—which takes approximately 6 minutes before the instance can pass health checks. During sudden market volatility, rapid traffic spikes overload the existing instances, causing request timeouts before new instances can finish bootstrapping. Which solution will most effectively minimize the latency of scaling out the compute capacity?

Cevabı ve açıklamayı göster

Cevap: Implement an Amazon EC2 Auto Scaling warm pool to maintain a pool of pre-initialized instances in a Stopped state, and use lifecycle hooks to run the bootstrap steps before the instances are stopped.

Cevap

Implement an Amazon EC2 Auto Scaling warm pool to maintain a pool of pre-initialized instances in a Stopped state, and use lifecycle hooks to run the bootstrap steps before the instances are stopped.
Implementing a warm pool with pre-initialized instances in a Stopped state allows the Auto Scaling group to rapidly scale out. When a scaling event is triggered, the instances only need to be started, skipping the 6-minute bootstrap process. Using lifecycle hooks ensures that the bootstrapping is completed before the instance is stopped and placed in the pool.

Adım Adım Çözüm

1
Analyze the bottleneck during scale-out events.
The bottleneck is the 6-minute bootstrap process required for new instances to become healthy.
Before solving the scaling latency, we must identify that the delay is caused by application initialization rather than network or load balancer provisioning.
2
Evaluate solutions that bypass or pre-run the initialization phase.
Amazon EC2 Auto Scaling warm pools allow instances to be launched, initialized, and then stopped or kept in a warm state.
By pre-initializing instances, they can be brought into service almost immediately when a scale-out event occurs, eliminating the 6-minute bootstrap time.
3
Verify that lifecycle hooks are used correctly with the warm pool.
Lifecycle hooks ensure the bootstrap script completes fully before the instance is put into the warm pool.
This guarantees that instances are fully ready to process transactions the moment they are started.

Anahtar Kavram

Amazon EC2 Auto Scaling Warm Pools allow applications with long initialization times to scale out rapidly by maintaining a pool of pre-initialized instances.
Tahmini Süre:2m 0s
Soru 490Soru

A financial technology company is migrating its core transaction ledger application to AWS. The application runs on Amazon EC2 instances behind an Application Load Balancer and uses an Amazon RDS for PostgreSQL database. To comply with regulatory standards, the company requires a multi-Region disaster recovery (DR) strategy with a Recovery Time Objective (RTO) of 15 minutes and a Recovery Point Objective (RPO) of 2 minutes. The design must minimize the ongoing infrastructure cost in the recovery Region. Which combination of actions should a solutions architect recommend to meet these requirements? (Select TWO.)

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

Cevabı ve açıklamayı göster

Cevap: Migrate the database to Amazon Aurora PostgreSQL Global Database, placing the primary cluster in the active Region and a secondary cluster in the recovery Region.; Deploy the application tier in the recovery Region using an Auto Scaling group with the desired capacity set to zero, and configure Amazon Route 53 active-passive failover routing with health checks.

Cevap

The solutions architect should migrate the database to Amazon Aurora PostgreSQL Global Database and deploy the application tier using an Auto Scaling group with desired capacity set to zero combined with Amazon Route 53 active-passive failover routing.
The correct combination requires migrating the database to Amazon Aurora PostgreSQL Global Database and deploying the application tier using an Auto Scaling group with zero running EC2 instances combined with Route 53 failover routing. Aurora Global Database has a replication lag of less than a second, meeting the 2-minute RPO, and can be promoted in under a minute, meeting the 15-minute RTO. Scaling the EC2 instances to zero minimizes compute costs in the recovery Region during normal operations, representing a Pilot Light strategy. Route 53 active-passive failover routing ensures that traffic is redirected to the recovery Region once the health checks report that the primary Region is unavailable.

Adım Adım Çözüm

1
Select a database replication technology that meets the 2-minute RPO.
Amazon Aurora PostgreSQL Global Database replicates data across Regions asynchronously with sub-second latency.
Standard multi-Region backups or replication strategies with higher lag cannot guarantee the 2-minute RPO.
2
Select a cost-effective application deployment strategy for the recovery Region that meets the 15-minute RTO.
An Auto Scaling group with desired capacity set to zero ensures no running EC2 instance costs during normal operations.
This Pilot Light strategy minimizes costs compared to Warm Standby while allowing instances to scale up quickly within the 15-minute RTO window.
3
Establish the DNS routing mechanism to handle automatic failover.
Configure Amazon Route 53 active-passive failover routing linked with application health checks.
Active-passive failover with health checks ensures user traffic is redirected automatically only when a failure is detected, avoiding misrouting issues associated with latency-only routing.

Anahtar Kavram

Designing Multi-Region Architectures for Disaster Recovery under strict RTO/RPO and cost constraints.
Tahmini Süre:3m 0s
Soru 491Soru

A gaming company needs to process game session logs uploaded to an Amazon S3 bucket. The processing application runs as a containerized workload, with each log file taking 20 to 30 minutes to process. The logs must be processed in the exact order they are uploaded to maintain chronological player states in Amazon DynamoDB. The volume of uploads is highly unpredictable, with significant spikes during weekends and virtually no activity during weekdays. Which architecture is the most cost-effective and meets these requirements?

Cevabı ve açıklamayı göster

Cevap: Configure Amazon S3 to send event notifications to an Amazon SQS FIFO queue. Run the containerized application on Amazon Elastic Container Service (Amazon ECS) using AWS Fargate, scaling tasks based on the queue size, and store the state in Amazon DynamoDB configured with on-demand capacity mode.

Cevap

Configure Amazon S3 to send event notifications to an Amazon SQS FIFO queue. Run the containerized application on Amazon Elastic Container Service (Amazon ECS) using AWS Fargate, scaling tasks based on the queue size, and store the state in Amazon DynamoDB configured with on-demand capacity mode.
The correct architecture uses Amazon SQS FIFO to guarantee that log files are processed in chronological order. Since the processing jobs take 20 to 30 minutes, they exceed the 15-minute execution limit of AWS Lambda, requiring containerized execution on AWS Fargate. AWS Fargate scales tasks dynamically based on queue activity to ensure cost efficiency. Finally, using Amazon DynamoDB in on-demand capacity mode is the most cost-effective option for highly unpredictable workloads with extended idle periods, as it charges only for read and write requests actually performed rather than provisioning unused capacity.

Adım Adım Çözüm

1
Evaluate the execution duration requirement against compute options.
Since each log processing job takes 20 to 30 minutes, AWS Lambda (which has a 15-minute execution limit) is ruled out. Containerized execution on AWS Fargate is chosen as the compute platform.
AWS Fargate allows containerized tasks to run without time limits while scaling dynamically and avoiding the management of underlying EC2 instances.
2
Determine the decoupling and ordering mechanism.
Amazon SQS FIFO queue is selected to receive S3 event notifications.
The scenario requires logs to be processed in the exact order they are uploaded to maintain chronological state. Only SQS FIFO guarantees first-in, first-out delivery, whereas standard SQS does not.
3
Select the database capacity mode for the highly variable workload.
Configure Amazon DynamoDB with on-demand capacity mode.
Since the workload is highly unpredictable with zero activity on weekdays and high spikes on weekends, on-demand capacity mode is the most cost-effective as it charges only for actual read and write requests and has zero idle compute/capacity cost.

Anahtar Kavram

Combining serverless and automated scaling compute (Fargate), ordered messaging (SQS FIFO), and on-demand database capacity (DynamoDB) to optimize costs for unpredictable, long-running batch workloads.
Tahmini Süre:2m 0s
Soru 492Soru

A retail company is designing an application that receives transaction logs from physical stores. The transaction logs must be processed in the exact order they are received to ensure accurate inventory updates. The processing application must run continuously as a background process to handle the constant stream of messages. The solutions architect needs to decouple the ingestion layer from the processing layer.

Which TWO actions should the solutions architect take to meet these requirements?

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

Cevabı ve açıklamayı göster

Cevap: Create an Amazon SQS FIFO queue to buffer the incoming transaction logs.; Deploy the processing worker on Amazon ECS using AWS Fargate to run the containerized application continuously.

Cevap

The solutions architect should create an Amazon SQS FIFO queue to buffer the transaction logs and deploy the processing worker on Amazon ECS using AWS Fargate.
To satisfy the requirements of decoupling and strict message ordering, the solutions architect must use an Amazon SQS FIFO queue. Additionally, because the processing service needs to run continuously as a background process, hosting it on Amazon ECS with AWS Fargate provides a scalable, managed, and continuous execution environment.

Adım Adım Çözüm

1
Determine the message ordering requirement.
The transaction logs must be processed in the exact order they are received to ensure correct inventory updates.
This dictates the choice of queue type, requiring a First-In-First-Out mechanism.
2
Select the correct queue service.
Amazon SQS FIFO queue is selected to guarantee order and decouple the ingestion and processing layers.
Standard queues do not guarantee message order, while FIFO queues ensure strict ordering.
3
Analyze the consumer application workload characteristics.
The worker application must run continuously to process a steady stream of incoming messages.
This dictates the choice of compute service, favoring persistent container orchestration over short-lived serverless functions.
4
Select the correct compute service.
Amazon ECS with AWS Fargate is chosen to host the containerized worker continuously.
AWS Lambda is not suitable due to its 15-minute maximum execution timeout.

Anahtar Kavram

Decoupling message processing using SQS FIFO queues and deploying continuous consumers using Amazon ECS.
Soru 493Soru

A company is designing a secure architecture to allow a third-party vendor's application, running in AWS Account B (222222222222222222222222), to write diagnostic logs to an Amazon S3 bucket in the company's AWS Account A (111111111111111111111111). The S3 bucket in Account A is encrypted using an AWS KMS customer managed key. The solution must ensure that the vendor cannot access other resources in Account A, does not use long-term AWS credentials, is protected against the confused deputy problem, and follows the principle of least privilege. Which TWO configurations must a solutions architect implement to meet these requirements?

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

Cevabı ve açıklamayı göster

Cevap: Create an IAM role in Account A with a trust policy that allows the principal `arn:aws:iam::222222222222:root` to perform `sts:AssumeRole`, and include a condition for `sts:ExternalId` matching a unique vendor-provided identifier.; Attach a permissions policy to the IAM role in Account A that grants `s3:PutObject` permissions on the S3 bucket and `kms:GenerateDataKey` permissions on the KMS key, and configure the KMS key policy to allow the IAM role to use the key.

Cevap

The solutions architect must create an IAM role in Account A that trusts Account B with an external ID condition, and attach a policy allowing write access to the S3 bucket and permission to generate data keys from the KMS key.
To secure cross-account access without long-term credentials, a solutions architect should configure the third party to assume an IAM role in the resource-owning account. Trusting the root principal of Account B allows IAM administrators in Account B to delegate this role to their local resources, while the external ID prevents the confused deputy vulnerability. The assumed role must also possess write permissions for S3 and permissions to generate data keys for the KMS customer managed key to perform SSE-KMS encryption.

Adım Adım Çözüm

1
Establish the cross-account trust relationship.
An IAM role in Account A is created, allowing Account B to assume it under the condition that a specific external ID is supplied.
This eliminates the need for long-term credentials and addresses the confused deputy problem.
2
Configure permissions for writing encrypted S3 data.
The IAM role permissions policy is configured with S3 write access and KMS data key generation permissions.
Writing to a bucket encrypted with a customer managed KMS key requires both S3 and KMS permissions.
3
Update resource-based key policies.
The KMS key policy is updated to explicitly trust the IAM role in Account A.
KMS customer managed keys require explicit key policy permissions to allow IAM identities to execute cryptographic operations.

Anahtar Kavram

Implementing secure cross-account delegation using IAM roles, trust policies with external IDs, and resource permissions for KMS-encrypted S3 buckets.
Tahmini Süre:3m 0s
Soru 494Soru

A company hosts a specialized data processing service on Amazon EC2 instances. The instances are managed by an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The backend application runs on custom port 80808080. The target group is configured to route traffic to the instances on port 80808080, but the default health checks are failing, and the ALB marks all newly launched instances as unhealthy. Additionally, during scale-in events, active client connections—which can take up to 1010 minutes (600600 seconds) to complete—are being terminated abruptly before finishing their tasks.

Which two actions should a Solutions Architect take to resolve these issues? (Select two.)

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

Cevabı ve açıklamayı göster

Cevap: Set the deregistration delay timeout attribute of the ALB target group to 600600 seconds.; Modify the target group's health check configuration to explicitly use port 80808080.

Cevap

Setting the target group deregistration delay to 600600 seconds and modifying the health check configuration to target port 80808080 explicitly.
The correct options are to increase the target group's deregistration delay to 600600 seconds and explicitly set the health check port to 80808080. Increasing the deregistration delay allows active transactions to complete gracefully during scale-in. Explicitly targeting port 80808080 in the health check ensures the load balancer accurately monitors the backend application.

Adım Adım Çözüm

1
Analyze the connection termination issue.
Identified that the default deregistration delay (connection draining) is forcing active connections to drop before the 1010-minute (600600-second) window needed by the processing tasks.
By increasing the deregistration delay to 600600 seconds, the ALB allows in-flight requests to complete before terminating the EC2 instance.
2
Analyze the health check failure issue.
Identified that target group health checks are targeting the wrong port (e.g., port 8080) instead of the application's active listening port (80808080).
Setting the health check port explicitly to 80808080 ensures the ALB queries the port where the backend service is actually running.

Anahtar Kavram

ELB connection draining (deregistration delay) configuration and target group port mapping for health checks.
Soru 495Soru

A financial technology company is designing a cost-optimization strategy for its application environment on AWS. The application consists of three main components:

1. A core transactional processing service running continuously 24/7 on Amazon ECS with AWS Fargate.
2. A metadata repository on Amazon DynamoDB that handles highly unpredictable, spiky request volumes throughout the day.
3. An image-processing task that runs for less than 10 seconds per invocation, triggered whenever users upload new documents to Amazon S3.

Which of the following compute selection and purchasing strategies is the most cost-effective for this environment?

Cevabı ve açıklamayı göster

Cevap: Run the ECS tasks on AWS Fargate covered by a Compute Savings Plan; configure Amazon DynamoDB in On-Demand capacity mode; and use AWS Lambda for the short-lived document processing tasks.

Cevap

Run the ECS tasks on AWS Fargate covered by a Compute Savings Plan; configure Amazon DynamoDB in On-Demand capacity mode; and use AWS Lambda for the short-lived document processing tasks.
The correct strategy combines Compute Savings Plans for the steady-state ECS Fargate tasks, DynamoDB On-Demand capacity mode for the spiky, unpredictable database traffic, and AWS Lambda for the short-lived, event-driven tasks. Compute Savings Plans apply to Fargate and Lambda, offering up to a 66% discount on Fargate workloads. DynamoDB On-Demand avoids over-provisioning costs by charging only for active read/write requests. AWS Lambda is cost-effective for sub-second and low-duration tasks as you only pay when the function is active.

Adım Adım Çözüm

1
Analyze the compute requirements for the core transactional processing service running continuously 24/7 on Amazon ECS with AWS Fargate.
Identify that a Compute Savings Plan is the most cost-effective purchasing model for Fargate as it offers up to 66% savings over On-Demand rates for a 1- or 3-year commitment, fitting the steady-state nature of the workload.
Steady-state containerized workloads running continuously benefit significantly from the commitment-based discounts of Compute Savings Plans.
2
Analyze the database requirements for Amazon DynamoDB with highly unpredictable, spiky traffic.
Select On-Demand capacity mode rather than Provisioned capacity mode.
On-Demand capacity mode charging per request is more cost-effective for unpredictable and spiky workloads because it avoids the high cost of provisioning for peak capacity that remains largely idle.
3
Analyze the requirements for the short-lived image-processing tasks running for less than 10 seconds.
Select AWS Lambda as the compute service.
AWS Lambda is designed for short-lived, event-driven functions and automatically scales. Since charges are based on execution duration (rounded to the millisecond) and execution count, it is highly cost-effective compared to maintaining idle EC2 or Fargate instances.

Anahtar Kavram

Selecting cost-optimal compute services (ECS Fargate vs Lambda) and aligning them with appropriate purchasing strategies (Compute Savings Plans) and database scaling modes (DynamoDB On-Demand).
Tahmini Süre:1m 30s
Soru 496Soru

A company has a global logistics application deployed on Amazon Elastic Kubernetes Service (EKS) across two AWS regions: us-east-1 and eu-west-1. The application requires access to a proprietary third-party API key to query shipping rates. The API key must be encrypted at rest using a customer managed key (CMK) and must be rotated automatically every 90 days. The application in both regions must retrieve the key with minimal latency. Which combination of actions should a solutions architect recommend to meet these requirements with the least operational overhead? (Select TWO.)

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

Cevabı ve açıklamayı göster

Cevap: Store the API key as a secret in AWS Secrets Manager in us-east-1, and configure replication of the secret to eu-west-1.; Create an AWS Lambda function that performs the API key rotation, and configure AWS Secrets Manager to trigger the function every 90 days.

Cevap

Store the API key as a secret in AWS Secrets Manager in us-east-1 with replication to eu-west-1, and create an AWS Lambda function triggered by Secrets Manager to rotate the secret every 90 days.
Storing the API key in AWS Secrets Manager with native replication to another region ensures local low-latency access in both regions. Creating a custom Lambda function to rotate the secret and scheduling it via Secrets Manager satisfies the 90-day automatic rotation requirement.

Adım Adım Çözüm

1
Select a secure storage service that supports cross-region replication and automatic rotation.
AWS Secrets Manager is chosen because it supports native replication to multiple regions (for low-latency access in us-east-1 and eu-west-1) and built-in integration with AWS Lambda for automatic rotation.
Systems Manager Parameter Store does not support native cross-region replication or built-in rotation schedules for custom secrets, which would increase operational overhead.
2
Configure the replication of the secret from the primary region to the secondary region.
The secret is stored in us-east-1 and replicated to eu-west-1, allowing EKS pods in both regions to query local replica secrets with minimal latency.
This satisfies the requirement to access the secret with low latency across regions.
3
Implement automatic rotation of the third-party API key.
A custom AWS Lambda function is developed to interact with the third-party provider and update the secret value in Secrets Manager. Secrets Manager is configured to run this Lambda function every 90 days.
Since the API key belongs to a third-party service, automatic rotation requires custom logic implemented via a Lambda function. KMS key rotation only rotates the backing KMS key, not the secret content itself.

Anahtar Kavram

AWS Secrets Manager supports native cross-region replication and automated custom secret rotation via AWS Lambda functions, whereas KMS key rotation only rotates the cryptographic keys and not the secrets themselves.
Tahmini Süre:2m 0s
Soru 497Soru

An enterprise has two VPCs (VPC A and VPC B) in the same AWS Region. VPC A hosts a transaction processing application, and VPC B hosts a centralized logging cluster. The application streams approximately 60 TB60\text{ TB} of data monthly to the logging cluster. Currently, the two VPCs are connected via an AWS Transit Gateway. The enterprise wants to reduce the network data transfer costs for this log transmission while ensuring that all traffic remains private. Which two of the following configuration changes should a Solutions Architect recommend? (Choose two.)

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

Cevabı ve açıklamayı göster

Cevap: Establish a VPC Peering connection between VPC A and VPC B.; Update the route tables in both VPC A and VPC B to route the traffic destined for the logging cluster through the VPC Peering connection.

Cevap

Establish a VPC Peering connection between the two VPCs and update the route tables to route the log traffic through the VPC Peering connection instead of the Transit Gateway.
For transferring high volumes of data (such as 60 TB60\text{ TB} monthly) between two VPCs in the same AWS Region, establishing a VPC Peering connection is the most cost-effective option. Unlike AWS Transit Gateway, which charges a per-GB processing fee (0.02 USD0.02\text{ USD} per GB\text{GB}), VPC Peering has no data processing fees and no hourly connection charges. Traffic routed via VPC Peering only incurs standard inter-AZ data transfer fees if the traffic traverses Availability Zones (0.01 USD0.01\text{ USD} per GB\text{GB} in each direction). Updating the VPC route tables ensures that the database traffic is directed through the VPC Peering connection rather than the Transit Gateway.

Adım Adım Çözüm

1
Analyze the current architecture and costs.
The current setup uses AWS Transit Gateway to route 60 TB60\text{ TB} of data monthly between two VPCs in the same Region. Transit Gateway charges a data processing fee (0.02 USD0.02\text{ USD} per GB\text{GB} in most regions), resulting in a processing cost of 60×1000×0.02=1200 USD60 \times 1000 \times 0.02 = 1200\text{ USD} per month.
This establishes the baseline cost and identifies where the optimization can occur.
2
Evaluate alternative private routing mechanisms.
VPC Peering provides direct, private network connectivity between VPCs in the same Region. Unlike Transit Gateway, VPC Peering has no hourly connection fees or data processing charges. Traffic within the same Availability Zone is free, and cross-AZ traffic only incurs standard data transfer fees (0.01 USD0.01\text{ USD} per GB\text{GB}).
VPC Peering is identified as the most cost-effective routing solution for high-volume intra-region traffic.
3
Plan the implementation steps.
A VPC Peering connection must be created and accepted between VPC A and VPC B. Then, the route tables in the private subnets of both VPCs must be updated to direct traffic destined for the other VPC's CIDR block through the VPC Peering connection instead of the Transit Gateway.
This updates the routing path to bypass the Transit Gateway and leverage the cost-effective VPC Peering connection.

Anahtar Kavram

Choosing VPC Peering over Transit Gateway to minimize data processing fees for high-volume data transfer between VPCs in the same Region.
Soru 498Soru

A financial technology company operates a transaction processing application deployed across two AWS Regions: us-east-1 and us-west-2. The application requires access to a third-party payment gateway API key that must be rotated every 30 days. To comply with security mandates, the key must be encrypted at rest using a Customer Managed Key (CMK) in AWS KMS, and the KMS CMK itself must be rotated annually. The solution must ensure that client applications in both Regions can retrieve the active API key with latency under 50 ms50\text{ ms} and experience no service interruptions during both API key rotation and KMS key rotation. Which architecture should a solutions architect recommend to meet these requirements with the least operational overhead?

Cevabı ve açıklamayı göster

Cevap: Create a secret in AWS Secrets Manager in us-east-1 and enable multi-Region replication to us-west-2. Configure the secret to use a Customer Managed Key (CMK) in each Region. Enable Secrets Manager automatic rotation every 30 days using a custom AWS Lambda function, and enable automatic key rotation on both KMS CMKs. Configure the application in each Region to read the secret from the local Secrets Manager endpoint.

Cevap

Create a secret in AWS Secrets Manager in us-east-1 and enable multi-Region replication to us-west-2. Configure the secret to use a Customer Managed Key (CMK) in each Region. Enable Secrets Manager automatic rotation every 30 days using a custom AWS Lambda function, and enable automatic key rotation on both KMS CMKs. Configure the application in each Region to read the secret from the local Secrets Manager endpoint.
The correct architecture uses AWS Secrets Manager's native multi-Region replication to copy the secret to the secondary Region, allowing local applications to retrieve the secret with minimal latency. Encryption is handled using a Customer Managed Key (CMK) in each Region. Configuring automatic rotation via a custom Lambda function ensures the third-party credential is rotated every 30 days, and enabling automatic KMS CMK rotation ensures that key rotation occurs seamlessly without needing manual re-encryption or causing application downtime.

Adım Adım Çözüm

1
Select AWS Secrets Manager for storing the sensitive API key rather than AWS Systems Manager Parameter Store.
Secrets Manager is chosen because it supports native multi-Region replication and automated rotation out-of-the-box, which aligns with the requirements of minimal latency (< 50 ms via local endpoints) and low operational overhead.
Systems Manager Parameter Store lacks native cross-Region replication and automated rotation features for third-party keys.
2
Configure multi-Region replication for the secret from us-east-1 to us-west-2 using local KMS CMKs in each Region.
The secret is automatically replicated and re-encrypted in us-west-2 using the destination Region's KMS CMK.
This guarantees that application instances in both Regions can query their local Secrets Manager endpoint to retrieve the secret with low latency.
3
Implement a custom AWS Lambda function to rotate the third-party API credential every 30 days, and configure Secrets Manager to trigger it.
Secrets Manager manages the execution of the Lambda function to update the secret value and propagates the updated secret to the replica Region.
Since the API key belongs to a third-party gateway, a custom Lambda function is necessary to call the gateway's API to obtain a new key and update the secret value.
4
Enable automatic annual key rotation on the KMS Customer Managed Keys in both Regions.
AWS KMS generates a new backing key annually while retaining the old backing key to decrypt any historical ciphertext.
This ensures that older secret versions can still be decrypted seamlessly without requiring manual re-encryption or causing application downtime.

Anahtar Kavram

AWS Secrets Manager multi-Region replication combined with custom rotation Lambda functions and AWS KMS automatic key rotation mechanics.
Tahmini Süre:3m 0s
Soru 499Soru

A genomics research institute is deploying a DNA sequencing pipeline on Amazon EC2 instances. The workload requires a tightly-coupled cluster of compute nodes to perform distributed sequence alignment using Message Passing Interface (MPI). In addition, a web dashboard queries a status daemon running on port 94439443 of these instances to monitor alignment progress. The dashboard traffic is distributed to the instances via an Application Load Balancer (ALB) listening on port 443443.

Which TWO configurations should a solutions architect implement to achieve optimal network performance for the MPI workload and ensure the ALB correctly monitors the status daemon?

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

Cevabı ve açıklamayı göster

Cevap: Deploy the EC2 instances in a cluster placement group within a single Availability Zone.; Configure the ALB target group's health checks to use port 94439443 instead of the default traffic port.

Cevap

Deploy the EC2 instances in a cluster placement group within a single Availability Zone, and configure the Application Load Balancer target group's health checks to use the custom daemon port instead of the default traffic port.
The correct configurations are to deploy the EC2 instances in a cluster placement group and to configure the ALB target group's health checks to use the specific port where the status daemon runs. A cluster placement group places instances physically close to each other in a single Availability Zone, providing the low-latency network performance required by tightly-coupled MPI workloads. Additionally, specifying the custom daemon port for the ALB health checks ensures the load balancer accurately monitors the status daemon's health rather than the main web server port.

Adım Adım Çözüm

1
Determine the placement group requirement for a tightly-coupled MPI computing workload.
A cluster placement group is selected because it enables low-latency, high-throughput node-to-node networking within a single Availability Zone.
Tightly-coupled cluster nodes must communicate with minimal latency, which is the primary benefit of cluster placement groups.
2
Identify the correct health check port configuration for the status daemon.
The health check port in the target group configuration must be explicitly set to the daemon's port.
If the daemon runs on a custom port that is different from the main traffic port, the default traffic port health check will fail to monitor the actual daemon.

Anahtar Kavram

Tightly-coupled high-performance computing (HPC) environments require cluster placement groups for low-latency networking, and load balancers must have health checks aligned with the specific service ports of monitored daemons.
Soru 500Soru

A financial technology company hosts a transactional banking application on AWS. The architecture consists of Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer, and a Multi-AZ Amazon RDS for PostgreSQL database. To meet regulatory compliance, the company must establish a cross-region disaster recovery (DR) plan with a Recovery Point Objective (RPO) of 15 minutes and a Recovery Time Objective (RTO) of 2 hours. The solutions architect must design a solution that minimizes ongoing infrastructure costs in the secondary region. Which disaster recovery strategy should the solutions architect recommend to meet these requirements?

Cevabı ve açıklamayı göster

Cevap: Replicate the database to the secondary region using an Amazon RDS cross-region read replica. Store the application AMIs in the secondary region and maintain AWS CloudFormation templates to provision the Application Load Balancer and Auto Scaling group only during a failover event.

Cevap

Replicate the database to the secondary region using an Amazon RDS cross-region read replica. Store the application AMIs in the secondary region and maintain AWS CloudFormation templates to provision the Application Load Balancer and Auto Scaling group only during a failover event.
The correct option proposes a Pilot Light disaster recovery strategy. By replicating the database using an Amazon RDS cross-region read replica, the solution ensures that transactional data is continuously copied, satisfying the 15-minute RPO. Since the RTO is relatively generous (2 hours), compute resources such as Application Load Balancers and Auto Scaling groups do not need to run continuously. Deploying these resources dynamically using stored AMIs and pre-configured CloudFormation templates minimizes ongoing infrastructure costs in the secondary region while comfortably meeting the 2-hour RTO.

Adım Adım Çözüm

1
Evaluate the RPO requirement (15 minutes) against data replication options.
Cross-region RDS read replicas provide continuous asynchronous replication, keeping data lag to a few seconds or minutes, which easily satisfies the 15-minute RPO.
Ensures that the secondary database is up-to-date and ready for promotion with minimal data loss.
2
Evaluate the RTO requirement (2 hours) and cost-minimization constraint.
A Pilot Light strategy allows the database to run as a read replica in the secondary region while keeping compute resources shut down or unprovisioned. Deploying compute resources via CloudFormation templates and AMIs takes less than 30 minutes, which is well within the 2-hour RTO limit and minimizes compute costs.
Allows the company to avoid paying for running EC2 instances and load balancer idle time in the secondary region during normal operations.
3
Compare against the Warm Standby and Backup and Restore alternatives.
Warm Standby is rejected due to unnecessary ongoing compute cost. Backup and Restore with Glacier is rejected because Glacier retrieval times exceed the 2-hour RTO, and hourly snapshots violate the 15-minute RPO.
Selects the optimal strategy that meets all recovery goals while staying cost-optimized.

Anahtar Kavram

Disaster Recovery strategies (Pilot Light vs. Warm Standby) and cross-region database replication in AWS.
Tahmini Süre:2m 0s
ÖncekiSayfa 25 / 74Sonraki
Tüm alıştırma soruları — AWS Certified Solutions Architect - Associate | Examkin