ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 248 - SCS-C01 discussion

Report
Export

An application running on EC2 instances must use a username and password to access a database.

The developer has stored those secrets in the SSM Parameter Store with type SecureString using the default KMS CMK. Which combination of configuration steps will allow the application to access the secrets via the API? Select 2 answers from the options below Please select:

A.
Add the EC2 instance role as a trusted service to the SSM service role.
Answers
A.
Add the EC2 instance role as a trusted service to the SSM service role.
B.
Add permission to use the KMS key to decrypt to the SSM service role.
Answers
B.
Add permission to use the KMS key to decrypt to the SSM service role.
C.
Add permission to read the SSM parameter to the EC2 instance role..
Answers
C.
Add permission to read the SSM parameter to the EC2 instance role..
D.
Add permission to use the KMS key to decrypt to the EC2 instance role
Answers
D.
Add permission to use the KMS key to decrypt to the EC2 instance role
E.
Add the SSM service role as a trusted service to the EC2 instance role.
Answers
E.
Add the SSM service role as a trusted service to the EC2 instance role.
Suggested answer: C, D

Explanation:

The below example policy from the AWS Documentation is required to be given to the EC2 Instance in order to read a secure string from AWS KMS. Permissions need to be given to the Get Parameter API and the KMS API call to decrypt the secret.

Option A is invalid because roles can be attached to EC2 and not EC2 roles to SSM Option B is invalid because the KMS key does not need to decrypt the SSM service role. Option E is invalid because this configuration is valid For more information on the parameter store, please visit the below URL:

https://docs.aws.amazon.com/kms/latest/developerguide/services-parameter-store.htmllThe correct answers are: Add permission to read the SSM parameter to the EC2 instance role., Addpermission to use the KMS key to decrypt to the EC2 instance roleSubmit your Feedback/Queries to our Experts

asked 16/09/2024
shaoyu huang
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first