Tüm alıştırma soruları
1542 soru
A developer is implementing a serverless worker application. An Amazon SQS standard queue triggers an AWS Lambda function to process inventory updates. The Lambda function has its timeout configured to , and the SQS queue has a visibility timeout of . During peak hours, the developer notices that some inventory updates are processed multiple times, resulting in incorrect stock counts in the database. Which configuration change will resolve this issue?
An image processing application uses an Amazon SQS standard queue to decouple a web front-end from EC2 worker instances. The worker instances retrieve messages from the queue, download a high-resolution image from Amazon S3, perform CPU-intensive image compression, and upload the processed image back to S3. Currently, the SQS queue's default visibility timeout is configured to seconds. However, for large images, the compression process can take up to minutes ( seconds). As a result, other worker instances frequently retrieve the same image message while it is still being processed by the first worker, leading to duplicate processing. Which of the following actions should the developer take to resolve this issue? (Select TWO.)
Geçerli olan tümünü seçin
A developer is designing a subscription management system using Amazon DynamoDB. The table stores customer subscriptions with `SubscriptionID` as the partition key. Over of the subscriptions are in the "Active" status, while less than are in the "PendingCancellation" status. The developer needs to build a dashboard that lists all subscriptions in the "PendingCancellation" status. Which two actions should the developer take to retrieve this data in the most cost-effective and performant manner?
Geçerli olan tümünü seçin
A developer is testing a Node.js-based AWS Lambda function that processes incoming telemetry data. To analyze cold starts and container lifetime, the developer declares a variable outside the handler function to count the number of times the container has processed an event:
javascript
let localEventCount = 0;
exports.handler = async (event) => {
localEventCount++;
console.log("Events processed: " + localEventCount);
};
During a load test with high concurrent traffic, the developer notices that some log entries show sequential numbers (e.g., ), while other concurrent logs show a value of at the same timestamp.
Which of the following statements explains this behavior?
A developer is designing a classroom reservation system. The reservation records are stored in an Amazon DynamoDB table. The application needs to support queries to retrieve reservations for a specific classroom by date. To optimize performance and control cost, the developer must select the appropriate key schema and query strategy.
Which design option represents the most efficient and standard-compliant configuration for this requirement?
A developer is designing a backend for a retail checkout system. Order placement events must be processed in the exact sequence they are submitted for each customer. Additionally, the system must filter out duplicate checkout submissions if a customer accidentally clicks the "Submit Order" button multiple times within a -minute window. Which SQS FIFO queue configuration and message attributes should the developer use to meet these requirements?
A serverless application contains multiple AWS Lambda functions. During peak traffic periods, a background data-processing function triggered by Amazon S3 events scales rapidly and consumes all of the available execution concurrency in the AWS Region. This causes customer-facing Lambda functions integrated with Amazon API Gateway to fail with throttling errors. Which configuration should a developer apply to prevent the background function from exhausting the available regional concurrency?
A developer is building a personal finance application that tracks user transactions. The transactions are stored in an Amazon DynamoDB table with AccountID as the partition key and TransactionTimestamp as the sort key. A dashboard needs to display all transactions for a specific account that are categorized as 'Entertainment' to analyze spending habits. The developer wants to retrieve this data with the lowest latency and minimal Read Capacity Unit (RCU) consumption. Which two strategies should the developer implement to meet these requirements? (Choose two.)
Geçerli olan tümünü seçin
A developer is designing a messaging architecture for an online medical clinic's appointment scheduling platform. When a patient schedules or updates an appointment, the system must broadcast this event to two downstream services:
1. A reminder service that sends SMS and email notifications to patients. This service does not require messages to be processed in order.
2. A calendar synchronization service that must process events in the exact chronological order they occurred to prevent scheduling conflicts.
Which combination of actions should the developer take to implement this architecture? (Select TWO.)
Geçerli olan tümünü seçin
A developer is building a serverless order-processing application. An AWS Lambda function is triggered by an Amazon SQS queue. The function must connect to an Amazon RDS PostgreSQL database located in a private VPC subnet to retrieve customer data, and call a third-party payment gateway API over the internet to authorize transactions. The developer also wants to minimize connection latency to the database. Which combination of configurations must the developer implement to meet these requirements? (Select two.)
Geçerli olan tümünü seçin
A developer is building a document management system for a consulting firm where client engagement files are stored in an Amazon DynamoDB table. The table is structured with `EngagementID` as the partition key and `FileID` as the sort key. The table size is approximately . The developer needs to implement a feature that retrieves all files for a specific engagement that have a status of 'NeedsReview'. Which approach represents the most performant and cost-effective method to retrieve these records?
A developer is designing a serverless notification architecture for an e-commerce platform. When an order is placed, details must be sent to three downstream systems: fulfillment (which only processes 'Express' orders), marketing (which tracks all orders), and analytics (which only processes orders with a value of $100 or more). The developer wants to minimize costs and operational overhead, and avoid having downstream systems filter out irrelevant messages. Which architecture should the developer implement?
A developer is building a serverless backend using AWS Lambda that queries an Amazon RDS database. To optimize performance and reduce database connection overhead, the developer wants to implement execution context reuse. The Lambda function also needs to retrieve database credentials securely from AWS Systems Manager Parameter Store.
Which two actions should the developer take to meet these performance and security requirements? (Select two.)
Geçerli olan tümünü seçin
A developer is designing an AWS Lambda function that processes customer orders. The function must retrieve configuration parameters from an Amazon ElastiCache for Redis cluster located in the private subnets of a custom VPC. Additionally, for each processed order, the Lambda function must send a confirmation message to a third-party billing API on the public internet. Which configuration will allow the Lambda function to connect to the ElastiCache cluster and successfully call the third-party billing API?
A developer is building a backend service for a food delivery application. The service needs to store and query customer order history in an Amazon DynamoDB table. The table is structured with `CustomerId` as the partition key and `OrderTimestamp` as the sort key. The developer also needs to perform bulk updates of restaurant menus daily, uploading up to menu items. The developer wants to optimize application performance, minimize DynamoDB capacity consumption, and ensure secure credential management.
Which two strategies should the developer implement? (Select two.)
Geçerli olan tümünü seçin
A developer is configuring an Amazon SQS event source mapping for an AWS Lambda function that processes customer feedback messages. The SQS queue visibility timeout is configured to seconds. To optimize message processing, the developer wants to process messages in batches of up to , handle partial batch failures gracefully so that only failed messages are retried, and prevent message processing from timing out before the visibility window expires. Which combination of configurations will achieve these goals? (Select two.)
Geçerli olan tümünü seçin
A developer is building a warehouse inventory management application that uses an Amazon DynamoDB table. The table's partition key is and the sort key is . The developer needs to retrieve all items belonging to a specific warehouse where the attribute is less than . The table contains millions of items, but each individual warehouse has at most a few thousand items. Which approach should the developer use to retrieve the required items with the lowest latency and the most efficient Read Capacity Unit () consumption?
A developer is building a serverless application where an Amazon S3 bucket triggers an AWS Lambda function asynchronously when new files are uploaded. The Lambda function processes each file and performs data extraction. Under heavy load, some files fail to process. The developer wants to ensure that any failed event payload is automatically sent to an Amazon SQS queue for manual analysis, rather than being discarded. Which of the following is the AWS-recommended method to achieve this?
A developer is building a fitness tracking application that logs daily workout sessions for users. The application needs to import a batch of workout records into an Amazon DynamoDB table. If some records fail to write due to transient issues or throughput throttling, the application must identify and retry writing only those failed records. Which approach should the developer implement to accomplish this requirement with the least operational overhead?
A healthcare monitoring application ingests real-time vital signs from patient wearable devices into an Amazon Kinesis Data Stream. During peak clinical hours, the producer applications report frequent ProvisionedThroughputExceededException errors. Upon analysis, the developer finds that the aggregate write throughput is significantly below the stream's provisioned limit, but a subset of shards is heavily throttled. The application uses the device manufacturer name as the partition key.
Which action should the developer take to resolve the write throttling?