For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Associate (SAA-C03)AWS SAA-C03 Practice Exam 7Question 02
    Easy1 markMultiple Choice
    Domain 1.1: Secure AccessSecurityIAMEC2

    AWS SAA-C03 · Question 02 · Domain 1.1: Secure Access

    An application runs on Amazon EC2 instances and needs to access an Amazon S3 bucket. What is the MOST secure way to grant the EC2 instances access to the S3 bucket?

    Answer options:

    A.

    Store IAM user access keys in a configuration file on the EC2 instances.

    B.

    Create an IAM role with S3 access permissions and attach it to an EC2 instance profile.

    C.

    Make the S3 bucket public and restrict access using a bucket policy based on the EC2 instance IP addresses.

    D.

    Embed IAM user credentials directly into the application code.

    How to approach this question

    Look for the solution that avoids long-term credentials. IAM roles attached to EC2 instances are the AWS best practice.

    Full Answer

    B.Create an IAM role with S3 access permissions and attach it to an EC2 instance profile.✓ Correct
    Create an IAM role with S3 access permissions and attach it to an EC2 instance profile.
    IAM roles attached via instance profiles allow applications running on EC2 to securely make API requests without managing long-term credentials.

    Common mistakes

    Choosing to store access keys, which violates security best practices.
    Question 01All questionsQuestion 03

    Practice the full AWS SAA-C03 Practice Exam 7

    65 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01A company has multiple AWS accounts in an AWS Organizations organization. The security team needs...MediumQ03A company wants to implement federated access to the AWS Management Console for its employees usi...MediumQ04A company is building a mobile application that requires users to sign in using their social medi...EasyQ05A security team wants to enforce MFA for all IAM users before they can terminate EC2 instances. H...MediumQ06A company needs to grant a third-party vendor access to an S3 bucket in its AWS account. The vend...Hard
    View all 65 questions →