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

Page 29 of 116

A developer is working on an ecommerce website. The developer wants to review server logs without logging in to each of the application servers individually. The website runs on multiple Amazon EC2 instances, is written in Python, and needs to be highly available.
How can the developer update the application to meet these requirements with MINIMUM changes?

  1. Rewrite the application to be cloud native and to run on AWS Lambda, where the logs can be reviewed in Amazon CloudWatch.
  2. Set up centralized logging by using Amazon OpenSearch Service, Logstash, and
    OpenSearch Dashboards.
  3. Scale down the application to one larger EC2 instance where only one instance is recording logs.
  4. Install the unified Amazon CloudWatch agent on the EC2 instances. Configure the agent to push the application logs to CloudWatch.

Answer(s): D



A company is creating an application that processes .csv files from Amazon S3. A
developer has created an S3 bucket. The developer has also created an AWS Lambda function to process the .csv files from the S3 bucket.
Which combination of steps will invoke the Lambda function when a .csv file is uploaded to Amazon S3? (Choose two.)

  1. Create an Amazon EventBridge rule. Configure the rule with a pattern to match the S3 object created event.
  2. Schedule an Amazon EventBridge rule to run a new Lambda function to scan the
    S3 bucket.
  3. Add a trigger to the existing Lambda function. Set the trigger type to
    EventBridge. Select the Amazon EventBridge rule.
  4. Create a new Lambda function to scan the S3 bucket for recently added S3
    objects.
  5. Add S3 Lifecycle rules to invoke the existing Lambda function.

Answer(s): A,C



A developer needs to build an AWS CloudFormation template that self-populates the
AWS Region variable that deploys the CloudFormation template.
What is the MOST operationally efficient way to determine the Region in which the template is being deployed?

  1. Use the AWS::Region pseudo parameter.
  2. Require the Region as a CloudFormation parameter.
  3. Find the Region from the AWS::StackId pseudo parameter by using the
    Fn::Split intrinsic function.
  4. Dynamically import the Region by referencing the relevant parameter in AWS
    Systems Manager Parameter Store.

Answer(s): A



A company has hundreds of AWS Lambda functions that the company's QA team needs to test by using the Lambda function URLs. A developer needs to configure the authentication of the Lambda functions to allow access so that the QA IAM group can invoke the Lambda functions by using the public URLs.
Which solution will meet these requirements?

  1. Create a CLI script that loops on the Lambda functions to add a Lambda function URL with the AWS_IAM auth type. Run another script to create an IAM
    identity-based policy that allows the lambda:InvokeFunctionUrl action to all the Lambda function Amazon Resource Names (ARNs). Attach the policy to the
    QA IAM group.
  2. Create a CLI script that loops on the Lambda functions to add a Lambda function URL with the NONE auth type. Run another script to create an IAM
    resource-based policy that allows the lambda:InvokeFunctionUrl action to all the Lambda function Amazon Resource Names (ARNs). Attach the policy to the
    QA IAM group.
  3. Create a CLI script that loops on the Lambda functions to add a Lambda function URL with the AWS_IAM auth type. Run another script to loop on the
    Lambda functions to create an IAM identity-based policy that allows the lambda:InvokeFunctionUrl action from the QA IAM group's Amazon Resource Name
    (ARN).
  4. Create a CLI script that loops on the Lambda functions to add a Lambda function URL with the NONE auth type. Run another script to loop on the
    Lambda functions to create an IAM resource-based policy that allows the lambda:InvokeFunctionUrl action from the QA IAM group's Amazon Resource Name
    (ARN).

Answer(s): A



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