exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 274 discussion

A company has an application that generates reports and stores them in an Amazon S3 bucket. When a user accesses their report, the application generates a signed URL to allow the user to download the report. The company's security team has discovered that the files are public and that anyone can download them without authentication. The company has suspended the generation of new reports until the problem is resolved.

Which set of actions will immediately remediate the security issue without impacting the application's normal workflow?

  • A. Create an AWS Lambda function that applies a deny all policy for users who are not authenticated. Create a scheduled event to invoke the Lambda function.
  • B. Review the AWS Trusted Advisor bucket permissions check and implement the recommended actions.
  • C. Run a script that puts a private ACL on all of the objects in the bucket.
  • D. Use the Block Public Access feature in Amazon S3 to set the IgnorePublicAcIs option to TRUE on the bucket.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
rxhan
Highly Voted 1 year, 8 months ago
Script is never AWS answers
upvoted 8 times
...
Sin_Dan
Most Recent 6 months ago
Selected Answer: A
Option D impacts the application's normal workflow. It will block access to the objects from the internet irrespective of whether the user is authorised or not.
upvoted 1 times
...
Phil___
10 months ago
Selected Answer: D
Not C due to the following: C. Script for Private ACL (Potentially Disruptive): Setting a private ACL on all objects might disrupt existing download mechanisms that rely on signed URLs.
upvoted 1 times
goodard
8 months ago
Also running script is only temporary solution since files uploaded after script it executed can still be publicly accessible. So D is better selection.
upvoted 1 times
...
...
kejam
1 year, 3 months ago
Selected Answer: D
Answer: D https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-presigned-url.html
upvoted 1 times
...
career360guru
1 year, 5 months ago
Selected Answer: D
Public Block access
upvoted 2 times
...
rlf
1 year, 6 months ago
D. IgnorePulicAcls : Setting this option to TRUE causes Amazon S3 to ignore all public ACLs on a bucket and any objects that it contains. This setting enables you to safely block public access granted by ACLs while still allowing PUT Object calls that include a public ACL (as opposed to BlockPublicAcls, which rejects PUT Object calls that include a public ACL). Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html
upvoted 4 times
...
ggrodskiy
1 year, 9 months ago
Correct D. Uses the Block Public Access feature in Amazon S3 to set the IgnorePublicAcls option to TRUE on the bucket. This would immediately block public access to the files in the S3 bucket without affecting the application's normal workflow. The application can still generate signed URLs to allow users to download their reports. The IgnorePublicAcls setting ignores any public ACLs on objects in this bucket and any objects that are added to this bucket in the future.
upvoted 3 times
...
NikkyDicky
1 year, 9 months ago
Selected Answer: D
its a D
upvoted 1 times
...
SmileyCloud
1 year, 10 months ago
Selected Answer: D
D - yank the cable from the switch. Check this -> https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html
upvoted 1 times
...
Alabi
1 year, 10 months ago
Selected Answer: D
D is the most appropriate solution as it directly addresses the security issue by using the Block Public Access feature in Amazon S3. By setting the IgnorePublicAcIs option to TRUE, it ensures that public access to the bucket and its objects is blocked, preventing unauthorized downloads. This solution is immediate, doesn't require modifying the application code or workflow, and provides an effective security control.
upvoted 1 times
...
easytoo
1 year, 10 months ago
d-d-d-d-d-d
upvoted 1 times
...
nexus2020
1 year, 10 months ago
IF the purpose is block pre-signed URL access to bucket, none of the options will work. If we are just blocking non pre-signed URL access, then both C and D will work. Correct me if I am wrong here.
upvoted 2 times
joleneinthebackyard
1 year, 5 months ago
Then you know to choose D since "running a script" never be the answer in aws exam
upvoted 2 times
...
...
shree2023
1 year, 10 months ago
Selected Answer: C
C indeed
upvoted 1 times
...
gd1
1 year, 10 months ago
Selected Answer: D
Amazon S3 Block Public Access provides settings for access points, buckets, and accounts to help you manage public access to Amazon S3 resources. By default, new buckets, access points, and objects don't allow public access, but users or applications can modify bucket policies or object permissions to allow public access. S3 Block Public Access settings override these public access settings. You can use S3 Block Public Access to block existing public access, whether specified by an ACL or a policy, and to ensure that public access isn't granted to newly created items. Using signed URLs to grant temporary access to the S3 objects is a secure way to share files. It allows the company to continue using their current workflow without affecting its users while also maintaining the privacy and security of the files in the bucket.
upvoted 2 times
...
PhuocT
1 year, 10 months ago
Selected Answer: D
D - Block Public Access feature in Amazon S3 to set the IgnorePublicAcIs
upvoted 2 times
...
psyx21
1 year, 10 months ago
Selected Answer: C
Correct Answer is C
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