AWS CloudOps Engineer Associate Domain 4: Security and Compliance
32 free practice questions for Security and Compliance in the AWS Certified CloudOps Engineer – Associate (SOA-C03) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Security and Compliance practice questions
-
Question 1. Operators must connect to private EC2 instances without opening port 22 or managing SSH keys. What should be used?
Show answer
Answer: A. Systems Manager Session Manager
Session Manager uses IAM for access, needs no inbound ports, and can log sessions to S3 or CloudWatch.
-
Question 2. Session Manager sessions must be recorded for audit. What should be configured?
Show answer
Answer: C. Session logging to S3 or CloudWatch Logs
Session Manager can log session activity and encrypt it with a KMS key.
-
Question 3. Which service provides a managed threat detection feed from CloudTrail, VPC Flow Logs, and DNS logs?
Show answer
Answer: C. Amazon GuardDuty
GuardDuty analyzes logs with threat intelligence and ML to find compromised instances and credentials.
-
Question 4. A GuardDuty finding shows an EC2 instance communicating with a known bad IP. What is an automated first response?
Show answer
Answer: C. An EventBridge rule that runs isolation automation
Isolation, such as swapping to a restrictive security group, contains the threat while keeping evidence.
-
Question 5. Which service aggregates security findings from GuardDuty, Inspector, Macie, and Config and checks against best-practice standards?
Show answer
Answer: A. AWS Security Hub
Security Hub normalizes findings and runs automated checks like the AWS Foundational Security Best Practices.
-
Question 6. Amazon Inspector reports a critical OS vulnerability on 40 instances. What is the fastest way to patch them?
Show answer
Answer: A. Run Patch Manager "Patch now" on the affected instances
Patch Manager can patch targeted instances on demand. Relaunching from the same unpatched AMI keeps the vulnerability.
-
Question 7. A CloudTrail trail must record API activity in every Region and every account in an organization. What should be created?
Show answer
Answer: D. An organization trail that applies to all Regions
Organization trails log all member accounts to a central bucket.
-
Question 8. How can a team detect if CloudTrail log files in S3 were modified after delivery?
Show answer
Answer: A. Enable CloudTrail log file integrity validation
Validation creates signed digest files, and the CLI can verify that logs haven't changed.
-
Question 9. Which CloudTrail feature detects unusual API activity, such as a spike in resource provisioning?
Show answer
Answer: A. CloudTrail Insights
Insights analyzes write management events and API error rates to flag unusual patterns.
-
Question 10. Which Organizations feature prevents any account from disabling CloudTrail, even with full IAM permissions?
Show answer
Answer: D. An SCP that denies cloudtrail:StopLogging
SCPs set maximum permissions for member accounts, including administrators.
-
Question 11. Which Organizations policy type limits what resources can be accessed based on resource-side conditions, such as only trusted accounts accessing buckets?
Show answer
Answer: B. Resource control policies (RCPs)
RCPs set maximum permissions on resources across the organization, complementing SCPs on principals.
-
Question 12. A company must ensure all EBS volumes created in a Region are encrypted. What is the simplest control?
Show answer
Answer: C. Enable EBS encryption by default in each Region
Encryption by default applies to all new volumes and snapshots copies in that Region.
-
Question 13. An existing unencrypted EBS volume must be encrypted. How is this done?
Show answer
Answer: C. Snapshot, copy it with encryption, then create a volume
Encryption is set at creation, so it's done through an encrypted snapshot copy.
-
Question 14. An RDS instance was created unencrypted. How can it be encrypted?
Show answer
Answer: D. Copy a snapshot with encryption and restore from it
RDS encryption is set at creation, so restore from an encrypted snapshot copy.
-
Question 15. Which service helps find IAM roles and S3 buckets shared with external accounts?
Show answer
Answer: A. IAM Access Analyzer
Access Analyzer uses reasoning to find external access and also finds unused access.
-
Question 16. A company needs AWS compliance reports, such as SOC 2 and ISO certifications, for an audit. Where are they found?
Show answer
Answer: C. AWS Artifact
Artifact provides AWS compliance reports and agreements on demand.
-
Question 17. Which service continuously collects evidence to help prepare for audits against frameworks such as PCI DSS?
Show answer
Answer: D. AWS Audit Manager
Audit Manager maps evidence from Config, CloudTrail, and Security Hub to control frameworks.
-
Question 18. A KMS key must rotate its key material yearly with no application changes. What should be enabled?
Show answer
Answer: C. Automatic key rotation on the customer managed key
Automatic rotation keeps old material for decryption, so applications keep working.
-
Question 19. A KMS key was scheduled for deletion by mistake. What can be done?
Show answer
Answer: B. Cancel the deletion during the waiting period
Deletion has a 7 to 30 day waiting period, during which it can be cancelled.
-
Question 20. Which service provides managed, automatically renewed TLS certificates for ALBs and CloudFront?
Show answer
Answer: C. AWS Certificate Manager
ACM certificates renew automatically when validated by DNS.
-
Question 21. An ACM certificate validated by email expires soon and won't renew automatically. What prevents this in the future?
Show answer
Answer: A. Use DNS validation, leaving the CNAME in place
DNS-validated certificates renew automatically as long as the validation record exists.
-
Question 22. Which WAF feature blocks an IP that sends more than a set number of requests in 5 minutes?
Show answer
Answer: A. A rate-based rule
Rate-based rules count requests per IP or other keys and block or challenge over the limit.
-
Question 23. Which service protects against larger DDoS attacks with 24/7 access to the AWS Shield Response Team?
Show answer
Answer: B. AWS Shield Advanced
Shield Advanced adds enhanced detection, cost protection, and expert support.
-
Question 24. Which service centrally manages WAF rules and security groups across many accounts?
Show answer
Answer: C. AWS Firewall Manager
Firewall Manager applies policies for WAF, Shield Advanced, security groups, and Network Firewall organization-wide.
-
Question 25. Access keys for an IAM user were exposed publicly. What should be done first?
Show answer
Answer: B. Deactivate the keys and review CloudTrail
Disabling the keys stops further misuse, and CloudTrail shows what they were used for.
-
Question 26. Which report lists all IAM users and the status of their passwords, keys, and MFA?
Show answer
Answer: B. The IAM credential report
The credential report helps find unused credentials and users without MFA.
-
Question 27. A company wants to find and remove IAM permissions that haven't been used in 90 days. What helps?
Show answer
Answer: C. Last accessed data and unused access findings
Last accessed data shows which services a role actually used, supporting least privilege.
-
Question 28. An S3 bucket holds sensitive data and must be scanned for PII. Which service fits?
Show answer
Answer: C. Amazon Macie
Macie discovers and classifies sensitive data in S3 and produces findings.
-
Question 29. Operators need temporary elevated access to production, approved and logged. Which approach fits?
Show answer
Answer: A. Temporary elevated access through IAM Identity Center with approval
Just-in-time access with approvals reduces standing privilege and leaves an audit trail.
-
Question 30. Which AWS Config rule type is written by the customer when no managed rule fits?
Show answer
Answer: B. A custom rule using Lambda or Guard
Custom rules evaluate resources with Lambda code or Guard policy syntax.
-
Question 31. EC2 instances must use IMDSv2 across all accounts. How can this be enforced for new instances?
Show answer
Answer: D. An SCP condition requiring IMDSv2 tokens at launch
Conditions can deny RunInstances unless IMDSv2 tokens are required. Account-level defaults can also be set.
-
Question 32. A security group should allow traffic only from instances in another security group. What should be used as the source?
Show answer
Answer: B. The other security group's ID
Security group references adapt automatically as instances are added or replaced.
AWS, Amazon Web Services, and AWS Certified are trademarks of Amazon.com, Inc. or its affiliates. These questions are original study material, not questions from the real exam.