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

Page 17 of 116

A developer is building a new application on AWS. The application uses an AWS Lambda function that retrieves information from an Amazon DynamoDB table. The developer hard coded the DynamoDB table name into the Lambda function code. The table name might change over time. The developer does not want to modify the Lambda code if the table name changes.
Which solution will meet these requirements MOST efficiently?

  1. Create a Lambda environment variable to store the table name. Use the standard method for the programming language to retrieve the variable.
  2. Store the table name in a file. Store the file in the /tmp folder. Use the
    SDK for the programming language to retrieve the table name.
  3. Create a file to store the table name. Zip the file and upload the file to the Lambda layer. Use the SDK for the programming language to retrieve the table name.
  4. Create a global variable that is outside the handler in the Lambda function to store the table name.

Answer(s): A



A company has a critical application on AWS. The application exposes an HTTP API by using Amazon API Gateway. The API is integrated with an AWS Lambda function. The application stores data in an Amazon RDS for MySQL DB instance with 2 virtual CPUs
(vCPUs) and 64 GB of
RAM.
Customers have reported that some of the API calls return HTTP 500 Internal Server Error responses. Amazon CloudWatch Logs shows errors for “too many connections.” The errors occur during peak usage times that are unpredictable.
The company needs to make the application resilient. The database cannot be down outside of scheduled maintenance hours.
Which solution will meet these requirements?

  1. Decrease the number of vCPUs for the DB instance. Increase the max_connections setting.
  2. Use Amazon RDS Proxy to create a proxy that connects to the DB instance.
    Update the Lambda function to connect to the proxy.
  3. Add a CloudWatch alarm that changes the DB instance class when the number of connections increases to more than 1,000.
  4. Add an Amazon EventBridge rule that increases the max_connections setting of the DB instance when CPU utilization is above 75%.

Answer(s): B



A company has installed smart meters in all its customer locations. The smart meters measure power usage at 1-minute intervals and send the usage readings to a remote endpoint for collection. The company needs to create an endpoint that will receive the smart meter readings and store the readings in a database. The company wants to store the location ID and timestamp information.
The company wants to give its customers low-latency access to their current usage and historical usage on demand. The company expects demand to increase significantly. The solution must not impact performance or include downtime while scaling.
Which solution will meet these requirements MOST cost-effectively?

  1. Store the smart meter readings in an Amazon RDS database. Create an index on the location ID and timestamp columns. Use the columns to filter on the customers' data.
  2. Store the smart meter readings in an Amazon DynamoDB table. Create a composite key by using the location ID and timestamp columns. Use the columns to filter on the customers' data.
  3. Store the smart meter readings in Amazon ElastiCache for Redis. Create a
    SortedSet key by using the location ID and timestamp columns. Use the columns to filter on the customers' data.
  4. Store the smart meter readings in Amazon S3. Partition the data by using the location ID and timestamp columns. Use Amazon Athena to filter on the customers' data.

Answer(s): B



A company is building a serverless application that uses AWS Lambda functions. The company needs to create a set of test events to test Lambda functions in a development environment. The test events will be created once and then will be used by all the developers in an IAM developer group. The test events must be editable by any of the IAM users in the IAM developer group.
Which solution will meet these requirements?

  1. Create and store the test events in Amazon S3 as JSON objects. Allow S3
    bucket access to all IAM users.
  2. Create the test events. Configure the event sharing settings to make the test events shareable.
  3. Create and store the test events in Amazon DynamoDB. Allow access to
    DynamoDB by using IAM roles.
  4. Create the test events. Configure the event sharing settings to make the test events private.

Answer(s): B



Page 17 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