
Ultimate access to all questions.
An e-commerce company operates several EC2 instances within a private subnet of a custom VPC. These instances run an image processing application that requires access to images stored on S3. After processing each image, the status of the respective record must be updated as completed in a DynamoDB table.
What methods would you use to ensure these EC2 instances have private access to AWS resources such as S3 and DynamoDB, which are outside the custom VPC?
A
Create a gateway endpoint for S3 and add it as a target in the route table of the custom VPC. Create an interface endpoint for DynamoDB and then connect to the DynamoDB service using the private IP address
B
Create a gateway endpoint for DynamoDB and add it as a target in the route table of the custom VPC. Create an API endpoint for S3 and then connect to the S3 service using the private IP address
C
Create a separate interface endpoint for S3 and DynamoDB each. Then connect to these services using the private IP address
D
Create a separate gateway endpoint for S3 and DynamoDB each. Add two new target entries for these two gateway endpoints in the route table of the custom VPC