DOP-C02 Security and Compliance Practice Question
A company wants to protect its AWS account credentials. Which TWO practices are recommended by AWS? (Choose TWO.)
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
✓
Enable multi-factor authentication (MFA) for privileged users.
Enabling multi-factor authentication (MFA) adds an extra layer of security beyond a password, which is especially important for privileged users. Option E is correct because IAM roles provide temporary credentials for applications, eliminating the need to store long-term access keys and reducing security risks. Option A is incorrect because access keys should not be shared; each user should have their own keys and they should be rotated regularly. Option B is incorrect because storing IAM user passwords in a shared document violates security best practices and increases the risk of unauthorized access. Option D is incorrect because using the root user for daily administrative tasks is dangerous; the root user should be used only for limited, high-privilege tasks, and otherwise should be protected with MFA and not used for routine operations.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Generate and share access keys for all users.
Why it's wrong here
Sharing access keys obliterates individual accountability because every API action is logged in CloudTrail under a single identity, making audit trails useless for determining who actually performed a change. Furthermore, rotating a shared key disrupts all users simultaneously, and long-lived static credentials remain valid for an extended period, dramatically widening the blast radius if the key is accidentally exposed in code or a secret dump. Each principal must receive unique, individually rotated access keys or, better, temporary credentials via roles.
- ✗
Store IAM user passwords in a shared document.
Why it's wrong here
Storing IAM user passwords in a shared document exposes plaintext secrets in a location that typically lacks fine-grained access controls, encryption at rest, or audit logging. Anyone with read access to the document can log in as any user, and there is no per-user access boundary or way to revoke access for one individual without changing all passwords. This violates the principle of least privilege and is far less secure than a dedicated secret manager with restricted IAM access, versioned secrets, and automatic rotation.
- ✓
Enable multi-factor authentication (MFA) for privileged users.
Why this is correct
Enabling MFA for privileged users requires a second authentication factor, so a stolen or phished password alone cannot produce a console login or an authenticated API call. This control directly blocks account takeover from reused passwords, keylogging, or credential stuffing, because the attacker must also possess the virtual or hardware token. AWS recommends enforcing MFA with an IAM policy that explicitly denies actions unless aws:MultiFactorAuthPresent is true, which makes MFA mandatory rather than optional.
- ✗
Use the root user for daily administrative tasks.
Why it's wrong here
The root user has unrestricted administrative power on the account and cannot be constrained by IAM policies, unlike an IAM principal. If root credentials are compromised, an attacker can permanently delete the account, change billing data, or create a new privileged user, and the root password cannot be rotated via IAM processes or replaced with a role. Daily administrative work should be done through least-privilege IAM roles, while the root account is used only for a few unavoidable tasks and protected with MFA and a strong password.
- ✓
Use IAM roles for applications that require AWS access.
Why this is correct
IAM roles issue temporary AWS STS credentials that expire after a set duration and are scoped by the role's trust policy and permission policy, removing the need to embed long-lived static access keys in applications. EC2 instances, ECS tasks, and Lambda functions can assume roles automatically through instance profiles or service-provided credentials, so no secret is ever stored locally. The temporary credentials can be revoked instantly by removing the role or rejecting the trust policy, and they cannot be exfiltrated and reused indefinitely, fundamentally reducing the risk of long-term credential compromise.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DOP-C02 question from scratch — 1,013 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 DOP-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 DOP-C02 exam.