Skip to content

AWS

AWS Certified Developer - Associate (DVA-C02)

Question bank · 308 questions · Bank reference 4049

AWS Certified Developer – Associate (DVA-C02)

308 questions · instant answer feedback · concise explanations · free

  1. Question 1 of 308A recent operations review uncovered that some guest-experience property-tour videos were occasionally encoded twice, wasting compute time and producing duplicate output files. Further investigation showed that when the video encoding process took longer than the typical 20 seconds per raw footage file, a second consumer sometimes picked up the same job message before the first consumer finished processing it. Driftline Industries, a hospitality and hotel chain that produces these promotional videos, runs the encoding application on an Amazon EC2 instance and retrieves new job messages from an Amazon SQS queue. The development team needs a solution so that the same raw footage file is never processed by multiple consumers at the same time, even when processing takes longer than usual. Which of the following solutions should the developer recommend to address this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the ChangeMessageVisibility action to extend a message's visibility timeout

    ChangeMessageVisibility extends a message's visibility timeout while a consumer is still processing it, preventing other consumers from picking up the same in-flight message. Exam cue: when processing time may exceed the visibility timeout, call ChangeMessageVisibility, not DelaySeconds or WaitTimeSeconds, which do not extend an in-flight message's timeout.

  2. Question 2 of 308Northbridge Bureau needs to let a newly created IAM user upload course materials to an S3 bucket named northbridge-course-materials, at an education technology company headquartered in Austin, Texas. The bucket uses server-side encryption with AWS KMS keys (SSE-KMS) as its default encryption setting. The development team grants the IAM user the s3:PutObject permission on the bucket, but when the application uses the IAM user's access key ID and secret access key to call the PutObject API, it receives an access denied error. As a Developer Associate, how would you resolve this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Correct the policy of the IAM user to allow the kms:GenerateDataKey action

    Uploading to a bucket with default SSE-KMS encryption requires the caller to have kms:GenerateDataKey permission on the KMS key, in addition to s3:PutObject. Exam cue: access denied on PutObject against an SSE-KMS bucket almost always means the missing KMS permission; there is no s3:Encrypt action, and ACLs never grant KMS access.

  3. Question 3 of 308A recent post-incident review at a mineral processing site found that a rushed AWS Lambda deployment caused a five-minute outage in the equipment-monitoring pipeline, and the team had no fast way to revert to the previous function version. To prevent a repeat, the development team at Jasperfield Holdings, which operates this pipeline across several mining sites, wants a deployment approach for its serverless Lambda functions. The approach must route only a small percentage of traffic to a new function version and must support a rapid rollback to the previous version with minimum downtime if the deployment goes wrong. Which of the following options should the team choose to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Set up the application to use an alias that points to the current version. Deploy the new version of the code and configure the alias to send 10% of the users to this new version. If the deployment goes wrong, reset the alias to point all traffic to the current version

    A Lambda alias with weighted routing can send a small percentage of traffic, such as 10%, to the new version while the rest goes to the stable version. Because callers use the alias ARN, repointing the alias back to the stable version gives an instant, low-downtime rollback. Option A sends all traffic to the new version, defeating the canary requirement.

  4. Question 4 of 308Copperfield Innovations, an accounting and audit firm, is launching a new RESTful API service built on Amazon API Gateway so that regional audit teams can submit client engagement data. The firm requires that every incoming request carry a client ID and a user ID in custom HTTP headers, and these values must be validated against a proprietary authentication table stored in Amazon DynamoDB. Which approach should a developer implement to enforce this authentication requirement at the API Gateway layer?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Develop an AWS Lambda authorizer that references the authentication data in the DynamoDB table

    A Lambda authorizer runs custom code that reads the client ID and user ID headers and validates them against the DynamoDB table before API Gateway forwards the request. Cognito only works with tokens Cognito itself issues, and models or integration settings cannot perform authentication against a proprietary data store.

  5. Question 5 of 308Solstice Cooperative, a ride-sharing platform, runs a fleet-dispatch system that uses several Amazon SQS queues to coordinate ride requests between drivers and riders across its service area. After reviewing the monthly AWS bill, a developer on the platform team notices that the cost of using Amazon SQS has increased substantially after creating new queues. However, the developer knows that the queue clients do not generate a lot of traffic and are frequently receiving empty responses from ReceiveMessage calls. Which of the following actions should the developer take to address this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use long polling

    Long polling makes SQS wait, up to 20 seconds, until a message arrives, eliminating most empty ReceiveMessage responses that still count as billable API requests. Exam cue: low-traffic queues, frequent empty responses, and rising SQS cost point directly to setting ReceiveMessageWaitTimeSeconds above zero.

  6. Question 6 of 308The cloud operations engineer at Novapoint Trust, a nonprofit disaster-relief organization that runs AWS workloads to coordinate emergency-response logistics, tries to launch an Amazon EC2 instance from the AWS CLI to support a new incident-tracking server. The engineer receives the following error: "An error occurred (UnauthorizedOperation) when calling the RunInstances operation: You are not authorized to perform this operation. Encoded authorization failure message: QzKpXmRnVdYtBqLsWfGhJcNbTuRoPaEiKmXsYvZdLqNwFbTgHcJrMpQaXnRvSdWlYtGkBoNcVxZeUdRfMnKqPaXtLsWjBgHrCyNvTdZoQmSaXpKbLcVnRwYgFuHzTdSjBmXqPoRvLcNwYtGkBhFdQaXsZmRoJcVnTuBgPwLsYfKnXdRvHqZeMcTaBoWjSnRlPdYtGkVcXnBhQsLmRoJfTuZaWvKcNwPgYtBmXdRsLqHkVoZnTcJfGwMbRvPaXsLdYtKnBqHmVoZcRfJnTuGwPaXsLdYtBmKcVoZnRfJqHwTuGaPsLdYtBmXcVoZnKqRfJwHuTaGsPdLtYmBcXvZoRnKfJqHwTuGaPsLdYtBmXcVoZnKqRfJwHuTaGsLdYtBmXcVoZnRfJqKwHuTaGsPdLtYmBcXvZoRnKfJqHwTuGaPsLdYtBmXcVoZn " What action should the engineer perform to make this error more human-readable?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the AWS STS decode-authorization-message API to decode the message

    The STS decode-authorization-message API decodes the encoded authorization failure message into readable JSON showing the principal, action, and policy conditions evaluated. Exam cue: the phrase encoded authorization failure message always maps to aws sts decode-authorization-message, which requires the sts:DecodeAuthorizationMessage permission.

  7. Question 7 of 308Cataloging firmware packages deployed across a mixed fleet of buses and light-rail vehicles requires tracking a name, a version number, and a category (such as fare collection, propulsion control, or passenger information) for each package. Millbrook Regional, which operates this fleet, also needs to store additional properties about supported hardware platforms and technical specifications, and these additional properties vary inconsistently across firmware packages. You have been hired as an AWS Certified Developer Associate to build a solution that addresses the following use cases: For a given name and version number, get all details about the firmware package that has that name and version number. For a given name, get all details about all firmware packages that have that name. For a given category, get all details about all firmware packages in that category. What will you recommend as the most efficient solution?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Set up an Amazon DynamoDB table with a primary key that consists of the name as the partition key and the version number as the sort key. Create a global secondary index that has the category as the partition key and the name as the sort key

    The composite primary key with name as partition key and version as sort key handles exact lookups and per-name queries, while a GSI on category supports category queries without scans. Schemaless items absorb the inconsistent extra attributes. Options using only the name as primary key cannot uniquely identify versions.

  8. Question 8 of 308A recent customer satisfaction audit revealed that shoppers accessing the storefront from outside North America experience noticeably slower page loads than domestic customers, especially when loading images, style sheets, and JavaScript files. The audit prompted Prairiewind Regional, a growing online marketplace headquartered in Omaha, to look for a way to speed up global performance without adding significant operational burden. The storefront application runs on Amazon EC2 instances behind an Application Load Balancer (ALB), with its domain name managed in Amazon Route 53, and the entire deployment currently resides in a single AWS Region. Which solution will improve global performance with the least operational effort?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create an Amazon CloudFront distribution with the ALB as the origin, and point the application's Route 53 alias to the CloudFront domain

    CloudFront with the ALB as origin caches static assets at edge locations worldwide and accelerates dynamic requests, requiring only a distribution and a Route 53 alias change. Global Accelerator improves routing but does not cache content, and multi-Region deployment adds far more operational burden.

  9. Question 9 of 308The application support team at Keystone National, a regional banking institution headquartered in Ohio, manages a customer feedback feature built into the bank's online banking portal. This feature relies on an Amazon API Gateway REST API that triggers an AWS Lambda function named keystone-national-feedback-processor to handle each submission. The function's per-invocation performance already meets requirements, but the team must reduce the time a fresh execution environment takes to become ready, since customers notice delays during traffic spikes from promotional campaigns. How should the team optimize the Lambda function for faster initialization?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure provisioned concurrency for the Lambda function to respond immediately to the function's invocations

    Provisioned concurrency keeps execution environments fully initialized and warm, eliminating cold-start delays during traffic spikes. Reserved concurrency only limits or reserves the concurrency ceiling and does nothing for initialization time, which is the stated bottleneck.

  10. Question 10 of 308Stonebridge Coastal needs to deploy the next version of its AWS Elastic Beanstalk application while guaranteeing full fleet capacity throughout the rollout and minimizing the impact of any failed deployment. This construction and engineering firm's previous deployment used a policy that reduced capacity during the rollout, which caused a performance degradation when traffic spiked during a critical online bid-submission deadline. Which of the following represents the BEST deployment option for the upcoming application version, such that it maintains at least the FULL capacity of the application throughout the deployment and MINIMIZES the impact of a failed deployment?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Deploy the new application version using the 'Immutable' deployment policy

    Immutable deployment launches a fresh Auto Scaling group on a separate stack, so the original fleet keeps serving full capacity while new instances pass health checks. On failure, Elastic Beanstalk simply terminates the new group for a fast, automatic rollback. Rolling policies temporarily reduce capacity.

  11. Question 11 of 308Thornfield Robotics maintains a DynamoDB table that tracks container manifests across its fleet, provisioned with strongly consistent read capacity to support real-time lookups during business hours. About half of the provisioned read capacity units (RCUs) are typically consumed during non-peak hours. A Developer now needs to run a full scan of the 45 GB table during non-peak hours while minimizing scan duration. How can the Developer optimize the scan execution time without impacting production workloads?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use parallel scans while limiting the rate

    A parallel scan splits the table into segments scanned concurrently, using idle off-peak throughput to finish faster, and rate limiting via the Limit parameter keeps it from starving production reads. Simply increasing RCUs raises cost, and sequential scans are slower.

  12. Question 12 of 308Fairmount Ventures runs a serverless workflow that processes reagent and lab-supply orders around the clock, using an AWS Lambda function that calls an external vendor's HTTP API to process payment for each order. The engineering team now needs a near real-time alert sent to an existing Amazon SNS topic whenever the vendor's payment API error rate climbs above 5% of the transactions processed within any given hour, so the support team can react before the lab's supply chain is disrupted. Which solution meets this requirement with the least operational overhead?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure and push high-resolution custom metrics to CloudWatch that record the failures of the external payment processing API calls. Create a CloudWatch alarm that sends a notification via the existing SNS topic when the error rate exceeds the specified rate

    Publishing custom metrics with PutMetricData for each external API outcome lets a CloudWatch alarm evaluate the hourly error rate and notify SNS automatically with no polling code. Scheduled Lambda checks of Logs Insights or metric filters add latency and operational overhead.

  13. Question 13 of 308A wave of customer support tickets recently reported that firmware update requests from IoT devices were timing out during application deployments. Investigation traced the problem to an AWS Elastic Beanstalk environment whose Auto Scaling group runs three Amazon EC2 instances: whenever the number of running instances drops below two during a deployment, the firmware-update web application becomes severely degraded and unresponsive. Silverlake Federation, the IoT device manufacturer that owns this environment, currently uses the default all-at-once deployment policy and needs an effective strategy for future deployments that avoids this performance impact while remaining cost-effective. Which of the following represents the most cost-effective deployment strategy for Silverlake Federation?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Opt for a rolling with additional batch deployment strategy. Set the batch size parameter to 1

    Rolling with additional batch launches a new instance before taking one out of service, so capacity never drops and only one temporary instance is paid for. Rolling with batch size 2 would still drop capacity below the safe threshold, and traffic splitting duplicates the fleet cost.

  14. Question 14 of 308Automatically removing DynamoDB session-state records once they exceed 24 hours in age is a requirement for a citizen-facing web application. Pinegrove Collective, a smart city government agency, operates this application on a fleet of Amazon EC2 instances behind an Elastic Load Balancer, using a DynamoDB table to persist session state for residents interacting with municipal services. A developer on the team needs the SIMPLEST way to enforce this automatic expiration policy without adding operational overhead. Which solution should the developer implement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Add an attribute with the expiration time; enable the Time to Live feature based on that attribute

    DynamoDB Time to Live on an epoch-timestamp attribute deletes expired items automatically in the background at no extra cost or capacity usage. A cron script adds operational overhead, and merely naming an attribute without enabling TTL does nothing.

  15. Question 15 of 308Keystone Networks needs to eliminate write throttling on a DynamoDB table without increasing its provisioned throughput cost. As a sports analytics company that ingests real-time game statistics, Keystone Networks operates a busy table named KeystoneGameStats that stores game event records using the event date as the partition key. During major game days, writes to the table are being throttled even though the table's consumed throughput stays well below its provisioned throughput. According to AWS best practices, how can the Developer resolve the issue at the LOWEST cost?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Add a random number suffix to the partition key values

    Using the event date as the partition key creates a hot partition, which throttles writes even when overall consumed throughput is low. Adding a random number suffix spreads writes across partitions at zero extra cost, while raising capacity units increases the bill without fixing the hot key.

  16. Question 16 of 308A regional farm-monitoring mobile app run by Anchor Regional currently uses an Amazon API Gateway REST API that invokes AWS Lambda functions for photo processing, with photo metadata stored in Amazon DynamoDB. Anchor Regional, an agricultural technology company based in Des Moines, now needs to scale this application to tens of thousands of users, adding account creation, image upload, and retrieval of previously uploaded images while minimizing operational overhead. Uploaded images range in size from 500 KB to 6 MB. How will you design the application with the least operational overhead?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Leverage an Amazon Cognito user pool to manage user accounts and set up an Amazon Cognito user pool authorizer in API Gateway to control access to the API. Set up a Lambda function to store the images in Amazon S3 and save the image object's S3 key as part of the photo details in a DynamoDB table. Have the Lambda function retrieve previously uploaded images by querying DynamoDB for the S3 key.

    A Cognito user pool handles account management, and a user pool authorizer secures API Gateway with minimal overhead. Storing image files in S3 and keeping only the S3 key in DynamoDB is the correct pattern. Option A fails because DynamoDB is not suited for large binary objects.

  17. Question 17 of 308To avoid disrupting customers when a new AWS Lambda deployment introduces errors, Brightwater Consolidated needs a way to roll back a production function to its previous version quickly, reflecting its position as a mid-size enterprise software vendor that ships frequent updates to its flagship SaaS platform. How can the developer achieve this with MINIMAL impact on users?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Change the application to use an alias that points to the current version. Deploy the new version of the code. Update the alias to direct 10% of users to the newly deployed version. If too many errors are encountered, send 100% of traffic to the previous version

    Lambda alias traffic shifting lets you send only 10% of invocations to the new version and instantly shift back to 100% on the old one if errors appear. Option A exposes all users immediately, so a bad deploy affects everyone. Weighted alias shifting is the canary pattern to remember.

  18. Question 18 of 308Improving application performance by caching frequently accessed data, while also preserving the ability to sort or rank the cached datasets, is a common architecture challenge when the underlying data must remain encrypted at all times. Marrowgate Commission, an environmental monitoring agency, stores personal health information (PHI) collected from field technicians exposed to hazardous sites in an encrypted Amazon RDS for MySQL DB instance named marrowgate-phi-db. A developer at Marrowgate Commission needs a caching approach that supports leaderboard-style ranking of cached records and keeps PHI encrypted in transit and at rest. What is the best approach to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Store the frequently accessed data in an Amazon ElastiCache for Redis instance with encryption enabled for data in transit and at rest

    Amazon ElastiCache for Redis supports sorted sets, which enable leaderboard-style ranking, and it offers encryption in transit and at rest to keep PHI protected. When a caching question mentions sorting, ranking, or advanced data structures, pick Redis over Memcached, since Memcached lacks those data structures.

  19. Question 19 of 308The internal tools team at Greystone National, a construction and engineering firm, is building an application to track athletic performance for the company's employee sports league. The application uses an Amazon DynamoDB table where each item is identified by a partition key (user_id) and a sort key (sport_name). The table design is as follows: – Partition key: user_id – Sort key: sport_name – Attributes: score, score_datetime A developer on the team is asked to write a leaderboard feature that displays the top performers (user_id) based on the score for each sport_name. What process will allow the developer to extract results MOST efficiently from the DynamoDB table?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a global secondary index with a partition key of sport_name and a sort key of score, and get the results

    A global secondary index lets you change both the partition key and sort key, so an index keyed on sport_name and score returns results already sorted for each sport. Remember, a local secondary index must keep the base table's partition key, so it cannot work here.

  20. Question 20 of 308A recent PCI-DSS compliance audit revealed that Amazon EC2 instances running in AWS Account A must securely access customer records containing Personally Identifiable Information (PII) that are stored in multiple Amazon S3 buckets owned by AWS Account B. Millbrook Bureau, a point-of-sale software vendor headquartered in Chicago, needs a solution that follows least-privilege, cross-account access best practices. As a Developer Associate, which of the following solutions would you recommend for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create an IAM role with S3 access in Account B and set Account A as a trusted entity. Create another role (instance profile) in Account A, attach it to the EC2 instances in Account A, and add an inline policy to this role to assume the role from Account B

    The standard cross-account pattern puts the S3 access role in the resource-owning Account B with a trust policy for Account A, and the EC2 instance profile in Account A assumes that role via sts:AssumeRole. A bucket policy alone cannot scope permissions to specific instances, and the other options break the trust direction or the architecture.

  21. Question 21 of 308Kingsford Federation, a weather and climate research agency, is preparing for an anticipated surge in traffic to its public forecast data portal ahead of a major storm season and wants to ensure that the application's serverless backend, running on AWS Lambda functions, does not experience latency bottlenecks as a result of the traffic spike. Which of the following solutions should be recommended to address this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure Application Auto Scaling to manage Lambda provisioned concurrency on a schedule

    Provisioned concurrency pre-initializes execution environments so the function responds without cold-start delay, and Application Auto Scaling can raise it on a schedule ahead of a predictable surge. Reserved concurrency is a static limit, not manageable by Auto Scaling, and Lambda's automatic scaling alone does not prevent cold starts.

  22. Question 22 of 308An access token must be stored securely so that a transaction-processing application running on Amazon EC2 instances can authenticate and send an automated chat message (via a chat API) whenever an invalid transaction is detected. Ulverstone Ventures, an online gaming company, needs the chat API access token to reach its support team, and the token must be encrypted both at rest and in transit, must be accessible from other AWS accounts, and must require minimal management overhead. What is the most efficient solution to address this scenario?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Leverage AWS Secrets Manager with an AWS KMS customer-managed key to store the access token as a secret and configure a resource-based policy for the secret to allow access from other accounts. Modify the IAM role of the EC2 instances with permissions to access Secrets Manager. Fetch the token from Secrets Manager and then use the decrypted access token to send the message to the chat.

    AWS Secrets Manager with a KMS customer-managed key and a resource-based policy meets every requirement: encryption at rest and in transit, cross-account sharing, and minimal management overhead. Parameter Store cannot attach resource-based policies to parameters, so option D fails the cross-account requirement.

  23. Question 23 of 308The release engineering team at Jasperfield Corporation, a telecommunications provider, is responsible for deploying updates to the company's customer self-service portal, which runs on AWS Elastic Beanstalk. Before rolling out the next application version, the team must ensure minimum downtime and the ability to roll back quickly if the deployment introduces issues. Which approach should the team use to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Deploy the new version to a separate environment via a blue/green deployment, and then swap the Amazon Route 53 records of the two environments to redirect traffic to the new version

    Blue/green deployment on Elastic Beanstalk launches a separate, fully tested environment, then swapping Route 53 records shifts traffic instantly and enables fast rollback by swapping back. In-place policies like All at Once or Rolling cause downtime or gradual, harder-to-reverse rollouts.

  24. Question 24 of 308Cascade Council needs to roll out an updated version of an internal application to Amazon Elastic Container Service (Amazon ECS) using AWS CodeDeploy while limiting the blast radius of any deployment issue. As an agricultural cooperative that coordinates grain shipment scheduling for hundreds of member farms, Cascade Council cannot risk routing all live traffic to unverified code at once. The deployment must first send 10% of active traffic to the updated version, then, after a 15-minute observation period, shift all remaining active traffic to that updated version. Which predefined CodeDeploy deployment configuration satisfies these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. CodeDeployDefault.ECSCanary10Percent15Minutes

    CodeDeployDefault.ECSCanary10Percent15Minutes shifts 10% of traffic first, waits 15 minutes, then shifts the remaining traffic, exactly matching the requirements. Linear configurations shift traffic in equal increments rather than a two-stage shift, and the Lambda option targets the wrong compute platform.

  25. Question 25 of 308A recent partner audit revealed that order-status notifications were being broadcast to every integration partner instead of only the partner whose order had actually changed, raising concerns about data isolation between customers. Ironwood Continental, a mid-size enterprise software vendor that runs a multi-tenant order platform for its partners, exposes a partner-specific API for each partner through Amazon API Gateway, and all orders are processed by a single shared AWS Lambda function. How can Ironwood Continental notify each partner regarding the status of their respective orders in the most efficient manner, without affecting other partners' orders? The solution should also be scalable to accommodate new partners with minimal code changes required.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Set up an SNS topic and subscribe each partner to the SNS topic. Modify the Lambda function to publish messages with specific attributes to the SNS topic and apply the appropriate filter policy to the topic subscriptions

    One SNS topic with message attributes and per-subscription filter policies delivers each partner only its own order updates, and adding a partner means adding a subscription with a filter. Separate topics per partner work but require code changes for every new partner, failing the scalability requirement.

  26. Question 26 of 308An Application Load Balancer (ALB) is configured with Lambda function A as its target, but function A is unable to process any incoming requests. Greystone Partners, a media streaming company that routes viewer-facing API traffic through this ALB, discovers during investigation that a separate Lambda function B in the same AWS account is exceeding its concurrency limits, which starves the account-level concurrency pool and causes function A's invocations to be throttled. How can the development team address this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Set up reserved concurrency for Lambda function B so that it throttles if it goes above a certain concurrency limit

    Reserved concurrency on function B caps how much of the account-level pool it can consume, throttling excess invocations and leaving concurrency available for function A. Provisioned concurrency pre-warms environments but does not throttle a function that exhausts the shared pool.

  27. Question 27 of 308Fairmount International must ensure that no object is written to its Amazon S3 bucket unless the object is encrypted at rest with server-side encryption using Amazon S3-managed keys (SSE-S3). The sports analytics company ingests player performance data through a custom HTTP API that calls the PutObject operation, and it needs any upload lacking the required encryption to be rejected outright. Which solution enforces this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Invoke the PutObject API operation and set the x-amz-server-side-encryption header as AES256. Use an S3 bucket policy to deny permission to upload an object unless the request has this header

    Setting the x-amz-server-side-encryption header to AES256 specifies SSE-S3, and a bucket policy Deny on the wrong or missing header enforces it. Option D uses aws:kms, which is SSE-KMS, not SSE-S3. Option A's sse:s3 value is not a valid header value.

  28. Question 28 of 308The backend engineering team at Millbrook Cooperative, a cruise line operator that lets guests book shore excursions from their cabins, is building a multi-tier reservation platform. The front end places booking messages in an Amazon SQS queue for a fulfillment service to process, and each job includes a scanned passport file that is 1 GB in size. What MUST the engineering team do to ensure this works as expected?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Store the large files in Amazon S3 and use the Amazon SQS Extended Client Library for Java to manage SQS messages

    SQS messages are capped at 256 KB, so the 1 GB passport file must be offloaded to Amazon S3. The SQS Extended Client Library for Java handles uploading the payload and sending a pointer message automatically. The queue's maximum message size cannot be raised to 1 GB.

  29. Question 29 of 308Riverstone Federation must remove hardcoded IAM access keys from a web application before its next security audit. The company, a property and casualty insurance provider, hosts the application on an Amazon EC2 instance that makes GET and PUT requests for objects stored in Amazon S3 using the AWS SDK for PHP. During the final security review, the security team discovers that the application authenticates to AWS services using hardcoded IAM access keys and secret access keys, and recommends a more secure setup that uses temporary credentials whenever possible. Which of the following options should be used to address this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use an IAM instance role

    An IAM instance role delivers temporary, automatically rotating credentials to the EC2 instance through the metadata service, eliminating hardcoded keys. Environment variables and hardcoded values remain long-lived secrets. Exam cue: an EC2 app needing AWS permissions means an instance role.

  30. Question 30 of 308To deploy a completed batch of code updates to its AWS Elastic Beanstalk environment without any reduction in application performance or availability, Cobalt Innovations, a museum and cultural heritage foundation that operates a public digital archive platform, must select the right deployment policy. The environment includes twelve Amazon EC2 instances. Which deployment policy is the most cost-effective choice to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Rolling with additional batch

    Rolling with additional batch spins up a temporary extra batch so full capacity is maintained during the deployment, then removes it when done. Immutable also keeps capacity but doubles the fleet at much higher cost. Exam cue: full availability plus cost-effectiveness means rolling with additional batch.

  31. Question 31 of 308Novapoint Foundation must achieve sub-millisecond response times when processing high-volume trading requests inside a financial trading platform built by its engineering team, a law firm that handles time-sensitive settlement trades for corporate clients. The platform relies on Amazon DynamoDB to store trading records. Load testing revealed that during peak usage periods, read latency spikes and the team must significantly over-provision read capacity to prevent request throttling. Which approach would allow the developers to meet the application's latency requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Amazon DynamoDB Accelerator (DAX) to cache the data

    DAX is the in-memory cache for DynamoDB that cuts read latency to microseconds and offloads reads to reduce throttling and over-provisioning. Exponential backoff only retries throttled requests without improving latency. Exam cue: microsecond DynamoDB reads always point to DAX.

  32. Question 32 of 308Ridgewood Federation must eliminate the capacity loss that happens during AWS Elastic Beanstalk deployments, while still reusing the instances that are currently running. The organization, a weather and climate research agency that streams real-time atmospheric sensor data into forecasting models, has noticed rising error rates and service degradation for meteorologists every time a new application version is deployed, because the deployment process temporarily removes capacity from service. The engineering team wants to change the environment's deployment policy to one that keeps full capacity available for the entire deployment without replacing the existing fleet of instances. Which deployment policy will meet these requirements while using the existing instances?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Rolling with additional batch

    Rolling with additional batch launches one extra batch first, then updates the existing instances in batches, so full capacity is kept while reusing the current fleet. Immutable replaces the entire fleet with new instances, violating the reuse requirement. Cue: no capacity loss plus reuse existing instances means this policy.

  33. Question 33 of 308Unauthenticated users must be able to reach a public login page while every other private asset stays fully protected behind Amazon CloudFront. Underhill Coastal, an aerospace and defense contractor headquartered in Seattle, stores the login page and its restricted media files together in a single Amazon S3 bucket that CloudFront accesses through an origin access identity (OAI), and the bucket has an explicit deny for every other principal. Which approach should the developer implement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure a second cache behavior for the distribution using the same origin as the default cache behavior, and set the path pattern for the second cache behavior to the path of the login page with viewer access as unrestricted. Keep the default cache behavior's settings unchanged

    A second cache behavior on the same origin with a specific path pattern for the login page and unrestricted viewer access exposes only that path while the default behavior stays restricted. CloudFront matches more specific path patterns first, so avoid answers that modify the default behavior or add a separate distribution.

  34. Question 34 of 308Solstice Continental, a weather and climate research agency, relies on the AWS SDK for Python (Boto3) within the frontend of its public climate data portal to manage user authentication through AWS Security Token Service (AWS STS). The agency stores satellite imagery and climate visualization files in an Amazon S3 bucket named solstice-continental-climate-assets, distributing them globally through an Amazon CloudFront distribution configured with the S3 bucket as its origin. The engineering team discovered that the portal's application code currently embeds its IAM role credentials in plaintext within a Python module. To close this security gap, the team wants a mechanism that lets the application obtain temporary credentials at runtime without hardcoding any secrets in the codebase. What solution would meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Attach a Lambda@Edge function to the CloudFront distribution. Trigger the function upon each viewer request. Give the function's execution role the permissions needed to call AWS STS. Move all SDK calls from the frontend to this function.

    Lambda@Edge runs in a full Lambda environment with an IAM execution role, so it can call AWS STS and obtain temporary credentials at runtime with no hardcoded secrets. CloudFront Functions have no IAM role and cannot make SDK calls, and moving plaintext credentials elsewhere still fails the security requirement.

  35. Question 35 of 308New application versions are deployed using a blue/green strategy that provisions a fresh Auto Scaling group of Amazon EC2 instances behind a new Application Load Balancer for every release, but users are forced to log in again after each deployment finishes. Zenith Authority, a weather and climate research agency that runs a public-facing forecast portal, needs to fix this problem without giving up the blue/green approach. As a Developer Associate, what would you recommend to resolve this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Amazon ElastiCache to maintain user sessions

    Storing sessions in Amazon ElastiCache externalizes session state so users stay logged in even when a blue/green deployment replaces the entire fleet and load balancer. Sticky sessions would not help here because the new environment's load balancer and instances are completely fresh.

  36. Question 36 of 308Wrenfield Foundation, a point-of-sale software vendor headquartered in Austin, stores sensitive payment transaction logs in an Amazon S3 bucket named wrenfield-pos-transactions, which is encrypted at rest using AWS Key Management Service (AWS KMS). A developer at Wrenfield Foundation must guarantee that every user across the company's multiple AWS accounts who has been granted the S3 GetObject permission can retrieve objects from this bucket only over an encrypted connection. Which solution enforces this requirement with the least operational overhead?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure a resource-based policy on the S3 bucket to deny access when a request has the condition "aws:SecureTransport": "false"

    A bucket policy Deny statement with aws:SecureTransport set to false blocks all plain HTTP requests at the resource level, enforcing HTTPS for every account with GetObject permission. Options using Allow with SecureTransport false would permit insecure traffic instead of blocking it.

  37. Question 37 of 308Lumen Solutions operates a ride-sharing platform that relies almost entirely on AWS for its computing and storage needs, running more than 8,000 server instances to support real-time trip matching, driver tracking, and payment processing across multiple metropolitan areas. This scale creates an extremely complex and dynamic networking environment, with applications constantly communicating both inside AWS and across the Internet, making network monitoring and optimization critical to the platform's reliability. The company now needs a solution for ingesting and analyzing the multiple terabytes of real-time data that its network generates daily in the form of flow logs. Which technology or service should Lumen Solutions use to ingest this data economically while retaining the flexibility to direct the data to other downstream systems?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Amazon Kinesis Data Streams

    Kinesis Data Streams captures high-volume flow log data in real time and lets multiple independent consumers replay the data, giving routing flexibility. Firehose only delivers to fixed destinations with no replay or multiple custom consumers. Exam cue: multi-consumer streaming with replay means Data Streams.

  38. Question 38 of 308Greystone Holdings, a law firm that operates a high-traffic client portal for case document access, needs an AWS Elastic Beanstalk environment to support this application, which has high availability requirements. A developer must deploy a new version of the application using Elastic Beanstalk while making sure that performance and availability are not affected, and that full capacity is maintained throughout the deployment process. Which of the following is the MOST optimal way to do this while keeping the solution cost-effective?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Deploy using the 'Rolling with additional batch' deployment policy

    Rolling with additional batch adds one temporary batch of instances so full capacity is preserved throughout the deployment at modest cost. Immutable also protects availability but duplicates the entire environment, making it slower and more expensive. Watch for the cost-effective qualifier to rule out Immutable.

  39. Question 39 of 308The platform engineering team at Millbrook Partners, an online gaming company headquartered in Austin, has set up a Network ACL and a Security Group to protect a load balancer and its associated Amazon EC2 instances that host the company's matchmaking website. Both the Network ACL and the Security Group allow inbound traffic on port 80. After the website goes live, players report that they cannot connect to it. Which additional configuration is required to make the website accessible to all users over the internet?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Add a rule to the Network ACLs to allow outbound traffic on ports 1024 – 65535

    Network ACLs are stateless, so return traffic needs its own outbound rule on the ephemeral range 1024-65535 used by Elastic Load Balancing. Security Groups are stateful and already allow return traffic automatically, so the fix must be on the NACL side. Note the option set is truncated, which lowers question quality.

  40. Question 40 of 308A validation step performed by an AWS Lambda function must run before an updated task set begins receiving production traffic during a deployment. At Bluecrest Global, an accounting and audit firm, a developer is updating an Amazon ECS application that uses an Application Load Balancer (ALB) with two target groups and a single listener to serve the firm's client audit-reporting service. The developer has an AppSpec file stored in an Amazon S3 bucket and an AWS CodeDeploy deployment group configured for blue/green deployment, tied to the ALB and the AppSpec file. Which solution meets these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Add a listener to the ALB. Update the AppSpec file to link the Lambda function to the BeforeAllowTraffic lifecycle hook.

    CodeDeploy blue/green for ECS needs a second test listener on the ALB, and the BeforeAllowTraffic hook runs validation Lambda before traffic shifts to the new task set. AfterAllowTraffic runs too late, and listeners belong to the ALB, never to the deployment group. The options list is truncated, leaving only one real choice.

  41. Question 41 of 308Driftwood Innovations, a hospitality and hotel chain headquartered in Miami, is building a guest-facing mobile app that lets guests upload and download personal documents, such as reservation confirmations and loyalty photos. The app uses an Amazon Cognito user pool for authentication and an Amazon Cognito identity pool to issue temporary AWS credentials for accessing Amazon S3. Driftwood Innovations must guarantee that each guest can only save and retrieve that guest's own files, which range from 8 KB to 450 MB, without exposing another guest's data. What do you recommend as the most efficient solution?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Leverage an IAM policy with the Amazon Cognito identity prefix to allow users access to just their own objects in Amazon S3

    An IAM policy using the Cognito identity variable scopes each guest's temporary credentials to only their own S3 prefix, enforced at request time with no extra compute. Lambda or CloudFront validation proxies are over-engineered, and 450 MB files exceed API Gateway payload limits. The options list is truncated to one real choice.

  42. Question 42 of 308The network operations team at Solstice Networks, an industrial manufacturing company that runs automated production-line monitoring across several plants, is configuring access to an Amazon EC2 instance that hosts a web-based equipment-status dashboard. A newly onboarded team member configured a new security group to permit incoming HTTP traffic from 0.0.0.0/0 and left the default outbound rules unchanged. The team also configured a custom Network Access Control List (NACL) associated with the instance's subnet to permit incoming HTTP traffic from 0.0.0.0/0, and also left the default outbound rules unchanged for the NACL. Which of the following is needed for the EC2 instance to accept and respond to requests from the internet?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. An outbound rule must be added to the Network ACL (NACL) to allow the response to be sent to the client on the ephemeral port range

    Network ACLs are stateless, so a custom NACL that allows inbound HTTP still blocks outbound responses unless an explicit outbound rule permits the ephemeral port range. Security groups are stateful, so the existing inbound HTTP rule already allows the return traffic with no extra configuration.

  43. Question 43 of 308Quarrystone Group needs to eliminate unscheduled downtime for its production database while also resolving intermittent HTTP 500 Internal Server Error responses on its critical API, a service that powers a music streaming platform delivering personalized playlists to subscribers. The API is exposed through Amazon API Gateway, integrated with an AWS Lambda function, and backed by an Amazon RDS for PostgreSQL DB instance provisioned with 4 vCPUs and 32 GB of RAM. During unpredictable spikes in listener traffic, some API calls fail, and Amazon CloudWatch Logs show "connection limit exceeded" errors during these periods. Which solution would best fit these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Amazon RDS Proxy and update the Lambda function to connect to the proxy

    RDS Proxy pools and multiplexes database connections so many concurrent Lambda invocations share a small number of database connections, fixing connection limit errors without downtime. Resizing the instance does not fix connection exhaustion and typically requires a maintenance reboot.

  44. Question 44 of 308To validate new features safely, a Lambda function must route only 10% of incoming invocation traffic to a new version while the remaining 90% continues to be served by the current version, and no client integration can be changed as part of the rollout. Riverstone Enterprises, a point-of-sale software vendor whose checkout service depends on this Lambda function, needs to implement this gradual traffic split before promoting the new version fully. Which solution should the team implement to achieve this traffic-shifting requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use AWS Lambda aliases

    A Lambda alias with weighted routing splits invocation traffic, for example 90 percent stable and 10 percent new, behind a single ARN so clients never change. Tags, environment variables, and VPC configuration serve other purposes and cannot shift traffic between versions.

  45. Question 45 of 308Cascade Holdings runs a legacy web application on a single on-premises server that stores user session data in the server's local memory. As part of a cloud migration initiative, the mining and minerals company plans to deploy the application across multiple Amazon EC2 instances behind an Elastic Load Balancer (ELB) so that field engineers can reliably access operational dashboards from remote mine sites. The company wants to refactor the application so that session data survives an instance failure and user downtime is minimized. Where should Cascade Holdings move the session data to MOST effectively reduce downtime and make users' session data more fault tolerant?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. An Amazon ElastiCache for Redis cluster

    ElastiCache for Redis provides a managed, low-latency in-memory store with Multi-AZ failover, decoupling sessions from any single instance. Exam cue: externalizing session state to ElastiCache is the standard pattern for a stateless, fault-tolerant web tier behind a load balancer.

  46. Question 46 of 308Novapoint Technologies, a mining and minerals company, operates a fleet of automated ore-sorting machines across its extraction sites. The company uses an AWS Lambda function to run real-time image-analysis algorithms that classify mineral samples from sensor data, and this function is highly CPU-intensive due to the complexity of the image-processing calculations. The engineering team now needs to reduce the average runtime of this function without rewriting its underlying code. Which of the following approaches should be recommended to achieve this goal?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Deploy the function with its memory allocation set to the maximum amount

    Lambda scales vCPU proportionally with the configured memory, so raising memory is the only code-free way to boost compute. Exam cue: there is no separate CPU setting in Lambda; option C is invalid because CPU cannot be configured directly.

  47. Question 47 of 308Ironclad Global must guarantee that multiple groups of write actions applied to an Amazon DynamoDB table either all succeed or all fail together, with no partial updates, and must ensure that repeating the same operation does not cause duplicate changes. The company, a commercial real estate firm building a new serverless leasing application, needs to select the correct DynamoDB write approach. Which solution will meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Update the items in the table using the TransactWriteItems operation to group the changes

    TransactWriteItems groups up to 25 writes into one all-or-nothing atomic transaction, and its client token prevents duplicate effects when the same transaction is retried. BatchWriteItem is not atomic, so partial failures can occur, which fails the all-or-nothing requirement.

  48. Question 48 of 308Crestline Foundation must guarantee that any failed order in its equipment procurement pipeline can be debugged later and reprocessed without losing data. The organization, a weather and climate research agency that resupplies remote atmospheric monitoring stations, uses an Amazon SQS queue named CrestlineSensorOrders to queue replacement-sensor orders, and an AWS Lambda function processes each order from that queue. The team has recently noticed that a significant number of orders are failing to process. How can a developer MOST effectively manage these failures to debug the failed orders later and reprocess them, as necessary?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Implement a dead-letter queue for failed orders from the CrestlineSensorOrders queue

    A dead-letter queue automatically receives messages that exceed maxReceiveCount, preserving the full body so failed orders can be inspected and reprocessed later. Logging alone does not keep the message reprocessable, and SNS or CloudTrail provide no reprocessing mechanism.

  49. Question 49 of 308Juniper Associates currently authenticates its fleet-tracking mobile application through Amazon Cognito user pools, with multi-factor authentication (MFA) enforced for every driver and dispatcher account. This application exposes sensitive data, including client shipment manifests and upcoming freight contract bids. Given the sensitivity of this information, the logistics company now needs to notify its security team by email every time a user successfully logs in. Which of the following would you recommend as the MOST optimal way of implementing this requirement within a short period of time?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create an AWS Lambda function that uses Amazon Simple Email Service to send an email notification to the security team. Configure this function as an Amazon Cognito post-authentication Lambda trigger

    The Cognito post-authentication Lambda trigger fires only after a successful sign-in, so a Lambda function using SES to email the security team meets the requirement with minimal effort. The pre-authentication trigger fires before success, so it cannot notify only on successful logins.

  50. Question 50 of 308What should the developer do to implement per-file encryption in the application?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use the AWS KMS GenerateDataKey API to acquire a data key, use the data key to encrypt the data, and store both the encrypted data key and the data.

    GenerateDataKey returns a plaintext data key and a copy encrypted under the KMS key, enabling envelope encryption with a unique key per file while keeping KMS calls off the data path. The KMS Encrypt API alone cannot handle large files or per-file keys efficiently.

  51. Question 51 of 308A media streaming company is developing a serverless video-recommendation service that uses AWS Lambda functions to query an Amazon RDS database. The security team requires the database connection string to be stored securely and rotated automatically every 30 days. Which approach meets this requirement with the LEAST operational overhead?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Store a secret in AWS Secrets Manager and enable automatic rotation every 30 days

    AWS Secrets Manager natively stores the connection string and provides built-in automatic rotation for Amazon RDS on a 30-day schedule with no custom code. Parameter Store SecureStrings have no native rotation, so option D would require writing and maintaining a Lambda rotation function.

  52. Question 52 of 308A cruise line operator needs to automatically generate a unique master password for each Amazon RDS DB instance that AWS CloudFormation templates deploy through its AWS CodePipeline CI/CD workflow, with minimal custom development work. What approach fulfills this requirement with the minimum possible development effort?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use AWS Secrets Manager via the AWS SDK to generate a secure string. Use a dynamic reference to create the DB instance with the secret value.

    Secrets Manager can generate a random secret, and a CloudFormation dynamic reference injects it directly into MasterUserPassword without exposing plaintext. The custom Lambda option requires far more development effort, which violates the minimum-effort requirement.

  53. Question 53 of 308A session-storage layer uses a DynamoDB table in provisioned capacity mode. Items are approximately 4.5 KB, and the application performs 20 eventually consistent reads per second and 12 standard (non-transactional) writes per second. How many RCUs and WCUs are required?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. 20 RCU and 60 WCU

    The 4.5 KB item rounds up to 8 KB, and eventually consistent reads of an item up to 8 KB consume one RCU each, so 20 reads need 20 RCU. Writes round to 5 KB at 1 WCU per KB, so each write costs 5 WCU and 12 writes per second require 60 WCU.

  54. Question 54 of 308A company that supplies robotics kits to K-12 school districts uses Amazon Cognito for its web application. Users must be able to sign in from any source, while any sign-in attempt flagged as high risk is automatically blocked. Which Amazon Cognito feature meets these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Adaptive authentication

    Adaptive authentication assigns a risk score to each sign-in and lets you automatically block attempts at elevated risk levels. Plain MFA challenges every user the same way and cannot react to contextual risk signals.

  55. Question 55 of 308Eastwick Agency, a music streaming platform headquartered in Austin, Texas, is building a new listener-facing application that must support Security Assertion Markup Language (SAML) authentication as well as sign-in through social identity providers such as Google or Facebook. The application also needs authorization to directly access listener data stored in Amazon S3 buckets and Amazon DynamoDB tables. Which AWS service or feature will meet these requirements with the LEAST amount of additional coding?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Amazon Cognito identity pools

    Amazon Cognito identity pools federate SAML and social logins and exchange them for temporary AWS credentials, letting the app access S3 and DynamoDB directly. User pools only authenticate; when the scenario demands direct AWS resource access after federated sign-in, choose identity pools.

  56. Question 56 of 308Traffic to a new AWS Lambda function version must shift gradually, in fixed 10% increments every 10 minutes, until the rollout completes. Nightingale Alliance, a semiconductor manufacturer, is applying this rollout policy to a serverless application that processes wafer defect telemetry, using AWS CodeDeploy to manage the update. Which deployment configuration type should be chosen to enforce this traffic-shifting behavior?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Linear

    A linear deployment configuration like LambdaLinear10PercentEvery10Minutes shifts traffic in equal increments at fixed intervals. Canary shifts in larger staged steps with baking periods, so it does not match equal 10% increments every 10 minutes.

  57. Question 57 of 308Postponing the delivery of newly queued messages by at least 10 seconds is a requirement for a genomic sequencing data pipeline. Eastwick Authority, a biotechnology research lab that processes high-throughput sequencing files, built this pipeline with an AWS Elastic Beanstalk application: the application uploads each sequencing file to Amazon S3 and then sends a message to an Amazon SQS queue containing the S3 file path. Which SQS feature should the engineer use to delay delivery of the queue message for at least 10 seconds after the upload?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the DelaySeconds parameter

    The DelaySeconds parameter postpones visibility of a newly sent SQS message for up to 15 minutes, which covers the 10-second requirement. Visibility timeout only hides messages already received, and long polling affects retrieval wait, not delivery delay.

  58. Question 58 of 308The platform engineering team at Jasperfield Global, a sports analytics company that streams live performance data from stadium sensors, is troubleshooting a stack deletion issue in AWS CloudFormation. The stack deletion operation halts and the console displays the following error: DELETE_FAILED (The following resource(s) failed to delete: (sg-0a1b2c3d).) Which action should the team take to resolve this error?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Modify the CloudFormation template to retain the security group resource. Then manually delete the resource after deployment.

    Setting a DeletionPolicy of Retain on the security group lets the stack delete successfully while leaving the resource in place for manual cleanup later. Manually deleting the resource first does not fix a stack already stuck in DELETE_FAILED without retaining it.

  59. Question 59 of 308Palisade Agency needs to scan an entire Amazon DynamoDB table without disrupting the live booking traffic of its hotel chain. The table, named PalisadeAgency-Reservations, is 45 GB in size and is provisioned with 8,000 read capacity units (RCUs) per second. The scan must run during non-peak hours, when normal booking traffic consumes around 4,000 RCUs, and it must finish in the shortest possible time while the normal workload remains unaffected. How would the Developer optimize this scan cost-effectively?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the Parallel Scan API operation and limit the rate

    A parallel scan divides the table into segments scanned concurrently, and a rate limiter keeps consumption within the 4,000 spare RCUs so live traffic is unaffected. Simply adding RCUs raises cost, and FilterExpression still consumes full scan capacity.

  60. Question 60 of 308The platform engineering team supporting Elmsworth Bureau, a satellite communications provider that operates a customer portal for tracking satellite service requests, manages a web application architecture consisting of multiple Amazon EC2 instances running behind an Elastic Load Balancer, with an Auto Scaling group configured for a desired capacity of 6 EC2 instances. The team wants to integrate AWS CodeDeploy to automate application deployment. The deployment must provision a new environment alongside the existing one and then re-route traffic from the application's original environment to the new environment. Which of the following options will meet this deployment requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Opt for Blue/Green deployment

    A Blue/Green deployment in CodeDeploy provisions a replacement environment and then shifts traffic from the original one, matching the requirement exactly. In-place deployment updates existing instances instead, so it cannot provision a parallel environment.

  61. Question 61 of 308The platform engineering team at Wintergreen Federation, a public transportation authority operating a regional bus and rail network, has deployed a new AWS Lambda function in a newly created AWS account to process real-time vehicle telemetry data. The function is invoked approximately 40 times per second, and each invocation takes about 100 seconds to complete. What MUST the team do to ensure the function does not encounter errors?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Contact AWS Support to increase the concurrent execution limit

    Forty invocations per second times 100 seconds each requires about 4,000 concurrent executions, exceeding the default 1,000 limit per Region, so a quota increase is mandatory. Error handling, X-Ray, and dead-letter queues address failures, not throttling from concurrency limits.

  62. Question 62 of 308Quarrystone Logistics, the internal logistics and supply-chain department of a public university, currently runs an Amazon ECS cluster on Amazon EC2 container instances of several different instance types to support its course-material distribution and campus shipping systems. The department is now migrating a large number of additional Docker containers onto this existing cluster, and it must choose a task placement strategy that minimizes the number of container instances used based on available memory. Which task placement strategy meets this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. binpack

    The binpack placement strategy packs tasks onto instances with the least available CPU or memory, minimizing the number of instances used. Spread distributes tasks evenly across instances for availability, which actually increases instance usage.

  63. Question 63 of 308Vailmont National, a social media analytics company, ingests real-time engagement metrics from thousands of social media accounts and stores current campaign bid values in Amazon DynamoDB so its bidding engine can adjust ad spend instantly. Multiple worker processes sometimes update the same campaign's bid value at nearly the same moment, and the team has noticed that one worker's update is silently replaced by another worker's update, discarding the first change. Which approach should the developers implement to stop these updates from overwriting each other?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use conditional writes

    Conditional writes add a condition expression that rejects the update if the item changed since it was read, preventing silent overwrites. Atomic counters are meant for incrementing values, not for guarding concurrent updates against loss.

  64. Question 64 of 308A web application must let remote employees sign in using credentials from an existing on-premises SAML identity directory, and each employee must be limited to viewing only their own data after signing in. Solstice Associates, a logistics and freight company that relies on a home-based workforce to track shipments, maintains this SAML directory and needs the developer to integrate the application with it while enforcing per-employee data isolation. Which approach should the developer take?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use an Amazon Cognito identity pool, federate with the SAML provider, and use a trust policy with an IAM condition key to limit employee access

    A Cognito identity pool federates the SAML provider and issues temporary AWS credentials, with a trust policy condition key like cognito-identity.amazonaws.com:sub scoping each user to their own data. User pools authenticate but don't grant scoped AWS credentials, so that distractor misses the authorization half.

  65. Question 65 of 308Ulverstone Group, a mining and minerals company, is modernizing equipment monitoring at its headquarters in Perth, Australia. The company plans to build a new application using a serverless architecture that relies heavily on AWS Lambda functions. Because the engineering team includes developers who work in Python, .NET, and JavaScript, Ulverstone Group needs to model its cloud infrastructure using any of these programming languages rather than a declarative template format. Which AWS service or tool should Ulverstone Group use for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. AWS Cloud Development Kit (CDK)

    The AWS CDK lets developers model infrastructure in general-purpose languages like Python, .NET, and TypeScript, then synthesizes CloudFormation templates. CloudFormation and SAM use declarative templates, which the scenario explicitly rules out.

  66. Question 66 of 308The infrastructure reliability team at Lumen Authority, an aerospace and defense contractor headquartered in Huntsville, Alabama, operates a flight-telemetry processing application on an Amazon EC2 instance. The team has published a custom Amazon CloudWatch metric that tracks application availability at 1-second granularity. Because the application supports mission-critical launch operations, the team must receive a notification within 30 seconds of any detected issue. Which action should the team take to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure a high-resolution CloudWatch alarm and use Amazon SNS to send the alert.

    A high-resolution CloudWatch alarm supports evaluation periods as short as 10 seconds, meeting the 30-second notification window when paired with SNS. Standard alarms evaluate at 60-second granularity at best, so the default-metric option cannot respond fast enough.

  67. Question 67 of 308Preserving the original order of clickstream data across two separate consumer applications is critical when one process must be able to replay the exact same records up to 7 days after another process has already consumed them. Dovetail Commission, a renewable energy company that aggregates real-time energy production clickstream data and bills industrial clients based on the volume of data delivered, operates in a regulated industry and must run an independent auditing process against the same ordered data used for billing, with audits sometimes occurring up to 7 days later. Which AWS service provides the ability to run both the billing process and the auditing process against the same clickstream data, preserving the original record order, even when the audit process runs several days behind the billing process?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. AWS Kinesis Data Streams

    Kinesis Data Streams retains records for a configurable period and preserves per-shard ordering, letting multiple consumers replay the same records days apart. SQS deletes messages after consumption and Firehose delivers rather than stores for replay, so both fail the audit requirement.

  68. Question 68 of 308Harborview Works needs to resolve a persistent API failure that is blocking a customer-facing loan application service before its next compliance audit. The company, a regional banking institution based in Denver, has configured a Lambda integration in Amazon API Gateway for its HarborviewWorks-LoanProcessor function using a stage variable. However, every invocation of the API method returns an "Internal server error" message with a 500 status code. What steps should the developer take to fix the issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. If you create a stage variable to call a Lambda function through your API, you must add the required permissions. Update your Lambda function's resource-based AWS Identity and Access Management (IAM) policy so that it grants invoke permission to API Gateway

    When API Gateway invokes a Lambda function through a stage variable, the function's resource-based policy must explicitly grant API Gateway invoke permission. The console only adds this automatically for direct integrations. Exam cue: a 500 error plus a stage variable points to missing resource-based policy permissions, not throttling.

  69. Question 69 of 308A recent internal audit uncovered that an earlier serverless deployment caused a brief spike in errors because all traffic shifted to the new Lambda version instantly, with no gradual rollout. In response, Elmsworth Technologies, a renewable energy company that monitors solar panel performance using a serverless application built with AWS Lambda, is updating this application with the AWS Serverless Application Model (AWS SAM). The traffic must shift from the old Lambda function version to the new Lambda function version gradually, but within the shortest total period of time. Which deployment configuration is MOST suitable for these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. CodeDeployDefault.LambdaCanary10Percent5Minutes

    The canary configuration shifts 10 percent immediately, waits 5 minutes, then shifts the remaining 90 percent, finishing in the shortest total time. Exam cue: canary deployments use two steps, so they complete faster than linear configurations with many small increments.

  70. Question 70 of 308A gradual, low-risk rollout of a new API version to a limited slice of production traffic requires a mechanism that avoids custom traffic-splitting logic. Prairiewind Associates, a healthcare diagnostics provider whose mobile application lets patients view lab results through Amazon API Gateway, needs to introduce an updated API version to a small subset of users before a full release. What is the MOST straightforward method for the company to introduce the new API version to a subset of users through API Gateway?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Utilize the canary release deployment feature in API Gateway. Configure the canarySettings to redirect a portion of the API traffic

    API Gateway's built-in canary release with canarySettings percentTraffic sends a chosen percentage of traffic to the new version with no custom logic. Exam cue: 'canarySettings' and 'percentTraffic' are the giveaways; avoid building your own Lambda traffic splitter or Route 53 tricks.

  71. Question 71 of 308A recent internal security audit flagged an application running on Amazon ECS for using long-lived access keys, originally set up for development testing, to call Amazon DynamoDB through the AWS SDK. The audit findings triggered an urgent fix before the application moves to a production cluster. Keystone Collective, an e-learning platform that hosts video coursework and stores student progress data, now needs to close this gap before deployment continues. How should the developer configure the application to securely authenticate to AWS services?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure an ECS task IAM role for the application to use.

    An ECS task IAM role grants containers temporary, per-task credentials through the container credentials endpoint, eliminating long-lived keys. Exam cue: instance profiles apply to the whole EC2 host, not individual tasks, so the task role is the right scope for fine-grained access.

  72. Question 72 of 308Driftline Labs, a payment processing company, stores completed transaction records in an Amazon DynamoDB table. The engineering team currently checks transaction status by issuing individual GetItem calls against the table. To support a new batch reconciliation job, the application must read up to 100 items at a time from the table, where each item is up to 100 KB in size and all attributes of each item must be retrieved. What is the BEST way to minimize latency?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use BatchGetItem

    BatchGetItem fetches up to 100 items by primary key in one parallel call, minimizing latency compared to sequential GetItem calls. Exam cue: when items are known by key and you need many at once, think BatchGetItem, not Scan or Query with filters.

  73. Question 73 of 308The development team at Orchardvale Agency, a book and media publisher that processes catalog update messages for its digital storefront, is using Amazon SQS FIFO queues to preserve the ordering of messages on a per-user_id basis. In addition to ordering, the team wants to ensure that duplicate messages are never delivered to consumers, since processing a duplicate would cause an application failure. As the developer responsible for this implementation, which message parameter should you set to deduplicate messages?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. MessageDeduplicationId

    MessageDeduplicationId is the producer-supplied token that stops duplicate delivery of the same logical message within the five-minute interval. ContentBasedDeduplication is a queue-level setting rather than a message parameter, which is why the wording about a message parameter points to the ID.

  74. Question 74 of 308Confidential client case records at Fairmount Continental, a law firm, are currently stored in Amazon DynamoDB tables that rely on DynamoDB's default server-side encryption at rest. A new firm-wide data protection policy now requires that this sensitive data be encrypted before it is ever submitted to DynamoDB. How can a developer meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use the DynamoDB Encryption Client to enable end-to-end protection using client-side encryption.

    The DynamoDB Encryption Client encrypts items inside the application before submission, satisfying the requirement that data be encrypted before reaching DynamoDB. Server-side CMK options protect data only after DynamoDB receives it, and ACM handles TLS certificates, not item encryption.

  75. Question 75 of 308Clearwater Logistics must guarantee that no unencrypted file is ever written to a specific Amazon S3 bucket. The company, a logistics and freight provider that stores sensitive shipment manifests and customs documentation in the clearwater-logistics-freight-docs bucket, has a written policy stating that all data placed in this bucket must be encrypted. How can a Developer ensure compliance with this policy?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create an S3 bucket policy that denies any S3 Put request that does not include the x-amz-server-side-encryption header

    A bucket policy with an explicit Deny on PutObject requests missing the x-amz-server-side-encryption header blocks unencrypted uploads before they are stored. Default SSE-S3 encryption is only a default and never rejects a noncompliant request.

  76. Question 76 of 308Brightwater Dynamics, a cybersecurity consulting firm, uses Amazon CloudFront to deliver on-demand security-awareness training videos stored in an Amazon S3 bucket named brightwater-training-media to enterprise clients worldwide. The firm is headquartered in Austin, Texas, and its clients access the training platform from many different AWS Regions. Some regions experience noticeable latency whenever a cache miss occurs on CloudFront. Which configuration change should be recommended to decrease latency and improve user performance by redirecting requests on cache misses to the S3 bucket in the Region nearest to the user's country?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Redirect requests on cache misses to the S3 bucket nearest to the user's country. Create a Lambda@Edge function to redirect requests based on the value of the CloudFront-Viewer-Country header. Associate the Lambda@Edge function with the distribution's origin request event

    Origin request events fire only on cache misses, and only Lambda@Edge supports them, so the Lambda@Edge function on origin request runs the country-based redirect exactly when needed. CloudFront Functions support only viewer events, which fire on every request.

  77. Question 77 of 308The compound registry team at Stonebridge Group, a pharmaceutical research organization, currently relies on an Amazon ElastiCache caching layer placed in front of its backend compound database to speed up read access for scientists querying experimental compound records. A new regulatory requirement now mandates that any update to compound safety data must be immediately and consistently reflected in both the cache and the backend database, while still maintaining low-latency read performance for every record stored in the database. Which cache writing policy will satisfy these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use a write-through caching strategy.

    Write-through writes to the cache and database synchronously, keeping them consistent while every record stays cached for low-latency reads. Lazy loading only caches on read, and TTL or invalidation leaves windows of inconsistency.

  78. Question 78 of 308Upgrading a Node.js platform version while deploying new application code must happen without any downtime for a high-traffic clinical trial data portal. Greystone Group, a pharmaceutical research organization headquartered in Boston, runs this website on Amazon EC2 instances managed by AWS Elastic Beanstalk, and its engineering team needs to introduce a new feature that requires the newer Node.js runtime. Which strategy should the team adopt to fulfill these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Implement Blue/Green (CNAME swap) deployment using Elastic Beanstalk. Prepare a separate environment with the new version of Node.js and the new code, and once testing is complete, swap the CNAMEs of the two environments.

    Blue/Green deployment with a CNAME swap stands up a full second environment with the new Node.js platform and code, tested before traffic shifts with no downtime. In-place platform upgrades and manual instance swaps carry downtime risk.

  79. Question 79 of 308Bluecrest Alliance, a state government agency, runs an application on a fleet of Amazon EC2 instances that manages citizen benefit records. The application uses the AWS SDK for Java to copy files into several Amazon S3 buckets, using access keys stored in environment variables. A developer at Bluecrest Alliance has modified the instances to use an assumed IAM role with a more restrictive policy that allows access to only one bucket. However, after applying the change, the developer logs into one of the instances and finds that the application is still able to write to all buckets. What is the MOST likely explanation for this situation?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The AWS credential provider looks for instance profile credentials last

    The SDK's default credential provider chain checks environment variables before instance profile credentials, so the old access keys still win. Remember that the instance role is last in the chain, making managed-versus-inline policy distractors irrelevant here.

  80. Question 80 of 308Dovetail Networks operates a music streaming platform that recently moved its internal job-notification queues from a self-hosted message broker cluster to Amazon SQS, using the queues to coordinate track-encoding tasks between microservices. The engineering team now wants to reduce the number of billable API requests generated when consumers poll these queues for new messages. Which of the following options should be recommended to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use SQS long polling to retrieve messages from the Amazon SQS queues

    Long polling lets SQS wait up to 20 seconds for messages, cutting empty responses and therefore billable API requests. Short polling returns immediately when the queue is empty, while visibility timeout and message timers control different behaviors.

  81. Question 81 of 308A recent spike in customer support complaints revealed that users of a cloud-based diagnostic imaging file storage portal are frequently prompted to re-authenticate whenever they navigate between pages. Nightingale Logistics, a healthcare diagnostics provider that serves regional hospital networks, operates this portal through an Internet-facing Application Load Balancer that routes requests from users over the internet to 8 registered Amazon EC2 instances. The development team cannot reproduce this behavior on their local machines or in the development environment. What could be the reason?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The Load Balancer does not have stickiness enabled

    Without sticky sessions, the load balancer spreads requests across all eight targets, so users hit instances lacking their session data and must re-authenticate. Enabling ALB stickiness with the AWSALB cookie keeps each client on its original target.

  82. Question 82 of 308Decoupling user authentication from application logic is required so that Amazon EC2 instances running behind an Application Load Balancer can focus solely on business logic. Cascade Trust, a petrochemical company, operates this EC2 fleet to power an internal inspection-photo application used by field engineers, with traffic fronted by an Amazon CloudFront distribution for global content delivery. Which of the following solutions addresses this requirement with minimal development effort?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Cognito Authentication via Cognito User Pools for your Application Load Balancer

    The ALB authenticate action natively integrates with Cognito User Pools on an HTTPS listener, offloading authentication with no custom code. Identity Pools grant AWS credentials rather than authenticating users, so they do not fit this requirement.

  83. Question 83 of 308The data engineering team at Amberfield Cooperative, an environmental monitoring agency that tracks water quality sensor readings across regional rivers, is building an AWS Lambda function to process incoming sensor telemetry from an Amazon Kinesis Data Stream. Whenever the function fails to process a batch of sensor records, the team needs an automatic notification sent to on-call administrators so they can investigate before the failure affects compliance reporting. How should the team configure the function to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Configure an Amazon SNS topic as an on-failure destination

    An SNS topic configured as a Lambda on-failure destination automatically publishes the failed execution record, including error details, and notifies subscribers by email or SMS. SQS only queues failed records for later processing; it does not actively alert people, so it fails the notification requirement.

  84. Question 84 of 308The identity and access management team supporting Meridian Solutions, a mining and minerals company headquartered in Denver, maintains separate AWS accounts for the Production, Testing, and Development environments used by its ore-tracking and equipment-telemetry systems. A developer who holds an IAM user in the Development account must launch resources directly in both the Production and Testing accounts to validate deployment scripts before each release. What is the MOST efficient way to provide this access?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a role with the required permissions in the Production and Testing accounts and have the developer assume that role

    Cross-account access uses an IAM role in each target account with a trust policy allowing the Development account, and the developer assumes it via STS for temporary credentials. Duplicate IAM users create long-term credential sprawl, and IAM groups cannot contain users from a different account.

  85. Question 85 of 308The platform engineering team at Solstice National, a music streaming platform headquartered in Austin, is building an internal analytics service that tracks listener engagement using an Amazon DynamoDB table named SolsticeListenerEngagement. Each item in the table is identified by a partition key (user_id) and a sort key (artist_name). The table also includes an attribute named "TopScore" that stores the highest engagement score a listener has given to an artist. The team has been asked to build a leaderboard feature that displays the highest engagement score achieved for each artist (artist_name), based on the value stored in the "TopScore" attribute. Which approach will allow the team to retrieve these results MOST efficiently from the DynamoDB table?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a global secondary index with a partition key of "artist_name" and a sort key of "TopScore", and retrieve the results based on the score attribute

    A global secondary index allows a completely different partition and sort key, here artist_name plus TopScore, so a Query returns the top score per artist efficiently. A local secondary index must keep the base table's partition key, and a Scan reads the whole table.

  86. Question 86 of 308The database engineering team at Harborview Union, a K-12 school district, is migrating an on-premises student records database to Amazon RDS for PostgreSQL. Reporting dashboards used by teachers and administrators generate a high volume of read queries, especially near the end of each grading period. The team wants to improve read performance for SQL queries while minimizing both current and future application refactoring effort. Which solution will address this requirement with the least current as well as future development effort?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Set up Amazon RDS with one or more read replicas. Refactor the application code so that the queries use the endpoint for the read replicas

    RDS read replicas offload read-heavy workloads using standard SQL against the replica endpoint, requiring only a small connection-string change. ElastiCache options demand application-level caching logic, and Multi-AZ standby instances cannot serve reads at all.

  87. Question 87 of 308Driftline Guild, a museum and cultural heritage foundation, currently operates a single-Region order and archive-submission API that member museums use to catalog digital preservation records. As Driftline Guild prepares to expand its digital preservation program internationally, it must perform geographic load testing of this API by deploying resources to multiple AWS Regions. How can Driftline Guild meet this requirement without additional application code?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Set up an AWS CloudFormation template that defines the load test resources. Leverage the AWS CLI create-stack-set command to create a stack set in the desired Regions

    CloudFormation StackSets deploy the same template across multiple Regions in one operation using the create-stack-set CLI command, requiring no new code. CDK would require new code, and AWS Organizations is not an infrastructure template service.

  88. Question 88 of 308An AWS Lambda function must encrypt a payload of approximately 750 KB before it forwards the payload to a downstream service. Thornfield Enterprises, an accounting and audit firm that stores sensitive client financial records, has assigned a developer to add this encryption step inside the function. Which API call is required to perform the encryption?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Issue the AWS KMS GenerateDataKey API to return an encryption key.

    GenerateDataKey returns a plaintext key plus its encrypted copy for envelope encryption, the required pattern since KMS Encrypt only handles payloads up to 4 KB. Some argue D is defensible because 750 KB technically exceeds the 4 KB direct-Encrypt limit, making B the intended envelope-encryption answer.

  89. Question 89 of 308Eastwick Systems needs to roll out a new feature to a small group of beta testers without affecting the experience of its existing users, as part of a serverless application it operates for a public university with a large, active student body. The new feature involves an AWS Lambda function that is invoked by an Amazon API Gateway API, and the API currently uses a specific Lambda alias to invoke the function. What would be the most efficient approach to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a new version of the Lambda function. Build a new stage on API Gateway integrated with this new Lambda version. Utilize this new API Gateway stage for beta testing.

    Publishing a new Lambda version and pointing a separate API Gateway stage at it gives beta testers an isolated endpoint while existing users stay on the current stage and alias. CodeDeploy traffic splitting mixes beta users with production traffic, which fails the isolation requirement.

  90. Question 90 of 308Deploying a code update to a production Amazon Elastic Beanstalk environment must prioritize the ability to roll back quickly above every other consideration, including cost and deployment speed. Truenorth Council, a consumer electronics manufacturer whose order-processing platform cannot tolerate extended downtime, needs to select the deployment policy that satisfies this requirement for its upcoming release. Which deployment policy should Truenorth Council's development team choose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Immutable

    The Immutable policy launches a fresh fleet on a temporary Auto Scaling group and keeps the originals untouched, so a failed health check rolls back almost instantly. Rolling with additional batch is cheaper but rollback requires redeploying batches, which is slower.

  91. Question 91 of 308Following a spike in customer complaints about slow baggage-scan confirmations during peak boarding hours, an internal performance review at Silverlake Trust, a regional airline, examined the backend systems that process these events. The review focused on an AWS Lambda function that inserts scan records into an Amazon RDS for MySQL database, implemented as follows: def handler(event, context): mysql = mysqlclient.connect() data = event['data'] mysql.execute(f"INSERT INTO baggage_scans (scan_data) VALUES ({data});") mysql.close() return Monitoring data showed that the first invocation completes in 2 seconds, while the second invocation and every subsequent one still takes 1.9 seconds, almost no improvement despite AWS Lambda reusing the execution environment. What should the development team do to reduce the Lambda function's execution time?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Move the database connection logic outside of the handler function

    Moving the database connection into the global scope outside the handler lets warm invocations reuse it, removing repeated connection setup cost. Exam cue: initialize SDK clients and DB connections outside the handler; otherwise environment reuse saves almost nothing.

  92. Question 92 of 308Sablecrest Trust must deploy a new version of its production application on AWS Elastic Beanstalk without causing any downtime for users, and any failed update must be reverted quickly and cleanly. The company operates a social media analytics platform that processes live engagement metrics for enterprise clients, so continuous availability is critical. Which deployment method should be used?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Immutable

    An immutable deployment launches fresh instances in a new Auto Scaling group, keeps the old environment serving traffic, and rolls back cleanly by terminating the new group. Exam cue: immutable is the pick when the scenario demands both zero downtime and fast, safe rollback.

  93. Question 93 of 308Truenorth Dynamics, a biotechnology research lab, operates a genomic sequencing pipeline on Amazon EC2 that produces a high volume of small metadata files, each about 1 KB in size, containing personally identifiable information about research subjects that must be converted to ciphertext. The lab stores these files on an in-house, proprietary network-attached storage appliance that has no native integration with AWS KMS. What is the SAFEST way to encrypt the data using AWS KMS?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Encrypt the data directly with a customer managed customer master key

    Files of 1 KB fall under the 4 KB limit for direct KMS Encrypt calls, and a customer managed key gives full control over policy and rotation while key material stays inside KMS. Envelope encryption with a data key is meant for larger payloads and adds key-handling risk.

  94. Question 94 of 308Emailing customer receipts with PDF attachments pulled from Amazon S3 requires an application running on Amazon EC2 to securely call the S3 API without embedding long-term credentials anywhere on the instance. Oakhaven Systems, a semiconductor manufacturer headquartered in Austin, Texas, runs its internal parts-ordering portal on Amazon EC2 instances backed by Amazon RDS and needs to add this receipt-attachment feature. Which of the following options will provide the EC2 instances with the appropriate permissions to upload files to Amazon S3 and generate S3 presigned URLs?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create an IAM role for EC2

    An IAM role attached through an instance profile delivers automatically rotating temporary credentials to the SDK or CLI on the instance, with no static secrets stored. Putting credentials in user data or running aws configure stores long-term keys on disk, which the requirement explicitly forbids.

  95. Question 95 of 308The platform engineering team at Kestrel Federation, a smart city government agency that operates traffic and utility monitoring systems, is using an AWS Step Functions state machine to coordinate its sensor-data processing pipeline. During testing, errors occurred in one of the state machine's task states. To troubleshoot the issue, a developer needs the state output to include both the original state input and the error message that was generated. Which coding practice should the developer use to preserve both the original input and the error information in the state output?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use ResultPath in a Catch statement to include the original input with the error.

    ResultPath in a Catch statement appends the captured error to the original input instead of replacing it, so both appear in the state output. Exam cue: merging error data with input is a ResultPath job; InputPath and OutputPath only filter, and they do not work inside Retry.

  96. Question 96 of 308Thornfield Labs, a construction and engineering firm, collects data from vibration sensors installed at active job sites. An AWS Lambda function stores the sensor data in an Amazon SQS Standard queue, and an Amazon EC2 instance processes the data and stores it in an Amazon Redshift data warehouse used for structural analytics. A fault in the sensors' software is causing occasional duplicate messages to be sent. Timestamps on the duplicate messages show that they are generated within a few seconds of the primary message. How can a developer prevent duplicate data from being stored in the data warehouse?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use a FIFO queue and configure the Lambda function to add a message deduplication token to the message body

    SQS FIFO queues with a message deduplication ID or content-based deduplication discard duplicates arriving within the five-minute window. Message group IDs only control ordering, so that distractor does not stop duplicate deliveries.

  97. Question 97 of 308Everstone International, a point-of-sale software vendor, runs its transaction-processing logic for retail checkout terminals as an AWS Lambda function that has been stable in production for several months. A developer has just published a new version of this function containing updated tax-calculation logic, and now needs to direct a small percentage of live transaction traffic to the new version, gradually increasing that percentage over time. It is important to be able to roll back quickly if any issues are reported. What is the BEST way for the developer to implement the migration to the new version safely?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create an alias, assign the current and new versions, and use traffic shifting to assign a percentage of traffic to the new version

    A Lambda alias pointing at two versions supports weighted traffic shifting, so the developer can ramp traffic to the new version and instantly revert weights for rollback. Options like Route 53 weighted routing or load balancers target DNS-addressable resources, not Lambda versions.

  98. Question 98 of 308The application development team at Ashgrove Foundation, a museum and cultural heritage foundation, is building an imaging microservice on AWS Lambda to digitize and process photographs from the foundation's archival collection. The service depends on several libraries that are not available in the Lambda runtime environment. Which strategy should the team follow to create the Lambda deployment package?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a ZIP file with the source code and all dependent libraries

    A Lambda deployment package must bundle the source code together with any dependent libraries that the base runtime does not include. Exam cue: when libraries are missing from the native runtime, zip them into the deployment package or use a Lambda layer; Lambda cannot install packages at invocation time.

  99. Question 99 of 308The platform engineering team at Brackenridge Logistics, a transportation logistics provider that manages bus routing and attendance tracking for a K-12 school district, runs its application on a fleet of Amazon EC2 instances behind an Auto Scaling group. The application stores route and attendance data in an Amazon DynamoDB table, and every instance can write updates to the table. The team has noticed that some instances occasionally read outdated attendance records immediately after another instance writes an update. The team must modify the application so that every query returns the latest committed data. Which change should the team make?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Set the ConsistentRead parameter to true when calling GetItem.

    DynamoDB defaults to eventually consistent reads, which can return stale data right after a write; setting ConsistentRead to true on GetItem forces the latest committed data. Distractor cue: DAX is a read cache and actually worsens staleness rather than fixing it.

  100. Question 100 of 308The cloud security team at Fairmount Logistics, an industrial manufacturing company with a large distributed engineering staff, has been tasked with securing several Amazon S3 buckets that are shared by a large team of users within the organization. Previously, a bucket policy was modified and the bucket inadvertently became accessible to everyone, including entities outside the organization. Which feature or service will help the team identify similar security issues going forward with minimum effort?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. IAM Access Analyzer

    IAM Access Analyzer continuously evaluates resource-based policies and flags resources shared outside your zone of trust, catching unintended public or cross-account S3 exposure automatically. Exam cue: Access Advisor only shows when IAM entities last used their permissions, not whether buckets are exposed.

  101. Question 101 of 308After a post-incident review following a regional flood response, a nonprofit disaster-relief organization discovered that its volunteer coordination application, which runs across multiple EC2 instances and triggers AWS Lambda functions to generate automated damage-assessment reports, had no shared storage layer, causing inconsistent case files during the emergency. Elmsworth Group now needs a central file storage solution that scales on demand and can be used concurrently by multiple Amazon Elastic Compute Cloud (EC2) instances and AWS Lambda functions. Which storage solution will meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create an Amazon Elastic File System (EFS) file system.

    Amazon EFS provides a fully managed, elastic NFS file system that multiple EC2 instances and Lambda functions can mount concurrently with no capacity planning. Exam cue: EBS Multi-Attach is limited to EC2 within one Availability Zone and cannot be used by Lambda at all.

  102. Question 102 of 308Yellowpine Foundation, a healthcare diagnostics provider, runs its diagnostic imaging processing pipeline on Amazon EC2 instances inside an Auto Scaling group. The group currently scales only on the default CPU utilization metric. Because imaging workloads consume far more memory than CPU, the engineering team now needs the group to scale based on average RAM usage across the fleet's instances. Which option provides the best solution?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create a custom metric in CloudWatch and make the instances send data to it using PutMetricData. Then, create an alarm based on this metric

    CloudWatch does not collect EC2 memory metrics by default, so the instances must publish RAM usage as a custom metric via PutMetricData and scaling alarms are built on that metric. Exam cue: detailed monitoring only changes granularity of existing metrics, never creates new ones.

  103. Question 103 of 308A team of developers at Driftline Analytics currently builds, bundles, and packages its network-monitoring software using a third-party tool that runs entirely on-premises, and the resulting package is stored on a local file system. As Driftline Analytics, a telecommunications provider, expands the fleet of Amazon EC2 instances that process call detail records, the team must now deploy this on-premises software package onto those EC2 instances. How can the application be deployed onto the EC2 instances?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Upload the bundle to an Amazon S3 bucket and specify the S3 location when performing a deployment using AWS CodeDeploy

    CodeDeploy pulls application revisions from Amazon S3 or GitHub, so an externally built package must be uploaded to S3 before deployment to EC2. Exam cue: CodeBuild builds and tests while CodeCommit hosts source; neither deploys artifacts, and CodeDeploy cannot read a local on-premises file system.

  104. Question 104 of 308Quarrystone Alliance needs to run a serverless data store service using two Docker containers that must share resources, such as CPU, memory, and networking, with each other, as it modernizes the trip-planning backend for a public transportation authority operating a large metropolitan rail network. Which of the following Amazon ECS configurations can be used to facilitate this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Put the two containers into a single task definition using a Fargate launch type

    Containers placed in the same ECS task definition share the task's CPU, memory, network namespace, and volumes, while Fargate removes server management entirely. Exam cue: the words serverless plus shared resources point to a single task definition with the Fargate launch type.

  105. Question 105 of 308A Lambda function must read transaction records from newly uploaded Amazon S3 objects and write the parsed data into an Amazon DynamoDB table for downstream settlement processing. At Cobalt Cooperative, a payment processing company that reconciles merchant transactions in near real time, this function is triggered successfully whenever a file lands in the S3 bucket, but every attempt to write the data to DynamoDB fails. What is the probable reason for the failure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The Lambda function does not have IAM permissions to write to DynamoDB

    The function's execution role must explicitly grant DynamoDB write actions like dynamodb:PutItem on the target table; a successful S3 trigger does not confer downstream permissions. Exam cue: trigger works but a specific API call fails almost always means missing IAM permissions on the execution role.

  106. Question 106 of 308The application development team at Everstone Technologies, a nonprofit disaster-relief organization that coordinates emergency logistics across multiple regions, is building a microservices application that will use Docker containers on Amazon ECS. The architecture includes 6 distinct services, and each service requires specific permissions to access various AWS services. What is the MOST secure way to grant the services the necessary permissions?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create six separate IAM roles, each containing the required permissions for the associated ECS service, then configure each ECS task definition to reference the associated IAM role

    Task IAM roles give each task definition its own scoped credentials, so each of the six services gets only the permissions it needs, following least privilege. Exam cue: instance profiles apply to the whole EC2 host and grant every container the same broad permissions.

  107. Question 107 of 308The release engineering team at Truenorth Enterprises, a theme park operator whose ride-reservation platform runs on AWS Lambda, needs a seamless way to roll back to an older version of a Lambda function whenever a new deployment causes problems. Which of the following solutions offers the LEAST operational overhead?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use a Lambda function alias that can point to the different versions

    A Lambda alias is a mutable pointer with a stable ARN that can be repointed to any published version, giving an instant rollback with no extra infrastructure. CodeDeploy offers traffic shifting but adds pipeline overhead, making it more than needed for simple rollback.

  108. Question 108 of 308Extending a web application's deployment to a second AWS Region without adding unnecessary operational work is the current goal for Overlook Regional, a regional banking institution headquartered in Denver, Colorado. The bank runs its web application on Amazon EC2 instances built from a custom Amazon Machine Image (AMI) and uses AWS CloudFormation to deploy the application, which is currently running in the us-east-1 Region. The team now wants to extend the deployment to the us-west-1 Region. During an initial attempt to create an AWS CloudFormation stack in us-west-1, the stack creation fails, and an error message indicates that the AMI ID does not exist. A developer at Overlook Regional is tasked with resolving this error using an approach that minimizes operational complexity. Which action should the developer take?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Copy the AMI from the us-east-1 Region to the us-west-1 Region and use the new AMI ID in the CloudFormation template.

    AMIs are Region-specific, so the fix is to copy the AMI to us-west-1 and reference the new AMI ID in the template. Cross-Region AMI references fail outright, and rebuilding or generating the AMI with Lambda adds unnecessary operational complexity.

  109. Question 109 of 308Northbridge Solutions, a water utility company, needs a bucket policy that denies the upload object permission for any request that does not include the x-amz-server-side-encryption header requesting server-side encryption with SSE-KMS, because the Amazon S3 bucket named northbridge-meter-readings stores sensitive meter-reading data subject to critical-infrastructure data protection requirements. Which of the following policies is the right fit for this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. { "Version":"2012-10-17", "Id":"PutObjectPolicy", "Statement":[{ "Sid":"DenyUnEncryptedObjectUploads", "Effect":"Deny", "Principal":"*", "Action":"s3:PutObject", "Resource":"arn:aws:s3:::northbridge-meter-readings/*", "Condition":{ "StringNotEquals":{ "s3:x-amz-server-side-encryption":"aws:kms" } } } ] }

    A Deny on s3:PutObject with StringNotEquals s3:x-amz-server-side-encryption aws:kms blocks any upload that doesn't request SSE-KMS. The strongest distractor uses StringEquals aws:kms, which would deny exactly the uploads you want to allow.

  110. Question 110 of 308Union Systems currently stores transaction records and customer profile data in Amazon S3 buckets, relying on Amazon S3's default encryption settings to protect data at rest. The payment processing company's compliance team now requires an AWS managed encryption solution that still gives Union Systems full control to create, rotate, and remove the encryption keys used to protect this data. As a Developer Associate, which of the following would you recommend to address this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Server-Side Encryption with Customer Master Keys (CMKs) Stored in AWS Key Management Service (SSE-KMS)

    SSE-KMS with a customer-managed CMK gives full control over creating, rotating, and deleting keys while AWS manages the cryptographic infrastructure. SSE-S3 offers no customer key control, and SSE-C moves the entire key management burden onto the customer.

  111. Question 111 of 308Greystone Foundation, a healthcare diagnostics provider, operates multiple regional laboratories, each maintaining its own AWS account. The development team wants to debug and trace requests as the requests flow across these accounts and visualize the resulting trace data in a single, centralized account. As an AWS Certified Developer Associate, which of the following solutions would you suggest for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. AWS X-Ray

    AWS X-Ray provides distributed tracing across services and supports cross-account aggregation of trace data, so it fits the multi-account debugging scenario. CloudTrail only records API activity, so it cannot trace requests flowing through applications.

  112. Question 112 of 308The cloud governance team at Underhill Consolidated, an agricultural technology company that manages dozens of member accounts under AWS Organizations, needs to block a short list of high-risk API actions for every IAM user and role in one specific member account, without disturbing any other permissions already granted. What is the MOST efficient way to accomplish this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a deny list and specify the API actions to deny

    A service control policy set up as a deny list permits everything by default and blocks only the named API actions, leaving existing permissions intact. An allow-list SCP would require listing every permitted action and risks accidentally blocking other permissions.

  113. Question 113 of 308Brightwater Guild, a water utility company, relies on AWS CodeDeploy to manage releases of its customer billing platform running on Amazon EC2 instances. To guard against faulty releases, the DevOps team has enabled automatic rollback for every deployment. During a recent rollout, the new version failed. What occurs if the deployment of the new version fails?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. A new deployment of the last known working version of the application is deployed with a new deployment ID

    With automatic rollback enabled, CodeDeploy redeploys the last known good revision as an entirely new deployment with its own new deployment ID. CodeDeploy does not restore snapshots or reuse old deployment records, so options about S3 snapshots and CodePipeline fail.

  114. Question 114 of 308Multiple consumer applications are experiencing a delivery lag when they read automobile health-status data concurrently from the same Amazon Kinesis Data Streams stream. Stonebridge Continental, an online marketplace that also operates a taxi ride-hailing service connecting drivers and riders, collects this vehicle health data from its fleet and needs to reduce the delay between the data producers and the data consumers. As a Developer Associate, which of the following options would you suggest to improve performance for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the Enhanced Fan-Out feature of Kinesis Data Streams

    Enhanced Fan-Out gives each registered consumer dedicated 2 MB per second read throughput per shard, eliminating the shared-throughput contention causing lag. SQS cannot preserve the ordered, real-time stream consumption semantics that multiple Kinesis consumers need.

  115. Question 115 of 308Kestrel Works, a semiconductor manufacturer, operates a customer-facing product documentation portal distributed through Amazon CloudFront, with an Application Load Balancer configured as the origin. Kestrel Works' engineering team wants visitors who request documentation pages that have been decommissioned to be automatically redirected to a current landing page instead of receiving a generic 404 error. The team plans to attach an AWS Lambda@Edge function to the existing CloudFront distribution to implement this redirect logic, and the solution must minimize the number of Lambda@Edge invocations and associated resource consumption. Which CloudFront event type should the team use to invoke the Lambda@Edge function that contains the redirect logic?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Origin response

    An origin-response trigger runs after the origin returns the 404, letting the function rewrite it as a redirect, and the response can be cached to reduce invocations. A viewer-request trigger would fire on every request before the cache, increasing invocations and cost.

  116. Question 116 of 308The platform engineering team at Ironclad Guild, a ride-sharing platform, has configured inbound traffic rules for the relevant ports on both the security group of an Amazon EC2 instance and the network access control list (NACL) of the subnet in which the instance resides. This instance hosts the company's real-time trip-dispatch service. Despite this configuration, the team is unable to connect to the service running on the EC2 instance. As a developer associate, which of the following statements correctly identifies the root cause and the recommended fix for this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Security groups are stateful, so allowing inbound traffic to the necessary ports enables the connection. Network ACLs are stateless, so you must allow both inbound and outbound traffic

    Security groups are stateful, so inbound rules automatically permit return traffic, but network ACLs are stateless and need explicit outbound rules for ephemeral ports. When inbound rules look correct but connections fail, check the NACL outbound ephemeral range first.

  117. Question 117 of 308A recent load test revealed that a streaming application must handle at least 10,000 requests per minute during peak listening hours, exposing a scalability issue in how session data is stored. The web tier at Saltmarsh Holdings, a music streaming platform headquartered in Austin, Texas, must remain completely stateless while still preserving user session state, such as playback queues and authentication tokens. How can the session state data be maintained externally while keeping latency at the LOWEST possible value?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create an Amazon ElastiCache for Redis cluster, then implement session handling at the application level to leverage the cluster for session data storage

    ElastiCache for Redis is an in-memory store, giving the lowest latency for external session state while keeping web servers stateless. DynamoDB and EFS introduce disk I/O latency, and Redshift is a data warehouse unsuitable for session handling.

  118. Question 118 of 308A caching layer must be added in front of an Amazon RDS database to improve read performance, with the cached data encrypted and the overall solution highly available. Highmoor Alliance, a sports analytics company that processes real-time game statistics, needs to select the appropriate caching solution for this database. Which solution will meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Amazon ElastiCache for Redis in cluster mode

    ElastiCache for Redis in cluster mode supports encryption at rest and in transit plus automatic failover across shards, meeting both requirements. Memcached offers neither encryption nor replication, making it the classic wrong choice when those keywords appear.

  119. Question 119 of 308A performance audit triggered by a holiday shopping traffic surge revealed that a REST API deployed in an Auto Scaling group behind an Application Load Balancer was experiencing elevated read latency. The API stores transaction payloads in DynamoDB and serves static content through Amazon S3. Traffic analysis showed that 80% of the read requests return data shared across all users. Thornfield Commission, a payment processing company headquartered in Dublin that operates this API, needs to improve application performance while optimizing cost with the least development effort. As a developer, which approach should be used?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Enable DynamoDB Accelerator (DAX) for DynamoDB and CloudFront for S3

    DAX is a fully managed, API-compatible cache for DynamoDB that speeds read-heavy workloads with no code changes, and CloudFront caches S3 static content at edge locations. ElastiCache cannot front DynamoDB or S3 the way these purpose-built services do.

  120. Question 120 of 308The platform engineering team at Westfield Consolidated, a satellite communications provider headquartered in Denver, must deploy an update to an Amazon ECS service that powers the company's satellite telemetry dashboard using AWS CodeDeploy. The deployment must expose 10% of live production traffic to the new version first, and then, after a specified period of time, shift all remaining traffic to the new version. Which ECS deployment strategy should the team use to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Blue/green with canary

    The blue/green deployment type in CodeDeploy supports a canary traffic-shifting option that shifts a small percentage first, waits a configured interval, then shifts the remaining traffic at once. Exam cue: "shift X% first, wait, then shift the rest" always identifies the canary strategy, while linear shifts in equal repeated increments.

  121. Question 121 of 308Following a security audit that flagged unencrypted message queues as a compliance risk, stricter data-protection requirements were introduced for applications running in AWS GovCloud (US). Thornfield Holdings, a theme park operator that manages ticketing and ride-reservation systems under a government contract, relies on Amazon Simple Queue Service (SQS) as the message queue service for these applications. As the contract developer supporting Thornfield Holdings, you must ensure the queue data is encrypted at rest. Which of the following steps can you take to meet this requirement without making any changes to the existing application code?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Enable SQS KMS encryption

    Enabling SQS server-side encryption with AWS KMS encrypts message bodies at rest through a queue configuration setting, requiring no application code changes. Exam cue: SSL endpoints protect data in transit, and client-side encryption or Secrets Manager would require code changes, so KMS SSE is the only configuration-only option.

  122. Question 122 of 308Hallmark Industries, a satellite communications provider headquartered in Denver, runs a serverless application on AWS that processes telemetry data from its ground stations. The application is built using AWS SAM, and the current process requires a full CloudFormation deployment for every code change before a developer can test it. The development team now wants an accelerated workflow that lets a developer push incremental code changes for testing without redeploying the entire application on every commit, while also minimizing deployment time. What should the developer do to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the sam sync command from the AWS Serverless Application Model (AWS SAM) to deploy incremental changes

    The sam sync command detects local code and infrastructure changes and pushes only the changed resources using direct API calls instead of a full CloudFormation update, which minimizes deployment time. Exam cue: for fast iterative SAM testing, remember sam sync; sam deploy performs the full CloudFormation deployment the team wants to avoid.

  123. Question 123 of 308Keystone Dynamics, an automotive manufacturer, runs a fleet-management platform that stores vehicle telemetry and assembly-line sensor readings in a single Amazon DynamoDB table containing millions of records. This table handles a high volume of read and write requests from plants across several countries. The engineering team now needs to add near-real-time processing on records as soon as they are inserted or modified in the table, without disrupting the existing write path. What is the most efficient way to introduce this capability with MINIMUM modification to the existing application code?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use AWS Lambda triggered by DynamoDB Streams to process the records

    DynamoDB Streams captures item-level changes, and AWS Lambda can be triggered on the stream without any change to the existing write logic, giving near-real-time event-driven processing. Exam cue: reacting to DynamoDB item changes with minimal code changes is the standard DynamoDB Streams plus Lambda serverless pattern.

  124. Question 124 of 308A recent load test on a public web portal revealed that client session data was lost whenever an Amazon EC2 instance was terminated by Auto Scaling during a traffic spike triggered by a major storm event. Yellowpine Trust, a weather and climate research agency headquartered in Denver, needs to redesign its session-handling architecture so that no session data is lost if an EC2 instance fails. Which approach should the Developer implement to ensure that no session data is lost if an Amazon EC2 instance fails?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Amazon DynamoDB to perform scalable session handling

    DynamoDB stores session data outside the EC2 instances in a shared, durable data store, so any surviving instance can read it after a failure. Exam cue: sticky sessions and connection draining control traffic routing, not data durability, so look for a shared external store like DynamoDB or ElastiCache.

  125. Question 125 of 308Riverstone Coastal, a book and media publisher, is building a new REST API on Amazon API Gateway backed by AWS Lambda functions to power its digital catalog platform. The engineering team needs to run multiple concurrent versions of this API at the same time, so the QA staff can test new catalog search features on one version while retail partners continue calling a stable production version without disruption. What is the BEST way to provide multiple versions of the REST API?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Deploy the API versions as unique stages with unique endpoints and use stage variables to provide further context

    Each API Gateway stage is a named reference to a deployment with its own unique endpoint, and stage variables can point each stage at a different Lambda alias to run versions side by side. Exam cue: the words "stages" and "stage variables" signal the standard API Gateway mechanism for managing API versions.

  126. Question 126 of 308Riverstone Innovations needs to prevent customers from viewing each other's meter-reading and billing records inside a shared self-service portal. The company, a regional water utility that serves several municipalities, stores all customer account data in a single Amazon DynamoDB table to keep operations simple. How can the Developer restrict access so that each customer can view only their own data?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Restrict access to specific items based on certain primary key values

    DynamoDB fine-grained access control with the dynamodb:LeadingKeys condition key maps row access to the caller's identity, so each customer reaches only their own items in a shared table. Identity-based table-level policies cannot restrict individual items, and client-side filtering leaks data before filtering.

  127. Question 127 of 308A recent internal security audit at a regional airline found that database credentials for a production application had gone unrotated for several months, in direct violation of company policy. The application, built by Nightingale Trust and headquartered in Denver, runs on AWS Lambda and connects to a PostgreSQL database hosted on Amazon RDS. In response to the audit, the security team now mandates that database credentials be rotated every week. What strategy should the developer adopt to manage the database credentials for the application?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Deploy AWS Secrets Manager to store database credentials and set up automatic weekly rotation.

    AWS Secrets Manager natively supports scheduled automatic rotation, including a built-in Lambda rotation function for Amazon RDS, satisfying weekly rotation with no manual work. Environment variables and S3 require manual updates, and IAM database authentication does not rotate passwords.

  128. Question 128 of 308Calling an HTTP API endpoint that a partner operates requires embedding an existing API key into a backend service without adding any noticeable latency to that service. Lumen Cooperative, an e-learning platform headquartered in Austin, Texas, needs to share learner analytics data with this partner endpoint and already holds the required API key. What is the most secure approach for storing and retrieving the API key at runtime?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Keep the API key in AWS Secrets Manager, and fetch the API key at runtime by using the AWS SDK to make the API call

    AWS Secrets Manager is purpose-built for storing and retrieving secrets like third-party API keys at runtime via the SDK, and its client-side caching library keeps latency negligible. Hardcoding in a local variable exposes the key, while RDS and S3 add unnecessary management overhead for a single secret.

  129. Question 129 of 308Bluecrest Foundation needs to optimize a CPU-bound AWS Lambda function that computes diagnostic imaging results, so it can guarantee fast response times for time-critical patient reports. As a healthcare diagnostics provider processing urgent test results, Bluecrest Foundation requires the function to finish its calculations quickly. What action should the developer take to improve the function's performance?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Increase the function's memory

    In Lambda, memory allocation proportionally controls CPU and network resources, so increasing memory is the direct way to speed up a CPU-bound function. Provisioned concurrency only removes cold starts, and a higher timeout just allows longer runs without making execution faster.

  130. Question 130 of 308Storing files that are accessed infrequently but must remain concurrently accessible by hundreds of Amazon EC2 instances requires a storage service that balances low cost with immediate data availability. Anchor Logistics, a maritime shipping company that tracks vessel manifests and cargo documentation across its fleet, needs the most cost-effective file storage service that still provides immediate access to the data whenever it is needed. Which of the following options represents the best solution for these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Amazon Elastic File System (EFS) Standard-IA storage class

    EFS Standard-IA cuts storage costs for infrequently accessed files while keeping millisecond access and concurrent mounting across many EC2 instances. S3 Standard-IA is not a shared file system, and EBS volumes can only attach to one instance at a time, ruling both out.

  131. Question 131 of 308A routine internal security audit revealed that traffic between the application tier and the database tier was traveling across the public internet, prompting immediate concern from the compliance team. The audit was performed at Northbridge Continental, a video conferencing SaaS company with over 5 million monthly active users, whose CRM application runs on Amazon EC2 instances backed by an Amazon DynamoDB database tier. As a developer associate on the team, which of the following would you suggest as an optimal solution for providing communication between the EC2 instances and DynamoDB without using the public internet?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure a VPC endpoint for DynamoDB that will provide the required internal access without using the public internet

    A VPC gateway endpoint for DynamoDB routes traffic over the AWS private network with no code changes and no internet path. Internet gateways and NAT gateways still traverse public address space, and a corporate VPN adds cost and complexity without a direct private route.

  132. Question 132 of 308Ulverstone Holdings needs to process a large batch of disaster-assessment files as quickly as possible using AWS Lambda. This nonprofit disaster-relief organization coordinates emergency response across multiple regions, and its Lambda function takes approximately 3 minutes to process each file and does not return any important data to the caller. A developer at Ulverstone Holdings has written a script that will invoke the function using the AWS CLI. What is the FASTEST way to process all the files?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Invoke the Lambda function asynchronously with the invocation type Event and process the files in parallel

    Event invocation is asynchronous, so the CLI returns immediately and all files can be invoked in parallel, letting Lambda process them concurrently. RequestResponse blocks the caller until each three-minute run finishes, and the mismatched pairings pair the wrong type with the wrong mode.

  133. Question 133 of 308The database engineering team at Norwood Robotics, a biotechnology research lab that tracks sample metadata in Amazon DynamoDB, needs to return a list of items from a global secondary index on the Norwood-SampleRecords table. Which DynamoDB API call can the team use in order to consume the LEAST number of read capacity units?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Query operation using eventually consistent reads

    A Query reads only items matching the index key, and eventually consistent reads consume half the RCUs of strongly consistent reads, so that combination uses the least capacity. A Scan reads every item, making it the most expensive option regardless of consistency.

  134. Question 134 of 308The DevOps engineering team supporting Wrenfield Associates, an industrial manufacturing company, is building a microservices application that runs on Amazon ECS to manage production-line telemetry data. The team's release process requires a manual sign-off from a senior engineer before any new code reaches the production environment. What is the BEST way to enforce this manual approval step using AWS CodePipeline?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use an approval action in a stage before deployment

    A manual approval action placed in a stage before the deployment stage stops the pipeline until an authorized IAM user approves or rejects it. Disabling stage transitions is a legacy console technique and does not provide a true sign-off workflow like approval actions do.

  135. Question 135 of 308During a post-incident review of a brief customer-facing outage, the on-call engineering team at Kingsford Innovations, a telecommunications provider headquartered in Toronto, discovered that an Amazon EC2 instance flagged as unhealthy by the Elastic Load Balancer was never replaced by the Auto Scaling group backing the company's AWS Elastic Beanstalk environment, kingsford-network-portal-env. The environment runs a small number of EC2 instances behind the load balancer and Auto Scaling group. As a developer investigating the root cause, which configuration should be implemented so that unhealthy instances are automatically replaced going forward?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The health check type of the instance's Auto Scaling group must be changed from EC2 to ELB by using a configuration file

    The Auto Scaling group defaults to the EC2 health check type, which only sees system status, so ELB-detected application failures are ignored until the type is switched to ELB. Exam cue: load balancer says unhealthy but the instance is never replaced means the health check type is still EC2.

  136. Question 136 of 308Automating the creation of Amazon ECS clusters with an Auto Scaling group requires a CloudFormation template that accepts the cluster name as a parameter. At Orchardvale Analytics, a cruise line operator that manages fleet-wide guest-services microservices on AWS, a development team builds such a template and first launches it with the input value 'OrchardvaleMainCluster', which deploys five EC2 instances across two Availability Zones. The team then launches the same template a second time with the input value 'OrchardvaleSecondCluster'. However, the instances created during the second launch also register into 'OrchardvaleMainCluster' even though a different cluster name was specified. What is the root cause of this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The cluster name parameter has not been updated in the /etc/ecs/ecs.config file during bootstrap

    The ECS container agent reads ECS_CLUSTER from /etc/ecs/ecs.config during bootstrap, so a user data script that doesn't insert the new parameter causes instances to join the old cluster. IAM, security groups, and the agent image do not control cluster registration.

  137. Question 137 of 308A sudden spike in onboard security-camera footage and passenger-flow sensor readings has overwhelmed the existing hourly batch reporting job, delaying incident alerts by several hours. Ashgrove Logistics, a cruise line operator with a fleet operations center in Miami, must ingest several terabytes of data every hour from thousands of distributed shipboard and port sources. Messages arrive continuously, 24 hours a day, and must be delivered in real time to support security analysis and live operational dashboards. Which approach will meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Amazon Kinesis Data Streams with the Kinesis Client Library to ingest and deliver messages

    Kinesis Data Streams handles continuous, high-throughput real-time ingestion from many producers, with the KCL consuming records as they arrive for live dashboards. SQS with EC2 lacks ordered, scalable stream replay, and Data Pipeline and S3 are batch-oriented.

  138. Question 138 of 308A recent spike in course enrollment traffic caused response times for read-heavy content queries to degrade noticeably. After investigating the root cause, the database team at Dunmore Alliance, an e-learning platform, decided to migrate its on-premises MySQL database to Amazon RDS. The database workload is very read-heavy, and the team wants to refactor the application code to achieve optimum read performance for queries. How can this objective be met?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Add a connection string to use an Amazon RDS read replica for read queries

    An RDS read replica lets the code use a separate connection string to route read queries to a read-only copy, scaling read throughput horizontally. Multi-AZ improves availability, not read performance, and EC2-based replicas add unneeded operational work.

  139. Question 139 of 308Configuring member access to user-specific folders inside a single Amazon S3 bucket, so that each user can reach only their own folder path, requires an IAM construct that works for every user without a separate policy per person. Brackenridge Robotics, a water utility company, needs this setup for its bucket named brackenridge-robotics-field-data: user-x must access only files in brackenridge-robotics-field-data/user/user-x/, user-y must access only files in brackenridge-robotics-field-data/user/user-y/, and this pattern must hold for every other team member. As a Developer Associate, which IAM construct would you recommend so that a single, generic IAM policy statement can apply to all team members, without requiring a separate IAM policy for each individual user?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. IAM policy variables

    IAM policy variables like ${aws:username} let one policy dynamically scope each user to their own folder path, such as user/${aws:username}/. A Condition element is for contextual attributes like IP or MFA, not for building per-user resource paths.

  140. Question 140 of 308The database engineering team at Lumen Alliance, a water utility company that monitors smart water meters across a metropolitan service area, is designing a DynamoDB table to store real-time meter readings. The application must support reading 200 items per second using eventually consistent reads, and each item is 12 KB in size. What value should be set for the table's provisioned throughput for reads?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. 300 Read Capacity Units

    A 12 KB item rounds up to three 4 KB blocks, needing 3 RCUs for strongly consistent reads, and eventually consistent reads cost half, so 1.5 RCUs per read times 200 reads per second equals 300 RCUs. Exam cue: for eventual consistency, divide item size by 8 KB before multiplying by reads per second.

  141. Question 141 of 308A newly published research report on citywide traffic sensor performance contains sensitive findings that must be shared with a distributed team of urban planning consultants working from multiple countries. Cobalt National, a smart city government agency, hosts its public data portal on Amazon EC2 instances behind Amazon CloudFront and needs to grant access to this single document without weakening the security posture of the distribution. Which of the following represents the most optimal solution to address this requirement without compromising the security of the content?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the CloudFront signed URL feature to control access to the file

    A CloudFront signed URL attaches expiration and access conditions to one specific file, giving precise per-object control for sharing a single restricted document. Exam cue: signed cookies suit multiple files behind one distribution, while signed URLs are the go-to for one restricted file.

  142. Question 142 of 308The platform engineering team at Fairmount Partners, an e-learning platform, is building a RESTful API service using Amazon API Gateway with AWS Lambda integration. The team must support different API versions for testing purposes before rolling out new course-content features to students. Which of the following approaches is the best way to accomplish this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Deploy the API versions as unique stages with unique endpoints and use stage variables to provide the context to identify the API versions

    Deploying each API version as a separate stage with its own endpoint, plus stage variables pointing to the matching Lambda alias, is the built-in API Gateway versioning pattern. A custom header requires duplicated routing logic, and Lambda authorizers are for authentication, not version routing.

  143. Question 143 of 308A serverless solution is needed to support phased releases of static websites currently hosted across several different version control systems, with each deployment automatically triggered by a Git branch merge and all traffic served over HTTPS. Granite Authority, a fast-growing music streaming platform based in Austin, Texas, needs this capability to roll out updates to its promotional landing pages quickly and without managing infrastructure. Which option offers the LOWEST operational overhead?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use AWS Amplify for hosting, connect corresponding repository branches, and initiate deployments by merging changes to the needed branch.

    AWS Amplify provides fully managed static hosting with Git-based deployments, per-branch environments, and HTTPS by default, matching every requirement with the least overhead. Elastic Beanstalk and EC2 still require server management, and the S3 option relies on manual scripts.

  144. Question 144 of 308Everstone Partners needs to ensure that all future log entries written to an existing Amazon CloudWatch Logs log group are encrypted with an AWS KMS customer master key (CMK), in order to meet updated data-protection requirements for its media streaming platform. This particular log group has been actively collecting video playback and content-delivery diagnostics for the past six months, and the company cannot recreate the log group without losing continuity of its monitoring dashboards. How can the company achieve this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use the AWS CLI associate-kms-key command and specify the KMS key ARN

    The associate-kms-key CLI command attaches a KMS key to an existing log group without recreation, encrypting all newly ingested data. create-log-group only applies at creation time, and describe-log-groups is read-only, so neither works for a group already in use.

  145. Question 145 of 308Oakhaven Labs, a pharmaceutical research organization based in Cambridge, Massachusetts, runs a hybrid drug-discovery application that combines Amazon EC2 instances with on-premises servers located in its wet-lab facility. The on-premises servers host mission-critical compound-screening software, and a developer at Oakhaven Labs needs to collect both performance metrics and application logs from those servers using Amazon CloudWatch. Which approach lets the developer accomplish this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Install the CloudWatch agent on the on-premises servers and specify IAM credentials with permissions to CloudWatch

    The CloudWatch agent installed on-premises sends both metrics and logs to CloudWatch, and because instance metadata doesn't exist outside AWS, it authenticates with long-term IAM user credentials, not an IAM role. Exam cue: on-premises plus CloudWatch agent always means IAM credentials.

  146. Question 146 of 308Kingsford Enterprises operates a supply chain visibility platform used by regional logistics managers across multiple continents. Each week, these managers upload large volumes of shipment and inventory reporting data to a centralized Amazon S3 bucket named kingsford-reports in the us-east-1 Region. Uploads from remote offices around the world have recently become slow. The company needs to improve data throughput and upload times with the least operational effort. Which solution meets this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Enable S3 Transfer Acceleration on the S3 bucket

    S3 Transfer Acceleration routes uploads through CloudFront edge locations and the AWS backbone, speeding up transfers from distant offices with almost no operational effort. Multipart upload helps large objects but doesn't address geographic latency, and Direct Connect requires heavy setup.

  147. Question 147 of 308Overlook Collective needs to filter AWS X-Ray trace results using filter expressions on specific key-value pairs attached to custom subsegments, so its engineering team can quickly diagnose slow requests in its digital archive platform. As a museum and cultural heritage foundation headquartered in Boston that generates a high volume of X-Ray trace data from interactive exhibit kiosks and online collection searches, the foundation's developer must determine how to add these key-value pairs to the custom subsegments so they can later be filtered. How should the developer add the key-value pairs to the custom subsegments?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Add annotations to the custom subsegments

    Annotations are indexed key-value pairs that X-Ray can use in filter expressions and the GetTraceSummaries API, which is exactly what filtering requires. Metadata is the strongest distractor, but it is not indexed, so it can't be searched with filter expressions.

  148. Question 148 of 308Ironwood Institute, a food and beverage producer, operates a real-time analytics pipeline that ingests sensor data from packaging lines through an Amazon Kinesis data stream. A developer at Ironwood Institute has built an AWS Lambda function named IronwoodStreamProcessor to process these records, and load testing shows the function will be invoked 40 times per second, with each invocation taking approximately 80 seconds to complete. What must the developer do to guarantee the function processes this Kinesis stream without throttling errors?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Contact AWS and request an increase to the account's concurrent execution limit

    Forty invocations per second at eighty seconds each requires 3,200 concurrent executions, well above the default 1,000 limit, so only an AWS Support limit increase can prevent throttling. Reserved concurrency just partitions existing account capacity; it cannot raise the ceiling.

  149. Question 149 of 308Everstone Dynamics needs to prevent occasional ThrottlingException errors from disrupting its disaster-relief coordination platform, a nonprofit organization that scales the platform to thousands of concurrent instances during large-scale relief efforts, causing frequent calls to an Amazon DynamoDB table that stores incident records. The platform is coded in a programming language for which no AWS SDK is available. What can be done to prevent the errors from occurring?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Add exponential backoff to the application logic

    Exponential backoff spaces retries with progressively longer waits, easing pressure on the throttled table, and since no AWS SDK exists for the language, the retry logic must be written manually in the application. Cue: ThrottlingException plus no SDK means hand-rolled backoff.

  150. Question 150 of 308Foxglove Group needs to build an AWS Lambda function that consumes real-time parcel-scan events from an Amazon Kinesis data stream and updates package status without producing duplicate delivery records, since Foxglove Group operates as a national courier and parcel service tracking millions of packages across its distribution network. A developer configures the function to parse each scan event, but whenever an event is missing an expected field, the function throws an unhandled exception and exits. Operations staff later notice that the same scan records appear more than once in the downstream tracking system that consumes the Lambda function's output. When the developer inspects the raw Kinesis stream directly, without the Lambda function attached, no duplicate records exist in the stream itself. What is the reason for the duplicate records?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The Lambda function did not handle the error, and the Lambda service attempted to reprocess the data

    With a Kinesis event source mapping, Lambda only advances in the stream after a batch succeeds, so the unhandled error caused the same batch to be retried and reprocessed downstream. The pointer option is a distractor because developers don't manage that position themselves.

  151. Question 151 of 308Ridgewood Analytics currently uses Amazon SQS to decouple the backend of its guest-facing application, which generates personalized park-visit memes for theme park visitors. The consumers of the RidgewoodMemeQueue currently use short polling and query the queue continuously to keep throughput high. This approach is proving to be costly and resource intensive because of a large number of empty responses. A developer at Ridgewood Analytics has been asked to review the system and propose changes that can reduce costs and the number of empty responses. What would be the BEST approach to minimizing cost?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Set the RidgewoodMemeQueue's ReceiveMessageWaitTimeSeconds attribute to 20 seconds

    Setting ReceiveMessageWaitTimeSeconds to 20 enables long polling, so ReceiveMessage waits for messages instead of returning empty responses, cutting billed API calls and cost. VisibilityTimeout controls redelivery of in-flight messages and has nothing to do with empty responses.

  152. Question 152 of 308Copperfield Robotics runs a serverless web application for its property and casualty insurance platform, using AWS Lambda functions integrated with a REST API deployed through Amazon API Gateway. The development team maintains multiple code branches, and the company now wants to avoid updating the API Gateway target endpoint every time a new code push is performed. What solution would allow the developer to update the Lambda code without needing to update the REST API configuration?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create aliases and versions in AWS Lambda.

    A Lambda alias is a stable pointer to a function version, so pointing the API Gateway integration at the alias ARN lets code updates happen without changing the API configuration. API Gateway stages and deployments control the API itself, not the Lambda target, so they do not solve this.

  153. Question 153 of 308Kingsford Robotics, a state government agency that issues permits for autonomous robotics operations, needs to fix a bug that blocks brand-new users from accessing its public API immediately after they self-register. The agency maintains a REST API service using Amazon API Gateway with native API key validation. A new self-service registration portal creates an API key for each signup by calling CreateApiKey and emails the key to the user. When a newly registered user calls the API with this key, the request fails with a 403 Forbidden error, while existing users continue to call the API without any issue. What code update will grant these new users access to the API?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The createUsagePlanKey method must be called to associate the newly created API key with the correct usage plan

    A newly created API key must be linked to a usage plan via createUsagePlanKey before API Gateway will accept it, which explains the 403 for new users only. Redeployment isn't needed because API keys are validated per request, not baked into a deployment.

  154. Question 154 of 308Beacon Corporation runs its video conferencing platform as a set of microservices deployed in Docker containers on Amazon Elastic Container Service (Amazon ECS). A developer on the platform team is investigating call-quality complaints and needs to capture trace information showing how requests flow between the microservices to pinpoint where latency is introduced. Which solution will meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Docker image that runs the AWS X-Ray daemon, upload it to a Docker image repository, and deploy it to Beacon Corporation's Amazon ECS cluster.

    For ECS, the recommended pattern is packaging the X-Ray daemon as its own container image deployed alongside the instrumented microservices so segments are sent over the local network. The EC2-instance option fails because ECS containers can't reliably reach a daemon on a separate host.

  155. Question 155 of 308Kingsford Consolidated, a petrochemical company, deploys an application automatically using AWS Elastic Beanstalk. The YAML configuration files are stored in the .ebextensions folder, and new files are frequently added or updated. The DevOps team does not want to redeploy the application every time a configuration change occurs. Instead, they want to manage configuration externally and securely, and load it dynamically into the application at runtime. Which option allows this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use SSM Parameter Store

    AWS Systems Manager Parameter Store provides secure, hierarchical storage for configuration data that the application can query dynamically at runtime through the SDK or CLI, without redeploying. Exam cue: "externally managed, secure, dynamically loaded configuration without redeployment" points directly to Parameter Store, not environment variables or S3.

  156. Question 156 of 308Millbrook Dynamics, a logistics and freight company, runs its freight-tracking application on an AWS Elastic Beanstalk environment configured with a Rolling deployment policy, which updates instances in batches to minimize downtime during releases. During a recent deployment, only two batches completed the update successfully, while the remaining batches failed to deploy the updated application version. The development team manually terminates the instances that were part of the failed deployment batches. What will happen to these terminated instances after Elastic Beanstalk replaces them?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Elastic Beanstalk will replace the failed instances with instances running the application version from the most recent successful deployment

    The Auto Scaling group behind the Elastic Beanstalk environment automatically replaces terminated instances using the most recently successfully deployed application version. Exam cue: replacement always references the latest successful deployment, not the oldest version and not the pre-deployment version.

  157. Question 157 of 308Juniper Council, a video conferencing SaaS company, needs to determine why a newly deployed AWS Lambda function is not producing any log entries in Amazon CloudWatch Logs, even though the function completes successfully every time it runs. A developer manually invoked the function several times through the AWS CLI, and each invocation returned a success message, but after waiting 15 minutes, still no log data appears in CloudWatch Logs. What is the most likely explanation for this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The function execution role does not have permission to write log data to CloudWatch Logs.

    The Lambda execution role must grant logs:CreateLogGroup, logs:CreateLogStream, and logs:PutLogEvents permissions; without them, the function still succeeds but silently writes no logs. Exam cue: successful invocations with zero log output after several minutes is the classic sign of a missing execution role IAM policy.

  158. Question 158 of 308Lumen Regional, an agricultural technology company, manages its field-sensor infrastructure using AWS CloudFormation. The team has built a template that provisions a stack containing a VPC and a subnet used by soil-monitoring devices across the company's farm network. The subnet's output value must now be made available to a separate CloudFormation stack that deploys the data-ingestion pipeline. As a Developer Associate at Lumen Regional, which of the following options would you suggest to provide this information to the other stack?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the 'Export' field in the Outputs section of the stack's template

    The producing stack declares the value in its Outputs section using the Export field, making it available to other stacks in the same account and Region. Fn::ImportValue is the read side, used in the consuming stack, so it can't publish the value itself.

  159. Question 159 of 308After an internal audit found that application log data for a containerized workload was scattered across ephemeral compute resources with no centralized retention, creating a compliance gap, a solution is needed. The workload belongs to Larkspur Alliance, a supply chain visibility startup that runs its application on Amazon Elastic Container Service (Amazon ECS) using the AWS Fargate launch type. To satisfy the audit finding, all application log data must be logged and stored centrally on AWS. How should this requirement be configured?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the awslogs log driver to configure the containers in your tasks to send log information to CloudWatch Logs. Add the required logConfiguration parameters to your task definition

    The awslogs log driver with logConfiguration in the task definition streams container logs to CloudWatch Logs, the standard pattern for Fargate. Option A is a duplicated question stem rather than an answer, so only one real choice exists here.

  160. Question 160 of 308A recent internal cost audit revealed that Amazon SQS API call volume was driving unexpected charges for a queue used to coordinate automated tasks. Crestline Associates, a cybersecurity consulting firm, wants to reduce the cost of these API actions by implementing long polling instead of the default short polling behavior. Which modification should the developer make to the API actions to achieve this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Set the ReceiveMessage API with a WaitTimeSeconds of 20

    Long polling is enabled by setting WaitTimeSeconds greater than zero on ReceiveMessage, up to the 20-second maximum, so SQS waits for messages and returns fewer empty responses. VisibilityTimeout, DelaySeconds, and MessageRetentionPeriod control other behaviors and do not affect polling cost.

  161. Question 161 of 308Eastwick Union, an agricultural cooperative, is building a serverless application with an API that mobile clients used by field agents will access. The cooperative's headquarters team needs the API to use both an AWS Lambda function and an Amazon DynamoDB table as data sources. Responses sent to the mobile clients must contain data aggregated from both of these data sources. The developer must minimize the number of API endpoints and must minimize the number of API calls required to retrieve the necessary data. Which solution should the developer use to meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. GraphQL API on AWS AppSync

    AWS AppSync GraphQL APIs can resolve fields from multiple data sources like Lambda and DynamoDB in a single query, minimizing endpoints and calls. REST on API Gateway would require multiple endpoints or a proxy that aggregates data.

  162. Question 162 of 308A recent billing audit revealed a sharp, unexplained increase in Amazon SQS API call costs tied to a queue that feeds a course-content processing pipeline. Investigating further, engineers at Kingsford Works, an education technology company, found that the consumers connect in short cycles and the queue frequently returns no messages even when messages are actually available. How can the Developer optimize the retrieval of messages and reduce this cost?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Call the ReceiveMessage API with the WaitTimeSeconds parameter set to 20

    Setting WaitTimeSeconds to 20 enables long polling, so SQS waits for messages instead of returning empty responses, cutting API calls and cost. VisibilityTimeout controls redelivery, not polling cost.

  163. Question 163 of 308The engineering team manages CloudFormation stacks that provision compute, storage, and networking resources for Silverlake Authority's student assessment platform. Before rolling out an update to one of these stacks, a developer needs to view a summary of the proposed changes without implementing them in the production environment. How can the developer accomplish this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a Change Set

    A Change Set previews how proposed template or parameter changes will affect a running stack without applying anything until executed. Drift detection only compares actual resources to the template; it does not preview pending updates.

  164. Question 164 of 308Cascade Alliance currently operates a REST API built on Amazon API Gateway in the us-west-2 Region to support internal pharmaceutical research data pipelines. To meet a new requirement from an external lab partner, the team must expose this API under a custom domain name through Amazon CloudFront, secured with an SSL/TLS certificate purchased from a third-party certificate authority. What is the appropriate strategy for configuring the custom domain name?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Import the third-party SSL/TLS certificate to AWS Certificate Manager (ACM), link it with the custom domain name in API Gateway, and then create an alias (A) record in Route 53 for the custom domain name.

    API Gateway custom domain names only accept certificates managed through ACM, so a third-party certificate must be imported into ACM and linked to the custom domain name. Then an alias A record in Route 53 points the domain to the API, since alias records natively target AWS service endpoints.

  165. Question 165 of 308The platform engineering team at Nightingale Analytics, an automotive manufacturer that ingests telemetry data from vehicle sensors, is reviewing code for an AWS Lambda function written in Python. The function uploads log files to an Amazon Simple Storage Service (S3) bucket. After the review, the team lead recommends that the developer take advantage of execution context reuse to improve the performance of the Lambda function. Which action should the developer take to implement this recommendation?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Move the Amazon S3 client initialization out of the function handler

    Initializing SDK clients like the Amazon S3 client outside the function handler lets the warm execution environment reuse them across invocations, cutting latency and cost. Adding memory or X-Ray may help other bottlenecks but does not implement execution context reuse.

  166. Question 166 of 308A recent performance audit flagged noticeable lag in several compute-heavy AWS Lambda functions that power an automated recipe-formulation pipeline. The development team at Elmsworth Continental reviewed the Lambda performance metrics and confirmed that the workflows are CPU-bound rather than affected by cold starts. As a Developer Associate, which of the following options would you suggest as the BEST solution to address the compute-heavy workloads?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Increase the amount of memory available to the Lambda functions

    In Lambda, the memory setting also controls the proportional CPU and network allocation, so raising memory directly speeds up CPU-bound functions. Reserved or provisioned concurrency addresses cold starts and throughput, not the compute power of each invocation.

  167. Question 167 of 308The platform engineering team at Greystone Enterprises, a social media analytics company, just promoted one of its developers to Team Lead. The new Team Lead is now responsible for code deployment on Amazon EC2 instances using AWS CodeCommit and AWS CodeDeploy for the company's real-time analytics dashboard service. Per the new requirements, the deployment process must be able to change permissions for deployed files as well as verify the success of the deployment. Which of the following actions should the new Team Lead take?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Define an appspec.yml file in the root directory

    The appspec.yml file belongs in the root directory and is required by AWS CodeDeploy to map files, set permissions, and define lifecycle event hooks. buildspec.yml is a CodeBuild concept and cannot set deployed file permissions or validate deployments.

  168. Question 168 of 308Overlook Cooperative, an online gaming company, runs several AWS Lambda functions that support its real-time leaderboard and matchmaking analytics. Each function is invoked by a different AWS service, such as Amazon Kinesis Data Firehose, Amazon API Gateway, Amazon Simple Storage Service, or Amazon EventBridge. These functions share a common characteristic: they process heavy workloads such as big data analysis, large file processing, and statistical computations. What should a developer do to improve the performance of these AWS Lambda functions without changing the application code?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Increase the RAM assigned to the Lambda function

    Raising the memory allocation in Lambda proportionally increases CPU and network resources, improving compute-heavy performance with no code changes. Changing the runtime or timeout either requires code changes or only lets slow functions finish without running faster.

  169. Question 169 of 308Dockerized applications must be stored in an AWS-native container registry, support dynamic port mapping, and allow multiple tasks from a single service to run on the same container instance, with all services sharing one EC2 instance. Vantage Solutions, an agricultural cooperative headquartered in Des Moines, Iowa, is modernizing its supply-chain tracking platform with cloud-native microservices to meet these requirements. Which of the following options offers the best-fit solution for the given use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Application Load Balancer + Amazon ECS

    Amazon ECS with an Application Load Balancer supports dynamic port mapping, letting multiple tasks from one service share a container instance behind different ephemeral ports. Classic Load Balancer cannot do dynamic port mapping, and Elastic Beanstalk does not fit the multi-task requirement as cleanly.

  170. Question 170 of 308Millbrook Institute needs to trace and analyze user requests as they pass through Amazon API Gateway to backend services, after a serverless application began experiencing intermittent failures. The telecommunications provider runs a customer self-service portal built on API Gateway, an AWS Lambda function, and a Lambda authorizer function, and a developer must identify exactly where in that request path the failures originate. Which AWS service is MOST suitable for this purpose?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. AWS X-Ray

    AWS X-Ray traces requests end to end through API Gateway, Lambda functions, and Lambda authorizers, showing latency and errors at each hop. CloudWatch only gives logs and metrics per service, not a distributed request trace, so it cannot pinpoint where failures originate.

  171. Question 171 of 308A continuous integration and continuous delivery pipeline requires automated deployment of software packages to both cloud-based compute resources and on-premises infrastructure. Driftwood Dynamics, a construction and engineering firm, runs a mix of Amazon EC2 instances and on-premises virtual servers at its regional offices to host a project scheduling application, and the development team needs one AWS service to handle the deployment step for both environments. Which AWS service should the developer use to accomplish this task?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. AWS CodeDeploy

    AWS CodeDeploy automates deployments to Amazon EC2, Lambda, Fargate, and on-premises servers, making it the only option covering both environments. CodePipeline orchestrates the pipeline, and CodeBuild compiles and tests code, but neither deploys directly to on-premises servers.

  172. Question 172 of 308Mapleridge Systems currently runs a customer portal on Amazon API Gateway REST APIs that handles account management requests from field technicians who monitor its satellite ground stations. The company now needs to send real-time alerts and notifications to these technicians based on updates from backend services, without implementing complex polling mechanisms. Which type of API supported by Amazon API Gateway is the right fit for this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. WebSocket APIs

    WebSocket APIs keep a persistent bidirectional connection so the backend can push real-time alerts to clients without polling. REST and HTTP APIs are request-response only, so they would require polling, which the scenario explicitly rules out.

  173. Question 173 of 308Dovetail Systems, a regional banking institution, operates an order management system that processes daily wire transfer requests using a cron job to poll for new orders. Every time a new order is created, the cron job sends the order data as a message to message queues to facilitate downstream order processing in a reliable manner. To reduce costs and improve performance, Dovetail Systems wants to migrate this functionality to AWS. Which of the following is the most optimal solution to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Amazon Simple Notification Service (SNS) to push notifications when an order is created. Configure different Amazon Simple Queue Service (SQS) queues to receive these messages for downstream processing

    The SNS-to-SQS fanout pattern pushes a notification on order creation, replacing the cron poller, while each SQS queue durably holds messages for independent downstream consumers. Lambda-only processing lacks the durable queuing reliability the scenario emphasizes.

  174. Question 174 of 308Birchwood Global, a social media analytics company, runs a real-time engagement dashboard that pushes custom metrics from hundreds of microservices to Amazon CloudWatch. A platform engineer notices that a subset of PutMetricData calls intermittently fail with HTTP 400: ThrottlingException, and no data point is recorded when this happens. What best practice should the engineer first attempt to resolve this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Retry the call with exponential backoff

    Retrying with exponential backoff and jitter is the standard first response to CloudWatch ThrottlingException, spreading attempts over time to avoid the rate limit. AWS SDKs often do this automatically; limit increases are a later step, not the first.

  175. Question 175 of 308Deleting a set of interdependent AWS CloudFormation stacks requires removing every stack that imports shared values before removing the stack that exports those values. A developer at Orchardvale Industries, a petrochemical company that runs its refinery monitoring portal on AWS, is building a CloudFormation deployment composed of three separate stacks: Stack-A, Stack-B, and Stack-C. Stack-A provisions a VPC, a security group, and subnets for public-facing web applications, and it exports these resource values so that they can be referenced (imported) by both Stack-B and Stack-C. After successfully launching all three stacks, the developer needs to delete them. In what order should the stacks be deleted?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Stack B, then Stack C, then Stack A

    CloudFormation blocks deletion of a stack while its exported outputs still have importers, so Stack B and Stack C must go before Stack A. Practical cue: always delete importing stacks first, then the exporting stack last.

  176. Question 176 of 308The database engineering team at Driftwood Holdings, a maritime shipping company that tracks vessel parts inventory across its global fleet, manages an Amazon RDS instance that a fleet operations application continuously reads from and writes to. Company leadership wants a separate reporting application, deployed in a different AWS Region, to query this inventory data without adding load to the operational database. Which configuration would provide the BEST performance for the reporting application without impacting the performance of the main database?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Implement a cross-region read replica in the region where the reporting application will run

    A cross-Region read replica gives the reporting app a local read-only copy with low latency and no load on the primary. A snapshot restore is one-time and goes stale, and Multi-AZ targets failover, not cross-Region read scaling.

  177. Question 177 of 308Overlook Labs runs a fleet of Amazon ECS tasks for a Dockerized data-processing service that ingests real-time readings from laboratory instruments. To keep pace with sudden spikes in researcher activity, the platform team now needs the service to scale out based on user load within 15 seconds. How should the developer instrument the application code so that this requirement can be met?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds

    High-resolution custom metrics support one-second granularity, and publishing every 5 seconds fits inside the 15-second window. Standard resolution only aggregates at one-minute intervals, so no publishing frequency with it can trigger scaling in 15 seconds.

  178. Question 178 of 308Wintergreen Bureau operates a mobile network app that lets subscribers view usage details after signing in with corporate credentials through SAML federation. The telecommunications provider now needs to launch a separate customer-facing feature that delivers notifications and special offers to app users who are not required to log in. What is the MOST efficient method to grant these users access to AWS resources?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Amazon Cognito to associate unauthenticated users with an IAM role that has limited access to resources

    Amazon Cognito identity pools support unauthenticated guest identities mapped to a limited IAM role with temporary credentials. Option A describes authenticated users via user pools, which does not fit users who never log in.

  179. Question 179 of 308All data transmitted to a storage service must remain encrypted in transit to satisfy strict compliance requirements for handling operational telemetry collected from remote installations. Meridian Systems, a renewable energy company headquartered in Denver, is auditing its Amazon S3 usage and needs to determine which encryption mechanism causes Amazon S3 to reject a request if the connection is not established over HTTPS.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. SSE-C

    SSE-C requires a plain-text customer-supplied key with every request, so S3 rejects it over HTTP to protect the key. SSE-KMS and SSE-S3 work over either protocol since no key travels with the request.

  180. Question 180 of 308Vertex National, a cruise line operator that manages passenger data across its fleet's booking systems, needs to store sensitive customer records in Amazon S3 with encryption at rest enforced. The security team requires that the encryption keys be rotated no less than once per year. What is the easiest way to implement a solution for this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use AWS KMS with automatic key rotation

    SSE-KMS with automatic key rotation lets AWS rotate the key material yearly with a single setting and no code. SSE-C and imported key material require you to rotate keys yourself, so they are not the easiest path.

  181. Question 181 of 308A cross-region deployment recently failed with a naming conflict error during a routine template rollout for a multi-region data pipeline. Brightwater Innovations, a pharmaceutical research organization, investigated the failure. One developer, working in the us-east-1 Region, had created a stack named 'Application1' and defined an exported output value named 'ELBDNSName'. Another developer had created a stack for a different application, 'Application2', in the us-east-2 Region, and had also exported an output value named 'ELBDNSName'. The first developer then attempted to deploy the 'Application1' CloudFormation stack in the us-east-2 Region, but the deployment failed with an error. What is the cause of this error?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Exported output values in CloudFormation must have unique names within a single Region

    CloudFormation export names must be unique per account and per Region, so the second stack exporting ELBDNSName in us-east-2 fails. The same export name in different Regions would be fine, which rules out the cross-Region options.

  182. Question 182 of 308To capture more detailed diagnostic information from AWS X-Ray than the simple incoming and outgoing request data captured by default, Ashford Innovations, a nonprofit disaster-relief organization headquartered in Denver, must instrument its application code. This additional instrumentation will generate large volumes of trace data during active relief operations, so the development team needs to implement indexing to filter that data efficiently when analyzing traces. What should the development team do to achieve this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Add annotations to the segment document

    X-Ray indexes annotations, simple key-value pairs, so they work in filter expressions and GetTraceSummaries. Metadata supports richer data types but is not indexed, so it cannot be used for filtering traces.

  183. Question 183 of 308Analyzing incoming request latencies and identifying client IP address patterns across an Application Load Balancer that spans multiple Availability Zones requires visibility into individual requests, not just aggregated statistics. Pinegrove Innovations, a national courier and parcel service headquartered in Denver, has deployed such a load balancer across its regional dispatch centers and needs a way to capture this per-request detail. Which feature of the Load Balancer will help collect the required information?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. ALB access logs

    ALB access logs record every request with client IP, latency, and path, which is exactly the per-request detail needed. CloudWatch metrics are aggregated and lack client IP data, so they cannot support this analysis.

  184. Question 184 of 308The data protection team at Keystone Trust, an agricultural cooperative headquartered in Des Moines, Iowa, must encrypt a large volume of sensitive member financial records before the records are archived. A developer on the team will use an existing AWS KMS customer master key (CMK), named keystone-trust-financial-cmk, to produce the data encryption key. The current key policy attached to keystone-trust-financial-cmk looks like this: { "Sid": "Allow Key Usage", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::111122223333:user/KeystoneTrustCMKUser" ] }, "Action": [ "kms:Encrypt", "kms:Decrypt", "kms:ReEncrypt*", "kms:DescribeKey" ], "Resource": "*" } What additional API action must be added to the key policy to support this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. kms:GenerateDataKey

    Encrypting large datasets requires envelope encryption, so the key policy must allow kms:GenerateDataKey to produce data encryption keys. The existing Encrypt and Decrypt permissions alone cannot generate data keys for local bulk encryption.

  185. Question 185 of 308Crestline Innovations needs to guarantee that a nightly batch job running on an Amazon EC2 instance can pull order records from an S3 bucket without hardcoding any AWS credentials on the instance. Crestline Innovations is a telecommunications provider whose network operations team relies on this automated job to reconcile customer billing data every night. Which approach should the company use so the EC2 instance can access the order data securely?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use an IAM role

    An IAM role attached through an instance profile delivers temporary, auto-rotated credentials automatically, avoiding hardcoded keys. Storing access keys on the instance is an anti-pattern the exam consistently penalizes.

  186. Question 186 of 308Amberfield Bureau, a K-12 school district, maintains a student information system that its development team deploys through an automated pipeline. A developer commits updated code to AWS CodeCommit, and AWS CodeBuild then compiles and packages the application before deployment. During a recent build, the process ran far longer than expected, and the failure logs show repeated, prolonged attempts to resolve dependencies from an external package repository. The developer wants future builds to stop automatically instead of running indefinitely when this type of dependency issue happens again. Which of the following options represents the best solution to address this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Enable CodeBuild timeouts

    CodeBuild's timeout setting automatically terminates builds that run too long, such as those stuck resolving external dependencies. CloudWatch only monitors after the fact and cannot enforce an execution limit.

  187. Question 187 of 308Palisade Authority, a smart city government agency, operates a real-time traffic-monitoring platform backed by Amazon RDS as its relational database tier. To handle a growing volume of location-based queries from citywide sensor networks, the agency needs to introduce a caching layer that supports geospatial operations, rich query capabilities, and the ability to scale horizontally as sensor coverage expands. Which solution is optimal for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Leverage the capabilities offered by ElastiCache for Redis with cluster mode enabled

    ElastiCache for Redis with cluster mode enabled supports horizontal scaling by adding shards and provides native geospatial commands plus rich query capabilities. Cluster mode disabled only scales vertically with read replicas, so it cannot grow write capacity as sensor coverage expands.

  188. Question 188 of 308A newly launched genomic sequencing analysis platform has experienced a rapid, unplanned spike in usage, and the platform team is now worried that the underlying database could run out of allocated storage within days. Juniper Authority, a biotechnology research lab headquartered in Boston, uses Amazon RDS for MySQL as the database backend for this platform. As a developer associate, which of the following solutions would you recommend so that it requires minimum development effort to address this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Enable storage auto scaling for the Amazon RDS for MySQL instance

    RDS storage auto scaling automatically grows allocated storage when free space runs low, with a single configuration change and no application changes. Migrating to Aurora or DynamoDB may work technically but requires far more effort than the minimum asked for.

  189. Question 189 of 308The security team at Ironclad Collective, a law firm that segregates client case data across multiple AWS accounts for compliance reasons, needs to let a Lambda function running in the firm's primary AWS account (Account A) read and write records in a DynamoDB table owned by a separate AWS account (Account B) used for long-term case archiving. Which solution should the team implement to enable this cross-account access?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create an IAM role in Account B with access to DynamoDB. Modify the trust policy of the role in Account B to allow the execution role of Lambda to assume this role. Update the Lambda function code to add the AssumeRole API call

    The trust policy belongs on the role in the resource-owning Account B, and the Lambda code calls AssumeRole to get temporary credentials. Option A fails because trust policies live on the role being assumed, not on the caller's execution role.

  190. Question 190 of 308The release engineering team at Truenorth Systems, a satellite communications provider that manages software deployments for ground station equipment, uses AWS CodePipeline to automate its release pipelines. The team wants to write an AWS Lambda function that sends notifications whenever a state change occurs within the pipeline. As a Developer Associate, which approach should you recommend to associate the Lambda function with the event source?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Set up an Amazon EventBridge rule that uses CodePipeline as an event source with the target as the Lambda function

    An EventBridge rule with CodePipeline as the event source and Lambda as the target fires automatically on pipeline state changes. CloudWatch alarms monitor metrics, not pipeline state transitions, so they cannot detect these events.

  191. Question 191 of 308Truenorth Guild, a public transportation authority modernizing its real-time transit tracking platform, runs four independent Amazon ECS services on a shared pool of Amazon EC2 container instances. Each service requires a distinct set of AWS permissions, and the team wants to avoid overly broad access. The team also wants to bin pack containers across the underlying EC2 instances based on memory reservation to optimize compute costs. Which configuration would allow the development team to meet these requirements MOST securely?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create four distinct IAM roles, each containing the required permissions for the associated ECS services, then configure each ECS task definition to reference the associated IAM role

    Task IAM roles are attached per task definition, giving each service exactly the permissions it needs without sharing the EC2 instance profile. Referencing roles at the service level or via the instance profile grants broader, shared access that violates least privilege.

  192. Question 192 of 308The platform engineering team at Truenorth Holdings, a regional airline, is building a REST service using Amazon API Gateway with AWS Lambda integration to support upcoming flight-scheduling features. The service must support running different versions of the API simultaneously for testing purposes. What is the BEST way to accomplish this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Deploy each API version as a unique stage with a unique endpoint, and use stage variables to provide further context

    Each API Gateway stage points to a deployment snapshot with its own invoke URL, so deploying each version as a separate stage runs them side by side. Stage variables then let each stage point to a different Lambda alias or function version for the backend.

  193. Question 193 of 308Lattice Foundation's engineering team has deployed several AWS Lambda functions written in Java to process case-related data for the firm's legal document management platform. A new compliance requirement now states that more than 5 MB of sensitive client data must be passed to these functions and must be encrypted and decrypted at runtime. Which of the following methods is suitable to address this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use envelope encryption and reference the data as a file within the code

    Envelope encryption encrypts the large payload locally with a data key while KMS protects only that small key, so payloads over 5 MB work fine as a file in the deployment package. KMS direct encryption is capped at 4 KB, and environment variables are too small for this data.

  194. Question 194 of 308The release engineering team at Wintergreen Coastal, an accounting and audit firm headquartered in Toronto, manages an AWS Lambda function that backs a production audit-reporting application used by client engagement staff. Because the underlying business logic changes frequently, the team publishes a new function version after every code update. The team wants every caller of the function to keep using one fixed ARN, without ever editing the calling code to reference each new version number. Which approach lets the team maintain a static ARN that automatically resolves to whichever version was most recently published?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Setup an alias that will point to the latest version

    A Lambda alias is a pointer with its own stable ARN that can be repointed to each newly published version, so callers never change. An unqualified ARN resolves only to the unpublished $LATEST code, not to a published, immutable version.

  195. Question 195 of 308Cascade Collective needs to limit the number of archived application revisions on its EC2 instances to no more than two in order to conserve disk space. This is part of a workflow that pulls code from AWS CodeCommit and deploys it to instances associated with the tag group Cascade-ProdBuilders. The company operates a media streaming platform from its Toronto headquarters. Which of the following will allow Cascade Collective to implement this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. CodeDeploy agent

    The CodeDeploy agent archives revisions on instances and its max_revisions setting controls retention, so setting it to 2 meets the requirement. CodePipeline only orchestrates deployment stages and cannot limit revision archives on the instance.

  196. Question 196 of 308A recent internal audit found that during a promotional flash sale, the online parts ordering portal displayed outdated component prices for several hours, leading to order disputes with distributors. Union Bureau, a semiconductor manufacturer headquartered in Austin, Texas, is now redesigning the Amazon ElastiCache caching layer in front of its e-commerce ordering portal to withstand traffic spikes during upcoming flash sales of surplus wafer inventory. A key requirement is to facilitate consistent updates to component prices and technical descriptions, so that the cache never goes out of sync with the backend. As a Developer Associate, which of the following solutions would you recommend for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use a caching strategy to write to the backend first and then invalidate the cache

    Writing to the backend first and immediately invalidating the cache guarantees reads fetch fresh data, meeting the strict consistency requirement. Relying on TTL expiration alone can serve stale prices for hours, which caused the original dispute.

  197. Question 197 of 308Millbrook Systems, a petrochemical company, provides APIs as a web-based service that allows anonymous access to statistical data updated daily, using Amazon API Gateway and AWS Lambda for API development. External partners use this service to monitor commodity price trends, and its popularity has grown substantially, so Millbrook Systems wants to improve the API's responsiveness for its consumers. What measure should the company undertake to fulfill this objective?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Activate caching in API Gateway.

    Enabling the built-in API Gateway cache stores responses for a TTL period, cutting backend Lambda calls and reducing latency. ElastiCache adds operational complexity that the native caching feature handles directly.

  198. Question 198 of 308Configuration values for a backend service—such as third-party API authentication tokens, endpoint URLs, and other credentials—must be stored securely and made available separately to each deployment environment. Pinegrove Ventures, an IoT device manufacturer that runs its device telemetry API on Amazon Elastic Container Service (Amazon ECS), needs a solution that requires minimal changes to the existing application code. Which approach best meets this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure the application to fetch the variables and credentials from AWS Systems Manager Parameter Store by leveraging hierarchical unique paths in Parameter Store for each variable in each of Pinegrove Ventures' environments

    Parameter Store securely holds configuration values and uses hierarchical paths so each environment can organize its own variables with minimal code changes. KMS is a key management service, not a configuration store, so option A is not a practical fit.

  199. Question 199 of 308During an internal audit of flight-status update logs, engineers noticed that write requests to a DynamoDB table were being throttled during peak boarding periods, even though the table's aggregate provisioned capacity appeared to have plenty of headroom. The table is provisioned with 500 Write Capacity Units (WCUs) distributed across 5 partitions, and one partition is absorbing approximately 300 WCU per second while the remaining partitions receive far less traffic. Prairiewind Institute, a regional airline that uses this table to track real-time gate assignments, is now receiving the error 'ProvisionedThroughputExceededException' during peak travel windows. What is the likely cause of this error?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. You have a hot partition

    One partition receiving disproportionate traffic while total capacity has headroom is the classic hot partition scenario, causing the throttling exception. The fix is redesigning the partition key for even distribution, since capacity is not shared account-wide.

  200. Question 200 of 308Following a routine reliability audit, an automotive manufacturer discovered that trace data from one of its production Java applications was intermittently missing from AWS X-Ray, even though the application was actively processing vehicle telemetry requests. The engineering team at Ulverstone Labs confirmed that when the application is tested from a developer's personal computer, it successfully sends trace data to AWS X-Ray. However, when the same application runs from its Amazon EC2 instance, it fails to send trace data to X-Ray at all. Which of the following does NOT help with debugging this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. X-Ray sampling

    X-Ray sampling only controls which requests get recorded once delivery works, so it cannot diagnose a total delivery failure. The daemon status, instance role permissions, and CloudTrail logs all help find the actual connectivity or authorization problem.

  201. Question 201 of 308Jasperfield Continental, a regional airline, operates a customer loyalty mobile game that displays match results on a leaderboard. The leaderboard is updated using 4 KB messages that are retrieved from an Amazon SQS queue connected to the airline's rewards platform. Updates arrive infrequently, but the developer needs to minimize the time between a message arriving in the queue and the leaderboard being updated. Which technique provides the shortest delay in updating the leaderboard?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Retrieve the messages from the queue using long polling with a wait time of 15 seconds

    Long polling keeps the ReceiveMessage request open until a message arrives, so infrequent messages are picked up immediately. Short polling on an interval adds up to the full interval of delay and can even miss messages on unchecked servers.

  202. Question 202 of 308A recent regulatory compliance audit found that some Amazon S3 requests from client applications were not using encrypted connections, raising concerns about data exposure during transit. Fairmount Guild, a hotel chain headquartered in Chicago, gives each of its franchise partners read-only access to their own reservation and billing files stored in a shared Amazon S3 bucket, using IAM permissions to restrict each partner to only their own objects. To close the audit finding, the company must enforce encryption in transit for all interactions with the bucket. What solution will fulfill these criteria?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Update the S3 bucket policy to include a condition that requires aws:SecureTransport for all actions.

    A bucket policy denying requests where aws:SecureTransport is false enforces HTTPS regardless of caller identity. Server-side encryption protects data at rest and does nothing for connections in transit.

  203. Question 203 of 308An AWS Lambda function must establish network-level connectivity to an Amazon RDS instance that resides inside a private subnet of a VPC, with no public internet exposure required. Crestline Systems, a consumer electronics manufacturer, recently migrated its on-premises SQL Server database to this RDS instance and rewrote its related Java application as the Lambda function in question. Which of the following approaches should be implemented to allow the AWS Lambda function to connect to its Amazon RDS instance?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Configure the Lambda function to connect to the VPC using the private subnet and the security group needed to access the RDS instance

    Configuring the Lambda function's VPC settings with the private subnet and matching security group creates ENIs that reach the RDS instance directly. Environment variables and layers only pass configuration or code; they provide no network path into the VPC.

  204. Question 204 of 308A sudden spike in customer complaints about dropped internal call-routing connections between regional data centers has triggered an infrastructure review. Birchwood Institute, a video conferencing SaaS company headquartered in Austin, uses a Border Gateway Protocol (BGP)-enabled AWS Site-to-Site VPN connection to link its on-premises call-routing servers to Amazon EC2 instances that host its media relay services. During the review, the infrastructure team confirms that traffic reaches an EC2 instance in Subnet-X without issue, but traffic does not reach an EC2 instance in Subnet-Y, even though both subnets belong to the same VPC. Which logging mechanism should the team use to confirm whether the traffic is actually reaching Subnet-Y?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use VPC Flow Logs to check the inbound and outbound traffic of Subnet-Y.

    VPC Flow Logs capture accepted and rejected IP traffic at the subnet, network interface, or VPC level, so they directly confirm whether packets are reaching Subnet-Y. CloudTrail logs API calls and AWS Config tracks configuration changes, so neither shows live packet flow.

  205. Question 205 of 308The application development team at Vailmont Consolidated, a renewable energy company, has recently taken on responsibilities that were previously handled by a dedicated DevOps team. The developers now have full control over modeling the entire software delivery process, from source code commit through production deployment. As the engineering lead overseeing this transition, you must retain the authority to manually approve any release before it moves forward in the process. Which of the following approaches supports this workflow?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create one AWS CodePipeline for the entire flow and add a manual approval step

    AWS CodePipeline has a built-in manual approval action that pauses the pipeline until a designated approver accepts or rejects the transition. Separate pipelines linked with Lambda or VPC endpoints add complexity without providing a native human approval checkpoint.

  206. Question 206 of 308Fernbrook Solutions, an IoT device manufacturer, has built a companion mobile app that rewards customers with virtual credits for registering new smart-home devices. Customers can redeem these credits for premium device accessories directly through the app. For every redemption, the CustomerCredits table and the AccessoryInventory table in Amazon DynamoDB must be updated simultaneously as an all-or-nothing operation, meaning either both updates succeed or neither is applied. As a developer at Fernbrook Solutions, how should you implement this functionality?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the TransactWriteItems API of DynamoDB Transactions

    TransactWriteItems groups up to 25 writes across multiple tables into a single synchronous, all-or-nothing transaction, exactly matching the atomicity requirement. Only two options are present, and the other one is a distractor; remember batch operations never guarantee atomicity.

  207. Question 207 of 308Brackenridge Holdings, a media streaming company running its viewer analytics platform out of Austin, Texas, uses the AWS SDK for Java to run Scan operations against a 30 GB Amazon DynamoDB table that stores session records. There is no possibility of creating indexes to retrieve these items predictably, and the development team wants to retrieve these specific rows from DynamoDB as fast as possible. Which of the following options can be used to improve the performance of the Scan operation?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use parallel scans

    A parallel Scan divides the table into logical segments that multiple workers scan simultaneously, dramatically reducing wall-clock time on large tables. Remember that FilterExpression and ProjectionExpression only trim results after the scan has already consumed read capacity, so they never speed up a Scan.

  208. Question 208 of 308During a recent performance review of its device telemetry ingestion pipeline, an operations team found that write requests to an Amazon DynamoDB table were being throttled during periods of heavy write activity, even though the table's provisioned write capacity units were far from fully utilized. The table, which stores incoming sensor readings from millions of connected devices manufactured by Foxglove Corporation, has a Global Secondary Index (GSI) that was added after the table was created to support read-heavy analytics queries. What is the best explanation for why the writes are being throttled on the primary table? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. The write capacity units on the GSI are under-provisioned

    Every base-table write propagates to each GSI, which has its own provisioned WCUs, and under-provisioned GSI capacity causes throttling on the base table itself. Exam cue: write throttling with low base-table WCU usage plus a GSI points straight at GSI write capacity.

  209. Question 209 of 308Ashcombe Institute needs its AWS CloudFormation templates to automatically populate the AWS Region value at deployment time, without requiring manual input or additional provisioning logic, as it automates infrastructure deployment for a smart city government agency running services across multiple AWS Regions. What is the MOST operationally efficient way to determine the Region in which the template is being deployed?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the AWS::Region pseudo parameter

    The AWS::Region pseudo parameter is predefined and returns the deployment Region automatically with no declaration needed. A custom Lambda resource or a manual parameter adds unnecessary complexity for metadata CloudFormation already provides.

  210. Question 210 of 308The serverless engineering team at Vailmont Networks, a mid-sized accounting and audit firm, is building an AWS Lambda function that connects to Amazon DynamoDB to manage client engagement records. Each function invocation must look up a record by its primary key, and then either modify specific attributes on the existing record or insert a new record if none exists yet with that key. Which set of IAM permissions should the team request for the Lambda function's execution role to achieve this functionality?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. "dynamodb:UpdateItem", "dynamodb:GetItem", and "dynamodb:PutItem"

    GetItem reads by primary key, and UpdateItem modifies specific attributes or creates the item if absent, so GetItem plus UpdateItem covers everything; PutItem is harmless here. Exam cue: pick UpdateItem when only certain attributes change, and avoid DeleteItem or table-level actions the scenario never requires.

  211. Question 211 of 308An Amazon SQS Standard queue receives student enrollment update requests for Fernbrook Authority's student information system, and multiple consumer instances pull from this queue in parallel to keep up with demand during registration periods. Fernbrook Authority's development team has identified an issue where consumer instances are picking up messages that are still being processed by another consumer, resulting in duplicate enrollment record updates. What should a developer do to resolve this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Increase the VisibilityTimeout attribute on the queue

    Increasing the visibility timeout keeps an in-flight message hidden from other consumers until processing finishes. DelaySeconds only postpones delivery, and ReceiveMessageWaitTimeSeconds controls long polling, so neither fixes duplicate processing.

  212. Question 212 of 308Eastwick Regional's ride-sharing platform runs a three-tier web application on Amazon EC2 instances managed by Amazon EC2 Auto Scaling. The web tier occasionally experiences sudden traffic bursts that the application tier cannot scale fast enough to absorb, causing some messages to be lost before they can be processed. A developer must decouple the two tiers to prevent this message loss during traffic spikes.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Add an Amazon SQS queue between the web tier and the application tier

    An SQS queue between the web and application tiers buffers burst traffic durably until consumers catch up, preventing message loss. SNS pushes immediately and offers fan-out, not buffering, and the queue must sit where the mismatch occurs, not near the database.

  213. Question 213 of 308Ironclad Enterprises, an agricultural technology company, currently stores drone-captured crop imagery in a private Amazon S3 bucket, and its analysts retrieve this imagery manually through the AWS Management Console. The company is now migrating its image-processing pipeline to run on Amazon EC2 instances that must read directly from this S3 bucket, and the security team requires that no long-term credentials be stored on any instance. Which solution should the developer implement to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Set up an EC2 service role with read-only permissions for the S3 bucket and attach the role to the EC2 instance profile

    An EC2 instance role delivers temporary, automatically rotated credentials with no long-term keys stored on the instance. IAM user credentials in user data or the CLI are static and violate the requirement, and S3 has no such thing as an S3 service role.

  214. Question 214 of 308Bluecrest Industries, an IoT device manufacturer, operates a device management platform on a fleet of Amazon EC2 instances running behind an Elastic Load Balancer (ELB). This platform processes telemetry uploads from thousands of connected devices, and the EC2 instances write session data to a shared Amazon S3 bucket. Because Bluecrest's security policy requires that all data be encrypted in transit, how can the Developer ensure that all data sent to the S3 bucket is encrypted in transit?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create an S3 bucket policy that denies traffic where aws:SecureTransport is false

    A bucket policy Deny on aws:SecureTransport false blocks all plain HTTP requests, forcing TLS for S3 traffic. The x-amz-server-side-encryption header enforces encryption at rest, not in transit, so it addresses the wrong requirement.

  215. Question 215 of 308Novapoint Logistics, an IoT device manufacturer, hosts firmware documentation and device setup guides as a static website on Amazon S3, built entirely in HTML5. The company recently expanded its distribution network to manufacturing partners across Asia, Europe, and South America, and engineers in those regions now report slow page loads and noticeable lag when accessing the site, even though support staff at Novapoint Logistics' US headquarters experience no such delays. Which service can mitigate this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Amazon CloudFront

    CloudFront caches the static content at edge locations close to users worldwide, fixing latency for regions far from the S3 bucket's Region. S3 Transfer Acceleration speeds uploads into S3, not downloads to website visitors, so it fails the scenario.

  216. Question 216 of 308A routine pipeline audit at a pharmaceutical research organization uncovered a recurring build failure affecting a drug-discovery data pipeline. Timberline Partners, which owns this AWS CodeBuild-based CI/CD pipeline, had already created the CodeBuild project through the AWS Management Console and defined a build spec for it. The build environment is configured to use a custom Docker image stored in Amazon Elastic Container Registry (Amazon ECR). After the build is triggered, CodeBuild fails to pull the Docker image into the build environment. What is the most likely cause of this failure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The IAM role or service role used by CodeBuild is missing the required permissions to access the image repository

    CodeBuild uses its IAM service role to pull from ECR, and without permissions like ecr:BatchGetImage and ecr:GetAuthorizationToken the image pull fails. CodeBuild fully supports custom Docker images, so that distractor is simply wrong.

  217. Question 217 of 308The platform engineering team at Dovetail Partners, a mid-size enterprise software vendor, has created a test environment in AWS Elastic Beanstalk. As part of that environment, an Amazon RDS database instance was automatically provisioned within the Elastic Beanstalk environment. The team needs to terminate this Elastic Beanstalk environment but wants to make sure the database data can still be explored and recovered after the environment is destroyed. Which action should the team take to achieve this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Make a snapshot of the database before it gets deleted

    An RDS instance provisioned inside an Elastic Beanstalk environment is deleted when the environment terminates, so a manual snapshot beforehand preserves the data for later restore. Decoupling the database is the long-term fix, but among the options only snapshotting prevents data loss.

  218. Question 218 of 308Storing user session state in the memory of a single web server creates a scalability bottleneck once traffic spikes beyond that server's available memory. Ashgrove Innovations, a book and media publisher preparing for a seasonal surge in online orders, currently runs its retail application this way, alongside a separate MySQL database that stores order details. As part of its AWS migration plan, the company intends to run the web tier on Amazon EC2 instances behind an Auto Scaling group and an Application Load Balancer. What additional changes should Ashgrove Innovations implement to improve application performance?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Amazon ElastiCache for Memcached to store and manage session data, while utilizing an Amazon RDS for MySQL DB instance for application data storage.

    ElastiCache for Memcached provides a shared, fast in-memory session store that makes the web tier stateless, while RDS for MySQL holds durable transactional order data. Storing application data only in a cache loses durability, and EC2 instance store is ephemeral.

  219. Question 219 of 308A WebSocket API must route incoming JSON messages to different backend integrations based on the value of an action field found in each message's payload. Dovetail Analytics, a law firm that uses this API to receive real-time case-status updates from external counsel, needs this routing to work with the least amount of configuration. How can the company accomplish this task?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Set the value of the route selection expression to $request.body.action.

    Setting the route selection expression to $request.body.action makes API Gateway route each WebSocket message by the action field's value with no extra logic. $default only catches unmatched routes and mapping templates add configuration overhead.

  220. Question 220 of 308Ridgewood Commission develops point-of-sale software that stores transaction receipts and configuration files as objects in Amazon S3 buckets. The company's backend services are written in C# using the AWS SDK for .NET to perform PUT, GET, Head, and Copy operations against those buckets. To comply with a new internal security policy, Ridgewood Commission must ensure that the encryption key used to protect each stored object is supplied and controlled directly by the company's own systems, rather than generated or managed by AWS, while Amazon S3 still performs the actual encryption and decryption work during each operation. Which of the following encryption methods meets this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. SSE-C

    SSE-C has the customer supply the encryption key on every PUT, GET, Head, and Copy request while S3 performs the encryption. Client-side encryption would mean S3 never sees plaintext or does the crypto work, so it fails the stated requirement.

  221. Question 221 of 308Union Dynamics, a sports analytics company that tracks live game statistics, runs its player-performance dashboard on an Auto Scaling group of Amazon EC2 instances backed by an Amazon DynamoDB table that every instance updates continuously. During high-traffic matches, some instances occasionally display outdated statistics moments after another instance has written an update. A developer at Union Dynamics needs to guarantee that every read reflects the latest successful write. How can the developer accomplish this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Set ConsistentRead to true when calling GetItem

    Setting ConsistentRead to true on GetItem returns data reflecting all prior successful writes, at the cost of higher latency and capacity use. DAX caches data and can actually serve stale reads, making it the wrong fix here.

  222. Question 222 of 308An IAM access scheme is needed so that each user in a growing workforce can read and write only to their own prefix inside a single shared Amazon S3 bucket, without requiring ongoing per-user policy maintenance. Glacier Dynamics, an education technology company with 150 employees, wants each employee to have a personal space in the S3 bucket 'glacier-dynamics-user-space' under the prefix /home/<username>, where each user has read/write access only to their own prefix. How can this be accomplished most efficiently as the user base continues to grow?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create one customer-managed policy with policy variables and attach it to a group containing all users

    A single customer-managed policy using the ${aws:username} policy variable grants each user access to only their own home prefix, and attaching it to a group scales without maintenance. Inline or per-user policies require ongoing manual work as users join.

  223. Question 223 of 308A recent code review audit at a company building a vessel-tracking platform found that engineering teams were frequently blocked during integration testing because backend components owned by other teams were not yet available. To resolve this bottleneck, the engineering manager at Highmoor Cooperative, a maritime shipping company, wants to isolate the development effort of one team by setting up simulations of API components that are owned and developed by other teams, without invoking any real backend and without incurring backend usage charges during testing. Which Amazon API Gateway integration type is best suited for this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. MOCK

    MOCK integration returns a response generated by API Gateway itself without contacting any backend. It is ideal for simulating other teams' APIs before they exist and avoids backend charges; the proxy and HTTP integrations still require a real backend endpoint.

  224. Question 224 of 308A commercial real estate firm's development team relies on AWS CodePipeline to continuously deploy its property listing web application to AWS Elastic Beanstalk, a workflow that has run smoothly for over a year. Larkspur Analytics' engineers have now discovered that the number of stored application versions is approaching the Elastic Beanstalk service limit, threatening to block new deployments. How can the team automatically remove older, unused application versions so that new versions can continue to be created without manual intervention? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use a Lifecycle Policy

    An Elastic Beanstalk application version lifecycle policy automatically deletes old application versions based on age or count, preventing the service limit from blocking deployments. For the exam, remember lifecycle policy is the built-in feature for cleaning up application versions; .ebextensions configure environments, not version retention.

  225. Question 225 of 308A recent equipment-tracking audit at Ironclad Cooperative revealed gaps in its records of when new Amazon EC2 instances supporting factory-floor sensor gateways come online. To close this gap, Ironclad Cooperative, an industrial manufacturing company, has decided that whenever a new EC2 instance is launched, key details about that instance must be captured and stored in an Amazon DynamoDB table called IroncladInstanceMetadata. An AWS Lambda function performs the actual data capture and write operation. What is the MOST efficient method of invoking the Lambda function?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Create a CloudWatch Event with an event pattern looking for EC2 state changes and a target set to use the Lambda function

    A CloudWatch Events rule (now Amazon EventBridge) with an EC2 instance state-change event pattern can target Lambda directly, capturing instance launches in near real time. Exam cue: reacting to resource state changes means event pattern rules, not CloudTrail alarms or metric alarms, which add polling overhead.

  226. Question 226 of 308Ridgeline Networks, a maritime shipping company headquartered in Rotterdam, operates a legacy on-premises Linux server that runs a custom cargo-tracking application accessed through Amazon API Gateway. A developer needs to enable AWS X-Ray tracing on this server. What is the most efficient solution that requires minimal configuration?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service

    The X-Ray daemon listens on UDP port 2000 for segments from the SDK and relays them to the X-Ray API, and it runs on any on-premises host. Remember the exam distinction: the SDK instruments code, while the daemon forwards data; on-premises servers always need the daemon installed manually.

  227. Question 227 of 308A second AWS Lambda function must run automatically whenever an item lifecycle activity—insert, update, or delete—occurs in an Amazon DynamoDB table. Quarrystone Coastal, an aerospace and defense contractor, uses this table to track flight-component inventory as part of an application built on Amazon API Gateway, a Lambda function, and the DynamoDB table. How can a developer configure this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Enable a DynamoDB stream and trigger the Lambda function synchronously from the stream

    A DynamoDB stream records item-level changes, and Lambda polls it internally, invoking the function synchronously and in order per batch of stream records. Exam cue: DynamoDB Streams with Lambda is always synchronous, ordered, poll-based invocation managed by AWS, unlike SNS or direct async invokes.

  228. Question 228 of 308The digital archives team at Ironclad Coastal, a museum and cultural heritage foundation headquartered in Charleston, uses Amazon DynamoDB to store visitor-submitted favorite-exhibit rankings so that the data can be searched from the foundation's public website. A nightly batch process requires that all 10 million records in the table be deleted and then completely reloaded at 2:00 AM every night. Which approach is the most efficient way to perform the deletion while minimizing cost?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Delete the table and then re-create it

    DeleteTable followed by CreateTable removes all items as a single metadata-level operation with no per-item read or write capacity consumption. Remember the rule: partial deletions use Query or Scan plus DeleteItem or BatchWriteItem; full-table purges drop and re-create the table.

  229. Question 229 of 308The messaging engineering team at Vantage Technologies, an online marketplace that connects independent sellers with buyers, relies on Amazon Simple Email Service (Amazon SES) to deliver order confirmations and promotional emails to customers. During periods of peak seller activity, the team notices that Amazon SES intermittently returns the error: "Throttling – Maximum sending rate exceeded." Which solution should the team implement to resolve this issue while minimizing manual intervention?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use the exponential backoff technique to introduce a delay before attempting to execute the operation again

    The maximum sending rate error is retriable, and AWS recommends exponential backoff so the application automatically slows its send rate without manual intervention. Retrying all 4xx errors blindly is wrong because most 4xx errors are permanent failures, not throttling.

  230. Question 230 of 308A web portal that displays real-time account balances and available credit limits is backed by an Amazon RDS database with Amazon ElastiCache deployed in front of it as a caching layer, and balance data is updated dynamically as transactions are processed. Eastwick Holdings, a regional banking institution headquartered in Denver, has received customer complaints that some accounts occasionally show an incorrect available balance, leading customers to attempt transfers that exceed their actual funds. A developer investigating the issue confirms that the front end is indeed displaying stale balance data for certain accounts. What could be causing this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The cache is not being invalidated when the account balance data changes

    Missing cache invalidation leaves stale balance values in ElastiCache that keep being served after the database changes, exactly matching the symptom. Exam cue: stale reads through a caching layer always point to invalidation strategy, not RDS IOPS or Multi-AZ replication, which stays consistent.

  231. Question 231 of 308An AWS Lambda function requires several environment variables containing secret values that must remain obscured in the Lambda console and API output, even for users who hold IAM permissions to use the encryption key. A development team at Northbridge Holdings, a consumer electronics manufacturer that manages firmware update credentials for its smart home device line, needs to secure these values while minimizing complexity and latency. What is the best way to achieve this outcome?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Encrypt the secret values client-side using encryption helpers

    Lambda's client-side encryption helpers use envelope encryption with KMS so plaintext secrets never appear in the console or API output. When a question specifically asks to hide secret values from the console view, look for encryption helpers rather than just a customer-managed KMS key.

  232. Question 232 of 308Restricting the EC2 instance types that AWS CloudFormation accepts during stack creation to a pre-approved list is essential when infrastructure is deployed across many AWS accounts. Driftwood Alliance, a video conferencing SaaS company scaling its media-processing server fleet across dozens of AWS accounts, needs to enforce this restriction inside the CloudFormation templates its developers use to provision EC2 instances. What can a developer do to integrate the list of authorized instance types into the CloudFormation template?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Configure a parameter with the list of EC2 instance types as AllowedValues in the CloudFormation template

    AllowedValues on a template parameter restricts input to a predefined list, which CloudFormation validates at deployment time. Pseudo parameters are predefined by AWS and cannot be customized, so they cannot hold a list of instance types.

  233. Question 233 of 308Ashgrove Group, a healthcare diagnostics provider, is building a patient-facing web application that lets users view diagnostic images stored in an Amazon S3 bucket. Patients will log in using their Amazon account, as well as Facebook and/or Google accounts. How can a developer at Ashgrove Group provide this authentication capability?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use Amazon Cognito with web identity federation

    Cognito identity pools with web identity federation support Login with Amazon, Facebook, and Google, then issue temporary AWS credentials scoped to the S3 access needed. SAML federation is for enterprise identity providers, not social logins, so that distractor fails here.

  234. Question 234 of 308The platform engineering team at Dunmore Corporation, a construction and engineering firm with project offices on four continents, manages a project-collaboration portal that stores blueprints and specification documents as static files in an Amazon S3 bucket, while dynamic content such as project status dashboards is served by an Application Load Balancer. Because field teams and clients access the portal from many countries, the team needs to minimize latency for both types of content. Which technology or service should the team use to serve both the static and dynamic content while keeping data latency low?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure Amazon CloudFront with multiple origins to serve both static and dynamic content at low latency to global users

    One CloudFront distribution with multiple origins routes static paths to S3 and dynamic paths to the ALB using cache behaviors and path patterns. Global Accelerator optimizes TCP routing to AWS endpoints but cannot cache content at edge locations like CloudFront does.

  235. Question 235 of 308Larkspur Systems, an automotive manufacturer, needs to let its employees securely share confidential engineering documents with external parties for a limited time, without granting those parties AWS credentials or permanent access to the storage bucket. The company has already uploaded these documents to a private Amazon S3 bucket that is not publicly accessible, and it wants to build a serverless application to support this sharing requirement. Which AWS capability should the company use to enable secure, time-limited file sharing?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. S3 presigned URLs

    An S3 presigned URL grants temporary access to a single private object and requires no AWS credentials for the recipient. ACLs or IAM roles would need account-level access for external parties, which violates the requirement.

  236. Question 236 of 308After a spike in customer support tickets tied to a recent firmware companion app update, engineers at Wintergreen Alliance, a consumer electronics manufacturer headquartered in Austin, Texas, must validate a new version of an API before it reaches all users. The API is built with AWS Lambda functions invoked through Amazon API Gateway, and the team wants to send only a small percentage of live production traffic to the new version for testing purposes. Which feature will accomplish this task?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Canary Deployment

    API Gateway canary deployment splits a configurable percentage of live traffic to the new version while the rest goes to production. Stage variables only switch endpoints and do not split traffic, so they cannot do percentage-based testing.

  237. Question 237 of 308Glacier Institute, a pharmaceutical research organization, stores experimental compound data in Amazon RDS and uses Amazon ElastiCache to speed up read-heavy queries from its drug discovery platform. To keep cached results current for scientists reviewing compound records, the development team has configured ElastiCache to update the cache immediately after every write to the primary database. What will be the result of this caching approach?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. The cache will become large and expensive because infrequently requested data is also written to the cache.

    This is write-through caching: data stays fresh but rarely read items also fill the cache, increasing size and cost. Database load does not increase from cache updates, so focus on the storage-cost trade-off the question asks about.

  238. Question 238 of 308A mobile application needs access to an Amazon API Gateway API, and users must register before they can use it, with all user management fully handled by AWS so no custom user directory or registration workflow needs to be built. Birchwood Regional, an education technology company headquartered in Columbus, Ohio, is building this application so students can register and retrieve their assessment data. Which authentication option should be used for the API Gateway layer?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use Amazon Cognito user pools

    Cognito user pools provide a fully managed directory handling registration, sign-in, and tokens, integrated with a COGNITO_USER_POOLS authorizer in API Gateway. A Lambda authorizer would require building custom user management, which the scenario rules out.

  239. Question 239 of 308Cascade Consolidated, a public university, is deploying a new student records service on Amazon ECS and needs to ensure that each task is placed on a different container instance to avoid a single point of failure. How can this be achieved?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use a task placement constraint

    The distinctInstance task placement constraint is a hard rule that forces each task onto a different container instance. A placement strategy like spread or binpack is only a preference and cannot guarantee one task per instance, so it fails the requirement.

  240. Question 240 of 308A fleet of over 120 m5.large EC2 instances runs complex environmental data-processing algorithms in the us-east-1 Region for Brightwater Robotics, an environmental monitoring agency that tracks air and water quality sensors across multiple field stations. The engineering manager now wants to monitor CPU utilization of these EC2 instances as frequently as every 10 seconds. Which of the following represents the BEST solution for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a high-resolution custom metric and push the data using a script triggered every 10 seconds

    A high-resolution CloudWatch custom metric with StorageResolution of 1 lets a script publish CPU data as often as every second. EC2 detailed monitoring only reaches one-minute granularity, so it cannot meet a ten-second requirement.

  241. Question 241 of 308Suspicious API activity has just shown up in an AWS account's CloudTrail logs, and the developer who owns the associated IAM user suspects that her access keys have been compromised. This IAM user belongs to Fairmount Authority, a book and media publisher whose automated content-distribution scripts authenticate using these exact keys. What is the first thing the developer should do in this situation?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Delete the compromised access keys

    Deleting the compromised access keys immediately cuts off unauthorized programmatic access. Changing the password does nothing for API keys, deleting the IAM user breaks the scripts unnecessarily, and contacting support is not the first containment step.

  242. Question 242 of 308Oakhaven Global needs to launch a mix of Spot and On-Demand EC2 instances within a single Auto Scaling group while ensuring the AWS CodeDeploy agent installs automatically on every new instance, without adding operational overhead. As a ride-sharing platform headquartered in Austin that scales its dispatch-matching fleet up and down throughout the day, the company runs all of these instances on the Amazon Linux operating system. What is the most operationally efficient way to configure this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use launch templates to configure the EC2 Auto Scaling group for On-Demand and Spot Instances. When you create a launch template, use the User data field to add a configuration script that runs when the instance starts. This shell script can, in turn, install the CodeDeploy agent

    Launch templates support a mixed instances policy for Spot plus On-Demand, and a user data script installs the CodeDeploy agent automatically at boot. Launch configurations cannot mix Spot and On-Demand, and RAM only shares resources across accounts.

  243. Question 243 of 308At Cobalt Union, the current web application architecture consists of Amazon EC2 instances that host a client-facing threat-monitoring dashboard for its cybersecurity consulting engagements. The application must now be granted read-only access to an Amazon DynamoDB table that stores threat-intelligence data. As a Developer Associate, what is the best-practice solution you would recommend to accomplish this task?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create an IAM role with an AmazonDynamoDBReadOnlyAccess policy and apply it to the EC2 instance profile

    An IAM role with a read-only managed policy attached to the EC2 instance profile provides temporary credentials and least privilege. Embedding IAM user access keys in code or using root or admin credentials violates both rotation and least-privilege best practices.

  244. Question 244 of 308The platform engineering team at Thornfield Global, a mid-size enterprise software vendor, is building a video processing application deployed on AWS Elastic Beanstalk. The team needs to run a set of repetitive, scheduled tasks asynchronously, without affecting the responsiveness of the customer-facing web tier. Which Elastic Beanstalk environment configuration should the team set up to perform these repetitive tasks?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Set up a Worker environment and a cron.yaml file

    A Worker environment tier pulls tasks from an SQS queue, keeping background jobs off the web tier, and cron.yaml defines the periodic scheduled jobs. The .ebextensions file configures environment resources, not scheduled task execution, so it fails the requirement.

  245. Question 245 of 308Riverstone Works needs to migrate an e-commerce-style web application that currently shares session state on-premises to AWS, ensuring the platform remains fault tolerant, natively highly scalable, and resilient to any service interruption that could affect the user experience—critical requirements for the citizen-facing portals of this smart city government agency serving a large metropolitan region. Which option should the agency choose to store the session state?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Store the session state in Amazon ElastiCache

    ElastiCache, especially with Redis, provides an in-memory, shared session store with replication and Multi-AZ failover, so any instance can serve users. Sticky sessions tie users to single servers and undermine scalability and fault tolerance.

  246. Question 246 of 308The platform engineering team at Granite Systems, a theme park operator, maintains several ASP.NET web applications that run on EC2 instances hosted on IIS to support the company's online ticketing and ride reservation platform. The team wants to configure AWS Elastic Beanstalk so that multiple versions of an application can run simultaneously: one version dedicated to development and testing, and a separate version dedicated to load testing under conditions that closely resemble production. Which approach should the team use to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Define a development environment with a single instance and a separate load-testing environment configured with settings that closely resemble the production environment

    Elastic Beanstalk supports multiple independent environments for the same application, each with its own configuration. When a scenario needs simultaneous development and production-like load testing environments, provision separate environments tailored to each purpose; the other options describe unsupported or irrelevant workarounds.

  247. Question 247 of 308An Auto Scaling group configured with a minimum capacity of 1 and a maximum capacity of 5 launches EC2 instances across three Availability Zones, but the application went down when an entire Availability Zone became unavailable during a period of low traffic. Hallmark Regional, a public university that depends on this Auto Scaling group to run its student portal, needs to prevent this type of outage from happening again. What should the university's platform team do to ensure the application remains highly available going forward?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Increase the minimum instance capacity of the Auto Scaling Group to 2

    A minimum of 1 means only one instance may exist, and it sits in a single Availability Zone, so one zone failure takes the app down. Raising minimum capacity to 2 forces instances into at least two zones; RDS Multi-AZ and fast failover do not fix the compute layer.

  248. Question 248 of 308Highmoor International, a payment processing company, operates hundreds of Amazon EC2 instances running Linux to handle transaction processing, distributed across several Availability Zones in the eu-west-3 Region. The operations manager now needs a way to collect system memory (RAM) utilization metrics from all of these EC2 instances using a script. Which of the following solutions will accomplish this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use a cron job on the instances that pushes the EC2 RAM statistics as a custom metric into Amazon CloudWatch

    CloudWatch does not collect memory metrics from EC2 by default because RAM lives inside the guest OS. A script or CloudWatch agent run via cron publishes memory as a custom metric; instance metadata and X-Ray do not expose RAM utilization.

  249. Question 249 of 308Bluecrest Commission needs to fix a display problem on its public website, where a theme park operator relies on Amazon S3 to host the site's static pages directly. The website is hosted in an S3 bucket named bluecrest-commission.com. Some HTML pages on the site use JavaScript to download images that are located in a separate bucket, accessed via https://bluecrest-commission-images.s3.amazonaws.com/. Users have reported that the images are not being displayed. What is the MOST likely cause?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Cross-Origin Resource Sharing is not enabled on the bluecrest-commission-images bucket

    JavaScript on the site makes a cross-origin GET to the images bucket, which S3 blocks unless a CORS configuration on that bucket allows the origin. Remember CORS is configured on the bucket serving the resource, not the bucket hosting the calling page; region and Transfer Acceleration are irrelevant.

  250. Question 250 of 308The data engineering team responsible for a real-time claims monitoring platform at Elmsworth Commission, a property and casualty insurance company headquartered in Hartford, Connecticut, uses Amazon Kinesis Data Streams to ingest policy and claims activity data. During periods of peak traffic, the Kinesis data stream cannot keep up with the volume of incoming data, resulting in throttling. What step will allow the Kinesis data stream to accommodate the traffic during peak hours?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Increase the shard count of the stream using UpdateShardCount

    Each shard provides fixed write throughput, so adding shards with UpdateShardCount directly increases ingestion capacity during traffic spikes. Batching with PutRecords or using the KPL improves efficiency but does not raise the stream's throughput ceiling when throttling already occurs.

  251. Question 251 of 308Overlook Ventures, a petrochemical company, currently deploys its internal safety-monitoring applications manually, with releases handled ad hoc by individual engineers following a waterfall-style release cycle. To modernize its software delivery process, the company is adopting CI/CD best practices for every application and requires each service to be packaged and deployed as a Docker container. Docker images must be stored in Amazon ECR and pushed through a pipeline built with AWS CodePipeline and AWS CodeBuild. When the team attempts to implement this workflow, the final step of the CodeBuild build fails with an authorization error. What is the most likely cause of this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. The IAM permissions are incorrect for the CodeBuild service role

    Pushing an image to ECR requires the CodeBuild service role to have ecr:GetAuthorizationToken plus repository push permissions like ecr:PutImage. An authorization error during docker push points to a missing IAM policy on the calling role; security groups do not govern ECR API calls.

  252. Question 252 of 308A recent internal audit of citizen-facing services flagged repeated complaints that users lost partially completed benefits applications whenever an application server became unhealthy and was replaced. Zenith Technologies, the state agency responsible for the online portal, runs the application on Amazon EC2 instances behind an Elastic Load Balancer. To prevent further data loss, the developer must ensure that if an individual EC2 instance fails, the user's session data is not lost. Which approach should the developer implement to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use Amazon DynamoDB to perform scalable session handling

    Storing session data in Amazon DynamoDB externalizes state so any instance can serve the user's next request, and no data is lost when an EC2 instance fails. Sticky sessions only pin a user to one instance, so if that instance dies the session dies with it.

  253. Question 253 of 308A recent internal audit uncovered that time-sensitive client transaction notifications generated by an application were reaching only one of several required downstream processing systems, delaying compliance reviews. Ulverstone Partners, headquartered in Melbourne, must now ensure that every message produced by the application is pushed to multiple Amazon SQS queues so that all downstream systems receive it at the same time. What is the BEST solution for this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Publish the messages to an Amazon SNS topic and subscribe each SQS queue to the topic

    The SNS fanout pattern pushes each published message to every subscribed SQS queue automatically with no custom code. A Lambda function duplicating messages could work but adds development and operational overhead, so it is not the best answer.

  254. Question 254 of 308An AWS Lambda function must write incoming field-sensor data to an Amazon DynamoDB table named OrchardvaleSensorData without triggering repeated write failures. Orchardvale Federation, an agricultural technology company that monitors soil and irrigation conditions across its member orchards, has deployed this function, but its developers notice that write operations to the table occasionally fail due to throttling. What should the developer do to reduce the likelihood of these throttling issues without significantly over-provisioning the table's write capacity? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Implement exponential backoff in the Lambda function's error handling code to retry failed write operations.

    Exponential backoff retries failed writes with increasing delays, smoothing out transient throttling without raising provisioned capacity, which satisfies the no-over-provisioning requirement. Note that on-demand capacity mode is a defensible alternative for eliminating throttling, making this somewhat ambiguous, but backoff is the classic application-level answer.

  255. Question 255 of 308Westfield Industries, a social media analytics company, has built a mobile application used by hundreds of clients who track engagement metrics across multiple smartphones and tablets. The engineering team needs to assign a single unique identifier to each client that stays consistent no matter which device the client uses to sign in. Which method should be used to obtain unique identifiers?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Implement developer-authenticated identities by using Amazon Cognito, and get credentials for these identities.

    Amazon Cognito identity pools with developer-authenticated identities give each user one stable identity ID and temporary credentials across all devices. IAM users or access keys fail because IAM is meant for a limited number of account principals, not application end users.

  256. Question 256 of 308A recent internal security audit found that client case files were being transmitted between clients and the firm's web application without encryption in transit. Orchardvale Innovations, a law firm that hosts this application on an AWS Elastic Beanstalk environment, needs to expose an HTTPS endpoint instead of an HTTP endpoint to secure communications between clients and the web servers. What must be done to configure HTTPS on Elastic Beanstalk?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a configuration file in the .ebextensions folder to configure the load balancer

    An .ebextensions configuration file defining a port 443 listener with an ACM certificate ARN is the standard Elastic Beanstalk way to enable HTTPS at the load balancer. A separate CloudFormation template could also work in practice, but .ebextensions is the canonical exam answer; opening port 80 or health checks does nothing for TLS.

  257. Question 257 of 308The platform engineering team at Prairiewind Works, an online marketplace that ships new features daily, is working on a project with over 100 dependencies. Every time their AWS CodeBuild project runs a build step, it has to resolve Java dependencies from external Ivy repositories, which takes a long time. The engineering manager wants to speed up this process in AWS CodeBuild. Which of the following approaches will help achieve this with minimal effort?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Cache dependencies on Amazon S3

    CodeBuild supports S3-backed caching, letting dependency artifacts persist between builds so Ivy repositories are not re-resolved every run. Shipping dependencies in the source code works but bloats the repo and adds ongoing maintenance effort.

  258. Question 258 of 308A recent spike in failed order-status notifications prompted an engineering review at Marrowgate Networks, a consumer electronics manufacturer that relies on Amazon SQS to relay production-line alerts to an application running on Amazon EC2 instances. The review found that some messages are not processed successfully and end up failing repeatedly. Which of the following options will help isolate these problematic messages so they can be reviewed and troubleshot separately from the messages being processed normally?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Implement a dead-letter queue

    An SQS dead-letter queue, attached via a redrive policy, captures messages that exceed the maximum receive count so they can be inspected later. The question stem is malformed because the actual question text was merged into option A, leaving only one real answer choice.

  259. Question 259 of 308Brackenridge Innovations, an aerospace and defense contractor, has migrated its on-premises infrastructure to AWS and is configuring separate AWS Elastic Beanstalk environments for production, development, and testing to support its avionics software team. The production environment has been configured to use a rolling deployment policy to prevent the application from becoming unavailable to users during updates. For the development and testing environment, the team wants to deploy new application versions as quickly as possible and is not concerned about brief downtime during deployment. Which of the following deployment policies best meets this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. All at once

    The All at once policy updates every instance simultaneously, making it the fastest Elastic Beanstalk deployment method with possible brief downtime. The exam cue is that fastest deployment plus acceptable downtime points to All at once, while phrases like extra batch or new Auto Scaling group signal the other policies.

  260. Question 260 of 308Larkspur Ventures wants its tenant-facing web portal to automatically recover from a failed backend server without requiring manual intervention from its operations team. The commercial real estate firm runs the portal behind an Application Load Balancer, backed by an Auto Scaling group configured with a minimum size of 5, a maximum size of 20, and a desired capacity of 10. The health check system flags one of the 10 running EC2 instances as unhealthy. Which of the following actions will the Auto Scaling group take?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The ASG will terminate the EC2 instance

    When a health check marks an instance unhealthy, the Auto Scaling group terminates it and launches a replacement to maintain desired capacity. An ASG never restarts applications inside an instance, reformats volumes, or detaches and leaves unhealthy instances running; exam cue is unhealthy instance means terminate and replace.

  261. Question 261 of 308A serverless workflow must automatically generate thumbnail images the moment new files are uploaded to an Amazon S3 bucket, with no polling or scheduled checks involved. At Meridian Alliance, a construction and engineering firm that stores scanned blueprint files in Amazon S3, a developer has already created the S3 bucket notification configuration and the AWS Lambda function, and has formulated the following AWS CLI command: aws lambda add-permission –function-name MeridianCreateThumbnail –principal s3.amazonaws.com –statement-id s3invoke –action "lambda:InvokeFunction" –source-arn arn:aws:s3:::meridian-alliance-blueprints –source-account 934817652209 What will be achieved by running this AWS CLI command?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The Amazon S3 service principal (s3.amazonaws.com) will be granted permissions to perform the lambda:InvokeFunction action

    The add-permission command adds a resource-based policy statement allowing the S3 service principal to invoke the function, scoped by source ARN and account. It grants no data access and creates no event source mapping, since S3 triggers Lambda via push, not polling.

  262. Question 262 of 308Saltmarsh Global needs to control access to its Amazon API Gateway endpoints using a third-party authorization mechanism, such as OAuth or SAML, instead of relying on AWS-managed authentication. The food and beverage producer's development team, based at its Gulf Coast headquarters, builds serverless solutions using AWS Lambda. Clients invoke these Lambda functions through an API Gateway endpoint that is currently open for anyone to access. The team lead wants to add authorization control before requests reach the backend. Which of the following options should be recommended for this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Lambda Authorizer

    A Lambda authorizer runs custom code that validates bearer tokens from third-party systems like OAuth or SAML before requests reach the backend. Cognito user pools are wrong because AWS would manage the directory, while the scenario explicitly requires a third-party authorization mechanism.

  263. Question 263 of 308Truenorth Agency operates a nightly ingestion pipeline that loads 1 million new air-quality sensor readings into an Amazon DynamoDB table as part of its environmental monitoring platform. The agency's data engineering team only needs these records available for one hour after loading, and the table must be completely empty again before the next night's batch job runs. Which approach is the MOST efficient and cost-effective way to ensure the table is empty?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Create the table before loading the data and then delete the table after the task has completed

    Deleting and recreating the table requires only two API calls and consumes no capacity while the table is gone, making it the cheapest way to empty a short-lived table. Item-level approaches like scans with DeleteItem or BatchWriteItem scale with the million items and burn read/write capacity.

  264. Question 264 of 308Ulverstone Global, an online gaming company, recently completed a code review after a security incident involving exposed player data. The review revealed that several Amazon S3 buckets used to store game assets and player statistics are publicly accessible. The company needs to make these buckets private while still allowing specific objects to be accessed by external partners under a time-bound constraint. Which of the following options addresses this use case?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Share pre-signed URLs with resources that need access

    Pre-signed URLs let external partners download specific objects from a private bucket until the URL expires, satisfying the time-bound requirement. A bucket policy can block access but cannot easily grant per-object temporary external access.

  265. Question 265 of 308Kestrel Labs, a state government agency, manages its AWS infrastructure with a dedicated Finance department team responsible for tracking cloud spending across multiple state programs. The development team has configured and attached an IAM policy granting this Finance team access to the AWS Billing and Cost Management console, but the users still cannot see the AWS Billing and Cost Management service in the AWS Management Console. What is the most likely reason for this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. The account administrator needs to activate IAM user access to the Billing and Cost Management console for all the users who need access

    IAM policies for billing only take effect after an account administrator activates IAM user and role access to billing information in account settings. That one-time activation is the commonly missed step; attached policies alone stay ineffective.

  266. Question 266 of 308Saltmarsh Networks runs a fleet of Amazon EC2 instances that ingest and process real-time sensor readings from field-deployed monitoring stations across coastal wetlands. As an environmental monitoring agency, Saltmarsh Networks depends on continuous instance availability to avoid gaps in environmental data collection. A developer on the team determined that one particular instance was no longer needed and terminated it manually. However, another instance of the same instance type was automatically launched in the account shortly afterward. Which of the following options best explains this sequence of events?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The instance might have been part of an Auto Scaling group, which relaunched a similar instance to maintain the desired capacity

    An Auto Scaling group maintains desired capacity, so after a manual termination it automatically launches a replacement from the same launch template. Load balancers distribute traffic and never launch instances, which is the classic distractor here.

  267. Question 267 of 308The platform engineering team at Ashford Dynamics, a theme park operator that streams ride telemetry data for real-time safety monitoring, is building several AWS Lambda functions that all depend on the same external library. This library is not included in the standard Lambda runtime. The team wants to make the library available to every function without repeating the same setup work in each function's deployment package. What is the BEST way to make this library available to the functions?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Create a layer in Lambda that includes the external library

    A Lambda layer packages the shared library once and makes it available to many functions via the /opt directory, keeping deployment packages small. Bundling the library in each deployment package repeats the work the question says to avoid.

  268. Question 268 of 308Copperfield Federation needs to stop write operations from silently overwriting existing Amazon DynamoDB items that share a primary key. While testing a new shipment-tracking table for its supply chain visibility platform, engineers noticed that repeated write operations were replacing previously stored records with new data, causing data discrepancies. Which DynamoDB write option should be selected to prevent this kind of overwriting? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Conditional writes

    Conditional writes with a ConditionExpression let a PutItem succeed only when no item with the same primary key already exists, preventing silent overwrites. Watch for phrases like prevent overwriting; atomic counters and batch writes do not check for existing keys.

  269. Question 269 of 308The mobile application development team at Vailmont Holdings, a public transportation authority that operates commuter rail and bus networks across a metropolitan region, wants to simplify the account sign-up process for its rider mobile app. The team needs a fully managed, scalable solution for user management ahead of an expected surge in ridership following a planned service expansion. As a Developer Associate, which of the following solutions would you suggest so that it requires the LEAST amount of development effort? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use Cognito User pools to facilitate sign-up and user management for the rider mobile app

    Cognito User Pools provide a fully managed user directory handling sign-up, sign-in, and MFA with minimal development effort. Identity pools grant AWS resource access rather than managing users, and custom Lambda or EC2 solutions require far more work.

  270. Question 270 of 308A Docker image must be pushed to an Amazon ECR repository only after a build finishes successfully, with no push occurring if any build step fails. Pinegrove Labs, a public university, uses AWS CodeBuild to build this image for its student course-registration application, and the build steps are defined in a buildspec file. Which approach should the developer use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Add a post_build phase to the buildspec file that uses the commands block to push the Docker image.

    The post_build phase with its commands block runs only after the build phase succeeds, so a failed build skips the docker push. The finally block runs even on failure, and artifacts or install phases are not meant for pushing images.

  271. Question 271 of 308The IoT connectivity engineering team is building a real-time telemetry pipeline for Nightingale Commission, a consumer electronics manufacturer that streams sensor data from its smart home appliances. The team has provisioned a single shard in Amazon Kinesis Data Streams to test the configuration before scaling to full production volume. What happens if the capacity limits of an Amazon Kinesis data stream are exceeded while a data producer is adding data to the stream?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. The put data calls will be rejected with a ProvisionedThroughputExceededException exception

    When a producer exceeds a shard's throughput or record limits, PutRecord calls fail with ProvisionedThroughputExceededException rather than losing data. Producers should retry with exponential backoff and add shards for sustained load; AccessDeniedException relates to permissions, not capacity.

  272. Question 272 of 308Ironwood Cooperative needs to implement an authentication mechanism that returns a JSON Web Token (JWT) after a user successfully authenticates in its .NET web application, which uses the AWS SDK. The company runs a growing online marketplace that connects independent sellers with buyers and requires a managed service to issue and refresh these tokens. Which AWS service should the developer use to handle token issuance and management?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Cognito User Pools

    Cognito User Pools return JWT-based ID, access, and refresh tokens after successful authentication using the OpenID Connect standard. Whenever a scenario says JWT after login, choose User Pools; Identity Pools are for granting temporary AWS credentials.

  273. Question 273 of 308Ironwood National, a satellite communications provider, currently maintains a shared Amazon S3 bucket named ironwood-ground-station-uploads, where engineering teams from several linked AWS accounts upload telemetry files collected from ground stations. Because each account uploads independently, objects in the bucket end up owned by whichever account uploaded them, which makes centralized lifecycle management and permission control difficult. Ironwood National now needs a way to automatically make the bucket owner the owner of every object in the bucket, no matter which AWS account performed the upload. Which of the following approaches accomplishes this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use S3 Object Ownership to set the bucket owner as the default owner of all objects in the bucket

    Setting S3 Object Ownership to bucket owner enforced makes the bucket owner automatically own every uploaded object regardless of which account performed the upload. CORS controls browser cross-origin requests and has nothing to do with object ownership.

  274. Question 274 of 308Lattice Coastal, an environmental monitoring agency, operates a field data platform that includes a smartphone app for Android and iOS and a web console used by lab analysts. Field inspectors use the mobile app to log water-quality sensor readings and post shared inspection notes while working in remote areas with unreliable network coverage. Any entries recorded while a device is offline must remain saved on the device and must automatically synchronize with other devices and the web console once network connectivity returns. Which of the following AWS services will meet these requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. AWS AppSync

    AWS AppSync queues mutations made while a device is offline and syncs them automatically once connectivity returns, with built-in conflict resolution across devices. Cognito pools handle sign-in and temporary credentials, not offline data synchronization.

  275. Question 275 of 308The platform engineering team at Brackenridge Union, a sports analytics company that processes real-time game statistics for professional leagues, configured an Amazon S3 event notification for an S3 bucket that holds sensitive audit data. As the team lead, you receive the corresponding Amazon SNS notifications for every event in this bucket. After validating the event data over time, you notice that a few events appear to be missing from the notification stream. What is the most likely reason for this behavior, and how can it be avoided in the future?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. If two writes are made to a single non-versioned object at the same time, it is possible that only a single event notification will be sent

    S3 event notifications are delivered at least once, and two near-simultaneous writes to the same non-versioned object can produce only one notification. On the exam, intermittent missing notifications on a frequently updated, non-versioned object signal this behavior; enabling versioning fixes it.

  276. Question 276 of 308To automatically expire and remove bid records from an Amazon DynamoDB table one week after they are written, without consuming additional provisioned throughput or requiring custom scheduled logic, a development team needs to select the right DynamoDB feature. Brackenridge Authority, a cybersecurity consulting firm headquartered in Denver, stores this bid information for competitive contract proposals in the table. Which solution should the team use to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use Time to Live (TTL)

    DynamoDB Time to Live deletes items automatically once a per-item expiration timestamp passes, at no extra cost and without consuming write throughput. Whenever a scenario asks for automatic item expiration after a fixed period, TTL is the expected answer.

  277. Question 277 of 308Amazon DynamoDB currently powers the real-time sales and royalty tracking system used by Novapoint Continental, a book and media publisher, where multiple concurrent updates often target the same item during flash promotions on its digital storefront. To prevent inconsistent inventory or royalty figures during these promotional spikes, the technology team needs an approach that guarantees each read reflects the most recently committed value of an item. Which of the following actions would meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use ConsistentRead = true while performing the GetItem operation for any item

    Setting ConsistentRead = true on GetItem forces a strongly consistent read that reflects all writes completed before the read. ConsistentRead is a read-only parameter, so options applying it to PutItem or UpdateItem are invalid distractors.

  278. Question 278 of 308Timberline Consolidated needs to automate and orchestrate a multi-source, high-volume flow of field sensor data into a scalable, low-maintenance data management pipeline built on AWS services. As an environmental monitoring agency that collects air and water quality readings from hundreds of remote stations, the agency requires that its business rules and transformations execute in a strict, defined sequence and that any failed step be automatically reprocessed without manual intervention. Which AWS service should Timberline Consolidated use to manage and automate the orchestration of these data flows?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. AWS Step Functions

    AWS Step Functions orchestrates steps as a serverless state machine with built-in retry and catch for automatic reprocessing of failed steps. Glue handles ETL and Kinesis handles streaming, but neither provides sequenced workflow orchestration with retries.

  279. Question 279 of 308Ivywood Corporation currently runs its IoT device documentation platform using two separate Amazon S3 buckets: one bucket stores instructional videos for its smart sensor product line, and a second bucket hosts the company's static support website, which embeds those videos on device setup pages. Recently, engineers noticed that visiting a video's URL directly in a browser plays the video without issue, but the same video fails to play when the setup page on the support website tries to load it. What is the root cause of this problem?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Enable CORS

    The video and website buckets are different origins, so the browser blocks the embedded video request unless the video bucket has a CORS configuration allowing the website's origin. If a resource loads by direct URL but fails only when embedded cross-domain, suspect missing CORS.

  280. Question 280 of 308Ivywood Council, a mid-size enterprise software vendor, runs its Linux build servers on Amazon EC2 instances spread across multiple Availability Zones in the us-east-1 Region, with Amazon EBS volumes attached to store build artifacts. A platform team member terminated an idle EC2 instance in the us-east-1a Availability Zone but left its attached EBS volume intact for reuse. A teammate then launched a new Linux EC2 instance in the us-east-1e Availability Zone and tried to attach that same EBS volume, but the attachment request failed. The teammate asks you to explain why the attachment is not possible. Which of the following explanations should you provide?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. EBS volumes are AZ locked

    An EBS volume lives in one Availability Zone and can only attach to instances in that same zone, so a us-east-1a volume cannot attach to a us-east-1e instance. The fix is snapshotting the volume and restoring it in the target zone.

  281. Question 281 of 308Anchor Consolidated's point-of-sale software platform relies on an Application Load Balancer to route incoming transaction traffic to applications hosted on Amazon EC2 instances, with request data stored in an Amazon RDS instance running the Microsoft SQL Server DB engine. As part of new PCI-DSS compliance requirements for its retail merchant customers, the development team needs to capture the original client's IP address for each transaction request. How should the team achieve this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use the header X-Forwarded-For

    Elastic Load Balancing injects the X-Forwarded-For header containing the original client IP into each forwarded request, which the application can read for compliance logging. Access logs are distractors; the requirement is capturing the IP in application logic per request.

  282. Question 282 of 308A recent deployment audit uncovered that several CloudFormation stacks failed when promoted from the primary AWS Region to a new disaster-recovery Region, because resource names were hardcoded for the original Region. Ashgrove Industries, a video conferencing SaaS company that operates the affected platform, needs its CloudFormation template to automatically determine the AWS Region into which it is being deployed, without manual input or external lookups. What is the MOST efficient method to ascertain the Region during deployment of the template?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Utilize the AWS::Region pseudo parameter.

    The AWS::Region pseudo parameter natively resolves to the deployment Region with zero overhead or manual input. AWS::StackId with Fn::Split also technically works, but it is extra processing when a built-in pseudo parameter does the job directly.

  283. Question 283 of 308Orchardvale Authority, a construction and engineering firm headquartered in Portland, runs a multimedia sharing platform that distributes blueprints and site-inspection photos to field engineers. The platform is hosted on Amazon EC2 instances in an Auto Scaling group that serves as the target for an Application Load Balancer (ALB), and the media files are stored in an Amazon S3 bucket. The engineering team is building a request-testing feature that must route a subset of incoming requests to a separate target group running a test version of the platform, without disrupting production traffic. How can this be accomplished most efficiently?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Use ALB content-based routing. Create a separate target group for the test version of the platform and route requests identified by a specific cookie.

    An ALB listener rule can match on a cookie and forward matching requests to a separate target group running the test version, leaving production traffic untouched. Manual routing or a separate Lambda function adds operational overhead the ALB handles natively.

  284. Question 284 of 308Ulverstone Consolidated needs to implement a highly reliable, fully managed caching layer in front of its Amazon RDS database to improve the user experience on its property listing platform. The company, a commercial real estate firm that processes thousands of concurrent property searches daily, must also account for the fact that regenerating cache content is a costly operation. Which of the following is the most appropriate choice?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Implement Amazon ElastiCache for Redis in Cluster Mode

    ElastiCache for Redis in cluster mode is fully managed, highly available with replication and automatic failover, so expensive cached data survives node failures. Memcached lacks persistence and replication, and self-managed Redis on EC2 forfeits the managed reliability requirement.

  285. Question 285 of 308The infrastructure engineering team at Stonebridge Industries, an agricultural cooperative that runs a grain-trading platform with sharp traffic spikes during harvest season, configured an Auto Scaling group with a maximum capacity of 4, a current capacity of 3, and a scaling policy that adds 3 instances. When this scaling policy is executed, what is the expected outcome?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Amazon EC2 Auto Scaling adds only 1 instance to the group

    Auto Scaling caps the result at the group's maximum size, so going from 3 toward a max of 4 adds only 1 instance regardless of the policy requesting 3. Remember the boundary rule: scaling never exceeds maximum or drops below minimum.

  286. Question 286 of 308Greystone Regional needs to guarantee that subscribers always see the newest version of video metadata immediately after a content update, with zero tolerance for stale data. It operates a media streaming platform headquartered in Denver where most traffic is read-heavy catalog browsing. The engineering team has already decided to use Amazon ElastiCache to absorb the heavy read load and has asked you to recommend a caching strategy that satisfies this strict freshness requirement. Which strategy should you recommend?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use a Write Through strategy

    Write Through adds or updates the cache at the same time the database is written, so every read returns the freshest data with no stale window. Lazy Loading, even with TTL, can still serve stale values between the write and the TTL expiry; DAX is DynamoDB-specific, not ElastiCache.

  287. Question 287 of 308Truenorth Associates operates as a semiconductor manufacturer, and a legacy on-premises orchestration application coordinates a fleet of manufacturing-automation workloads deployed on Amazon EC2 instances. The engineering team now needs to use Amazon CloudWatch to monitor and troubleshoot the on-premises orchestration application whenever errors occur. Which solution should the team implement to meet this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure the CloudWatch agent on the on-premises server by using IAM user credentials with permissions for CloudWatch

    The CloudWatch agent can be installed on on-premises servers and authenticated with IAM user access keys that have CloudWatch permissions. CloudWatch Logs cannot directly pull logs from servers, and relaying through EC2 or S3 adds unnecessary steps.

  288. Question 288 of 308Riverstone Union, an automotive manufacturer, operates separate AWS accounts for each of its regional manufacturing divisions, with the North America division and the Europe division each running an independent AWS Elastic Beanstalk environment for their production line management applications. Ahead of a plant consolidation project, the engineering lead for the North America division now needs to migrate that division's Elastic Beanstalk environment into the Europe division's AWS account. As a developer supporting this migration, you have been asked to recommend the correct approach. Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Create a saved configuration in the North America division's account and download it to your local machine. Make the account-specific parameter changes and upload the file to an S3 bucket in the Europe division's account. From the Elastic Beanstalk console, create an application from 'Saved Configurations'

    Elastic Beanstalk saved configurations are YAML templates in S3, so you download, edit account-specific values, upload to the destination account, and create a new environment from Saved Configurations. There is no built-in cross-account import option, making that distractor invalid.

  289. Question 289 of 308To confirm that only authorized IAM roles can manage the encryption keys protecting its operational data, Meridian Cooperative, which operates remote mineral extraction sites across multiple regions, needs to audit the following AWS KMS key policy attached to the customer master key (CMK) that encrypts Amazon EBS volumes on its Amazon EC2 fleet: { "Version": "2012-10-17", "Statement": [ { "Sid": "Allow for use of this Key", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:role/UserRole" }, "Action": [ "kms:GenerateDataKeyWithoutPlaintext", "kms:Decrypt" ], "Resource": "*" }, { "Sid": "Allow for EC2 Use", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:role/UserRole" }, "Action": [ "kms:CreateGrant", "kms:ListGrants", "kms:RevokeGrant" ], "Resource": "*", "Condition": { "StringEquals": { "kms:ViaService": "ec2.us-west-2.amazonaws.com" } } } ] } Which of the following options correctly describes this policy? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. The first statement provides a specified IAM principal the ability to generate a data key and decrypt that data key from the CMK when necessary

    The Principal element names an IAM role ARN, and the first statement grants it kms:GenerateDataKeyWithoutPlaintext and kms:Decrypt, which is exactly what option A describes. A KMS key policy principal is always an IAM entity, never a security group, eliminating the other options.

  290. Question 290 of 308Norwood Collective, an e-learning platform, packages its course-feature Lambda functions using AWS SAM, storing each function's source code alongside its AWS CloudFormation template in a shared build folder before every deployment. A developer has just added a new quiz-grading function to this folder, with the source code saved in a file named index.js next to the following template, and now needs to deploy it using the AWS CLI: AWSTemplateFormatVersion: '2010-09-09' Transform: 'AWS::Serverless-2016-10-31' Resources: NorwoodGradingFunction: Type: AWS::Serverless::Function Properties: Handler: index.handler Runtime: nodejs18.x What does the developer need to do to prepare the template so it can be deployed using an AWS CLI command? Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Run the aws cloudformation package command to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template

    The aws cloudformation package command uploads local artifacts like index.js to S3 and outputs a modified template with the local paths replaced. Commands like compile, create-package, or lambda zip do not exist in the AWS CLI, making them easy eliminations.

  291. Question 291 of 308Dovetail Innovations runs its industrial equipment monitoring platform on Amazon EC2 instances distributed across two Availability Zones, with Availability Zone 1 (AZ1) hosting 2 instances and Availability Zone 2 (AZ2) hosting 8 instances, all registered behind a single Elastic Load Balancer that has cross-zone load balancing enabled. As part of a capacity review, the company's cloud engineering team needs to calculate what percentage of the total traffic each individual instance in AZ1 will receive. Correct answer

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. 10

    With cross-zone load balancing enabled, traffic is spread evenly across all 10 targets regardless of Availability Zone, so each instance gets 10%. Without cross-zone balancing, each zone would get 50% split among its own targets, a common trap.

  292. Question 292 of 308Kestrel National must pinpoint the root cause of intermittent HTTP 501 errors surfacing across its distributed microservices architecture. The company, a supply chain visibility startup headquartered in Austin, Texas, routes all client API calls through Amazon API Gateway, which performs request filtering and caches responses before forwarding them to a set of backend microservices. Users have started reporting these intermittent failures, and the engineering team has been asked to investigate the root cause across the distributed application. Which AWS service should the team use to troubleshoot this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use the AWS X-Ray service

    AWS X-Ray traces requests end-to-end across distributed microservices and builds a service map showing latency and failure points, so the team can isolate the source of the HTTP 501 errors. CloudWatch shows metrics and logs but cannot follow a single request through multiple services.

  293. Question 293 of 308The platform engineering team at Everstone Federation, a public university managing student information systems across multiple campuses, is deploying a new microservices-based application on Amazon ECS. The team needs to select a task placement strategy that will minimize the number of Amazon EC2 instances used to host the running tasks, in order to reduce infrastructure costs. Which task placement strategy should the team use?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. binpack

    The binpack placement strategy packs tasks onto instances with the least available CPU or memory, filling existing instances before adding new ones, which minimizes instance count and cost. Spread distributes tasks for high availability and actually uses more instances.

  294. Question 294 of 308The data engineering team at Bluecrest Council, a property and casualty insurance company, manages a claims-history table in Amazon DynamoDB. Ahead of a scheduled compliance audit, the team needs to export this table's data to Amazon S3 so an auditor can download the export locally for offline review. Which of the following options is NOT a feasible way to accomplish this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use the DynamoDB on-demand backup capability to write to Amazon S3 and download it locally

    DynamoDB on-demand backups are stored in DynamoDB-managed storage, not a customer-accessible S3 bucket, so they cannot be downloaded locally. Glue, Data Pipeline, and Hive on EMR are all valid export paths to S3.

  295. Question 295 of 308A recent surge in ride requests during peak commute hours caused a partial service outage when a new application version was pushed to every Amazon EC2 instance at the same time. To prevent this from happening again, Novapoint Holdings, a ride-sharing platform headquartered in Austin, Texas, wants new application versions deployed to different sets of EC2 instances at different times, allowing for a smooth transition between deployment waves. Using AWS CodeDeploy, which of the following options will allow Novapoint Holdings to achieve this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. CodeDeploy Deployment Groups

    A single CodeDeploy application can have multiple deployment groups, letting the same revision roll out to different sets of instances at different times with per-group configuration and rollback settings. Multiple CodeDeploy applications would fragment the deployment rather than stage it.

  296. Question 296 of 308Foxglove Works, a renewable energy company that operates solar farm monitoring dashboards and produces video training content for field technicians across Brazil, wants its Brazilian users to be served exclusively by servers located in Brazil. Users located outside Brazil should not be able to resolve or access these servers through DNS queries at all. Which Amazon Route 53 routing policy meets this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Geolocation

    Geolocation routing routes based on the user's geographic location and can return no answer for locations outside Brazil. Latency routing optimizes performance and would still resolve for everyone, failing the access restriction requirement.

  297. Question 297 of 308Ironclad Ventures wants to identify the root cause of a sudden outage affecting its online banking portal. A developer at the regional banking institution has just finished configuring an Application Load Balancer for a fleet of Amazon EC2 instances that power the portal, but as soon as testing begins, he realizes he forgot to associate any target groups with the ALB. Which HTTP error code should he expect to see in his debug logs?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. HTTP 503

    HTTP 503 is correct because an Application Load Balancer returns 503 Service Unavailable when a target group has no registered targets or all targets are unhealthy. Exam cue: 504 points to target timeouts, 500 to internal errors, and 403 to blocked requests, so 503 is the empty-target-group signal.

  298. Question 298 of 308Harborview Ventures, a music streaming platform, runs a production Amazon API Gateway API that delivers song catalog and playback licensing data to its mobile and web clients. The development team now wants to add request validation to this API, but before rolling the change out to production, they want to test the new validation behavior using a tool that sends test requests, while keeping operational overhead to a minimum. Which approach should the developer take?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Modify the existing API to include request validation, deploy this change to a new API Gateway stage, test it there, and then deploy the validated configuration to the production stage.

    API Gateway stages let you deploy the same API configuration to a separate stage and test it there with minimal overhead before promoting it to production. Cloning or rebuilding an entire API creates unnecessary work, so the new-stage option is the low-overhead answer.

  299. Question 299 of 308Crestline Regional, a food and beverage producer, hosts its corporate website as a static site in Amazon S3. The website bucket (Bucket A) is used by headquarters marketing staff to publish recipe and nutrition content, and it references web font files stored in a separate Amazon S3 bucket (Bucket B). The development team notices that the web fonts from Bucket B are not loading when users browse the website. Which of the following solutions would resolve this issue?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure a CORS configuration on Bucket B, which hosts the web fonts, to allow the origin of Bucket A to make requests

    A CORS rule on Bucket B is required because CORS is enforced by the browser on the bucket serving the cross-origin resource, here the web fonts. Exam cue: put the CORS configuration on the bucket being fetched from, never on the bucket hosting the page making the request.

  300. Question 300 of 308Granite Holdings, an industrial manufacturing company, keeps its static design and engineering drawings in Amazon S3 buckets, with one AWS account assigned to each business unit. The Finance business unit at Granite Holdings must give the Human Resources business unit read access to objects stored in Finance's S3 bucket so HR can complete a payroll audit. Which of the following options is NOT a feasible approach for cross-account access to S3 bucket objects?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Use IAM roles and resource-based policies to delegate access across accounts within different partitions via programmatic access only

    IAM roles and resource-based policies cannot delegate access across AWS partitions such as aws, aws-cn, or aws-us-gov, so that option is infeasible. Cross-account roles, bucket policies with IAM policies, and ACLs are all valid cross-account mechanisms within a partition.

  301. Question 301 of 308An API that forwards requests to a downstream AWS Lambda function needs an access control mechanism enforced at the Amazon API Gateway layer before invocation. Westfield Systems, a mining and minerals company that exposes equipment telemetry through this API, is evaluating authentication options for its Amazon API Gateway deployment. Which of the following mechanisms CANNOT be used for authenticating and authorizing access to the API?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. AWS Security Token Service (STS)

    AWS STS issues temporary credentials and is not a native API Gateway authorizer, so it cannot directly control access to API requests. Remember the four valid API Gateway options: IAM policies, Cognito user pools, Lambda authorizers, and resource policies.

  302. Question 302 of 308A wave of customer complaints about failed payment confirmations led engineers at Amberfield Commission to investigate their web application's load balancing behavior. The payment processing company runs its application in the us-east-1 region across three Availability Zones (us-east-1a, us-east-1b, and us-east-1c), with incoming traffic distributed by a load balancer. During the investigation, the team discovered that when an EC2 instance hosting the application crashes, the load balancer continues to route traffic to that instance, causing intermittent transaction failures for end users. Which of the following actions should the development team take to minimize this problem?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Enable Health Checks

    Enabling health checks lets the load balancer detect the crashed instance, mark it unhealthy, and stop routing traffic to it. Multi-AZ improves resilience but does not stop the balancer from sending requests to a specific failed instance.

  303. Question 303 of 308The platform engineering team at Clearwater Labs, a public university, is deploying a microservices application on AWS Fargate using Amazon ECS. The application requires certain environment variables to be passed to a container so that the application can initialize correctly. How should the environment variables be passed to the container?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use advanced container definition parameters and define environment variables under the environment parameter within the task definition.

    Environment variables are defined as key-value pairs in the environment parameter of the container definition inside the ECS task definition. Exam cue: environment variables belong in the task definition, never the service definition; the secrets parameter is for sensitive values from Secrets Manager or SSM.

  304. Question 304 of 308Brackenridge Federation, a regional banking institution, runs its core transaction-processing microservices as Amazon ECS tasks on AWS Fargate. These tasks are typically distributed across multiple Availability Zones (AZs), and the underlying workloads require persistent, shared data volumes that remain accessible across those Availability Zones. Which of the following solutions is the best choice for these workloads?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Amazon EFS volumes

    Amazon EFS provides persistent, shared file storage that multiple ECS tasks can mount simultaneously, even across Availability Zones, and it works with both Fargate and EC2 launch types. Docker volumes and bind mounts lack this cross-AZ shared access.

  305. Question 305 of 308At Brackenridge Guild, a logistics and freight company, a development team lead granted broad permissions to team members at the start of a project cycle to encourage experimentation with new AWS services and features. Now that the project is progressing, she wants to ensure the team has only the minimum permissions required. Which AWS service will help her identify unused IAM roles and permissions so she can remove them without disrupting any active service?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. IAM Access Analyzer

    IAM Access Analyzer's unused access analysis finds unused roles, access keys, passwords, and permissions, enabling safe removal toward least privilege. Trusted Advisor offers broad best-practice checks but does not track unused IAM access over time.

  306. Question 306 of 308Oakhaven Cooperative, a food and beverage producer running a regional order-processing platform, has deployed an internet-facing Application Load Balancer inside a VPC with the public DNS name oakhaven-alb-1234567890.us-east-1.elb.amazonaws.com. Client applications capture the load balancer's DNS name at startup, resolve it to an IP address, and cache that IP so all subsequent requests reference the IP directly. The applications work correctly at first but unexpectedly stop working after some time. What is the reason for this behavior?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The load balancer is highly available and its public IP address may change over time. The DNS name remains constant

    Elastic Load Balancing nodes can have their IP addresses changed as AWS scales or replaces them, while the DNS name stays constant for the load balancer's lifetime. Always resolve the DNS name at connection time rather than caching the IP address.

  307. Question 307 of 308A routine security audit uncovered that a newly onboarded developer had accidentally terminated a shared EC2 instance used for course video transcoding, disrupting several e-learning modules for students. To prevent a repeat of this incident, Vireo Coastal's development team lead is setting up a restricted developer IAM group and has configured a test developer profile on a workstation. Which of the following options should the team lead execute to confirm that this developer profile truly cannot terminate EC2 instances, without actually terminating any real instance during the test?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Use the AWS CLI –dry-run option

    The AWS CLI –dry-run option checks permissions without performing the action, returning DryRunOperation when allowed and UnauthorizedOperation when denied. Note the option list is broken, with the question prompt placed as option A and only one real choice present.

  308. Question 308 of 308A recent internal cost audit flagged unpredictable and inefficient compute spending tied to container workloads with highly variable demand. Northbridge Industries, a state government agency, runs many microservices applications using Docker containers and is planning to migrate them to Amazon ECS. Following the audit findings, the agency wants a billing model based on per-running-task charges rather than for provisioned infrastructure. Which solution is the BEST fit for the agency's requirements?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Amazon ECS with the Fargate launch type

    The Fargate launch type bills only for the vCPU and memory each running task consumes, matching the per-task billing requirement. Note the option list is broken, with the question prompt placed as option A and only one real choice present.

New video rounds on @CertPunch.

Study on mobile

Get CertPunch for iOS or Android.

Website sessions are saved in this browser tab. They do not transfer to the apps.

Scroll to Top