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

Page 19 of 116

A company runs an application on AWS. The company deployed the application on Amazon
EC2 instances. The application stores data on Amazon
Aurora.
The application recently logged multiple application-specific custom DECRYP_ERROR errors to Amazon CloudWatch logs. The company did not detect the issue until the automated tests that run every 30 minutes failed. A developer must implement a solution that will monitor for the custom errors and alert a development team in real time when these errors occur in the production environment.
Which solution will meet these requirements with the LEAST operational overhead?

  1. Configure the application to create a custom metric and to push the metric to CloudWatch. Create an AWS CloudTrail alarm. Configure the CloudTrail alarm to use an Amazon Simple Notification Service (Amazon SNS) topic to send notifications.
  2. Create an AWS Lambda function to run every 5 minutes to scan the CloudWatch logs for the keyword DECRYP_ERROR. Configure the Lambda function to use
    Amazon Simple Notification Service (Amazon SNS) to send a notification.
  3. Use Amazon CloudWatch Logs to create a metric filter that has a filter pattern for DECRYP_ERROR. Create a CloudWatch alarm on this metric for a threshold >=1. Configure the alarm to send Amazon Simple Notification
    Service (Amazon SNS) notifications.
  4. Install the CloudWatch unified agent on the EC2 instance. Configure the application to generate a metric for the keyword DECRYP_ERROR errors.
    Configure the agent to send Amazon Simple Notification Service (Amazon SNS)
    notifications.

Answer(s): C



A developer created an AWS Lambda function that accesses resources in a VPC. The
Lambda function polls an Amazon Simple Queue Service (Amazon SQS) queue for new messages through a VPC endpoint. Then the function calculates a rolling average of the numeric values that are contained in the messages. After initial tests of the
Lambda function, the developer found that the value of the rolling average that the function returned was not accurate.
How can the developer ensure that the function calculates an accurate rolling average?

  1. Set the function's reserved concurrency to 1. Calculate the rolling average in the function. Store the calculated rolling average in Amazon ElastiCache.
  2. Modify the function to store the values in Amazon ElastiCache.
    When the function initializes, use the previous values from the cache to calculate the rolling average.
  3. Set the function's provisioned concurrency to 1. Calculate the rolling average in the function. Store the calculated rolling average in Amazon
    ElastiCache.
  4. Modify the function to store the values in the function's layers.
    When the function initializes, use the previously stored values to calculate the rolling average.

Answer(s): A



A developer is writing unit tests for a new application that will be deployed on
AWS. The developer wants to validate all pull requests with unit tests and merge the code with the main branch only when all tests pass.
The developer stores the code in AWS CodeCommit and sets up AWS CodeBuild to run the unit tests. The developer creates an AWS Lambda function to start the CodeBuild task. The developer needs to identify the CodeCommit events in an Amazon EventBridge event that can invoke the Lambda function when a pull request is created or updated.
Which CodeCommit event will meet these requirements?





Answer(s): C



A developer deployed an application to an Amazon EC2 instance. The application needs to know the public IPv4 address of the instance.
How can the application find this information?

  1. Query the instance metadata from http://169.254.169.254/latest/meta-data/.
  2. Query the instance user data from http://169.254.169.254/latest/user-data/.
  3. Query the Amazon Machine Image (AMI) information from http://169.254.169.254/latest/meta-data/ami/.
  4. Check the hosts file of the operating system.

Answer(s): A



Page 19 of 116



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