exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 232 discussion

Exam question from Amazon's AWS-SysOps
Question #: 232
Topic #: 1
[All AWS-SysOps Questions]

A user has created a mobile application which makes calls to DynamoDB to fetch certain data. The application is using the DynamoDB SDK and root account access/secret access key to connect to DynamoDB from mobile. Which of the below mentioned statements is true with respect to the best practice for security in this scenario?

  • A. The user should create a separate IAM user for each mobile application and provide DynamoDB access with it
  • B. The user should create an IAM role with DynamoDB and EC2 access. Attach the role with EC2 and route all calls from the mobile through EC2
  • C. The application should use an IAM role with web identity federation which validates calls to DynamoDB with identity providers, such as Google, Amazon, and Facebook
  • D. Create an IAM Role with DynamoDB access and attach it with the mobile application
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
With AWS IAM a user is creating an application which runs on an EC2 instance and makes requests to AWS, such as DynamoDB or S3 calls. Here it is recommended that the user should not create an IAM user and pass the user's credentials to the application or embed those credentials inside the application. If the user is creating an app that runs on a mobile phone and makes requests to AWS, the user should not create an IAMuser and distribute the user's access key with the app. Instead, he should use an identity provider, such as Login with Amazon, Facebook, or Google to authenticate the users, and then use that identity to get temporary security credentials.

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
dexdinh91
4 months, 4 weeks ago
Selected Answer: A
The most secure approach is to create a separate IAM role for each mobile application and provide DynamoDB access with it (option A). This way, each mobile application has its own set of permissions, which can be tightly controlled to minimize the risk of unauthorized access or data breaches.
upvoted 1 times
...
albert_kuo
10 months, 4 weeks ago
Selected Answer: C
Using an IAM role with web identity federation is a best practice for providing security when accessing DynamoDB from a mobile application. This approach allows the application to authenticate and authorize access using identity providers, such as Google, Amazon, or Facebook. The application can obtain temporary credentials from the identity provider, which can be used to make authenticated calls to DynamoDB.
upvoted 1 times
...
xxxdolorxxx
2 years, 5 months ago
C seems right.
upvoted 1 times
...
TroyMcLure
2 years, 6 months ago
Correct Answer: C
upvoted 1 times
...
awscertified
2 years, 6 months ago
C. The application should use an IAM role with web identity federation which validates calls to DynamoDB with identity providers, such as Google, Amazon, and Facebook
upvoted 4 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