DOP-C02 Exam QuestionsBrowse all questions from this exam

DOP-C02 Exam - Question 129


A DevOps engineer is working on a project that is hosted on Amazon Linux and has failed a security review. The DevOps manager has been asked to review the company buildspec.yaml file for an AWS CodeBuild project and provide recommendations. The buildspec.yaml file is configured as follows:

What changes should be recommended to comply with AWS security best practices? (Choose three.)

Show Answer
Correct Answer: BCE

To comply with AWS security best practices for the CodeBuild project, the following actions should be taken: Remove the AWS credentials from the environment variable and update the CodeBuild project role with the necessary permissions to minimize exposure of sensitive access keys. Store the DB_PASSWORD as a SecureString in AWS Systems Manager Parameter Store to secure sensitive data and remove it from the build environment. Use AWS Systems Manager run command rather than direct scp and ssh commands, which provides more secure and auditable interactions with the instance.

Discussion

17 comments
Sign in to comment
WhyIronManOptions: BCE
Mar 31, 2024

BCE is correct A is WRONG. CodeBuild does not keep files for next builds in that way, once the build is done, the files will be deleted.

sb333Options: BCE
Jul 23, 2023

BCE are the correct answers.

2pk
May 13, 2023

I think its A, B & C

devnv
May 16, 2023

Sorry, I've read again and it's AB & C.

zain1258Options: BCE
Nov 15, 2023

It's BCE. A is wrong. I don't think there is any concept of `CodeBuild users`.

ParagSanyashivOptions: BCE
May 14, 2023

BCE is correct

FunkyFrescoOptions: BCE
Jun 26, 2023

BCE are the correct ones.

Certified101Options: BCE
Jul 20, 2023

BCE are the correct ones.

thanhnv142Options: ABC
Feb 6, 2024

ABC are correct: security best practices are related to removing credentials and sensitive data - A remove temporary files is important because they might contain sensitive data - B: <remove the AWS credentials> is removing the access key - C: <remove the DB_PASSWORD> means removing hardcoded DB_PASSWORD All other options dont relate to senstive data or password

Diego1414Options: ABC
Feb 22, 2024

ABC seems appropriate, since the emphasis is on security.

devnv
May 16, 2023

Yes BCE are correct

Kodoma
May 23, 2023

BCE is correct answer

einnOptions: ABC
Jul 23, 2023

A: remove sensitive data that could left behind in container B: remove crendentials and use role C: Use SecureString AWS Systems Manager Parameter Store

buiquangbk90
Aug 14, 2023

BCE https://www.examtopics.com/discussions/amazon/view/46729-exam-aws-devops-engineer-professional-topic-1-question-17/

sarlos
Jan 4, 2024

its BCE https://stackoverflow.com/questions/76854227/i-want-to-copy-files-to-aws-ec2-using-buildspec-yml-file-the-22-port-is-open-fo

ajeeshbOptions: ABC
Jul 6, 2024

A - Cleans up temp files that stores the my.cnf and the instance key files B - Removes hardcoded AWS credentials C - Securely stores DB password

ericphlOptions: ABC
Jul 22, 2024

ABC seems right.