AWS CloudOps Engineer Associate · Domain 4 of 5 · 16% of the exam

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

  1. Question 1. Operators must connect to private EC2 instances without opening port 22 or managing SSH keys. What should be used?

    1. Systems Manager Session Manager
    2. A bastion host with a public IP
    3. An SSH key pair stored in S3
    4. A security group rule allowing 0.0.0.0/0
    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.

  2. Question 2. Session Manager sessions must be recorded for audit. What should be configured?

    1. CloudTrail data events for the instance
    2. VPC Flow Logs for the instance's subnet
    3. Session logging to S3 or CloudWatch Logs
    4. An SSH login banner on each instance
    Show answer

    Answer: C. Session logging to S3 or CloudWatch Logs

    Session Manager can log session activity and encrypt it with a KMS key.

  3. Question 3. Which service provides a managed threat detection feed from CloudTrail, VPC Flow Logs, and DNS logs?

    1. AWS Config
    2. AWS Shield Standard
    3. Amazon GuardDuty
    4. Amazon Macie
    Show answer

    Answer: C. Amazon GuardDuty

    GuardDuty analyzes logs with threat intelligence and ML to find compromised instances and credentials.

  4. Question 4. A GuardDuty finding shows an EC2 instance communicating with a known bad IP. What is an automated first response?

    1. Delete the GuardDuty detector in the account
    2. Disable CloudTrail logging in the account
    3. An EventBridge rule that runs isolation automation
    4. Reboot every instance in the Region
    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.

  5. Question 5. Which service aggregates security findings from GuardDuty, Inspector, Macie, and Config and checks against best-practice standards?

    1. AWS Security Hub
    2. AWS Artifact
    3. AWS Trusted Advisor
    4. Amazon Detective
    Show answer

    Answer: A. AWS Security Hub

    Security Hub normalizes findings and runs automated checks like the AWS Foundational Security Best Practices.

  6. Question 6. Amazon Inspector reports a critical OS vulnerability on 40 instances. What is the fastest way to patch them?

    1. Run Patch Manager "Patch now" on the affected instances
    2. Add an AWS WAF rule that blocks the CVE number
    3. Enable GuardDuty Malware Protection for EC2
    4. Terminate the instances and relaunch the same AMI
    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.

  7. Question 7. A CloudTrail trail must record API activity in every Region and every account in an organization. What should be created?

    1. A single-Region trail in each account
    2. A CloudWatch dashboard for API calls
    3. An AWS Config aggregator
    4. An organization trail that applies to all Regions
    Show answer

    Answer: D. An organization trail that applies to all Regions

    Organization trails log all member accounts to a central bucket.

  8. Question 8. How can a team detect if CloudTrail log files in S3 were modified after delivery?

    1. Enable CloudTrail log file integrity validation
    2. Enable S3 Transfer Acceleration on the bucket
    3. Move the logs to S3 Intelligent-Tiering
    4. Enable VPC Flow Logs for the account
    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.

  9. Question 9. Which CloudTrail feature detects unusual API activity, such as a spike in resource provisioning?

    1. CloudTrail Insights
    2. CloudTrail Lake event data stores only
    3. Log file validation
    4. Management event selectors
    Show answer

    Answer: A. CloudTrail Insights

    Insights analyzes write management events and API error rates to flag unusual patterns.

  10. Question 10. Which Organizations feature prevents any account from disabling CloudTrail, even with full IAM permissions?

    1. An IAM permissions boundary on each user
    2. A resource-based policy attached to the trail
    3. A tag policy that requires tags on trails
    4. An SCP that denies cloudtrail:StopLogging
    Show answer

    Answer: D. An SCP that denies cloudtrail:StopLogging

    SCPs set maximum permissions for member accounts, including administrators.

  11. Question 11. Which Organizations policy type limits what resources can be accessed based on resource-side conditions, such as only trusted accounts accessing buckets?

    1. Backup policies
    2. Resource control policies (RCPs)
    3. Tag policies
    4. AI services opt-out policies
    Show answer

    Answer: B. Resource control policies (RCPs)

    RCPs set maximum permissions on resources across the organization, complementing SCPs on principals.

  12. Question 12. A company must ensure all EBS volumes created in a Region are encrypted. What is the simplest control?

    1. Encrypt volumes manually after creation
    2. Use instance store volumes instead
    3. Enable EBS encryption by default in each Region
    4. Add a tag requiring encryption
    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.

  13. Question 13. An existing unencrypted EBS volume must be encrypted. How is this done?

    1. Enable encryption on the attached volume in place
    2. Detach the volume and set its encryption flag
    3. Snapshot, copy it with encryption, then create a volume
    4. Apply S3 SSE-KMS encryption to the volume
    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.

  14. Question 14. An RDS instance was created unencrypted. How can it be encrypted?

    1. Modify the instance and enable encryption in place
    2. Enable encryption on the read replica only
    3. Turn on SSL for all client connections
    4. Copy a snapshot with encryption and restore from it
    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.

  15. Question 15. Which service helps find IAM roles and S3 buckets shared with external accounts?

    1. IAM Access Analyzer
    2. AWS Budgets
    3. Amazon Inspector
    4. AWS X-Ray
    Show answer

    Answer: A. IAM Access Analyzer

    Access Analyzer uses reasoning to find external access and also finds unused access.

  16. Question 16. A company needs AWS compliance reports, such as SOC 2 and ISO certifications, for an audit. Where are they found?

    1. AWS Security Hub
    2. AWS Config
    3. AWS Artifact
    4. AWS Audit Manager only
    Show answer

    Answer: C. AWS Artifact

    Artifact provides AWS compliance reports and agreements on demand.

  17. Question 17. Which service continuously collects evidence to help prepare for audits against frameworks such as PCI DSS?

    1. AWS Artifact
    2. AWS Trusted Advisor
    3. Amazon GuardDuty
    4. AWS Audit Manager
    Show answer

    Answer: D. AWS Audit Manager

    Audit Manager maps evidence from Config, CloudTrail, and Security Hub to control frameworks.

  18. Question 18. A KMS key must rotate its key material yearly with no application changes. What should be enabled?

    1. A new key created every year manually
    2. Key deletion scheduled yearly
    3. Automatic key rotation on the customer managed key
    4. A key policy that changes yearly
    Show answer

    Answer: C. Automatic key rotation on the customer managed key

    Automatic rotation keeps old material for decryption, so applications keep working.

  19. Question 19. A KMS key was scheduled for deletion by mistake. What can be done?

    1. Nothing; the key is deleted immediately
    2. Cancel the deletion during the waiting period
    3. Restore the key from an S3 backup
    4. Recreate it with the same key ID
    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.

  20. Question 20. Which service provides managed, automatically renewed TLS certificates for ALBs and CloudFront?

    1. AWS Secrets Manager
    2. AWS KMS
    3. AWS Certificate Manager
    4. IAM server certificates only
    Show answer

    Answer: C. AWS Certificate Manager

    ACM certificates renew automatically when validated by DNS.

  21. Question 21. An ACM certificate validated by email expires soon and won't renew automatically. What prevents this in the future?

    1. Use DNS validation, leaving the CNAME in place
    2. Import the certificate from a third party instead
    3. Request a certificate with a shorter validity period
    4. Attach the certificate to more resources
    Show answer

    Answer: A. Use DNS validation, leaving the CNAME in place

    DNS-validated certificates renew automatically as long as the validation record exists.

  22. Question 22. Which WAF feature blocks an IP that sends more than a set number of requests in 5 minutes?

    1. A rate-based rule
    2. A geo match rule
    3. An IP set allow rule
    4. A size constraint rule
    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.

  23. Question 23. Which service protects against larger DDoS attacks with 24/7 access to the AWS Shield Response Team?

    1. AWS Shield Standard
    2. AWS Shield Advanced
    3. AWS WAF alone
    4. Amazon GuardDuty
    Show answer

    Answer: B. AWS Shield Advanced

    Shield Advanced adds enhanced detection, cost protection, and expert support.

  24. Question 24. Which service centrally manages WAF rules and security groups across many accounts?

    1. AWS Config
    2. AWS Control Tower only
    3. AWS Firewall Manager
    4. IAM Identity Center
    Show answer

    Answer: C. AWS Firewall Manager

    Firewall Manager applies policies for WAF, Shield Advanced, security groups, and Network Firewall organization-wide.

  25. Question 25. Access keys for an IAM user were exposed publicly. What should be done first?

    1. Delete the user's MFA device right away
    2. Deactivate the keys and review CloudTrail
    3. Rotate only the root user's password
    4. Increase the account's service quotas
    Show answer

    Answer: B. Deactivate the keys and review CloudTrail

    Disabling the keys stops further misuse, and CloudTrail shows what they were used for.

  26. Question 26. Which report lists all IAM users and the status of their passwords, keys, and MFA?

    1. The IAM policy simulator
    2. The IAM credential report
    3. The CloudTrail event history
    4. The Config compliance timeline
    Show answer

    Answer: B. The IAM credential report

    The credential report helps find unused credentials and users without MFA.

  27. Question 27. A company wants to find and remove IAM permissions that haven't been used in 90 days. What helps?

    1. AWS Budgets alerts for each role
    2. The Trusted Advisor cost optimization report
    3. Last accessed data and unused access findings
    4. VPC Flow Logs for each subnet
    Show answer

    Answer: C. Last accessed data and unused access findings

    Last accessed data shows which services a role actually used, supporting least privilege.

  28. Question 28. An S3 bucket holds sensitive data and must be scanned for PII. Which service fits?

    1. Amazon Inspector
    2. AWS Shield
    3. Amazon Macie
    4. AWS Artifact
    Show answer

    Answer: C. Amazon Macie

    Macie discovers and classifies sensitive data in S3 and produces findings.

  29. Question 29. Operators need temporary elevated access to production, approved and logged. Which approach fits?

    1. Temporary elevated access through IAM Identity Center with approval
    2. Permanent administrator access for all operators
    3. A shared root account password
    4. Long-lived access keys for each operator
    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.

  30. Question 30. Which AWS Config rule type is written by the customer when no managed rule fits?

    1. A managed rule with custom tags
    2. A custom rule using Lambda or Guard
    3. A conformance pack only
    4. An aggregator rule
    Show answer

    Answer: B. A custom rule using Lambda or Guard

    Custom rules evaluate resources with Lambda code or Guard policy syntax.

  31. Question 31. EC2 instances must use IMDSv2 across all accounts. How can this be enforced for new instances?

    1. A tag policy that tags instances with "imdsv2"
    2. A CloudWatch alarm on instance launches
    3. An S3 bucket policy on the AMI bucket
    4. An SCP condition requiring IMDSv2 tokens at launch
    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.

  32. Question 32. A security group should allow traffic only from instances in another security group. What should be used as the source?

    1. The other instances' public IPs
    2. The other security group's ID
    3. The VPC's internet gateway
    4. 0.0.0.0/0 with a description
    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.