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

Page 54 of 116

A developer needs to troubleshoot an AWS Lambda function in a development environment. The Lambda function is configured in VPC mode and needs to connect to an existing Amazon RDS for SQL Server DB instance. The DB instance is deployed in a private subnet and accepts connections by using port
1433.
When the developer tests the function, the function reports an error when it tries to connect to the database.
Which combination of steps should the developer take to diagnose this issue? (Choose two.)

  1. Check that the function’s security group has outbound access on port 1433 to the DB instance’s security group. Check that the DB instance’s security group has inbound access on port 1433 from the function’s security group.
  2. Check that the function’s security group has inbound access on port 1433
    from the DB instance’s security group. Check that the DB instance’s security group has outbound access on port 1433 to the function’s security group.
  3. Check that the VPC is set up for a NAT gateway. Check that the DB instance has the public access option turned on.
  4. Check that the function’s execution role permissions include rds:DescribeDBInstances, rds:ModifyDBInstance. and rds:DescribeDBSecurityGroups for the DB instance.
  5. Check that the function’s execution role permissions include ec2:CreateNetworkInterface, ec2:DescribeNetworkInterfaces, and ec2:DeleteNetworkInterface.

Answer(s): A,E



A developer needs to launch a new Amazon EC2 instance by using the AWS CLI.
Which AWS CLI command should the developer use to meet this requirement?

  1. aws ec2 bundle-instance
  2. aws ec2 start-instances
  3. aws ec2 confirm-product-instance
  4. aws ec2 run-instances

Answer(s): D



A developer needs to manage AWS infrastructure as code and must be able to deploy multiple identical copies of the infrastructure, stage changes, and revert to previous versions.
Which approach addresses these requirements?

  1. Use cost allocation reports and AWS OpsWorks to deploy and manage the infrastructure.
  2. Use Amazon CloudWatch metrics and alerts along with resource tagging to deploy and manage the infrastructure.
  3. Use AWS Elastic Beanstalk and AWS CodeCommit to deploy and manage the infrastructure.
  4. Use AWS CloudFormation and AWS CodeCommit to deploy and manage the infrastructure.

Answer(s): D



A developer is working on an AWS Lambda function that accesses Amazon DynamoDB. The
Lambda function must retrieve an item and update some of its attributes, or create the item if it does not exist. The Lambda function has access to the primary key.
Which IAM permissions should the developer request for the Lambda function to achieve this functionality?

  1. dynamodb:DeleleItem dynamodb:GetItem dynamodb:PutItem
  2. dynamodb:UpdateItem dynamodb:GetItem dynamodb:DescribeTable
  3. dynamodb:GetRecords dynamodb:PutItem dynamodb:UpdateTable
  4. dynamodb:UpdateItem dynamodb:GetItem dynamodb:PutItem

Answer(s): D



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