WGU D321 AWS DEVELOPER DVA-C02
COMPREHENSIVE STUDY GUIDE 2026 FULL
QUESTIONS AND SOLUTIONS GRADED A+
◍ When can we change SQS queue.
Answer: Only when creating it
◍ Further clarifies what the metric is and what data it stores.
Answer: dimension
◍ A company has an Amazon S3 bucket that contains sensitive data. The data
must be encrypted in transit and at rest. The company encrypts the data in
the S3 bucket by using an AWS Key Management Service (AWS KMS)
key. A developer needs to grant several other AWS accounts the permission
to use the S3 GetObject operation to retrieve the data from the S3 bucket.
How can the developer enforce that all requests to retrieve the data provide
encryption in transit?.
Answer: Define a resource-based policy on the S3 bucket to deny access
when a request meets the condition "aws:SecureTransport": "false".
◍ Both the read and write operations to your DynamoDB table are throttled,
which are causing errors in your application. You checked the CloudWatch
metrics but they indicate that the consumed capacity units haven’t exceeded
the provisioned capacity units. Upon further investigation, you found that
the issue is caused by a “hot partition” in your table in which a certain
partition is accessed by your downstream applications much more frequently
than other partitions.What should you do to resolve this issue in your
application with MINIMAL cost? (Select TWO.).
Answer: - Refactor your application to distribute your read and write
operations as evenly as possible across your table.- Implement error retries
and exponential backoff.
,◍ When the wait time for the ReceiveMessage API action is greater than 0.
Answer: long polling
◍ The developer has built a real-time IoT device monitoring application that
leverages Amazon Kinesis Data Stream to ingest data. The application uses
several EC2 instances for processing. Recently, the developer has observed
a steady increase in the rate of data flowing into the stream, indicating that
the stream’s capacity must be scaled up to sustain optimal
performance.What should the developer do to increase the capacity of the
stream?.
Answer: Split every shard in the stream.
◍ A developer needs to migrate an online retail application to AWS to handle
an anticipated increase in traffic. The application currently runs on two
servers: one server for the web application and another server for the
database. The web server renders webpages and manages session state in
memory. The database server hosts a MySQL database that contains order
details. When traffic to the application is heavy, the memory usage for the
web server approaches 100% and the application slows down considerably.
The developer has found that most of the memory increase and performance
decrease is related to the load of managing additional user sessions. For the
web server migration, the developer will use Amazon EC2 instances with an
Auto Scaling group behind an Application Load Balancer.Which additional
set of changes should the developer make to the application to improve the
application's performance?.
Answer: Use an EC2 instance to host the MySQL database. Store the session
data and the application data in the MySQL database.
◍ A developer is writing an AWS Lambda function. The developer wants to
log key events that occur while the Lambda function runs. The developer
wants to include a unique identifier to associate the events with a specific
function invocation. The developer adds the following code to the Lambda
function:function handler (event, context) {}Which solution will meet this
requirement?.
, Answer: Obtain the request identifier from the AWS request ID field in the
context object. Configure the application to write logs to a file.
◍ A developer noticed that though the application can process multiple
messages per invocation, it is only processing one at a time..
Answer: Call the ReceiveMessage API to set MaxNumberOfMessages to a
value greater than the default of 1
◍ AWS Elastic Beanstalk application in a file name extension.
Answer: config extension
◍ A company is offering APIs as a service over the internet to provide
unauthenticated read access to statistical information that is updated daily.
The company uses Amazon API Gateway and AWS Lambda to develop the
APIs. The service has become popular, and the company wants to enhance
the responsiveness of the APIs.Which action can help the company achieve
this goal?.
Answer: Enable API caching in API Gateway.
◍ A web application hosted in Elastic Beanstalk has a configuration file
named .ebextensions/debugging.config which has the following
content:option_settings:aws:elasticbeanstalk:xray:XRayEnabled: trueFor its
database tier, it uses RDS with Multi-AZ deployments configuration and
Read Replicas. There is a new requirement to record calls that your
application makes to RDS and other internal or external HTTP web APIs.
The tracing information should also include the actual SQL database queries
sent by the application, which can be searched using the filter expressions in
the X-Ray Console.Which of the following should you do to satisfy the
above task?.
Answer: Add annotations in the subsegment section of the segment
document.
◍ Amazon Kinesis Data Firehose is the easiest way to load streaming data
into.
Answer: ata stores and analytics tools
, ◍ EventBridge event bus.
Answer: in the affiliate AWS accounts getting the events
◍ A company has an application that is using CloudFront to serve their static
contents to their users around the globe. They are receiving a number of bad
reviews from their customers lately because it takes a lot of time to log into
their website. Sometimes, their users are also getting HTTP 504 errors
which is why the developer was instructed to fix this problem
immediately.Which of the following combination of options should the
developer use together to set up a cost-effective solution for this scenario?
(Select TWO.).
Answer: - Customize the content that the CloudFront web distribution
delivers to your users using Lambda@Edge, which allows your Lambda
functions to execute the authentication process in AWS locations closer to
the users.- Configure an origin failover by creating an origin group with two
origins. Specify one as the primary origin and the other as the second origin
which CloudFront automatically switches to when the primary origin returns
specific HTTP status code failure responses.
◍ What step will allow the producers to better utilize the available shards and
increase write throughput to the Kinesis data stream?.
Answer: Install the Kinesis Producer Library (KPL) for ingesting data into
the stream
◍ A company is running a custom application on a set of on-premises Linux
servers that are accessed using Amazon API Gateway. AWS X-Ray tracing
has been enabled on the API test stage. How can a developer enable X-Ray
tracing on the on-premises servers with the LEAST amount of
configuration?.
Answer: Install and run the X-Ray daemon on the on-premises servers to
capture and relay the data to the X-Ray service.
◍ To reduce the cost of API actions performed on an Amazon SQS queue, a
Developer has decided to implement long polling. Which of the following
modifications should the Developer make to the API actions?.
COMPREHENSIVE STUDY GUIDE 2026 FULL
QUESTIONS AND SOLUTIONS GRADED A+
◍ When can we change SQS queue.
Answer: Only when creating it
◍ Further clarifies what the metric is and what data it stores.
Answer: dimension
◍ A company has an Amazon S3 bucket that contains sensitive data. The data
must be encrypted in transit and at rest. The company encrypts the data in
the S3 bucket by using an AWS Key Management Service (AWS KMS)
key. A developer needs to grant several other AWS accounts the permission
to use the S3 GetObject operation to retrieve the data from the S3 bucket.
How can the developer enforce that all requests to retrieve the data provide
encryption in transit?.
Answer: Define a resource-based policy on the S3 bucket to deny access
when a request meets the condition "aws:SecureTransport": "false".
◍ Both the read and write operations to your DynamoDB table are throttled,
which are causing errors in your application. You checked the CloudWatch
metrics but they indicate that the consumed capacity units haven’t exceeded
the provisioned capacity units. Upon further investigation, you found that
the issue is caused by a “hot partition” in your table in which a certain
partition is accessed by your downstream applications much more frequently
than other partitions.What should you do to resolve this issue in your
application with MINIMAL cost? (Select TWO.).
Answer: - Refactor your application to distribute your read and write
operations as evenly as possible across your table.- Implement error retries
and exponential backoff.
,◍ When the wait time for the ReceiveMessage API action is greater than 0.
Answer: long polling
◍ The developer has built a real-time IoT device monitoring application that
leverages Amazon Kinesis Data Stream to ingest data. The application uses
several EC2 instances for processing. Recently, the developer has observed
a steady increase in the rate of data flowing into the stream, indicating that
the stream’s capacity must be scaled up to sustain optimal
performance.What should the developer do to increase the capacity of the
stream?.
Answer: Split every shard in the stream.
◍ A developer needs to migrate an online retail application to AWS to handle
an anticipated increase in traffic. The application currently runs on two
servers: one server for the web application and another server for the
database. The web server renders webpages and manages session state in
memory. The database server hosts a MySQL database that contains order
details. When traffic to the application is heavy, the memory usage for the
web server approaches 100% and the application slows down considerably.
The developer has found that most of the memory increase and performance
decrease is related to the load of managing additional user sessions. For the
web server migration, the developer will use Amazon EC2 instances with an
Auto Scaling group behind an Application Load Balancer.Which additional
set of changes should the developer make to the application to improve the
application's performance?.
Answer: Use an EC2 instance to host the MySQL database. Store the session
data and the application data in the MySQL database.
◍ A developer is writing an AWS Lambda function. The developer wants to
log key events that occur while the Lambda function runs. The developer
wants to include a unique identifier to associate the events with a specific
function invocation. The developer adds the following code to the Lambda
function:function handler (event, context) {}Which solution will meet this
requirement?.
, Answer: Obtain the request identifier from the AWS request ID field in the
context object. Configure the application to write logs to a file.
◍ A developer noticed that though the application can process multiple
messages per invocation, it is only processing one at a time..
Answer: Call the ReceiveMessage API to set MaxNumberOfMessages to a
value greater than the default of 1
◍ AWS Elastic Beanstalk application in a file name extension.
Answer: config extension
◍ A company is offering APIs as a service over the internet to provide
unauthenticated read access to statistical information that is updated daily.
The company uses Amazon API Gateway and AWS Lambda to develop the
APIs. The service has become popular, and the company wants to enhance
the responsiveness of the APIs.Which action can help the company achieve
this goal?.
Answer: Enable API caching in API Gateway.
◍ A web application hosted in Elastic Beanstalk has a configuration file
named .ebextensions/debugging.config which has the following
content:option_settings:aws:elasticbeanstalk:xray:XRayEnabled: trueFor its
database tier, it uses RDS with Multi-AZ deployments configuration and
Read Replicas. There is a new requirement to record calls that your
application makes to RDS and other internal or external HTTP web APIs.
The tracing information should also include the actual SQL database queries
sent by the application, which can be searched using the filter expressions in
the X-Ray Console.Which of the following should you do to satisfy the
above task?.
Answer: Add annotations in the subsegment section of the segment
document.
◍ Amazon Kinesis Data Firehose is the easiest way to load streaming data
into.
Answer: ata stores and analytics tools
, ◍ EventBridge event bus.
Answer: in the affiliate AWS accounts getting the events
◍ A company has an application that is using CloudFront to serve their static
contents to their users around the globe. They are receiving a number of bad
reviews from their customers lately because it takes a lot of time to log into
their website. Sometimes, their users are also getting HTTP 504 errors
which is why the developer was instructed to fix this problem
immediately.Which of the following combination of options should the
developer use together to set up a cost-effective solution for this scenario?
(Select TWO.).
Answer: - Customize the content that the CloudFront web distribution
delivers to your users using Lambda@Edge, which allows your Lambda
functions to execute the authentication process in AWS locations closer to
the users.- Configure an origin failover by creating an origin group with two
origins. Specify one as the primary origin and the other as the second origin
which CloudFront automatically switches to when the primary origin returns
specific HTTP status code failure responses.
◍ What step will allow the producers to better utilize the available shards and
increase write throughput to the Kinesis data stream?.
Answer: Install the Kinesis Producer Library (KPL) for ingesting data into
the stream
◍ A company is running a custom application on a set of on-premises Linux
servers that are accessed using Amazon API Gateway. AWS X-Ray tracing
has been enabled on the API test stage. How can a developer enable X-Ray
tracing on the on-premises servers with the LEAST amount of
configuration?.
Answer: Install and run the X-Ray daemon on the on-premises servers to
capture and relay the data to the X-Ray service.
◍ To reduce the cost of API actions performed on an Amazon SQS queue, a
Developer has decided to implement long polling. Which of the following
modifications should the Developer make to the API actions?.