AWS Certified Security - Specialty SCS-C02 Exam QuestionsBrowse all questions from this exam

AWS Certified Security - Specialty SCS-C02 Exam - Question 94


A company is running an Amazon RDS for MySQL DB instance in a VPC. The VPC must not send or receive network traffic through the internet.

A security engineer wants to use AWS Secrets Manager to rotate the DB instance credentials automatically. Because of a security policy, the security engineer cannot use the standard AWS Lambda function that Secrets Manager provides to rotate the credentials.

The security engineer deploys a custom Lambda function in the VPC. The custom Lambda function will be responsible for rotating the secret in Secrets Manager. The security engineer edits the DB instance's security group to allow connections from this function. When the function is invoked, the function cannot communicate with Secrets Manager to rotate the secret properly.

What should the security engineer do so that the function can rotate the secret?

Show Answer
Correct Answer: D

To allow the Lambda function in the VPC to communicate with AWS Secrets Manager without using the internet, the best approach is to configure a Secrets Manager interface VPC endpoint. This endpoint allows secure, private communication between the Lambda function and Secrets Manager over the AWS network without needing an internet gateway, NAT gateway, or VPC peering connection. Including the Lambda function's private subnet during the configuration process ensures that the function can reach Secrets Manager to rotate the DB instance credentials.

Discussion

6 comments
Sign in to comment
AameeOption: D
May 26, 2024

D looks legit.

oioiOption: D
May 23, 2024

correct

[Removed]Option: D
May 25, 2024

D is the winner

Daniel76Option: D
Jun 14, 2024

https://docs.aws.amazon.com/secretsmanager/latest/userguide/vpc-endpoint-overview.html

navid1365Option: D
Nov 20, 2024

Since the RDS instance is in a private subnet without internet access, you need to configure a VPC endpoint.

c6ed25aOption: D
Mar 23, 2025

Since no internet we can only think of VPC Endpoint