6.0 Security and Compliance DOP-C02 Practice Quiz
102 exam-style questions covering 17% of the DOP-C02 exam. Instant feedback on every answer, progress tracking, no signup required.
This domain is part of the AWS Certified DevOps Engineer Professional practice test. Each question is tagged by exam objective and difficulty so you can drill exactly the areas you need.
Sample Questions
A CI/CD pipeline needs to deploy CloudFormation stacks into a workload account. The current design stores a long-term IAM user's access key in the build project. What should replace this design?
- A. An IAM role assumed by the pipeline with scoped deployment permissions
- B. A shared root user access key stored as a pipeline secret
- C. A human IAM user reused by every pipeline
- D. A resource tag that contains the access key
A role provides temporary credentials and can be scoped to the deployment actions and target resources instead of storing long-term keys. This is the correct answer.
A third-party SaaS platform needs to read selected metrics from one AWS account. What is the preferred access model?
- A. Cross-account IAM role with an external ID and least-privilege permissions
- B. An administrator access key emailed to the SaaS provider
- C. A public CloudWatch dashboard that includes all account data
- D. A shared root password stored in the SaaS configuration
A cross-account role with external ID reduces confused-deputy risk and avoids sharing long-term credentials. This is the correct answer.
A developer needs console access to troubleshoot staging but should not have permanent production permissions. Which IAM entity model is appropriate?
- A. Permanent access keys assigned directly to the developer for production
- B. Federated human access to roles with time-bound or approval-based production elevation
- C. An EC2 instance profile attached to the developer's laptop
- D. A bucket policy granting the developer all AWS actions
Human access should use federation and roles so permissions are temporary, auditable, and aligned to environment need. This is the correct answer.
A DevOps engineer is reviewing access for humans, applications, and AWS services. Which principle correctly separates IAM entity usage?
- A. Use IAM users with long-term keys for every workload and every employee
- B. Use federated roles for humans, service roles for AWS services, and instance or task roles for workloads
- C. Use security groups as the primary human identity store
- D. Use S3 bucket ACLs to represent every machine identity
Different principals need identity mechanisms designed for their lifecycle, credential delivery, and audit requirements. This is the correct answer.
A contractor should lose AWS access automatically when removed from the corporate directory group. Which design supports this?
- A. A standalone IAM user that nobody reviews
- B. Federated access controlled by identity provider group membership
- C. A permanent access key stored in the contractor's local tool
- D. A security group rule named after the contractor
Group-driven federation ties AWS access to the central identity lifecycle, reducing stale account access. This is the correct answer.
An application on EC2 must call DynamoDB. Which identity mechanism should be used?
- A. A plaintext IAM access key stored in the AMI
- B. A developer's personal access key copied into user data
- C. An IAM role attached through an EC2 instance profile
- D. The account root credentials stored in an environment variable
An instance profile delivers temporary credentials to the instance without embedding static keys in the application. This is the correct answer.
A company uses an external identity provider and wants employees to access AWS accounts without creating IAM users in each account. Which solution fits?
- A. Separate IAM users created manually in every account
- B. Shared administrator credentials for each team
- C. AWS IAM Identity Center integrated with the identity provider
- D. S3 bucket policies as the workforce login system
IAM Identity Center enables federated workforce access to multiple AWS accounts through centralized permission assignments. This is the correct answer.
A Lambda function must read from an S3 bucket and write to a DynamoDB table. Which identity should grant this access?
- A. An IAM group assigned to the Lambda function
- B. A console password embedded in the function package
- C. An unrestricted administrator user created for the function
- D. The Lambda execution role with only the required S3 and DynamoDB actions
The execution role is the machine identity for Lambda and should grant only the calls the function needs. This is the correct answer.
Key Terms in This Domain
- IAM permissions boundaries: Maximum permissions an identity-based policy can grant
- AWS IAM: Identity and access management for AWS resources
- Least privilege: Grant only the permissions required for a task, nothing more
- AWS CloudTrail: Audit log of AWS API activity for governance and security
- IAM Identity Center: Centralized SSO across AWS accounts and applications
- Amazon Cognito: User identity and authentication for web and mobile apps
- Defense in depth: Layered security controls so failure of one does not expose the system
- AWS Config: Track resource configuration changes and assess compliance
- AWS Config rules: Continuously evaluate resources against compliance rules
- AWS Config remediation: Automatically fix non-compliant resources via SSM Automation
Link to this quiz
Studying with a group or teaching a class? Send this address or paste the link into your notes, wiki, or course page:
https://quizbuffet.com/aws-devops-engineer-professional/security-and-compliance/
<a href="https://quizbuffet.com/aws-devops-engineer-professional/security-and-compliance/">AWS DevOps Engineer Professional Security and Compliance practice quiz on QuizBuffet</a>
Other DOP-C02 Domains
- 1.0 SDLC Automation
- 2.0 Configuration Management and IaC
- 3.0 Resilient Cloud Solutions
- 4.0 Monitoring and Logging
- 5.0 Incident and Event Response
← Back to DOP-C02 practice test overview
Questions are written against the published DOP-C02 objectives and checked for accuracy and balance before they go live. How QuizBuffet writes and reviews its questions.