Free AWS Certified Developer - Associate DVA-C02 Exam Braindumps (page: 2)

Page 2 of 105

A developer 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?

  1. The Lambda function's concurrency limit has been exceeded.
  2. DynamoDB table requires a global secondary index (GSI) to support writes.
  3. The Lambda function does not have IAM permissions to write to DynamoDB.
  4. The DynamoDB table is not running in the same Availability Zone as the Lambda function.

Answer(s): C

Explanation:

The Lambda function needs to have the appropriate IAM permissions to write to the DynamoDB table. If the function does not have these permissions, it will fail when it attempts to write to the table.



A developer 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?

  1. Create a separate CloudFormation template for each EC2 instance type in the list.
  2. In the Resources section of the CloudFormation template, create resources for each EC2 instance type in the list.
  3. In the CloudFormation template, create a separate parameter for each EC2 instance type in the list.
  4. In the CloudFormation template, create a parameter with the list of EC2 instance types as AllowedValues.

Answer(s): D

Explanation:

Option D is the correct answer. 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.

Option A is not a scalable solution as it requires creating a separate CloudFormation template for each EC2 instance type, which can become cumbersome and difficult to manage as the number of approved instance types grows.

Option B is not necessary as creating resources for each EC2 instance type in the list would not enforce the requirement to choose only from the approved list. It would also increase the complexity of the template and make it difficult to manage.

Option C is not ideal as it would require creating a separate parameter for each EC2 instance type, which can become difficult to manage as the number of approved instance types grows. Also, it does not enforce the requirement to choose only from the approved list.


Reference:

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TroubleshootingThrottling.html



A developer 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.)

  1. Retry the batch operation immediately.
  2. Retry the batch operation with exponential backoff and randomized delay.
  3. Update the application to use an AWS software development kit (AWS SDK) to make the requests.
  4. Increase the provisioned read capacity of the DynamoDB tables that the operation accesses.
  5. Increase the provisioned write capacity of the DynamoDB tables that the operation accesses.

Answer(s): B,C

Explanation:

If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. AWS SDKs typically include functionality for retrying requests with exponential backoff.

If questions indicate ProvisionedThroughputExceededException, then we should try to RCU, WCU.


Reference:

https://docs.aws.amazon.com/general/latest/gr/api-retries.html



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?

  1. Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the X-Ray service.
  2. Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service.
  3. Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call.
  4. Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call.

Answer(s): B

Explanation:

Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service is the correct option. The X-Ray daemon can be installed and configured on the on-premises servers to capture data and send it to the X-Ray service. This requires minimal configuration and setup. Option A is incorrect because while the X-Ray SDK can be used to capture data on the on-premises servers, it requires more configuration and development effort than the X-Ray daemon. Option C and D are also incorrect because they involve setting up an AWS Lambda function, which is not necessary for enabling X-Ray tracing on the on-premises servers.


Reference:

https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html



Page 2 of 105



Post your Comments and Discuss Amazon AWS Certified Developer - Associate DVA-C02 exam with other Community members:

Ernesto commented on August 26, 2024
Prepared and passed this exam. Valid question and very tough exam. So good luck.
Spain
upvote