Question 686 of 1,040
Design Secure ArchitecturesmediumMultiple SelectObjective-mapped

Quick Answer

The answer is to attach an IAM role to the EC2 instance profile, grant that role least-privilege access to the specific DynamoDB table and S3 bucket, and apply a permissions boundary to any IAM roles the platform team creates. This works because the EC2 IAM role provides temporary credentials via the instance metadata service, eliminating long-lived keys, while the permissions boundary acts as a guardrail that caps the maximum permissions any new role can have, even if the platform team grants broader policies. On the SAA-C03 exam, this scenario tests your understanding of how to combine resource-level access (DynamoDB and S3) with administrative controls—a common trap is forgetting that a permissions boundary does not grant permissions itself but only limits them, so the role’s identity-based policy must still allow the actions. A useful memory tip is “role for access, boundary for control”: the EC2 IAM role handles the DynamoDB reads and S3 log uploads, while the boundary ensures platform-created roles never exceed the predefined set.

SAA-C03 Design Secure Architectures Practice Question

This SAA-C03 practice question tests your understanding of design secure architectures. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A startup runs an API on Amazon EC2. The instance must read items from one DynamoDB table and upload logs to one S3 bucket. Platform engineers also need a way to create new application roles, but those roles must never exceed a predefined set of permissions. Which three actions should the architect take? Select three.

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "never"

    Why it matters: Absolute qualifier. True only if the statement has zero exceptions — be cautious of options that seem obvious but break down in edge cases.

Question 1mediummulti select
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Attach an IAM role to the EC2 instance profile and remove long-lived access keys from the server.

Option A is correct because attaching an IAM role to the EC2 instance profile allows the instance to obtain temporary credentials via the instance metadata service (IMDS), eliminating the need to store long-lived access keys on the server. This follows the AWS security best practice of using IAM roles for EC2 to securely access DynamoDB and S3 without managing static credentials.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Attach an IAM role to the EC2 instance profile and remove long-lived access keys from the server.

    Why this is correct

    This gives the workload temporary credentials through the instance metadata service and avoids storing secrets on the host. It is the standard least-privilege pattern for EC2-based applications.

    Clue confirmation

    The clue word "never" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Give the EC2 instance an IAM user with administrator access for simplicity.

    Why it's wrong here

    An IAM user with broad permissions creates long-lived credentials and unnecessary blast radius. It is the opposite of least privilege and is hard to audit safely.

  • Scope the application policy to the exact DynamoDB table ARN and S3 bucket prefix.

    Why this is correct

    Restricting the policy to the specific table and bucket prefix limits what the application can reach. That keeps the workload functional while preventing access to unrelated data.

    Clue confirmation

    The clue word "never" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Store the access keys in the application configuration file and rotate them later.

    Why it's wrong here

    Static keys in configuration files are easy to leak and are difficult to rotate cleanly. AWS roles are safer because temporary credentials are issued automatically.

  • Use a permissions boundary for any IAM roles the platform team is allowed to create.

    Why this is correct

    A permissions boundary caps the maximum permissions a created role can ever receive. It is ideal for delegated administration when teams can create roles but must stay within guardrails.

    Clue confirmation

    The clue word "never" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may think storing access keys in a config file is acceptable if rotated later, but AWS explicitly recommends using IAM roles for EC2 to avoid the security risks of long-lived credentials.

Detailed technical explanation

How to think about this question

When an IAM role is attached to an EC2 instance profile, the AWS credentials provider chain automatically retrieves temporary security credentials from the instance metadata service (IMDSv2) at http://169.254.169.254/latest/meta-data/iam/security-credentials/. These credentials are valid for a configurable duration (default 1 hour) and are automatically refreshed by the AWS SDK, ensuring continuous access without manual key rotation. The permissions boundary in option E works by setting the maximum permissions an IAM role can have, so even if the platform team creates a new role, it cannot exceed the boundary's defined actions and resources.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SAA-C03 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SAA-C03 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SAA-C03 question test?

Design Secure Architectures — This question tests Design Secure Architectures — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Attach an IAM role to the EC2 instance profile and remove long-lived access keys from the server. — Option A is correct because attaching an IAM role to the EC2 instance profile allows the instance to obtain temporary credentials via the instance metadata service (IMDS), eliminating the need to store long-lived access keys on the server. This follows the AWS security best practice of using IAM roles for EC2 to securely access DynamoDB and S3 without managing static credentials.

What should I do if I get this SAA-C03 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "never". Absolute qualifier. True only if the statement has zero exceptions — be cautious of options that seem obvious but break down in edge cases.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on SAA-C03

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A startup runs an API on Amazon EC2. The instance must read items from one DynamoDB table and upload logs to one S3 bucket. Platform engineers also need a way to create new application roles, but those roles must never exceed a predefined set of permissions. Which three actions should the architect take? Select three.

medium
  • A.Attach an IAM role to the EC2 instance profile and remove long-lived access keys from the server.
  • B.Give the EC2 instance an IAM user with administrator access for simplicity.
  • C.Scope the application policy to the exact DynamoDB table ARN and S3 bucket prefix.
  • D.Store the access keys in the application configuration file and rotate them later.
  • E.Use a permissions boundary for any IAM roles the platform team is allowed to create.

Why A: Option A is correct because attaching an IAM role to the EC2 instance profile allows the instance to obtain temporary credentials via the instance metadata service (IMDS), eliminating the need to store long-lived access keys on the server. This follows the AWS security best practice of using roles for EC2 to securely access DynamoDB and S3 without managing static credentials.

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SAA-C03 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAA-C03 exam.