exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 58 discussion

An application hosted on AWS is experiencing performance problems, and the application vendor wants to perform an analysis of the log file to troubleshoot further. The log file is stored on Amazon S3 and is 10 GB in size. The application owner will make the log file available to the vendor for a limited time.
What is the MOST secure way to do this?

  • A. Enable public read on the S3 object and provide the link to the vendor.
  • B. Upload the file to Amazon WorkDocs and share the public link with the vendor.
  • C. Generate a presigned URL and have the vendor download the log file before it expires.
  • D. Create an IAM user for the vendor to provide access to the S3 bucket and the application. Enforce multi-factor authentication.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Share an object with others -
All objects by default are private. Only the object owner has permission to access these objects. However, the object owner can optionally share objects with others by creating a presigned URL, using their own security credentials, to grant time-limited permission to download the objects.
When you create a presigned URL for your object, you must provide your security credentials, specify a bucket name, an object key, specify the HTTP method
(GET to download the object) and expiration date and time. The presigned URLs are valid only for the specified duration.
Anyone who receives the presigned URL can then access the object. For example, if you have a video in your bucket and both the bucket and the object are private, you can share the video with others by generating a presigned URL.
Reference:
https://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURL.html

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
DK2
Highly Voted 3 years, 9 months ago
C here.
upvoted 47 times
aguy9
3 years, 8 months ago
I agree, it is C
upvoted 4 times
...
...
dkcloudguru
Highly Voted 3 years, 9 months ago
C is the correct. A and B providing public link which security concerns. option D is not suitable because here in question it is a vendor user accessing a log file, here user use to access the application which is hosted in AWS he is not the one who has access permission to AWS console management so creating IAM is not feasible.
upvoted 21 times
Karthikeyan_nick
3 years, 2 months ago
I agree, it's most secure way to access S3 for a short period
upvoted 1 times
...
...
fro13
Most Recent 1 year, 11 months ago
Selected Answer: C
Pre-signed url for this case
upvoted 1 times
...
bora4motion
2 years, 11 months ago
Selected Answer: C
that's what the presigned urls are for
upvoted 1 times
...
Fr77
2 years, 11 months ago
C should be the correct answer plus the question apparently states that the vendor being the vendor has access to the application and the company might just be using S3 to store logs, right????
upvoted 1 times
...
Mashuaws
3 years, 6 months ago
C is the answer
upvoted 1 times
...
Vibes
3 years, 7 months ago
C is ok
upvoted 2 times
...
woke
3 years, 7 months ago
c is correct
upvoted 3 times
...
KK_uniq
3 years, 8 months ago
C for sure
upvoted 3 times
...
syu31svc
3 years, 8 months ago
https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html C is correct
upvoted 3 times
...
mryala
3 years, 8 months ago
it's C
upvoted 2 times
...
Ankitrathi85
3 years, 8 months ago
C right
upvoted 2 times
...
arunchu
3 years, 8 months ago
I agree it is C
upvoted 2 times
...
anpt
3 years, 8 months ago
CCCCCCCCCCCCCCCCCCCCCCC
upvoted 4 times
...
venh123
3 years, 8 months ago
C is right
upvoted 2 times
...
anotherlameaccount
3 years, 8 months ago
i have to disagree with the common logic here. For me the answer is D because in C you allow the user to directly download the logs and have them or even distribute them. D is the most secure because you create account for the user... give me the read access and have full control over what he can copy paste even.
upvoted 1 times
Toks2021
3 years, 8 months ago
Exactly my thoughts!
upvoted 1 times
...
anotherlameaccount
3 years, 8 months ago
nevertheless, I see now that in D they say give access to log files and app both. so it seems like a wrong answer. The next best is C in that case. I would always do the D approach in real life scenario tho.... It is 100 times more secure
upvoted 5 times
...
...
Hari_krish
3 years, 8 months ago
A presigned URL is generated by an AWS user who has access to the object. The generated URL is then given to the unauthorized user. The presigned URL can be entered in a browser or used by a program or HTML webpage. The credentials used by the presigned URL are those of the AWS user who generated the URL. A presigned URL remains valid for a limited period of time which is specified when the URL is generated.
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 ...