ExamQuestions.com

Register
Login
AWS Certified DevOps Engineer Professional Exam Questions

Amazon

AWS Certified DevOps Engineer Professional

217 / 500

Question 217:

You are using the AWS CodeBuild service to handle the build task in a CI/CD pipeline. In the pre-build phase of buildspec.yml, there is a docker login command such as “docker login –u $USER_NAME –p $LOGIN_PASSWORD”. And its user name and password are provided as variables in the env phase in the same buildspec.yml file.

Answer options:

A.In the env phase of the buildspec.yml file, use parameter-store to specify the user name and password. The values are stored in the Systems Manager parameter store.
B.Store the buildspec.yml file in AWS CodeCommit rather than GitHub as IAM rules can be configured in CodeCommit to ensure the security.
C.Add a strong IAM rule in AWS CodeBuild to make sure that only limited users can access the buildspec.yml file.
D.Store the credentials in a file and put the file in an S3 bucket. Encrypt the S3 bucket via SSE-S3. Modify the buildspec.yml file to use the encrypted file in the S3 bucket.