exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 90 discussion

A company moved some of its secure files to a private Amazon S3 bucket that has no public access. The company wants to develop a serverless application that gives its employees the ability to log in and securely share the files with other users.

Which AWS feature should the company use to share and access the files securely?

  • A. Amazon Cognito user pool
  • B. S3 presigned URLs
  • C. S3 bucket policy
  • D. Amazon Cognito identity pool
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
Dushank
Highly Voted 1 year, 7 months ago
Selected Answer: B
Employees log into the serverless application using an Amazon Cognito User Pool. Once logged in, the application's back-end logic (possibly a Lambda function) generates an S3 pre-signed URL for the requested file. The pre-signed URL is then given to the authenticated user, allowing them secure, time-limited access to that specific S3 object. So, while both Amazon Cognito User Pool and S3 Pre-signed URLs would be used in the solution, S3 Pre-signed URLs (Option B) are the specific feature that allows for the secure, temporary sharing of S3 files. Therefore, Option B would be the best answer to the question of how to "share and access the files securely."
upvoted 25 times
...
loctong
Highly Voted 1 year, 11 months ago
Selected Answer: A
the key words are ability to log in and securely share the files. It is A
upvoted 20 times
jipark
1 year, 9 months ago
I agree 'log in' would go user pool.
upvoted 2 times
...
rimaSamir
1 year, 2 months ago
But we need to answer a question not task condition
upvoted 3 times
...
...
Shamalka
Most Recent 1 month, 3 weeks ago
Selected Answer: D
A presigned URL doesn't allow you to share files with others. The last line of the question specifically asks which service would give you the ability not only to access but also to share files too. In that case, CIP seems to be the service to give temporary credentials to AWS resources and perform whatever is specified in the bucket policy
upvoted 1 times
...
sumanshu
4 months, 1 week ago
Selected Answer: B
A) Eliminated - While Cognito is useful for managing user authentication, it does not directly provide the capability to securely share files from an S3 bucket.
upvoted 1 times
...
wh1t4k3r
8 months, 2 weeks ago
Selected Answer: B
I had my doubt on this, but once more they are evaluating if you are reading with attention and not if you have knowldge hehe tricky question, but the punch line question is What feature would be used to share the files securely, ignoring the login part.
upvoted 4 times
...
[Removed]
10 months ago
Selected Answer: B
I'll go with B. The question is what the company should use to share and access the files securely. We can ignore the task condition
upvoted 3 times
...
65703c1
11 months, 2 weeks ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
SerialiDr
1 year, 2 months ago
Selected Answer: B
This option allows secure, temporary access to specific objects in an S3 bucket. By generating presigned URLs, the serverless application can grant users time-limited access to download or upload files without altering the permissions of the S3 bucket or the objects. This method ensures secure access management and is suitable for sharing private files among authenticated users.
upvoted 3 times
...
SD_CS
1 year, 3 months ago
Selected Answer: A
in order to log in you need to use cognito user pools
upvoted 3 times
...
rimaSamir
1 year, 3 months ago
Actually, the quesion is about "what feature will be used by the new serverless application to share and access the files securely". Ability to log in is about "Amazon Cognito user pool". Imagine "Lambda function" and "API Gateway" are created as a serverless app to provide some API. When you call API endpoint, it will login to "Amazon Cognito user pool" and then share files using SDK. How it will share is the next question. My answer is A
upvoted 4 times
...
Ashwinvdm22
1 year, 3 months ago
Selected Answer: B
The answer must be B. So although in the question it says "gives its employees the ability to log in" (which is hinting towards Cognito User Pools) the question is actually asking: "Which AWS feature should the company use to share and access the files securely?" The question is actually about how to share and access the files securely. Hence it must be the S3 pre-signed URL option. To read up more on S3 pre-signed URLs check here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html
upvoted 4 times
...
peekingpicker
1 year, 3 months ago
Selected Answer: B
Which AWS feature should the company use to share and access the files securely? So, It's B. S3 Pre-signed URL can used to share S3 object to other people securely.
upvoted 3 times
...
gqs3119
1 year, 4 months ago
It's not A, Cognito user pool is not needed, only employees need ability to log in, they can be provided with IAM accounts.
upvoted 1 times
...
a_win
1 year, 4 months ago
Selected Answer: D
An Amazon Cognito identity pool provides temporary AWS credentials for users who authenticate via Amazon Cognito. This allows your application users (employees, in this case) to securely authenticate and gain access to AWS services like S3 based on their assigned roles and permissions. Through Amazon Cognito, you can manage user identities, control user access to resources, and provide temporary, limited-privilege credentials to access the S3 bucket securely.
upvoted 4 times
...
KarBiswa
1 year, 4 months ago
Selected Answer: B
I will go with B because its purely asking about sharing and no mention about external logins so we should go by default AWS feature which provides this feature, https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html
upvoted 3 times
...
tqiu654
1 year, 5 months ago
Selected Answer: B
ChatGPT: B
upvoted 3 times
...
didorins
1 year, 6 months ago
Login of external to AWS users, we can use Cognito. Identity Pool is specifically for DynamoDB and S3. Use an identity pool when you need to: Give your users access to AWS resources, such as an Amazon Simple Storage Service (Amazon S3) bucket or an Amazon DynamoDB table. https://repost.aws/knowledge-center/cognito-user-pools-identity-pools
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