Curated

Development with AWS Services 1 (1.1)

0 votes

Questions50

  1. Question 1

    Development with AWS Services

    Which design MOST clearly indicates tight coupling between services?

    Show the answer

    Correct answerC. Services require coordinated releases after internal database schema changes.

    AWhy not this: Endpoint discovery avoids embedding service locations and does not itself imply tight coupling.

    BWhy not this: Independent scaling indicates that services can manage capacity separately.

    CWhy this is right: Release coordination caused by internal schema changes reveals an implementation dependency.

    DWhy not this: A documented event contract can let services evolve their internal implementations independently.

    Coordinated releases after internal schema changes indicate that implementation details cross service boundaries. A documented message contract establishes an interface without necessarily exposing internal storage details.

    Open this question
  2. Question 2

    Development with AWS Services

    An application must receive an immediate response from an internal service, but hard-coded IP addresses require configuration changes whenever service instances move. Which change BEST reduces location coupling?

    Show the answer

    Correct answerB. Discover service endpoints through AWS Cloud Map.

    AWhy not this: Retries address transient failures but do not replace hard-coded endpoint addresses.

    BWhy this is right: Service discovery separates the service's identity from the changing addresses of its instances.

    CWhy not this: Request validation checks input correctness rather than locating service instances.

    DWhy not this: Queue-based processing changes the interaction instead of preserving immediate request-response behavior.

    AWS Cloud Map lets applications discover service endpoints rather than embed instance addresses. An SQS queue can decouple processing availability, but it changes the interaction to asynchronous processing rather than preserving the required immediate response.

    Open this question
  3. Question 3

    Development with AWS Services

    An upload service calls an image processor directly and rejects uploads when the processor is unavailable. Processing can finish later. Which change BEST removes this availability dependency?

    Show the answer

    Correct answerD. Submit processing jobs to Amazon SQS for workers to consume.

    AWhy not this: A longer timeout increases waiting time without removing the dependency on processor availability.

    BWhy not this: Load balancing distributes calls but does not buffer jobs when processors are unavailable.

    CWhy not this: Backoff reduces retry pressure but retains the direct availability dependency.

    DWhy this is right: A queue accepts jobs independently of worker availability, allowing processing to occur later.

    Amazon SQS buffers jobs so uploads do not depend on the processor being available at that moment. Retries with backoff handle temporary failures but leave the upload service dependent on successful direct calls.

    Open this question
  4. Question 4

    Development with AWS Services

    An SNS topic fans out order events to two SQS queues. Billing must receive every event, but fulfillment needs only events whose orderType message attribute is physical. How should the team keep other events out of the fulfillment queue without changing the publisher?

    Show the answer

    Correct answerD. Add a filter policy to the fulfillment queue's subscription that matches orderType physical.

    AWhy not this: A visibility timeout only hides received messages temporarily; every message is still delivered to the queue.

    BWhy not this: A dead-letter queue receives messages that fail processing too many times, not messages of a given type.

    CWhy not this: Raw message delivery removes the SNS JSON envelope but still delivers every message.

    DWhy this is right: A subscription filter policy lets SNS deliver only matching messages to that subscription.

    An SNS subscription filter policy makes SNS deliver to that subscription only messages whose attributes (or body) match, so the fulfillment queue receives only physical orders while billing's unfiltered subscription receives everything. Visibility timeouts, dead-letter queues and raw message delivery change how messages are processed or formatted, not which messages are delivered.

    Open this question
  5. Question 5

    Development with AWS Services

    A service commits an order to Amazon RDS and then publishes an event, but a crash between these operations can leave downstream services uninformed. Orders must commit without downstream availability, and duplicate events are acceptable; which design BEST meets these requirements?

    Show the answer

    Correct answerB. Commit an outbox record with the order, then relay events asynchronously.

    AWhy not this: An external publish is not made atomic by placing its call inside a database transaction.

    BWhy this is right: An atomic order-and-outbox commit preserves publication intent without requiring downstream availability.

    CWhy not this: Publishing first can notify consumers about an order whose database transaction subsequently fails.

    DWhy not this: In-memory retry state can disappear in the same crash that interrupts event publication.

    A transactional outbox commits the order and pending event atomically, allowing a separate relay to publish later and retry after crashes. Publishing inside the database transaction still cannot make the database commit and external publish atomic, and it adds an availability dependency.

    Open this question
  6. Question 6

    Development with AWS Services

    An order service must notify independent consumers without waiting for them. Each consumer needs events matching its own order attributes; which approach best meets these requirements?

    Show the answer

    Correct answerD. Publish events to EventBridge with a matching rule for each consumer

    AWhy not this: Synchronous calls make the producer wait for consumer responses.

    BWhy not this: Response mappings transform responses; they do not asynchronously route events to independent consumers.

    CWhy not this: A shared queue distributes messages among consumers rather than independently notifying each consumer.

    DWhy this is right: EventBridge supports asynchronous routing to independent targets using event-pattern matching.

    EventBridge rules route matching events to independent targets without making the producer wait for their processing. Consumers sharing one SQS queue compete for messages rather than each receiving the events they need.

    Open this question
  7. Question 7

    Development with AWS Services

    An export API starts jobs that take several minutes, but callers disconnect after 10 seconds. Clients must distinguish acceptance from successful completion and retrieve results later; which design best meets these requirements?

    Show the answer

    Correct answerD. Queue the job, return HTTP 202 with a job ID, and expose a status endpoint

    AWhy not this: A longer integration timeout does not prevent callers from disconnecting after 10 seconds.

    BWhy not this: Acceptance of an asynchronous invocation does not establish successful job completion.

    CWhy not this: Marking queued work as completed incorrectly equates acceptance with successful execution.

    DWhy this is right: A job identifier and status endpoint separate acceptance from completion without holding the connection.

    An asynchronous job API returns HTTP 202 and a job identifier, then exposes processing status and results separately. Extending the integration timeout does not solve the caller's 10-second disconnect, and accepting work does not mean that work succeeded.

    Open this question
  8. Question 8

    Development with AWS Services

    Requests arrive faster than workers can process them during brief bursts. Which approach lets workers process the backlog asynchronously?

    Show the answer

    Correct answerD. Buffer requests in an Amazon SQS queue

    AWhy not this: A longer timeout keeps requests open rather than buffering work for asynchronous processing.

    BWhy not this: Request validation checks input structure rather than buffering work.

    CWhy not this: Retries can add load and do not provide a durable backlog for workers.

    DWhy this is right: SQS retains pending messages so workers can process them as capacity becomes available.

    SQS buffers requests so workers can process a backlog independently of the arrival rate. Increasing a synchronous response timeout keeps callers waiting but does not create a durable work buffer.

    Open this question
  9. Question 9

    Development with AWS Services

    Which workloads are suitable for asynchronous processing because the caller does not need the processing result immediately? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Generating thumbnails after an image uploadC. Sending a receipt after an order is confirmed

    AWhy this is right: Thumbnail generation can run in the background after the upload completes.

    BWhy not this: The authorization decision must be available before protected data is returned.

    CWhy this is right: Receipt delivery can occur independently after the order has been confirmed.

    DWhy not this: A discount included in the current response must be calculated before that response is returned.

    EWhy not this: The application must obtain the authentication result before granting access.

    Thumbnail generation and receipt delivery can complete after the initiating request finishes. Authentication and authorization decisions, like a discount required in the current response, must finish before that response can be returned.

    Open this question
  10. Question 10

    Development with AWS Services

    Repeated failures from a downstream service are exhausting an application's connection pool. Which mechanism should temporarily stop calls to that service and later allow limited requests to test recovery?

    Show the answer

    Correct answerC. A circuit breaker with a half-open state

    AWhy not this: A constant allowance limits volume but does not suspend calls based on repeated dependency failures.

    BWhy not this: Additional retries increase calls to the failing dependency and can worsen resource exhaustion.

    CWhy this is right: The open state blocks calls, and the half-open state permits limited recovery probes.

    DWhy not this: Publishing health metrics alone does not prevent application calls to the failing service.

    A circuit breaker stops calls after repeated failures and uses the half-open state to probe recovery. A constant rate limiter controls request volume but does not respond to dependency failures with this state transition.

    Open this question
  11. Question 11

    Development with AWS Services

    What setting bounds how long an application waits for a downstream service response?

    Show the answer

    Correct answerB. Request timeout

    AWhy not this: An attempt limit controls retry count rather than the wait for an individual response.

    BWhy this is right: A request timeout limits how long the application waits for a service response.

    CWhy not this: Cache TTL controls how long cached data remains valid rather than the wait for a service response.

    DWhy not this: Pool size controls available connections rather than how long a response can take.

    A request timeout bounds the wait for an individual service response. A retry attempt limit bounds the number of attempts, not the duration of each attempt.

    Open this question
  12. Question 12

    Development with AWS Services

    Hundreds of application instances receive throttling errors from an AWS service and retry at the same exponentially increasing intervals. What change BEST reduces synchronized retry spikes while retaining retries?

    Show the answer

    Correct answerD. Add randomized jitter to the backoff delays.

    AWhy not this: More attempts can increase load without separating synchronized retries.

    BWhy not this: A shared fixed delay can cause clients to continue retrying together.

    CWhy not this: Longer request timeouts do not randomize when throttled requests are retried.

    DWhy this is right: Randomized delays spread retries across instances and reduce coordinated load spikes.

    Jitter spreads retry attempts across time so clients do not repeatedly hit the service together. Exponential backoff without randomness can leave clients synchronized, and a fixed delay preserves that synchronization.

    Open this question
  13. Question 13

    Development with AWS Services

    A product page retrieves essential product details and optional personalized recommendations from separate services. If recommendations are unavailable, which behavior BEST preserves the page's usefulness?

    Show the answer

    Correct answerB. Display product details without recommendations.

    AWhy not this: Failing the whole page unnecessarily makes essential functionality depend on an optional service.

    BWhy this is right: Returning essential details preserves useful functionality despite the optional service failure.

    CWhy not this: Deferring the whole request does not provide the interactive product page the user needs.

    DWhy not this: Waiting delays essential content because of an optional dependency.

    Graceful degradation preserves essential functionality when an optional dependency fails. Waiting for recommendations makes an optional feature an availability dependency for the whole page.

    Open this question
  14. Question 14

    Development with AWS Services

    A synchronous API has a two-second response budget, but its application retry loop wraps AWS SDK retries, multiplying calls during throttling. The operation is safe to retry; which policy BEST preserves bounded transient-failure recovery without amplifying load?

    Show the answer

    Correct answerC. Keep retries at one layer and bound attempts and timeouts by the remaining request budget.

    AWhy not this: An unbounded application loop can exceed the deadline and sustain load during throttling.

    BWhy not this: More attempts with shorter delays amplify load and can exhaust the response budget.

    CWhy this is right: One retry owner prevents multiplication, and a shared time budget bounds total request duration.

    DWhy not this: Nested retries still multiply calls, and independent timeouts can exceed the caller's budget.

    A single retry layer avoids multiplicative attempts, while deadline-aware limits keep recovery within the caller's budget. Independent timeouts at nested layers do not enforce an end-to-end deadline.

    Open this question
  15. Question 15

    Development with AWS Services

    An Amazon API Gateway REST API must reject application/json requests with a missing quantity, a quantity below 1, or a missing X-Tenant header before invoking its integration. Which configurations together enforce these requirements? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Associate a request validator that validates both the body and request parameters.C. Mark X-Tenant as a required header in the method request configuration.D. Associate an application/json body model requiring quantity with a numeric minimum of 1.

    AWhy this is right: Body and parameter validation must both be enabled to enforce all the stated constraints.

    BWhy not this: A response model describes output rather than enforcing incoming request requirements.

    CWhy this is right: Required method request parameters let the validator reject a missing or blank header.

    DWhy this is right: The body model defines the required quantity property and its permitted minimum value.

    EWhy not this: An integration mapping template transforms input; it is not the request-validation mechanism.

    FWhy not this: Parameter validation alone does not evaluate the JSON body against its model.

    The request model defines the body constraints, the method request marks the header as required, and the validator enforces both. A parameters-only validator checks required parameters but does not enforce the body's quantity constraints.

    Open this question
  16. Question 16

    Development with AWS Services

    After changing an Amazon API Gateway REST API method, what makes the change available through its existing production stage?

    Show the answer

    Correct answerA. Deploy the API to the production stage.

    AWhy this is right: Deploying to the existing stage makes the updated method configuration available there.

    BWhy not this: SDK credentials authenticate requests; refreshing them does not deploy API configuration.

    CWhy not this: API key rotation does not publish changes to API methods.

    DWhy not this: Throttling controls request rates rather than publishing changed methods.

    A REST API deployment publishes a snapshot of the API configuration to a stage. Rotating an API key changes client access credentials, not the configuration served by the stage.

    Open this question
  17. Question 17

    Development with AWS Services

    Clients send customerId, but an existing backend expects accountId in the JSON body. An Amazon API Gateway REST API uses a non-proxy integration; which change translates the field without changing either application?

    Show the answer

    Correct answerC. Add an integration request mapping template.

    AWhy not this: A request model describes or validates input structure but does not rename fields.

    BWhy not this: Response mapping transforms backend output, not the request sent to the backend.

    CWhy this is right: Request mapping can read customerId and produce the accountId field expected by the backend.

    DWhy not this: A method response model describes response structure rather than rewriting incoming data.

    An integration request mapping template can reshape the client payload before sending it to the backend. An integration response mapping template transforms traffic in the opposite direction.

    Open this question
  18. Question 18

    Development with AWS Services

    An Amazon API Gateway REST API uses Lambda proxy integration, and a successfully executed function returns HTTP 200 with a business-error message in its body. Clients must receive HTTP 409 for that condition while retaining proxy integration; what should the developer change?

    Show the answer

    Correct answerD. Set statusCode to 409 in the function's proxy response for that condition.

    AWhy not this: Integration response selection patterns are not how Lambda proxy responses select HTTP status codes.

    BWhy not this: A response model describes response data; it does not select the runtime HTTP status.

    CWhy not this: A successful invocation reporting a business condition is not an API Gateway integration failure.

    DWhy this is right: The proxy response's statusCode field tells API Gateway which HTTP status to return.

    With Lambda proxy integration, the function's response statusCode determines the HTTP status returned to the client. Integration response selection patterns apply to non-proxy integrations, not this proxy response.

    Open this question
  19. Question 19

    Development with AWS Services

    A browser's cross-origin preflight succeeds against an Amazon API Gateway REST API using Lambda proxy integration, but the browser blocks the actual GET response. The GET response lacks Access-Control-Allow-Origin; what should the developer do?

    Show the answer

    Correct answerD. Return the allowed origin header in the Lambda proxy response.

    AWhy not this: Preflight already succeeds, so changing the advertised methods does not fix the missing GET response header.

    BWhy not this: Removing authorization does not supply the missing cross-origin response header.

    CWhy not this: Allowed headers govern request headers during preflight, not the origin permission on the actual response.

    DWhy this is right: The browser needs Access-Control-Allow-Origin on the actual response, supplied through the Lambda proxy response headers.

    The actual response must include Access-Control-Allow-Origin, even when preflight succeeds. With Lambda proxy integration, the backend supplies that header; changing only the OPTIONS response does not fix the GET response.

    Open this question
  20. Question 20

    Development with AWS Services

    An application uses the AWS SDK to list objects in an S3 bucket but receives only part of the listing. What should the developer do to retrieve the remaining objects?

    Show the answer

    Correct answerB. Use an SDK paginator to traverse the results.

    AWhy not this: An unchanged request retrieves the same initial page rather than advancing.

    BWhy this is right: A paginator uses continuation tokens to retrieve subsequent pages.

    CWhy not this: A longer timeout does not change the service's paginated response.

    DWhy not this: A waiter checks resource state rather than traversing result pages.

    An SDK paginator retrieves successive result pages using the service's pagination tokens. A waiter polls for a resource state; it does not retrieve additional listing pages.

    Open this question
  21. Question 21

    Development with AWS Services

    A deployment tool creates a DynamoDB table and must load initial data only after the table becomes ACTIVE. Which SDK feature should the developer use before loading the data?

    Show the answer

    Correct answerA. A waiter for the table's ACTIVE state.

    AWhy this is right: A table waiter checks readiness before the deployment proceeds to data loading.

    BWhy not this: Retrying creation is not a mechanism for tracking a successfully requested table's state.

    CWhy not this: Presigning authorizes a request; it does not check resource readiness.

    DWhy not this: Listing table names does not establish that the new table is ACTIVE.

    A waiter polls a service until a resource reaches the required state or the wait limit is reached. Retrying CreateTable handles request failures, not the asynchronous transition after a successful creation request.

    Open this question
  22. Question 22

    Development with AWS Services

    A long-running ECS task uses task-role credentials to assume a cross-account role, but its S3 client receives a fixed copy of the returned credentials and fails after they expire. The task must retain the cross-account identity without restarts or stored access keys; which change BEST meets these requirements?

    Show the answer

    Correct answerB. Use a refreshable assume-role provider backed by task-role credentials.

    AWhy not this: A longer session delays expiration but does not refresh the client's fixed credentials.

    BWhy this is right: The provider renews assumed-role sessions using automatically supplied task-role credentials.

    CWhy not this: Changing environment variables does not update credentials explicitly supplied to an existing client.

    DWhy not this: The default chain alone supplies the task-role identity, not the required cross-account assumed-role identity.

    A refreshable assume-role provider obtains new cross-account credentials as needed, using the task role as its source. Using the default chain directly would select the task identity rather than perform the required role assumption.

    Open this question
  23. Question 23

    Development with AWS Services

    What does an AWS SDK normally do automatically when sending an authenticated API request using AWS credentials?

    Show the answer

    Correct answerA. Sign the request using AWS Signature Version 4.

    AWhy this is right: The SDK calculates the request signature using the configured credentials.

    BWhy not this: SDK API authentication does not require an AWS Management Console session.

    CWhy not this: Request signing does not provide encryption for credentials stored by the application.

    DWhy not this: Permissions must already be granted; the SDK does not create a policy for each request.

    AWS SDKs normally sign authenticated API requests using AWS Signature Version 4. Signing proves possession of credentials; it does not create IAM permissions for the requested action.

    Open this question
  24. Question 24

    Development with AWS Services

    A DynamoDB BatchWriteItem call returns HTTP 200 with a nonempty UnprocessedItems map. The application must complete the writes without resubmitting successful operations; what should its SDK-based code do?

    Show the answer

    Correct answerD. Retry the returned UnprocessedItems with exponential backoff.

    AWhy not this: Resending the original batch repeats successful writes, and a timeout change does not resolve throttling.

    BWhy not this: HTTP 200 does not mean every write in a BatchWriteItem request was processed.

    CWhy not this: An ACTIVE table can still return unprocessed writes; table state does not establish batch completion.

    DWhy this is right: The returned map identifies the writes that still require processing; backoff reduces pressure on DynamoDB.

    BatchWriteItem can succeed at the HTTP level while leaving individual writes unprocessed. Retry only UnprocessedItems with exponential backoff; retrying the original batch unnecessarily resubmits successful writes.

    Open this question
  25. Question 25

    Development with AWS Services

    Which service buffers incoming streaming records and delivers them to Amazon S3 without requiring a custom consumer application?

    Show the answer

    Correct answerC. Amazon Data Firehose

    AWhy not this: SNS publishes notifications to subscribers rather than directly buffering and delivering stream records to S3.

    BWhy not this: API Gateway exposes APIs; it is not a managed streaming delivery service.

    CWhy this is right: Data Firehose buffers streaming records and delivers them to configured destinations such as S3.

    DWhy not this: EventBridge routes events to targets rather than providing direct buffered streaming delivery to S3.

    Amazon Data Firehose provides managed delivery of streaming data to destinations such as Amazon S3, using buffering before delivery. EventBridge routes events but does not directly provide buffered streaming delivery to S3.

    Open this question
  26. Question 26

    Development with AWS Services

    Several applications independently read every record from a Kinesis data stream, but their shared read throughput causes delays. Which change provides dedicated read throughput for each application?

    Show the answer

    Correct answerA. Enable enhanced fan-out for each consumer

    AWhy this is right: Enhanced fan-out provides dedicated per-shard read throughput to each registered consumer.

    BWhy not this: Retention controls how long records remain available, not the read capacity allocated to consumers.

    CWhy not this: More frequent polling does not increase shared read capacity and can cause additional throttling.

    DWhy not this: Combining consumers does not give each application dedicated read throughput.

    Enhanced fan-out gives registered consumers dedicated read throughput per shard instead of sharing the standard read capacity. More frequent polling still uses shared throughput and can increase throttling.

    Open this question
  27. Question 27

    Development with AWS Services

    A producer's Kinesis Data Streams PutRecords request returns HTTP 200, but some result entries contain throttling errors. Record ordering is unnecessary; which response handling avoids both data loss and unnecessary duplicate writes?

    Show the answer

    Correct answerC. Retry only failed entries after a backoff delay

    AWhy not this: Retrying successful entries as well as failed entries creates unnecessary duplicate records.

    BWhy not this: HTTP 200 does not mean every entry succeeded; ignoring entry errors loses records.

    CWhy this is right: Per-entry results identify the failed records, allowing targeted retries with backoff.

    DWhy not this: Successful entries need no confirmation write, and failed entries would remain unwritten.

    PutRecords can partially fail even when the request returns HTTP 200. Inspect the individual results and retry failed entries with backoff; retrying the entire batch unnecessarily writes successful records again.

    Open this question
  28. Question 28

    Development with AWS Services

    Which elements make up an Amazon Kinesis Data Streams record as stored in a stream? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Data blobE. Partition keyF. Sequence number

    AWhy this is right: The data blob contains the record's application data.

    BWhy not this: A visibility timeout temporarily hides a received SQS message from other consumers.

    CWhy not this: A receipt handle identifies a received SQS message for operations such as deletion.

    DWhy not this: A message group ID organizes related messages in an SQS FIFO queue.

    EWhy this is right: The partition key determines which shard receives the record.

    FWhy this is right: Kinesis Data Streams assigns a sequence number to each record.

    A Kinesis Data Streams record contains a partition key, a sequence number assigned by the service, and a data blob. Receipt handles and visibility timeouts belong to Amazon SQS; message group IDs organize messages in SQS FIFO queues.

    Open this question
  29. Question 29

    Development with AWS Services

    A Kinesis data stream uses its default retention period. A consumer must be able to replay records after a 48-hour outage; which change meets this requirement?

    Show the answer

    Correct answerB. Increase stream retention to 72 hours

    AWhy not this: Larger batches can improve processing efficiency but cannot recover expired records.

    BWhy this is right: A 72-hour retention period preserves records through the stated outage.

    CWhy not this: Faster polling cannot preserve records while the consumer is offline.

    DWhy not this: More shards increase stream capacity without extending the retention period.

    Kinesis Data Streams retains records for 24 hours by default. Increasing retention to 72 hours keeps records available through a 48-hour outage; adding shards increases capacity but does not extend record availability.

    Open this question
  30. Question 30

    Development with AWS Services

    An Amazon S3 event notification contains the object key reports%2FJune+sales.csv. Which decoding operation should a consumer apply before using the key to retrieve the object?

    Show the answer

    Correct answerB. Apply form-style URL decoding, including converting plus signs to spaces.

    AWhy not this: Preserving the plus sign produces a different object key from the one in the notification.

    BWhy this is right: S3 notification keys use form-style encoding, where %2F represents a slash and a plus sign represents a space.

    CWhy not this: Parsing the surrounding JSON does not decode URL-encoded characters within the key.

    DWhy not this: S3 notification object keys use URL encoding, not Base64 encoding.

    S3 event notifications encode object keys using application/x-www-form-urlencoded rules, so the decoded key is reports/June sales.csv. Percent decoding that leaves the plus sign unchanged produces the wrong key.

    Open this question
  31. Question 31

    Development with AWS Services

    Which operation converts an in-memory order object into a JSON string suitable for an Amazon SQS message body?

    Show the answer

    Correct answerB. JSON serialization

    AWhy not this: Deserialization converts serialized data into an in-memory representation, reversing the required direction.

    BWhy this is right: Serialization converts an in-memory object into JSON text suitable for the SQS message body.

    CWhy not this: Schema inference derives a structural description from data rather than producing the message body.

    DWhy not this: Validation checks whether data satisfies syntax or schema rules; it does not convert an object to a JSON string.

    JSON serialization converts an in-memory object into a JSON representation that can be transmitted as a message body. Deserialization performs the reverse conversion, reconstructing an object from serialized data.

    Open this question
  32. Question 32

    Development with AWS Services

    An Amazon SNS subscription delivers JSON order messages to Amazon SQS with raw message delivery disabled. After parsing the SQS message body, how should a consumer obtain the order object?

    Show the answer

    Correct answerB. Parse the SNS Message field as JSON.

    AWhy not this: MessageId identifies the SNS message; it does not contain the order payload.

    BWhy this is right: The Message field contains the original published JSON as a string, requiring another JSON parse.

    CWhy not this: Message attributes contain metadata, not the published order body.

    DWhy not this: SNS does not automatically Base64-encode the published JSON in the Message field.

    Without raw message delivery, SNS wraps the published message in a JSON notification envelope. Parsing the SQS body exposes that envelope; parsing its Message string produces the original order object. Message attributes are separate metadata.

    Open this question
  33. Question 33

    Development with AWS Services

    A JavaScript application reads DynamoDB Number attributes containing integers larger than JavaScript's safe integer range and must write them back unchanged as numbers. Which approach preserves both precision and the DynamoDB attribute type?

    Show the answer

    Correct answerB. Use lossless numeric handling and write the exact value as a Number attribute.

    AWhy not this: The digits remain intact, but changing the attribute to String violates the numeric-type requirement.

    BWhy this is right: Lossless handling retains the exact digits, and a Number attribute retains DynamoDB's numeric type.

    CWhy not this: Rounding changes the stored value even though the DynamoDB attribute remains numeric.

    DWhy not this: JavaScript Number cannot exactly represent every integer beyond its safe integer range.

    Lossless handling preserves the integer's exact value, while a DynamoDB Number attribute preserves its numeric type. DynamoDB transmits numbers as strings, but converting those strings to JavaScript Number can lose precision.

    Open this question
  34. Question 34

    Development with AWS Services

    An application uses Avro schemas in AWS Glue Schema Registry; old and new producers and consumers must coexist during deployment. Existing fields must remain unchanged, and a new comment field must accept text but read as null when absent from older records; which schema change meets these requirements?

    Show the answer

    Correct answerA. Add comment as a null-or-string union with a null default.

    AWhy this is right: New readers default the missing field to null, and old readers ignore the additional field.

    BWhy not this: An empty-string default produces an empty string, not the required null, when reading older records.

    CWhy not this: Allowing null does not provide a reader default for records whose writer schema lacks the field.

    DWhy not this: Replacing an existing field violates the requirement to preserve existing fields and can break older readers.

    A nullable union with a null default lets new readers supply null for older records, while old readers ignore the added field. A nullable union without a default permits null values but does not supply a missing field during schema resolution.

    Open this question
  35. Question 35

    Development with AWS Services

    An SNS topic publishes JSON messages containing a region field but no message attributes. An SQS subscription should receive only messages whose region is eu-west-1; which configuration meets this requirement without changing publishers?

    Show the answer

    Correct answerC. Set the subscription filter scope to MessageBody and filter on region.

    AWhy not this: Raw message delivery removes the SNS envelope but does not select messages by their contents.

    BWhy not this: MessageAttributes filtering evaluates message attributes, which these publishers do not supply.

    CWhy this is right: MessageBody filtering lets an SNS subscription match the region field directly in the JSON payload.

    DWhy not this: An SQS access policy controls authorization; it does not filter SNS deliveries by arbitrary JSON body fields.

    SNS payload-based filtering uses the MessageBody scope to evaluate fields in a JSON message body. MessageAttributes filtering cannot match the region because the publisher supplies no message attributes.

    Open this question
  36. Question 36

    Development with AWS Services

    An EventBridge rule targets a Lambda function, but throttling sometimes prevents invocation. The developer must retry delivery for up to two hours and retain events when EventBridge exhausts delivery attempts; which configurations are needed? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Configure an SQS standard queue as the target's dead-letter queue.B. Set the target retry policy's maximum event age to two hours.D. Allow events.amazonaws.com to send messages to the dead-letter queue.

    AWhy this is right: An EventBridge target dead-letter queue retains events that EventBridge cannot deliver and must be an SQS standard queue.

    BWhy this is right: The maximum event age limits how long EventBridge retries delivery; the retry-attempt limit can end retries earlier.

    CWhy not this: A Lambda asynchronous destination handles accepted asynchronous invocations, not events EventBridge could not deliver to Lambda.

    DWhy this is right: The queue's resource policy must authorize the EventBridge service principal to send failed events.

    EWhy not this: A processing queue's redrive policy handles consumer processing failures, not EventBridge delivery failures to Lambda.

    The EventBridge target retry policy bounds delivery retries, and its dead-letter queue retains exhausted events with permission for EventBridge to send them. Lambda asynchronous failure destinations handle failures after Lambda accepts an invocation, not failed EventBridge delivery.

    Open this question
  37. Question 37

    Development with AWS Services

    Which S3 event notification type invokes a Lambda function when an object is created by any supported creation operation?

    Show the answer

    Correct answerD. s3:ObjectCreated:*

    AWhy not this: ObjectRestore events concern restoration of archived objects.

    BWhy not this: ObjectTagging events report changes to object tags rather than object creation.

    CWhy not this: ObjectRemoved events report object deletion operations rather than creation.

    DWhy this is right: ObjectCreated events cover the supported operations that create objects.

    s3:ObjectCreated:* covers supported object creation operations, including PUT, COPY, and completed multipart uploads. ObjectRestore events concern restoring archived objects, not general object creation.

    Open this question
  38. Question 38

    Development with AWS Services

    An S3 event consumer maintains the latest state for each object key, but notifications can arrive out of order. For the same key, stored sequencer FF is followed by incoming sequencer 100; which action correctly preserves the latest state?

    Show the answer

    Correct answerB. Apply the event because hexadecimal 100 is greater than hexadecimal FF.

    AWhy not this: Different-length sequencers can be compared by left-padding the shorter value with zeros.

    BWhy this is right: Hexadecimal 100 exceeds FF, so the incoming notification represents the later operation for this key.

    CWhy not this: Unpadded text comparison can misorder unequal-length sequencers; FF must be treated as 0FF for this comparison.

    DWhy not this: S3 notifications can arrive out of order, so receipt time does not establish operation order.

    For notifications concerning the same object key, the larger hexadecimal sequencer identifies the later event. Left-pad shorter values with zeros before lexicographic comparison; arrival order is not reliable.

    Open this question
  39. Question 39

    Development with AWS Services

    An EventBridge consumer processed events incorrectly yesterday. An archive already contains those events, and the corrected consumer now needs them delivered again through the original event bus; what should the developer use?

    Show the answer

    Correct answerD. An EventBridge archive replay

    AWhy not this: Schema discovery identifies event structures; it does not redeliver historical events.

    BWhy not this: Changing delivery retries does not resend events that were already successfully delivered.

    CWhy not this: An event bus has no general retention setting that resends successfully delivered historical events.

    DWhy this is right: A replay sends archived events back to their source event bus so matching rules can process them again.

    EventBridge archive replay resends archived events to their source event bus for processing again. Target retries address delivery failures, not events successfully delivered to a consumer with faulty business logic.

    Open this question
  40. Question 40

    Development with AWS Services

    Which AI-assisted development capability suggests code as a developer types, using surrounding code and comments as context?

    Show the answer

    Correct answerC. Intelligent code completion

    AWhy not this: Automated code review evaluates existing code rather than providing typing-time completions.

    BWhy not this: Request schema validation checks application inputs against defined rules.

    CWhy this is right: Intelligent code completion uses context to suggest code during editing.

    DWhy not this: Security scanning identifies potential vulnerabilities rather than suggesting the next code to type.

    Intelligent code completion proposes code while the developer types, using available context. Automated code review instead examines existing code and reports findings or suggested changes.

    Open this question
  41. Question 41

    Development with AWS Services

    An AI assistant proposes caching and parallelization to reduce an application's p95 latency; responses must remain current, and dependency calls must stay within quota. Which evaluation BEST determines whether to adopt the refactoring?

    Show the answer

    Correct answerA. Benchmark representative concurrency and data changes, checking p95, freshness, and dependency call rates.

    AWhy this is right: Representative workloads test the desired latency improvement alongside freshness and dependency quota constraints.

    BWhy not this: Mocks and static analysis alone cannot establish actual dependency behavior under representative load.

    CWhy not this: Existing tests and single-request timing may miss stale cache entries and concurrency-driven quota violations.

    DWhy not this: Average latency on repeated inputs can hide tail latency, stale responses, and concurrency-related quota pressure.

    AI-generated optimizations need representative measurements of the target metric and checks of all behavioral constraints. Mocked dependencies can hide the real call rates, latency, and freshness problems introduced by caching and parallelization.

    Open this question
  42. Question 42

    Development with AWS Services

    An AI assistant generates a pricing function and tests that all pass, but both apply a discount before tax contrary to the approved requirements. Which change BEST prevents this shared error from escaping validation?

    Show the answer

    Correct answerA. Derive expected results independently from the approved business requirements.

    AWhy this is right: Requirement-derived expected results provide an independent check on generated behavior.

    BWhy not this: A realistic environment does not correct expected results based on the wrong pricing rule.

    CWhy not this: Using the generated function as the oracle reproduces its incorrect pricing rule.

    DWhy not this: Greater branch coverage can exercise every path without checking the intended business behavior.

    Independent expected results grounded in approved requirements can expose a shared mistake in generated code and tests. More coverage does not establish correctness when the test oracle repeats the implementation's error.

    Open this question
  43. Question 43

    Development with AWS Services

    A developer wants Kiro to implement a feature whose business rules are still ambiguous. The team needs reviewable agreement on expected behavior before implementation; what should the developer do first?

    Show the answer

    Correct answerC. Create and review requirements with explicit acceptance criteria.

    AWhy not this: Documenting generated behavior afterward lets implementation assumptions define requirements.

    BWhy not this: Tests based on existing code describe implemented behavior, which might not match business intent.

    CWhy this is right: Reviewed requirements and acceptance criteria establish intended behavior before code generation.

    DWhy not this: Inline completions help write code but do not establish agreement on ambiguous requirements.

    Spec-driven development starts by making intended behavior explicit through reviewable requirements and acceptance criteria. Tests generated from an existing implementation can preserve its assumptions rather than resolve ambiguous business rules.

    Open this question
  44. Question 44

    Development with AWS Services

    An AI-assisted security review flags a possible SQL injection path in a working application. What should the developer do before accepting the suggested fix?

    Show the answer

    Correct answerD. Inspect the data flow and verify that the fix addresses the finding.

    AWhy not this: Functional tests can pass while unsafe handling of untrusted input remains.

    BWhy not this: Syntactically valid generated code can retain the same injection vulnerability.

    CWhy not this: An AI-generated finding does not establish that its proposed patch is correct or complete.

    DWhy this is right: Inspecting the data flow establishes whether the finding applies and whether the proposed change mitigates it.

    AI security findings and fixes require validation against the actual data flow and vulnerability. Passing functional tests does not demonstrate that malicious input is handled safely.

    Open this question
  45. Question 45

    Development with AWS Services

    An application must extract table cells and their relationships from multipage PDF files stored in Amazon S3. Which Amazon Textract operation should it call to start processing?

    Show the answer

    Correct answerD. StartDocumentAnalysis with TABLES

    AWhy not this: AnalyzeDocument supports table analysis, but its synchronous processing is not suitable for multipage PDFs.

    BWhy not this: DetectDocumentText is synchronous text detection, not multipage table analysis.

    CWhy not this: StartDocumentTextDetection extracts words and lines but does not provide structured table analysis.

    DWhy this is right: StartDocumentAnalysis supports asynchronous multipage processing and returns table structures when TABLES is requested.

    StartDocumentAnalysis asynchronously processes multipage documents in S3 and supports table extraction. StartDocumentTextDetection extracts text but does not return the structured table relationships needed here.

    Open this question
  46. Question 46

    Development with AWS Services

    An application supplies a client-side inventory tool definition to Amazon Bedrock Converse, and the model returns a toolUse block. Inventory access must use the application's existing authorization checks; what should the application do next?

    Show the answer

    Correct answerC. Authorize and run the tool, then send its result back through Converse.

    AWhy not this: Credentials in a prompt do not implement authorization or execute the inventory operation and could expose sensitive information.

    BWhy not this: An asynchronous inference job does not execute a client-side tool requested during a conversation.

    CWhy this is right: The application controls authorization and execution, then returns a toolResult associated with the requested tool use.

    DWhy not this: Converse returns a client-side tool request; it does not execute the application's inventory code.

    For client-side tool use, the model requests a tool invocation, but the application authorizes and executes it before returning a toolResult. A tool definition alone does not cause Converse to execute application code.

    Open this question
  47. Question 47

    Development with AWS Services

    An application switches between Amazon Bedrock models that support conversational inference. Which API provides a consistent message format without requiring model-specific request bodies?

    Show the answer

    Correct answerA. Converse

    AWhy this is right: Converse provides a common message-based interface for supported conversational models.

    BWhy not this: InvokeModel requires an inference body formatted for the selected model rather than a common conversational message structure.

    CWhy not this: CreateModelInvocationJob starts batch inference jobs rather than interactive conversational requests.

    DWhy not this: StartAsyncInvoke starts asynchronous inference; it does not provide the standardized conversational message interface.

    Converse provides a consistent conversational interface across supported Amazon Bedrock models. InvokeModel uses inference request bodies whose formats depend on the selected model.

    Open this question
  48. Question 48

    Development with AWS Services

    Which managed AWS AI service converts recorded speech into a text transcript?

    Show the answer

    Correct answerA. Amazon Transcribe

    AWhy this is right: Amazon Transcribe converts spoken audio into a written transcript.

    BWhy not this: Amazon Translate translates text between languages rather than converting recorded speech into text.

    CWhy not this: Amazon Comprehend analyzes existing text rather than transcribing audio.

    DWhy not this: Amazon Textract extracts information from documents rather than recognizing speech.

    Amazon Transcribe uses automatic speech recognition to convert audio into text. Amazon Translate translates text between languages rather than transcribing recorded speech.

    Open this question
  49. Question 49

    Development with AWS Services

    Which services provide sentiment analysis of customer reviews and translation of those reviews into another language? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Amazon ComprehendF. Amazon Translate

    AWhy not this: Amazon Transcribe converts speech to text rather than analyzing sentiment or translating written reviews.

    BWhy this is right: Amazon Comprehend identifies sentiment in text, such as positive, negative, neutral, or mixed.

    CWhy not this: Amazon API Gateway exposes and manages APIs; it does not itself analyze sentiment or translate text.

    DWhy not this: Amazon Textract extracts text, tables, and other information from documents; it does not provide sentiment analysis or translation.

    EWhy not this: Amazon EventBridge routes events between components; it does not analyze or translate review text.

    FWhy this is right: Amazon Translate translates text from a source language into a target language.

    Amazon Comprehend analyzes sentiment, and Amazon Translate translates text between languages. Amazon Textract extracts text and structured information from documents rather than interpreting sentiment or translating text.

    Open this question
  50. Question 50

    Development with AWS Services

    A developer must check existing application code for paths where untrusted input reaches SQL queries before deployment. Which AI-assisted capability BEST addresses this need?

    Show the answer

    Correct answerC. Scan source code for security vulnerabilities

    AWhy not this: Dependency scanning identifies vulnerable library versions, not unsafe input handling written in the application.

    BWhy not this: Complexity-focused refactoring improves maintainability but does not specifically assess unsafe input flows.

    CWhy this is right: Source code security scanning can identify untrusted input reaching SQL queries without appropriate safeguards.

    DWhy not this: Tests generated from existing behavior may preserve unsafe behavior rather than identify it as a security vulnerability.

    AI-assisted source code security scanning can identify unsafe input handling that could permit SQL injection. Dependency scanning finds known vulnerabilities in libraries, rather than unsafe data flows in application code.

    Open this question