Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DVA-C02 Exam - Topic 4 Question 71 Discussion

Posted by Evelynn on Sep 25, 2026 at 04:17 PM

A company has many microservices that are comprised of AWS Lambda functions. Multiple teams within the company split ownership of the microservices.

An application reads configuration values from environment variables that are contained in the Lambda functions. During a security audit, the company discovers that some of the environment variables contain sensitive information.

The company's security policy requires each team to have full control over the rotation of AWS KMS keys that the team uses for its respective microservices.

Suggested Answer: B

Comprehensive and Detailed Step-by-Step

Customer Managed Keys (CMK) for Granular Control (Option B):

Customer-managed KMS keys are required to meet the security policy requirement of team-specific control over KMS key rotation. Each team can manage the lifecycle of its own key.

The kms:Decrypt permission allows the Lambda function execution roles to decrypt the environment variables during runtime.

This solution adheres to the principle of least privilege and satisfies the need for team-specific key control.

Why Other Options Are Incorrect:

Option A: AWS-managed keys cannot provide team-specific control or support the custom rotation policy required by the teams.

Option C: Adding kms:CreateGrant and kms:Encrypt permissions to Lambda roles is unnecessary for this scenario. The key usage is limited to decryption at runtime.

Option D: AWS-managed keys still lack team-specific control, and adding kms:CreateGrant and kms:Encrypt is redundant.


AWS Lambda Environment Variables

AWS Key Management Service Documentation

Get Premium DVA-C02 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
14 comments · newest first
BA
Bao Tran 7 days ago
A makes the most sense here because the tricky part is team-specific rotation control, which AWS managed keys cannot provide.
SA
Sana Mirza 23 days ago
B makes the most sense here because customer-managed keys give team-specific control over rotation.
AM
Amira Bukhari 10 days ago
↳ replying to Sana Mirza
I see it differently, A would fit better because AWS managed keys can't offer team specific rotation control as required.
AH
Ahmed Qureshi 7 days ago
↳ replying to Amira Bukhari
Rotation control is the key issue here; AWS managed keys can't support team-specific rotation, while customer-managed keys let each team own and rotate its own key lifecycle per the policy.
RI
Richard Mitchell 14 days ago
↳ replying to Sana Mirza
That makes sense because CMKs enable per team rotation control and better auditability across services.
ME
Meghan 3 days ago
I’m surprised they found sensitive info in env vars, that’s a big no-no!
CO
Corinne 8 days ago
Option C sounds good too, but do we really need kms:CreateGrant?
MA
Maryrose 13 days ago
Wait, why would we use AWS managed keys? That seems risky.
HY
Hyman 19 days ago
Totally agree, customer managed keys give more control!
AL
Allene 24 days ago
I think option B is the best choice for security.
MA
Marcos 29 days ago
I recall that AWS managed keys are easier to use, but they might not meet the security policy requirements. I think we need to go with customer managed keys for better control.
TH
Theola 1 month ago
I feel like option C might be the right choice since it includes both kms:CreateGrant and kms:Encrypt permissions, which could be necessary for managing the keys properly.
GR
Gracia 1 month ago
I'm not entirely sure, but I think we practiced a question where we had to grant permissions for KMS keys. I wonder if kms:Decrypt is enough for this scenario?
AL
Alaine 1 month ago
I remember discussing the difference between AWS managed keys and customer managed keys in class. I think customer managed keys give more control, which might be important here.
0/2000 characters

Save Cancel