nerdexam
Amazon

SCS-C02 · Question #396

An EC2 Instance hosts a Java based application that access a DynamoDB table. This EC2 Instance is currently serving production based users. Which of the following is a secure way of ensuring that…

The correct answer is A. Use IAM Roles with permissions to interact with DynamoDB and assign it to the EC2 Instance. To always ensure secure access to AWS resources from EC2 Instances, always ensure to assign a Role to the EC2 Instance Option B is invalid because KMS keys are not used as a mechanism for providing EC2 Instances access to AWS services. Option C is invalid Access keys is not a…

Submitted by saadiq_pk· Mar 6, 2026Identity and Access Management

Question

An EC2 Instance hosts a Java based application that access a DynamoDB table. This EC2 Instance is currently serving production based users. Which of the following is a secure way of ensuring that the EC2 Instance access the Dynamo table?

Options

  • AUse IAM Roles with permissions to interact with DynamoDB and assign it to the EC2 Instance
  • BUse KMS keys with the right permissions to interact with DynamoDB and assign it to the EC2
  • CUse IAM Access Keys with the right permissions to interact with DynamoDB and assign it to the
  • DUse IAM Access Groups with the right permissions to interact with DynamoDB and assign it to the

How the community answered

(42 responses)
  • A
    74% (31)
  • B
    5% (2)
  • C
    7% (3)
  • D
    14% (6)

Explanation

To always ensure secure access to AWS resources from EC2 Instances, always ensure to assign a Role to the EC2 Instance Option B is invalid because KMS keys are not used as a mechanism for providing EC2 Instances access to AWS services. Option C is invalid Access keys is not a safe mechanism for providing EC2 Instances access to Option D is invalid because there is no way access groups can be assigned to EC2 Instances.

Topics

#IAM roles#EC2 instance profile#DynamoDB access#least privilege

Community Discussion

No community discussion yet for this question.

Full SCS-C02 Practice