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

Page 53 of 116

A developer is creating an AWS CloudFormation stack. The stack contains IAM
resources with custom names.
When the developer tries to deploy the stack, they receive an InsufficientCapabilities error.
What should the developer do to resolve this issue?

  1. Specify the CAPABILITY_AUTO_EXPAND capability in the CloudFormation stack.
  2. Use an administrators role to deploy IAM resources with CloudFormation.
  3. Specify the CAPABILITY_IAM capability in the CloudFormation stack.
  4. Specify the CAPABILITY_NAMED_IAM capability in the CloudFormation stack.

Answer(s): D



A company uses Amazon API Gateway to expose a set of APIs to customers. The APIs have caching enabled in API Gateway. Customers need a way to invalidate the cache for each API when they test the API.
What should a developer do to give customers the ability to invalidate the API cache?

  1. Ask the customers to use AWS credentials to call the InvalidateCache API
    operation.
  2. Attach an InvalidateCache policy to the IAM execution role that the customers use to invoke the API. Ask the customers to send a request that contains the Cache-Control:max-age=0 HTTP header when they make an API call.
  3. Ask the customers to use the AWS SDK API Gateway class to invoke the
    InvalidateCache API operation.
  4. Attach an InvalidateCache policy to the IAM execution role that the customers use to invoke the API. Ask the customers to add the
    INVALIDATE_CACHE query string parameter when they make an API call.

Answer(s): B



A developer is creating an AWS Lambda function that will generate and export a file.
The function requires 100 MB of temporary storage for temporary files while running.
These files will not be needed after the function is complete.
How can the developer MOST efficiently handle the temporary files?

  1. Store the files in Amazon Elastic Block Store (Amazon EBS) and delete the files at the end of the Lambda function.
  2. Copy the files to Amazon Elastic File System (Amazon EFS) and delete the files at the end of the Lambda function.
  3. Store the files in the /tmp directory and delete the files at the end of the
    Lambda function.
  4. Copy the files to an Amazon S3 bucket with a lifecycle policy to delete the files.

Answer(s): C



A company uses Amazon DynamoDB as a data store for its order management system. The company frontend application stores orders in a DynamoDB table. The DynamoDB table is configured to send change events to a DynamoDB stream. The company uses an AWS
Lambda function to log and process the incoming orders based on data from the
DynamoDB
stream.
An operational review reveals that the order quantity of incoming orders is sometimes set to 0. A developer needs to create a dashboard that will show how many unique customers this problem affects each day.
What should the developer do to implement the dashboard?

  1. Grant the Lambda function’s execution role permissions to upload logs to
    Amazon CloudWatch Logs. Implement a CloudWatch Logs Insights query that selects the number of unique customers for orders with order quantity equal to 0 and groups the results in 1-day periods. Add the CloudWatch Logs
    Insights query to a CloudWatch dashboard.
  2. Use Amazon Athena to query AWS CloudTrail API logs for API calls. Implement an Athena query that selects the number of unique customers for orders with order quantity equal to 0 and groups the results in 1-day periods. Add the
    Athena query to an Amazon CloudWatch dashboard.
  3. Configure the Lambda function to send events to Amazon EventBridge. Create an EventBridge rule that groups the number of unique customers for orders with order quantity equal to 0 in 1-day periods. Add a CloudWatch dashboard as the target of the rule.
  4. Turn on custom Amazon CloudWatch metrics for the DynamoDB stream of the
    DynamoDB table. Create a CloudWatch alarm that groups the number of unique customers for orders with order quantity equal to 0 in 1-day periods. Add the CloudWatch alarm to a CloudWatch dashboard.

Answer(s): A



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