Amazon DVA-C02 - AWS Certified Developer - Associate Certification Exam
Question #1 (Topic: demo questions)
Acompany 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?
Correct Answer: B
Explanation:
The X-Ray daemon is a software that collects trace data from the X-Ray SDK and relays it to the X-Ray
The X-Ray daemon is a software that collects trace data from the X-Ray SDK and relays it to the X-Ray
service. The X-Ray daemon can run on any platform that supports Go, including Linux, Windows, and
macOS. The developer can install and run the X-Ray daemon on the on-premises servers to capture
and relay the data to the X-Ray service with minimal configuration. The X-Ray SDK is used to
instrument the application code, not to capture and relay data. The Lambda function solutions are
more complex and require additional configuration.
Reference:
[AWS X-Ray concepts - AWS X-Ray]
[Setting up AWS X-Ray - AWS X-Ray]
Question #2 (Topic: demo questions)
Adeveloper has an application that makes batch requests directly to Amazon DynamoDB by using
the BatchGetItem low-level API operation. The responses frequently return values in the
UnprocessedKeys element.
Which actions should the developer take to increase the resiliency of the application when the batch
response includes values in UnprocessedKeys? (Choose two.)
Correct Answer: B, C
Explanation:
The UnprocessedKeys element indicates that the BatchGetItem operation did not process all of the
The UnprocessedKeys element indicates that the BatchGetItem operation did not process all of the
requested items in the current response. This can happen if the response size limit is exceeded or if
the table’s provisioned throughput is exceeded. To handle this situation, the developer should retry
the batch operation with exponential backoff and randomized delay to avoid throttling errors and
reduce the load on the table. The developer should also use an AWS SDK to make the requests, as
the SDKs automatically retry requests that return UnprocessedKeys.
Reference:
[BatchGetItem - Amazon DynamoDB]
[Working with Queries and Scans - Amazon DynamoDB]
Question #3 (Topic: demo questions)
Adeveloper is creating an AWS CloudFormation template to deploy Amazon EC2 instances across
multiple AWS accounts. The developer must choose the EC2 instances from a list of approved
instance types.
How can the developer incorporate the list of approved instance types in the CloudFormation
template?
Correct Answer: D
Explanation:
In the CloudFormation template, the developer should create a parameter with the list of approved
In the CloudFormation template, the developer should create a parameter with the list of approved
EC2 instance types as AllowedValues. This way, users can select the instance type they want to use
when launching the CloudFormation stack, but only from the approved list.
Question #4 (Topic: demo questions)
Adeveloper has created an AWS Lambda function that is written in Python. The Lambda function
reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table. The function is
successfully invoked from an S3 event notification when an object is created. However, the function
fails when it attempts to write to the DynamoDB table.
What is the MOST likely cause of this issue?
Correct Answer: C
Explanation:
The most likely cause is that the AWS Lambda function does not have the required IAM permissions to write to the Amazon DynamoDB table. While the function is successfully triggered by the Amazon S3 event notification, which indicates that its basic execution role and S3 permissions are correct, the failure occurs specifically when attempting a DynamoDB write operation. This strongly points to missing or insufficient permissions in the Lambda execution role, such as lacking
The most likely cause is that the AWS Lambda function does not have the required IAM permissions to write to the Amazon DynamoDB table. While the function is successfully triggered by the Amazon S3 event notification, which indicates that its basic execution role and S3 permissions are correct, the failure occurs specifically when attempting a DynamoDB write operation. This strongly points to missing or insufficient permissions in the Lambda execution role, such as lacking dynamodb:PutItem, UpdateItem, or Write access on the table. In AWS, Lambda functions must explicitly be granted IAM permissions for every service they interact with, and without proper DynamoDB permissions, write operations will fail even though the function itself runs successfully.
Question #5 (Topic: demo questions)
Acompany is building a scalable data management solution by using AWS services to improve the
speed and agility of development. The solution will ingest large volumes of data from various sources
and will process this data through multiple business rules and transformations.
The solution requires business rules to run in sequence and to handle reprocessing of data if errors
occur when the business rules run. The company needs the solution to be scalable and to require the
least possible maintenance.
Which AWS service should the company use to manage and automate the orchestration of the data
flows to meet these requirements?
Correct Answer: B
Explanation: