AWS Cloud Practitioner Domain 2: Security and Compliance
60 free practice questions for Security and Compliance in the AWS Certified Cloud Practitioner (CLF-C02) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Security and Compliance practice questions
-
Question 1. Under the AWS shared responsibility model, who is responsible for the physical security of data centers?
Show answer
Answer: A. AWS
AWS is responsible for security 'of' the cloud, including facilities, hardware, and the global network.
-
Question 2. Under the shared responsibility model, who is responsible for configuring security groups on Amazon EC2 instances?
Show answer
Answer: B. The customer
Customers are responsible for security 'in' the cloud, including network configuration and firewall rules.
-
Question 3. Who patches the guest operating system of an Amazon EC2 instance?
Show answer
Answer: A. The customer
With EC2 (IaaS), the customer manages the guest OS, including updates and security patches.
-
Question 4. Who patches the database engine for an Amazon RDS instance?
Show answer
Answer: B. AWS, as part of the managed service
For managed services like RDS, AWS patches the OS and database engine; customers choose maintenance windows.
-
Question 5. Which responsibility is SHARED between AWS and the customer?
Show answer
Answer: C. Patch management and configuration management
AWS patches infrastructure; customers patch their guest OS and applications. Configuration is similarly split.
-
Question 6. Which is a best practice for the AWS account root user?
Show answer
Answer: A. Enable MFA and avoid using it for everyday tasks
Lock away the root user, enable MFA, and use IAM identities for daily work.
-
Question 7. Which task can ONLY be performed by the AWS account root user?
Show answer
Answer: A. Close the AWS account or change certain account settings
A few tasks, such as closing the account and changing some account settings, require the root user.
-
Question 8. What is an IAM group used for?
Show answer
Answer: C. Attaching permissions to multiple IAM users at once
Groups simplify permission management by applying policies to collections of users.
-
Question 9. What is an IAM role BEST suited for?
Show answer
Answer: D. Giving temporary credentials to services, apps, or federated users
Roles are assumed to get temporary security credentials, which avoids long-lived access keys.
-
Question 10. An application on EC2 needs to read from an S3 bucket. What is the MOST secure way to grant access?
Show answer
Answer: D. Attach an IAM role to the instance
Instance roles provide automatically rotated temporary credentials without storing secrets.
-
Question 11. What does the principle of least privilege mean in IAM?
Show answer
Answer: A. Grant only the permissions needed to perform a task
Least privilege reduces the impact of mistakes and compromised credentials.
-
Question 12. What is an IAM policy?
Show answer
Answer: B. A JSON document that defines permissions
Policies specify allowed or denied actions on resources, optionally with conditions.
-
Question 13. Which AWS service provides centralized single sign-on access to multiple AWS accounts and business applications?
Show answer
Answer: A. AWS IAM Identity Center
IAM Identity Center (successor to AWS SSO) manages workforce access across accounts and apps.
-
Question 14. Which service adds sign-up, sign-in, and user management to web and mobile apps for customers?
Show answer
Answer: D. Amazon Cognito
Cognito handles customer (end-user) identities, including social and enterprise federation.
-
Question 15. Where can customers download AWS compliance reports such as SOC reports and ISO certifications?
Show answer
Answer: D. AWS Artifact
AWS Artifact provides on-demand access to AWS security and compliance reports and agreements.
-
Question 16. Which service records API calls made in an AWS account for auditing?
Show answer
Answer: D. AWS CloudTrail
CloudTrail logs who did what, when, and from where across the AWS API.
-
Question 17. Which service tracks resource configuration changes over time and evaluates them against rules?
Show answer
Answer: A. AWS Config
Config records configuration history and checks compliance with rules such as 'S3 buckets must be encrypted'.
-
Question 18. Which service uses machine learning and threat intelligence to detect malicious activity in AWS accounts?
Show answer
Answer: B. Amazon GuardDuty
GuardDuty analyzes sources such as CloudTrail, VPC Flow Logs, and DNS logs to find threats.
-
Question 19. Which service automatically discovers and protects sensitive data such as PII in Amazon S3?
Show answer
Answer: A. Amazon Macie
Macie uses machine learning and pattern matching to identify sensitive data in S3.
-
Question 20. Which service scans EC2 instances, container images, and Lambda functions for software vulnerabilities?
Show answer
Answer: D. Amazon Inspector
Inspector continuously scans workloads for known vulnerabilities and unintended network exposure.
-
Question 21. Which service aggregates security findings from multiple AWS services into a single view with compliance checks?
Show answer
Answer: B. AWS Security Hub
Security Hub centralizes findings from GuardDuty, Inspector, Macie, and others and runs best-practice checks.
-
Question 22. Which service helps analyze and visualize security data to investigate the root cause of findings?
Show answer
Answer: D. Amazon Detective
Detective builds behavior graphs from logs to speed up investigations.
-
Question 23. Which AWS service provides protection against DDoS attacks at no additional cost for all customers?
Show answer
Answer: A. AWS Shield Standard
Shield Standard automatically protects against common network and transport layer DDoS attacks.
-
Question 24. Which service offers enhanced DDoS protection, 24/7 access to the Shield Response Team, and cost protection for scaling during attacks?
Show answer
Answer: D. AWS Shield Advanced
Shield Advanced is a paid tier with advanced detection, response support, and DDoS cost protection.
-
Question 25. Which service protects web applications from common exploits such as SQL injection and cross-site scripting?
Show answer
Answer: C. AWS WAF
AWS WAF filters HTTP(S) requests using rules and integrates with CloudFront, ALB, and API Gateway.
-
Question 26. Which service creates and manages encryption keys used by many AWS services?
Show answer
Answer: A. AWS Key Management Service (AWS KMS)
KMS manages keys and integrates with services such as S3, EBS, and RDS for encryption at rest.
-
Question 27. Which service provides dedicated, single-tenant hardware security modules in the AWS Cloud?
Show answer
Answer: A. AWS CloudHSM
CloudHSM gives customers exclusive control of HSMs for strict key custody requirements.
-
Question 28. Which service stores database credentials and can rotate them automatically?
Show answer
Answer: D. AWS Secrets Manager
Secrets Manager stores and rotates secrets, and applications retrieve them via API instead of hard-coding.
-
Question 29. Which service provisions and renews SSL/TLS certificates for use with AWS services?
Show answer
Answer: A. AWS Certificate Manager (ACM)
ACM provides public certificates at no additional cost for integrated services and handles renewal.
-
Question 30. What is the difference between security groups and network ACLs?
Show answer
Answer: D. Security groups are stateful at the instance level; NACLs are stateless at the subnet level
Security groups automatically allow return traffic. NACLs need explicit rules both ways and support deny rules.
-
Question 31. Which feature of AWS Organizations sets maximum permissions for accounts in an organization?
Show answer
Answer: C. Service control policies (SCPs)
SCPs act as guardrails, limiting what IAM identities in member accounts can do, even administrators.
-
Question 32. Which service helps set up and govern a secure multi-account AWS environment with preconfigured guardrails?
Show answer
Answer: C. AWS Control Tower
Control Tower automates a landing zone using AWS Organizations and best-practice controls.
-
Question 33. Which AWS Trusted Advisor category checks for issues such as open security group ports and IAM usage?
Show answer
Answer: B. Security
Trusted Advisor's security checks flag risky configurations such as unrestricted ports and missing MFA on root.
-
Question 34. What does enabling multi-factor authentication (MFA) on IAM users provide?
Show answer
Answer: A. An additional verification factor beyond the password
MFA helps prevent account compromise if a password is stolen.
-
Question 35. How does AWS help customers meet compliance requirements such as PCI DSS or HIPAA?
Show answer
Answer: A. AWS maintains certified infrastructure; customers must configure their workloads compliantly
AWS provides compliant infrastructure and documentation, but customers remain responsible for their own configurations.
-
Question 36. Where can customers review and accept agreements such as the AWS Business Associate Addendum (BAA)?
Show answer
Answer: D. AWS Artifact
Artifact includes an agreements section for reviewing and accepting agreements like the BAA.
-
Question 37. Which statement about encryption of data at rest in Amazon S3 is correct?
Show answer
Answer: C. New objects are encrypted at rest by default
Since January 2023, S3 applies server-side encryption (SSE-S3) to all new objects by default.
-
Question 38. Which service lets you centrally configure and manage firewall rules, including AWS WAF rules, across accounts?
Show answer
Answer: C. AWS Firewall Manager
Firewall Manager applies consistent protections across accounts in AWS Organizations.
-
Question 39. Which service provides a managed, stateful network firewall and intrusion prevention for VPCs?
Show answer
Answer: A. AWS Network Firewall
Network Firewall filters traffic at the VPC level with stateful rules and IPS capabilities.
-
Question 40. Which service helps continuously audit AWS usage to simplify risk and compliance assessments against frameworks?
Show answer
Answer: B. AWS Audit Manager
Audit Manager automates evidence collection mapped to frameworks such as PCI DSS or GDPR.
-
Question 41. What should a customer do if an AWS resource is being used to send spam or launch attacks?
Show answer
Answer: A. Report it to the AWS Trust & Safety team
AWS Trust & Safety handles reports of abuse involving AWS resources.
-
Question 42. Where can customers find third-party security products, such as firewalls and scanners, to deploy on AWS?
Show answer
Answer: C. AWS Marketplace
AWS Marketplace is a curated catalog of third-party software, including security solutions.
-
Question 43. Which statement about penetration testing on AWS is correct?
Show answer
Answer: A. Customers may test certain services without prior approval, following AWS's policy
AWS publishes a list of permitted services for testing without pre-approval, along with prohibited activities.
-
Question 44. What is the purpose of IAM access keys?
Show answer
Answer: C. Programmatic access to AWS via the CLI, SDKs, or API
Access keys authenticate programmatic calls. Roles with temporary credentials are preferred where possible.
-
Question 45. Which tool analyzes IAM policies and resource policies to identify resources shared with external entities?
Show answer
Answer: C. IAM Access Analyzer
IAM Access Analyzer finds unintended public or cross-account access and helps validate policies.
-
Question 46. A company must keep data in a specific country for legal reasons. What AWS capability supports this?
Show answer
Answer: A. Choosing the AWS Region where data is stored
Customers control which Region their data resides in. AWS doesn't move it without the customer's action.
-
Question 47. Which log type captures information about IP traffic going to and from network interfaces in a VPC?
Show answer
Answer: B. VPC Flow Logs
Flow Logs support troubleshooting and security analysis of network traffic.
-
Question 48. What does 'security OF the cloud' refer to in the shared responsibility model?
Show answer
Answer: B. AWS protecting the infrastructure that runs all AWS services
AWS secures the hardware, software, networking, and facilities that run AWS services.
-
Question 49. What does 'security IN the cloud' refer to?
Show answer
Answer: D. Customers securing their data, identities, and configurations
Customer responsibility varies by service but always includes data and access management.
-
Question 50. For AWS Lambda, which is the customer's responsibility?
Show answer
Answer: A. The function code and the permissions it uses
With serverless, AWS manages the infrastructure; customers own code, configuration, and IAM permissions.
-
Question 51. Which service provides a central place for the AWS Health of your resources, including scheduled maintenance affecting them?
Show answer
Answer: B. AWS Health Dashboard
AWS Health shows events that may affect your resources, such as maintenance or service issues.
-
Question 52. What is the purpose of AWS Organizations for security?
Show answer
Answer: A. Centrally manage multiple accounts and apply policies such as SCPs
Organizations provides account structure, policy guardrails, and consolidated billing.
-
Question 53. A company wants to be alerted when someone signs in with the root user. Which approach works?
Show answer
Answer: D. Use CloudTrail events with an EventBridge rule to alert
CloudTrail records console sign-ins, and EventBridge rules can send notifications on matching events.
-
Question 54. Which feature lets users sign in to AWS with credentials from an existing corporate identity provider?
Show answer
Answer: B. Identity federation (e.g., SAML 2.0)
Federation avoids creating separate IAM users and centralizes identity management.
-
Question 55. What is an S3 bucket policy?
Show answer
Answer: D. A resource-based policy controlling access to a bucket
Bucket policies grant or deny access to principals, often used for cross-account access.
-
Question 56. Which S3 feature prevents objects from ever being made public, overriding bucket policies and ACLs?
Show answer
Answer: A. S3 Block Public Access
Block Public Access provides account- and bucket-level settings to stop public exposure.
-
Question 57. Which service provides a password policy, credential reports, and user management for an AWS account?
Show answer
Answer: D. AWS Identity and Access Management (IAM)
IAM manages users, groups, roles, and policies, plus account password policies and credential reports.
-
Question 58. Which approach BEST protects data in transit to an Application Load Balancer?
Show answer
Answer: D. Use HTTPS listeners with certificates from ACM
TLS encryption protects data in transit, and ACM simplifies certificate management.
-
Question 59. AWS Security Hub findings indicate many resources don't follow best practices. What does Security Hub use to check them?
Show answer
Answer: B. Standards like AWS Foundational Security Best Practices
Security Hub runs automated checks against standards like the CIS AWS Foundations Benchmark.
-
Question 60. Which service provides managed Microsoft Active Directory in the AWS Cloud?
Show answer
Answer: A. AWS Directory Service
AWS Directory Service for Microsoft Active Directory (AWS Managed Microsoft AD) runs real AD domain controllers managed by AWS.
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.