DVA-C02 Security Practice Question
Which THREE are best practices for managing IAM users and roles? (Choose three.)
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
✓
Rotate IAM user access keys periodically.
Options A, B, and C are correct. Option A: Rotating IAM user access keys periodically reduces the risk of compromised credentials. Option B: Granting least privilege ensures users have only the permissions necessary to perform their tasks, minimizing security risks. Option C: Using IAM roles for EC2 instances avoids the need to store long-term access keys on the instances, which is more secure. Option D is incorrect because the root account should not be used for daily tasks; it should be secured and used only for account-level administrative actions. Option E is incorrect because assigning full administrator access violates the principle of least privilege and increases security risk.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Rotate IAM user access keys periodically.
Why this is correct
IAM user access keys are long-term credentials that remain valid until explicitly deactivated or deleted. Periodic rotation—for example, via an automated script or the AWS Console—shrinks the exploit window should a key leak into source code or logs. AWS provides 'last used' information to help identify and prune stale keys, and rotating keys is a fundamental part of any credential management policy.
- ✓
Grant least privilege permissions.
Why this is correct
Least privilege requires building IAM policies that grant only the exact actions and resources a principal needs, and ideally constraining them with conditions like source IP or time-of-day. AWS managed policies are convenient but often too broad; a custom policy scoped to a specific bucket or API action prevents a compromised user from escalating or accessing unrelated data. This minimizes the blast radius of leaked credentials.
- ✓
Use IAM roles for EC2 instances instead of storing access keys.
Why this is correct
Assigning an IAM role to an EC2 instance lets the instance retrieve temporary credentials from the instance metadata service, removing the need to store access keys on the instance or in code. These credentials are issued via STS and expire automatically, so even if an instance is compromised, the attacker cannot reuse exported keys. This eliminates the operational burden of distributing and rotating static keys across fleets.
- ✗
Use the root account for daily administrative tasks.
Why it's wrong here
The root user has unrestricted access to every service and resource in the account, and AWS recommends deleting root access keys and enabling multi-factor authentication for the root account. Performing daily administrative tasks as root violates that principle, exposing the account to catastrophic compromise if the root password is phished. Even break-glass account recovery should be a rare, tightly controlled event.
- ✗
Assign full administrator access to all users.
Why it's wrong here
Attaching a policy that grants wildcard actions ("Action:*") on all resources gives every user the ability to modify IAM, delete data, or create expensive services. Such broad permissions mean a single stolen credential can lead to account takeover or a massive billing shock. Admin privileges should be reserved for a small break-glass group, and all routine work should be confined to narrowly scoped policies.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DVA-C02 question from scratch — 724 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DVA-C02 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 DVA-C02 exam.