exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 76 discussion

A company is using Amazon S3 buckets to store important documents. The company discovers that some S3 buckets are not encrypted. Currently, the company’s IAM users can create new S3 buckets without encryption. The company is implementing a new requirement that all S3 buckets must be encrypted.

A DevOps engineer must implement a solution to ensure that server-side encryption is enabled on all existing S3 buckets and all new S3 buckets. The encryption must be enabled on new S3 buckets as soon as the S3 buckets are created. The default encryption type must be 256-bit Advanced Encryption Standard (AES-256).

Which solution will meet these requirements?

  • A. Create an AWS Lambda function that is invoked periodically by an Amazon EventBridge scheduled rule. Program the Lambda function to scan all current S3 buckets for encryption status and to set AES-256 as the default encryption for any S3 bucket that does not have an encryption configuration.
  • B. Set up and activate the s3-bucket-server-side-encryption-enabled AWS Config managed rule. Configure the rule to use the AWS-EnableS3BucketEncryption AWS Systems Manager Automation runbook as the remediation action. Manually run the re-evaluation process to ensure that existing S3 buckets are compliant.
  • C. Create an AWS Lambda function that is invoked by an Amazon EventBridge event rule. Define the rule with an event pattern that matches the creation of new S3 buckets. Program the Lambda function to parse the EventBridge event, check the configuration of the S3 buckets from the event, and set AES-256 as the default encryption.
  • D. Configure an IAM policy that denies the s3:CreateBucket action if the s3:x-amz-server-side-encryption condition key has a value that is not AES-256. Create an IAM group for all the company’s IAM users. Associate the IAM policy with the IAM group.
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
paali
Highly Voted 1 year, 11 months ago
B caters to both existing and new buckets. C is triggered on when new bucket is created, existing buckets are not handled by the event.
upvoted 13 times
...
Zoe_zoe
Highly Voted 2 years ago
Selected Answer: B
B to me
upvoted 10 times
...
Gomer
Most Recent 11 months, 1 week ago
Selected Answer: C
I think neither "B" or "C" is complete solution. They both need to be done to deal with both existing and new buckets. A carefull reading of the question doesn't preclude the need to do both. However, the specific and emphasized criteria of enabling encryption "as soon as the S3 buckets are created" can only be done by "C" (event driven action) I think this may be a trick question. I'm very confident they are defining an event driven action as part of the solution, and only "C" provides that. B: (NO) "Manually run the re-evaluation process to ensure that existing S3 buckets are compliant." Comment: Doesn't achieve "encryption must be enabled on new S3 buckets as soon as the S3 buckets are created."
upvoted 2 times
...
dzn
1 year, 2 months ago
Selected Answer: B
`s3-bucket-server-side-encryption-enabled` checks if your Amazon S3 bucket either has the Amazon S3 default encryption enabled or that the Amazon S3 bucket policy explicitly denies put-object requests without server side encryption that uses AES-256 or AWS Key Management Service.
upvoted 1 times
...
thanhnv142
1 year, 3 months ago
A is correct: <implement a solution to ensure that server-side encryption is enabled on all existing S3 buckets and all new S3 buckets>: We can use lambda to configure all S3. Use Eventbridge to schedule-run lambda. B: This option uses AWS config rule to activate AWS-EnableS3BucketEncryption AWS Systems Manager Automation runbook, which is incorrect. Remember that AWS config have no action and cannot trigger anything. It only collect data and report. Additionally, this option does not mention actions to new S3 bucket C: <define the rule with an event pattern that matches the creation of new S3 buckets> means that this only affect newly-created bucket, not existing ones. D: No mention of enforcing encryption on S3 Note: Should not use chatgpt for this exam, its answers are mostly wrong
upvoted 2 times
thanhnv142
1 year, 3 months ago
Correct: D
upvoted 1 times
...
...
davdan99
1 year, 4 months ago
Selected Answer: B
Answer is B https://docs.aws.amazon.com/config/latest/developerguide/s3-bucket-server-side-encryption-enabled.html
upvoted 5 times
...
Jaguaroooo
1 year, 4 months ago
I would have chose B over D because aws config can do this with lambda.
upvoted 1 times
...
Jaguaroooo
1 year, 4 months ago
A has automation. I didn't like B: because of this statement: Manually run the re-evaluation process to ensure that existing S3 buckets are compliant.
upvoted 1 times
...
Jamshif01
1 year, 4 months ago
Amazon S3 Encrypts New Objects By Default https://aws.amazon.com/blogs/aws/amazon-s3-encrypts-new-objects-by-default/#:~:text=At%20AWS%2C%20security%20is%20the,specify%20a%20different%20encryption%20option.
upvoted 1 times
...
zenith_cloud
1 year, 6 months ago
Selected Answer: B
B to me. AWS Config can monitor resource compliance against desired configurations. The managed rule s3-bucket-server-side-encryption-enabled checks whether Amazon S3 buckets have server-side encryption enabled. The AWS Systems Manager Automation runbook, AWS-EnableS3BucketEncryption, can be used as a remediation action to enable default encryption. This solution would also work for new buckets as soon as they're created, making it an effective solution.
upvoted 1 times
...
rhinozD
1 year, 11 months ago
Selected Answer: B
B is right. Doable solution for new buckets as well as existing buckets.
upvoted 4 times
...
marcoforexam
2 years ago
Selected Answer: C
Option C meets the requirement of modifying the policy immediately after creating the bucket.
upvoted 1 times
rhinozD
1 year, 11 months ago
What about existing buckets?
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago