exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 60 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 60
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A DevOps engineer wants to deploy a serverless web application that is based on AWS Lambda. The deployment must meet the following requirements:
✑ Provide staging and production environments.
✑ Restrict developers from accessing the production environment.
✑ Avoid hardcoding passwords in the Lambda functions.
✑ Store source code in AWS CodeCommit.
✑ Use AWS CodePipeline to automate the deployment.
What is the MOST operationally efficient solution that meets these requirements?

  • A. Create separate staging and production accounts to segregate deployment targets. Use AWS Key Management Service (AWS KMS) to store environment- specific values. Use CodePipeline to automate deployments with AWS CodeDeploy.
  • B. Create separate staging and production accounts to segregate deployment targets. Use Lambda environment variables to store environment-specific values. Use CodePipeline to automate deployments with AWS CodeDeploy.
  • C. Define tagging conventions for staging and production environments to segregate deployment targets. Use AWS Key Management Service (AWS KMS) to store environment-specific values. Use CodePipeline to automate deployments with AWS CodeDeploy.
  • D. Define tagging conventions for staging and production environments to segregate deployment targets. Use Lambda environment variables to store environment-specific values. Use CodePipeline to automate deployments with AWS CodeDeploy.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Jichu
Highly Voted 2 years, 6 months ago
Selected Answer: B
You can't use tagging to segregate deployment targets for Lambda. The docu here only says EC2 https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-tagging.html
upvoted 9 times
...
RightAnswers
Highly Voted 2 years, 9 months ago
Selected Answer: B
Lambda aliases should be used to sperate deplyment stateg. However, with the given options, the best way may be to use different accounts. A: Incorrect - KMS can't be used to store environment specific variable. Those are stored as environment variables, but can be encrypted with a KMS key. B: Correct C and D: Incorrect - Tagging can't be used to segregate deployment targets with Lambda
upvoted 6 times
...
DucSiu
Most Recent 1 year, 7 months ago
My answer is D
upvoted 1 times
...
DaddyDee
1 year, 10 months ago
I would go with B as the question asks for MOST operational efficiency: https://aws.amazon.com/blogs/mt/multi-account-strategy-for-small-and-medium-businesses/ - In the Well Architected framework staging and prod should be separated for security and risk management (Limit scope of impact from adverse events) https://docs.aws.amazon.com/whitepapers/latest/organizing-your-aws-environment/benefits-of-using-multiple-aws-accounts.html
upvoted 1 times
...
Flyingdagger
2 years ago
with option d, it will be very hardto restrict developers to access production environment. So correct answer is b
upvoted 1 times
...
ParagSanyashiv
2 years, 1 month ago
Selected Answer: B
B is more suitable here.
upvoted 1 times
...
itbrpl
2 years, 3 months ago
KMS is an encryption service, it is not secrets manager.. So you cannot store anything in KMS.. you can either segregate environments using accounts or using tags via policies.. So it would be either B or D.. I think I would go wi B.
upvoted 1 times
...
DevOpsJagadGuru
2 years, 4 months ago
Selected Answer: A
A is correct because it suggests to use separate accounts and KMS for secrets
upvoted 2 times
...
LoveToronto
2 years, 4 months ago
One of the requirements is this: Restrict developers from accessing the production environment. D alone does not restrict users. B. meets all requirements.
upvoted 1 times
...
Piccaso
2 years, 4 months ago
Selected Answer: A
C and D are eliminated because we need two accounts. Tagging are not strict enough. AWS KMS is more efficient than Lambda environment variables. I used GCP KMS to manage environment-specific values. AWS KMS can also be used to manage environment-specific values. https://medium.com/cloudfordummies/securing-cloud-functions-part-1-using-aws-kms-for-environment-variables-1409597a38ba
upvoted 1 times
...
Bulti
2 years, 5 months ago
B is the right answer and not D because we want to restrict developer access to the production environment and therefore having a separate account for production makes it more manageble.
upvoted 2 times
...
saeidp
2 years, 5 months ago
B is correct. This is a serverless deployment
upvoted 1 times
...
ericzaj
2 years, 6 months ago
Selected Answer: B
One of the requirements is this: Restrict developers from accessing the production environment. D alone does not restrict users. B. meets all requirements.
upvoted 4 times
...
Maygam
2 years, 7 months ago
Selected Answer: D
https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-tagging.html
upvoted 2 times
scottytoohotty
2 years, 2 months ago
only for ec2 and on-prem
upvoted 1 times
...
...
kyozanuro
2 years, 7 months ago
Selected Answer: D
https://aws.amazon.com/blogs/security/guidelines-for-when-to-use-accounts-users-and-groups/ Always prefer to use tag to segregate environment rather than using multiple accounts
upvoted 3 times
...
mgm7
2 years, 8 months ago
Selected Answer: D
https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html One can use tags and condition statements in policies to restrict access to specific resources.
upvoted 2 times
...
MichaelExam
2 years, 9 months ago
Selected Answer: D
A,C are wrong. Since KSM can't store environment variable. The difference between B and D is separate environments by account or tagging. Per the requirement - the MOST operationally efficient, I will choice D.
upvoted 4 times
Goozian
2 years, 9 months ago
do you have any reference/example showing deployment based on tagging ?!
upvoted 1 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 ...