exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 111 discussion

A solutions architect is auditing the security setup or an AWS Lambda function for a company. The Lambda function retrieves, the latest changes from an Amazon Aurora database. The Lambda function and the database run in the same VPC. Lambda environment variables are providing the database credentials to the Lambda function.

The Lambda function aggregates data and makes the data available in an Amazon S3 bucket that is configured for server-side encryption with AWS KMS managed encryption keys (SSE-KMS). The data must not travel across the Internet. If any database credentials become compromised, the company needs a solution that minimizes the impact of the compromise.

What should the solutions architect recommend to meet these requirements?

  • A. Enable IAM database authentication on the Aurora DB cluster. Change the IAM role for the Lambda function to allow the function to access the database by using IAM database authentication. Deploy a gateway VPC endpoint for Amazon S3 in the VPC.
  • B. Enable IAM database authentication on the Aurora DB cluster. Change the IAM role for the Lambda function to allow the function to access the database by using IAM database authentication. Enforce HTTPS on the connection to Amazon S3 during data transfers.
  • C. Save the database credentials in AWS Systems Manager Parameter Store. Set up password rotation on the credentials in Parameter Store. Change the IAM role for the Lambda function to allow the function to access Parameter Store. Modify the Lambda function to retrieve the credentials from Parameter Store. Deploy a gateway VPC endpoint for Amazon S3 in the VPC.
  • D. Save the database credentials in AWS Secrets Manager. Set up password rotation on the credentials in Secrets Manager. Change the IAM role for the Lambda function to allow the function to access Secrets Manager. Modify the Lambda function to retrieve the credentials from Secrets Manager. Enforce HTTPS on the connection to Amazon S3 during data transfers.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zozza2023
Highly Voted 2 years, 5 months ago
Selected Answer: A
a little bit confused between A and D but as said by others members D doesn't adress the The question of "data must not travel across the Internet"==> A is the answer
upvoted 20 times
...
MikelH93
Highly Voted 2 years, 2 months ago
Selected Answer: A
B and D are out because you need the VPC endpoints. C is out because you cannot enable rotation in Parameter Store (https://docs.aws.amazon.com/secretsmanager/latest/userguide/integrating_parameterstore.html)
upvoted 7 times
...
Paul123456789
Most Recent 3 months ago
Selected Answer: D
Option A does not address the requirement for rotating database credentials.
upvoted 1 times
...
amministrazione
10 months ago
A. Enable IAM database authentication on the Aurora DB cluster. Change the IAM role for the Lambda function to allow the function to access the database by using IAM database authentication. Deploy a gateway VPC endpoint for Amazon S3 in the VPC.
upvoted 1 times
...
MAZIADI
10 months, 3 weeks ago
Selected Answer: A
A is better than D because it remove the complexity of management of the secret to connect to the DB and replaces it with the IAM DB authentication. In addition S3 endpoint GW is better to prevent traffic going through internet.
upvoted 1 times
...
AWSPro1234
1 year, 3 months ago
Selected Answer: A
Key is data must not travel accros the internet mean use VPC gateway
upvoted 1 times
...
gofavad926
1 year, 3 months ago
Selected Answer: A
A, "data must no travel across the internet". This setup ensures internal network use only, meeting the security and networking requirements efficiently
upvoted 1 times
...
a54b16f
1 year, 4 months ago
Selected Answer: A
The data must not travel across the Internet.
upvoted 2 times
...
8608f25
1 year, 4 months ago
Selected Answer: D
Option D offers a comprehensive solution by leveraging AWS Secrets Manager for storing and automatically rotating database credentials, which directly addresses the concern of minimizing the impact if credentials become compromised. Changing the Lambda function to retrieve credentials from Secrets Manager enhances security by not storing credentials within environment variables. Enforcing HTTPS for S3 data transfers ensures the data in transit is encrypted. While deploying a gateway VPC endpoint for S3 (as mentioned in other options) is a best practice to keep traffic within the AWS network, enforcing HTTPS also contributes to securing data transfers without explicitly stating the need to avoid Internet travel. Secrets Manager inherently provides secure access to secrets without needing to travel across the Internet when accessed from AWS services within the same region. Option A does not address the requirement for securing and rotating database credentials stored as Lambda environment variables.
upvoted 1 times
...
career360guru
1 year, 6 months ago
Selected Answer: A
Answer is A as S3 VPC is endpoint is needed to avoid data going over internet.
upvoted 1 times
...
task_7
1 year, 9 months ago
Selected Answer: D
AWS Secrets Manager is meant for this job, why go with any other option
upvoted 2 times
task_7
1 year, 9 months ago
My bad its A D is not addressing this point The data must not travel across the Internet
upvoted 6 times
...
...
CuteRunRun
1 year, 10 months ago
I prefor A
upvoted 2 times
...
Jonalb
1 year, 11 months ago
Selected Answer: A
A https://aws.amazon.com/pt/blogs/database/iam-role-based-authentication-to-amazon-aurora-from-serverless-applications/
upvoted 3 times
...
Jonalb
1 year, 12 months ago
Selected Answer: D
https://docs.aws.amazon.com/pt_br/secretsmanager/latest/userguide/vpc-endpoint-overview.html
upvoted 1 times
...
NikkyDicky
1 year, 12 months ago
Selected Answer: A
A for sure
upvoted 1 times
...
rbm2023
2 years, 1 month ago
Selected Answer: A
I was about to chose D however just enforcing the HTTP will not avoid the data to travel across internet. You will need the option where the gateway VPC endpoint is deployed for access the S3. The answer is A. A will also solve the issue related to authenticate the lambda to aurora without needing to store passwords, refer to - https://aws.amazon.com/blogs/database/iam-role-based-authentication-to-amazon-aurora-from-serverless-applications/
upvoted 1 times
...
OCHT
2 years, 2 months ago
Selected Answer: D
However, Option A is not the best choice for the given scenario because: It doesn't address the requirement to minimize the impact of compromised database credentials. IAM database authentication eliminates traditional user credentials, but it doesn't implement password rotation for the remaining IAM credentials. While the VPC endpoint keeps traffic within the AWS network, it doesn't enforce encryption during data transfers to Amazon S3. Option D, on the other hand, addresses both the requirement of minimizing the impact of compromised credentials through password rotation using AWS Secrets Manager and ensuring encrypted data transfers to Amazon S3 by enforcing HTTPS. That's why Option D is the better choice for this scenario.
upvoted 3 times
rbm2023
2 years, 1 month ago
I was also choosing D however just enforcing the HTTP will not avoid the data to travel across internet. You will need the option where the gateway VPC endpoint is deployed for access the S3. The answer is A
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...