AWS Certified Advanced Networking - Specialty (#16)

A Lambda function needs to access the private address of an Amazon ElastiCache cluster in a VPC. The Lambda function also needs to write messages to Amazon SQS. The Lambda function has been configured to run in a subnet in the VPC. Which of the following actions meet the requirements? (Select two.)

The Lambda function needs an IAM role to access Amazon SQS
The Lambda function must route through a NAT gateway or NAT instance in another subnet to access the public SQS API.
The Lambda function must be assigned a public IP address to access the public Amazon SQS API.
The ElastiCache server outbound security group rules must be configured to permit the Lambda function’s security group.
The Lambda function must consume auto-assigned public IP addresses but not elastic IP addresses.