All practice questions
1542 questions
A developer needs to configure an Amazon Kinesis Data Stream to ingest telemetry data from thousands of IoT devices. To ensure that data is distributed evenly across all shards, which TWO values should the developer select to use as the partition key? (Select TWO.)
Select all that apply
A developer is designing an online bookstore's catalog system where inventory updates and search queries must be highly optimized. The application writes book metadata updates per second to an Amazon DynamoDB table, with each write payload size averaging . To support real-time inventory dashboards, the application runs strongly consistent `Query` operations per second. Each `Query` returns a list of book items associated with a specific publisher (the partition key), and each book item has an average size of . Which of the following represents the minimum provisioned read capacity units (RCUs) and write capacity units (WCUs) required to support this workload?
A developer is implementing a background processing application on Amazon EC2 instances that retrieves and processes data batches from an Amazon SQS standard queue. Each batch processing operation takes approximately minutes to complete. During testing, the developer observes that multiple EC2 instances are processing the same data batches, causing duplicate records in the database. The SQS queue is currently using the default configuration values. Which of the following actions will resolve the duplicate processing issue?
A developer is setting up an Amazon S3 Batch Operations job to execute an AWS Lambda function on millions of objects in an Amazon S3 bucket. The developer creates an IAM role to grant the necessary permissions. However, the S3 Batch Operations job fails to run during initialization, resulting in an authorization failure. The developer inspects the trust policy attached to the role:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "s3.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
Which two actions should the developer take to resolve this authorization failure and successfully run the batch job? (Select TWO.)
Select all that apply
A developer is designing the backend for an IoT vehicle tracking application. The application processes telemetry data from active vehicles. The data is written to an Amazon DynamoDB table using `VehicleId` as the partition key and `Timestamp` as the sort key.
The application must support the following access patterns:
1. Retrieve only the single most recent telemetry record for a specific vehicle.
2. Retrieve all telemetry records across all vehicles that have returned a status of `Error` within the last hours.
Which two actions should the developer take to meet these requirements with the lowest latency and cost? (Select TWO.)
Select all that apply
A developer is designing a system for an online gaming platform where player score updates must be processed in the exact order they occur. The platform must also fan out these updates to both a leaderboard service and an archiving service, ensuring each service receives a copy of every update. Which combination of configurations will meet these requirements? (Select TWO.)
Select all that apply
A developer has configured an Amazon DynamoDB table with DynamoDB Streams enabled to trigger an AWS Lambda function. The stream has a single active shard. During load testing, a high volume of database writes causes significant lag in stream processing because the Lambda function cannot keep up with the rate of incoming records. The developer needs to reduce the processing latency and resolve the lag while maintaining the order of processed records per partition key. Which configuration change will resolve the stream processing lag?
A developer is deploying an application on Amazon ECS using the AWS Fargate launch type. The application container needs to read messages from an Amazon SQS queue. The developer creates an IAM role with the correct SQS permissions, but the ECS task fails to start, returning an error that the task role could not be assumed. The developer inspects the trust policy currently associated with the IAM role:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ecs.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
Which modification to the trust policy will resolve this issue and allow the ECS task to assume the role?
A developer is implementing a transaction processing service for a financial ledger application. The application tracks transactions in an Amazon DynamoDB table with the following schema:
- Partition Key: `` (string)
- Sort Key: `` (string)
- Attributes: `` (number), `` (number), `` (string)
The application currently retrieves all transactions for a given `` that are in a 'PENDING' status. During peak traffic, the application experiences high latency and receives `ProvisionedThroughputExceededException` errors, even though the total Read Capacity Units (RCUs) provisioned are sufficient for the workload. Furthermore, during a security audit, it was discovered that the ECS tasks running this microservice are configured with hardcoded AWS credentials in the container environment variables.
Which two actions should the developer take to resolve the latency, throughput, and security issues?
Select all that apply
An online education company uses an Amazon DynamoDB table named `CourseProgress` to track student progress. The table uses `StudentID` as the partition key and `CourseID` as the sort key. Over time, students accumulate thousands of records, but only a small fraction of these courses are fully completed. A dashboard frequently retrieves only the completed courses for a specific student. As the volume of in-progress course records grows, the dashboard queries become slower and consume a significant number of Read Capacity Units (RCUs). Which database design pattern or operation should a developer implement to retrieve the completed courses in the most cost-effective and performant manner?
A developer is designing an integration for an e-commerce platform's inventory and shipping services. When a customer places an order, both the inventory service and the shipping service must receive the order details. The services must process orders in the exact order they were placed to maintain correct inventory levels and shipping sequences. If processing fails for a specific customer's order, it must not block the processing of orders for other customers. Which combination of actions will meet these requirements? (Select TWO.)
Select all that apply
An organization has deployed a retail processing system where an AWS Lambda function must verify transactions against a third-party payment vendor's HTTPS API. The function retrieves the vendor API keys from AWS Systems Manager Parameter Store. During load testing, the team notices latency spikes and hits the rate limit for Parameter Store API requests. Which implementation strategy will resolve these issues while maintaining security best practices?
A developer is configuring an Amazon EventBridge Scheduler schedule to send messages to an Amazon SQS queue named OrderProcessingQueue in the same AWS account. The schedule is failing to deliver messages, and execution metrics show access denied errors.
Which two configurations are required to resolve this permissions issue? (Select TWO.)
Select all that apply
An enterprise e-commerce platform publishes high-volume checkout transaction events to a custom Amazon EventBridge event bus. A developer needs to route a subset of these events (specifically where the payment status is 'approved' and transaction amount exceeds ) to an Amazon Kinesis Data Stream containing shards for real-time analytics. An AWS Lambda function is configured to process these records from the Kinesis stream. The developer must ensure that events from the same customer are processed sequentially in the correct order, and that EventBridge has the necessary permissions to write to the Kinesis stream.
Which combination of configuration steps should the developer perform to meet these requirements? (Select two.)
Select all that apply
A developer is developing an AWS Lambda function that processes incoming file uploads from an Amazon S3 bucket. The processed data is then written to an Amazon DynamoDB table. During performance testing, the developer identifies two issues:
1. During peak traffic, the function scales rapidly and consumes all available concurrency in the AWS Region, causing other critical Lambda functions in the account to be throttled.
2. The function experiences elevated latency because it establishes a new connection to DynamoDB on every single invocation.
Which two actions should the developer take to resolve these issues? (Select two.)
Select all that apply
A developer is implementing an AWS Lambda function that processes transaction records and stores them in an Amazon RDS database. The developer wants to optimize the database connection management to avoid connection overhead on subsequent invocations, while ensuring that the function does not exhaust the database's max connection limit during scaling. Which configuration and coding pattern should the developer implement?
A developer is implementing a medical report analysis service where PDF files are processed by a consumer application. The application retrieves processing tasks from an Amazon SQS queue. Each task takes exactly seconds to complete. The developers observe that the same reports are frequently processed multiple times, causing duplicate entries in the database. Which configuration change will prevent these duplicate processing events?
A developer is building a REST API in Amazon API Gateway that integrates with a backend AWS Lambda function. The API must secure its endpoints by validating custom JSON Web Tokens (JWTs) issued by an external, third-party identity provider. If the token is valid, the API must pass the verified user identity details to the backend Lambda function; otherwise, it must block the request before it reaches the backend. Which API Gateway configuration should the developer use to satisfy these requirements?
A developer is designing a REST API in Amazon API Gateway. The API uses request validation with a model schema to ensure incoming client payloads are correctly structured. If a client sends an invalid request body or fails to provide a valid API key, API Gateway rejects the request before it reaches the backend integration. The developer wants to customize these gateway-level error responses to return a standard JSON error structure and inject a custom tracking header (X-Request-Tracking-Id) into the HTTP response.
Which two configurations should the developer implement in API Gateway to meet these requirements? (Select TWO.)
Select all that apply
A developer is building a telemetry ingestion pipeline where an Amazon EventBridge rule routes custom device events to an Amazon Kinesis Data Stream target. The event payloads contain a nested JSON structure like the following:
{
"version": "2026-07-15",
"detail-type": "DeviceTelemetry",
"source": "my.company.iot",
"detail": {
"device_id": "dev-98765",
"region": "us-west-2",
"metrics": {
"temperature": 42.5
}
}
}
During load testing, the developer observes two issues:
1. All events are being routed to a single shard in the Kinesis stream, causing write throttling (`ProvisionedThroughputExceededException`).
2. Some events are dropped entirely with delivery failures, and the EventBridge target invocation logs show access denied errors.
Which combination of configuration changes will resolve both the write throttling and the event delivery failures?