Security and Compliance: AWS Cloud Practitioner practice questions
Security and Compliance is 30% of the free AWS Cloud Practitioner mock (15 of 50 questions). Pick an answer to see right away whether it is correct, with the explanation and the documentation section it comes from.
CLF.II · AWS Cloud Practitioner practice question
An administrator wants to assign identical AWS permissions to fifteen database engineers and easily update those permissions in one place. Which IAM feature should be used?
Check answer and explanation
Correct answer: IAM user groups
Explanation
IAM user groups let administrators attach policies to a collection of users for consistent permission management.
Common trap
AWS Shield protects against DDoS attacks. Amazon Inspector scans workloads for vulnerabilities. AWS Artifact provides compliance documentation.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
An application running on an Amazon EC2 instance needs temporary permissions to read objects from an Amazon S3 bucket without storing long-term access keys on the server. What should be used?
Check answer and explanation
Correct answer: An IAM role attached to the EC2 instance
Explanation
An IAM role provides temporary, automatically rotated credentials to AWS services like EC2 without hardcoding keys.
Common trap
Root credentials should never be used by applications. Hardcoded static keys are a major credential-leak risk. S3 Glacier vault lock enforces compliance retention, not EC2 authentication.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
A company needs to continuously track configuration changes to its AWS resources and evaluate whether they comply with internal security rules. Which service fits this need?
Check answer and explanation
Correct answer: AWS Config
Explanation
AWS Config records resource configuration history and checks configurations against desired compliance rules.
Common trap
Amazon Lex builds conversational chatbots. AWS Glue performs ETL data preparation. Amazon SNS delivers pub/sub notifications.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
A company runs a custom web application on Amazon EC2 instances. Under the AWS shared responsibility model, who is responsible for patching the guest operating system on those instances?
Check answer and explanation
Correct answer: The customer
Explanation
For infrastructure services like Amazon EC2, the customer is responsible for patching and maintaining the guest operating system.
Common trap
AWS manages the underlying hypervisor and physical host, not the EC2 guest OS. Hardware manufacturers do not patch customer virtual machines. AWS Support provides guidance but does not automatically patch customer EC2 OSes.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
A compliance auditor asks a company for AWS's latest SOC 2 and ISO 27001 certification reports. Which AWS resource provides on-demand access to these compliance documents?
Check answer and explanation
Correct answer: AWS Artifact
Explanation
AWS Artifact is the self-service portal for downloading AWS security and compliance reports and managing agreements.
Common trap
AWS Budgets tracks spending thresholds rather than compliance reports. Amazon Route 53 provides DNS routing. AWS Direct Connect establishes dedicated network links.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
A multi-account enterprise wants to enforce a rule preventing any member account from disabling AWS CloudTrail. Which governance feature enforces account-wide guardrails?
Check answer and explanation
Correct answer: Service Control Policies (SCPs) in AWS Organizations
Explanation
Service Control Policies in AWS Organizations set maximum permission boundaries across member accounts.
Common trap
S3 Lifecycle rules manage object storage transitions and expiration. Auto Scaling policies adjust compute capacity. Route 53 health checks monitor endpoint availability.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
An organization wants to protect its AWS workloads against distributed denial-of-service (DDoS) attacks. Which managed AWS service provides this protection?
Check answer and explanation
Correct answer: AWS Shield
Explanation
AWS Shield is a managed DDoS protection service safeguarding applications running on AWS.
Common trap
AWS Secrets Manager stores and rotates credentials. Amazon Kinesis processes real-time streaming data. AWS DMS migrates databases.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
An organization wants to record every API call made to its AWS account—including who made the call and from which IP address—for governance auditing. Which service should it use?
Check answer and explanation
Correct answer: AWS CloudTrail
Explanation
AWS CloudTrail logs account activity and API calls across AWS infrastructure for governance and auditing.
Common trap
Amazon ElastiCache provides in-memory caching. AWS Fargate runs serverless containers. Amazon SQS queues messages between decoupled services.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
A public web application hosted on AWS needs protection against common web exploits such as SQL injection and cross-site scripting. Which AWS security service should be deployed?
Check answer and explanation
Correct answer: AWS WAF
Explanation
AWS WAF (Web Application Firewall) filters HTTP/HTTPS requests to block common web exploits.
Common trap
AWS KMS manages cryptographic encryption keys. Amazon Macie discovers sensitive data in Amazon S3. AWS CloudTrail logs API calls rather than blocking web exploits.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
What is the recommended security best practice for the AWS account root user after initial account setup?
Check answer and explanation
Correct answer: Enable MFA on the root user and avoid using it for everyday tasks
Explanation
Enabling MFA and locking away root credentials prevents catastrophic account compromise from everyday operations.
Common trap
Sharing root credentials violates accountability and least privilege. Permanent root access keys create severe security exposure. IAM should be used for all routine administration instead of the root user.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
Which responsibility is shared between AWS and the customer under the AWS shared responsibility model?
Check answer and explanation
Correct answer: Awareness and training for respective personnel
Explanation
AWS trains its own employees while customers train their own staff, making awareness and training a shared control.
Common trap
Replacing physical disks in AWS facilities is solely AWS's responsibility. Writing custom application code is solely the customer's responsibility. Physical badge readers at AWS Regions are managed exclusively by AWS.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
A security administrator grants a junior analyst read-only access to a single Amazon S3 bucket and denies all write or delete actions. Which access management principle is being applied?
Check answer and explanation
Correct answer: Principle of least privilege
Explanation
The principle of least privilege grants only the minimum permissions required to perform a specific job.
Common trap
Security through obscurity relies on hiding details rather than enforcing permissions. High availability focuses on uptime. Elastic scaling adjusts compute capacity.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
A security team wants an automated threat detection service that continuously monitors AWS logs for suspicious behavior such as cryptocurrency mining or unusual API calls. Which service meets this requirement?
Check answer and explanation
Correct answer: Amazon GuardDuty
Explanation
Amazon GuardDuty uses threat intelligence and anomaly detection to identify malicious activity in AWS accounts.
Common trap
AWS Backup centralizes data backups. Amazon Athena runs SQL queries on S3 data. AWS Storage Gateway connects on-premises storage to AWS.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
Under the AWS shared responsibility model, how does responsibility differ when using Amazon S3 compared to Amazon EC2?
Check answer and explanation
Correct answer: AWS manages the underlying operating system and infrastructure for S3 while customers manage data and access
Explanation
Amazon S3 is an abstracted service where AWS handles the underlying OS and hardware, leaving data management and permissions to the customer.
Common trap
Customers have no OS-level access to S3 storage servers. Data classification always remains a customer responsibility. Physical rack cabling is always handled by AWS.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.
CLF.II · AWS Cloud Practitioner practice question
Under the AWS shared responsibility model, which security task is always the responsibility of AWS?
Check answer and explanation
Correct answer: Physical security of AWS data center facilities
Explanation
AWS is responsible for security of the cloud, including physical access controls at its data centers.
Common trap
Configuring S3 bucket permissions is a customer responsibility. Managing IAM credentials belongs to the customer. Client-side data encryption is controlled by the customer.
Source: clfc02-domain1-2
Checked against the cited text on 2026-11-27.