exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 145 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 145
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer creates an AWS Lambda function to publish a message to an Amazon Simple Notification Service (Amazon SNS) topic. All message content must be encrypted in transit and at rest between Lambda and Amazon SNS.
A part of the Lambda execution role is as follows:

Which combination of steps should the developer take to meet these requirements? (Choose two.)

  • A. Enable server-side encryption on the SNS topic.
  • B. Add a Deny statement to the Lambda execution role. Specify the SNS topic ARN as the resource. Specify "aws:SecureTransport": "trueג€ as the condition.
  • C. Create a VPC endpoint for Amazon SNS.
  • D. Add a StringEquals condition of "sns:Protocol": "https" to the Lambda execution role.
  • E. Add a Deny statement to the Lambda execution role. Specify the SNS topic ARN as the resource. Specify "aws:SecureTransport": "false" as the condition.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

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
Vinafec
Highly Voted 2 years, 9 months ago
Selected Answer: AE
A: force encryption on rest E: deny all that are not encrypted in transit
upvoted 14 times
dimon_millioner
1 year, 8 months ago
Deny Statement : { "Effect": "Deny", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::my-bucket/*" }
upvoted 1 times
...
...
nmc12
Most Recent 1 year, 7 months ago
Selected Answer: AE
IF aws:SecureTransport": "false" -> will be denied. example is below: { "Id": "ExamplePolicy", "Version": "2012-10-17", "Statement": [ { "Sid": "AllowSSLRequestsOnly", "Action": "s3:*", "Effect": "Deny", "Resource": [ "arn:aws:SNS:::<バケット名>", ], "Condition": { "Bool": { "aws:SecureTransport": "false" } }, "Principal": "*" } ] }
upvoted 1 times
...
YanisGTR
1 year, 9 months ago
A: force encryption on rest D: This make sure all encryption in transit
upvoted 1 times
...
AswinDe
1 year, 10 months ago
AB B is correct as per above Effect=Allow, so "Condition": { "Bool": { "aws:SecureTransport": "true" } },
upvoted 1 times
...
rcaliandro
1 year, 11 months ago
Selected Answer: AE
I don't understand why do we also need server-side encryption. If data is encrypted in transit then should be encrypted at Rest, shouldn't be? BTW agree AE by exclusion
upvoted 1 times
...
GARGMOH
2 years, 3 months ago
Selected Answer: AE
A and E
upvoted 1 times
...
pancman
2 years, 3 months ago
This question was on the exam today (Feb 2023)
upvoted 2 times
...
sichilam
2 years, 4 months ago
A and E
upvoted 1 times
...
hamimelon
2 years, 6 months ago
Why is D wrong? My problem with E is that Lambda is publishing to SNS, not triggered by SNS, so Lambda doesn't care whether SNS has encryption at-rest or not.
upvoted 2 times
...
michaldavid
2 years, 6 months ago
Selected Answer: AE
A and E
upvoted 1 times
...
habros
2 years, 8 months ago
A&E. Trick question. You SHOULD deny policy when protocol is not HTTPS.
upvoted 1 times
...
RUKSHANA
2 years, 8 months ago
A & E https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html
upvoted 4 times
...
m_t_kd
2 years, 9 months ago
Answer is A & E
upvoted 2 times
...
Chhotu_DBA
2 years, 9 months ago
Selected Answer: AB
AB correct
upvoted 2 times
AulaitQM
2 years, 8 months ago
no, it is AE because B would deny the encrypted data
upvoted 1 times
...
Phinx
2 years, 4 months ago
B will the deny connection, it's opposite.
upvoted 2 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 ...