AWS · Free Practice Questions · Last reviewed May 2026
36real exam-style questions organised by domain, each with the correct answer highlighted and a plain-English explanation of why it's right — and why the others are wrong.
A company wants to detect potential brute-force attacks against their public-facing web applications hosted on EC2 instances. Which TWO measures should the security team implement?
Enable AWS WAF rate-based rules to block IPs exceeding request thresholds.
Rate-based rules in AWS WAF automatically track the number of requests from specific IP addresses over a rolling five-minute period. When a threshold is breached, the WAF can automatically block requests from those IPs, providing an effective first line of defense against automated brute-force login attempts.
Use AWS Shield Standard to mitigate Layer 7 application attacks.
Configure CloudWatch Logs agents to stream system auth logs to CloudWatch.
Streaming system authentication logs (such as /var/log/auth.log) to CloudWatch Logs allows for the creation of metric filters. These filters can trigger CloudWatch Alarms when a specific number of failed login attempts are detected within a time window, alerting security teams to brute-force activity occurring on the instance.
Enable AWS Trusted Advisor to monitor for open security groups.
Implement AWS Inspector to scan for vulnerabilities on the instances.
An organization requires centralized monitoring of security findings from multiple AWS accounts. Which service should be used to aggregate these findings into a single dashboard?
AWS CloudWatch Dashboards.
AWS Security Hub.
Security Hub is specifically designed to aggregate, organize, and prioritize security alerts and findings from various AWS services and partner products. It offers a centralized dashboard that provides a comprehensive view of the security state across all accounts in an AWS Organization, fulfilling the requirement.
AWS Systems Manager OpsCenter.
AWS Config Advanced Query.
Which AWS service uses machine learning to detect unusual activity, such as unauthorized access to S3 buckets or atypical API calls?
AWS Macie.
AWS GuardDuty.
GuardDuty uses machine learning, anomaly detection, and integrated threat intelligence to monitor and protect AWS accounts. It is specifically designed to identify anomalous activity, such as unusual API calls or unauthorized access to sensitive resources like S3 buckets, based on baseline behavioral patterns.
AWS WAF.
AWS CloudTrail.
Refer to the exhibit. The log entry shows a denied 'DeleteTable' attempt. Which service, if configured, would have automatically triggered an alert based on this specific log entry?
Amazon GuardDuty.
Amazon CloudWatch Metric Filters and Alarms.
CloudWatch Metric Filters allow users to search CloudTrail logs for specific patterns, such as denied API calls. Once a pattern is matched, a metric can be incremented and an alarm can be configured to notify security personnel, providing an automated way to detect high-risk denied actions.
AWS Security Hub.
AWS Trusted Advisor.
A security engineer needs to detect if any EC2 instances in an account have been launched with a public IP address. Which service should be used to automate this detection?
AWS CloudTrail.
AWS Config.
AWS Config provides managed rules that continuously monitor resource configurations. By evaluating instances against the 'ec2-instance-no-public-ip' rule, it can automatically detect and alert on any instance that has an assigned public IP, fulfilling the requirement for automated detection of network exposure.
Amazon GuardDuty.
AWS Systems Manager.
A security team needs to identify which IAM users have not used their credentials for more than 90 days. Which service should be used to provide this information?
AWS CloudTrail.
IAM Credential Report.
The IAM Credential Report generates a report that lists all users and includes fields like 'password_last_used' and 'access_key_1_last_used'. This is the most direct and efficient way to identify users who haven't performed any actions in a specific time frame for compliance auditing.
AWS Config.
AWS Trusted Advisor.
Want more Detection practice?
Practice this domainAn organization detects unauthorized access to an Amazon S3 bucket containing sensitive customer data. The Security team needs to immediately isolate the bucket while ensuring logs are preserved for forensic analysis. Which action should the team take first?
Delete the S3 bucket to prevent further unauthorized data access.
Disable AWS CloudTrail logging to stop generating potentially malicious log entries.
Apply a bucket policy that denies all 's3:*' actions for all users except the security incident response role.
Applying a restrictive policy effectively contains the breach by blocking all traffic while ensuring the security team retains access for forensic examination. This preserves the environment's state for analysis while immediately halting ongoing unauthorized data exfiltration, satisfying the containment requirement without destroying the underlying data or audit logs.
Revoke all IAM user credentials globally to lock down the entire AWS account.
Refer to the exhibit. An incident responder observes that an attacker bypassed this S3 bucket policy and accessed objects from an IP address outside the 192.0.2.0/24 range. What is the most likely reason for this access?
The policy uses 'Allow' instead of 'Deny', allowing bypass by any identity with broad IAM permissions.
Because the policy is an Allow statement, it acts as an additional permission grant rather than a restriction. IAM entities with sufficient permissions elsewhere in the account are not restricted by this policy because it does not contain a Deny rule to supersede those identity-based permissions.
The bucket policy must include a Principal element to restrict access to specific identities.
The S3 bucket is configured with a public access block that is too permissive.
The 'aws:SourceIp' condition does not function for requests made through an AWS service like CloudFront.
An organization experiences a ransomware attack that encrypts data across several EBS volumes. The team needs to restore operations as quickly as possible. Which strategy minimizes the impact of the incident while ensuring data integrity?
Attempt to brute-force the ransomware decryption key using high-performance compute instances.
Restore the affected volumes from the latest pre-incident EBS snapshots.
Restoring from snapshots is the most efficient and reliable method to recover from a ransomware incident. It ensures the integrity of the data by rolling back to a known-good state before the encryption occurred, effectively bypassing the malicious encryption and allowing the team to resume operations quickly.
Copy the encrypted volumes to a new account and run a vulnerability scan.
Format the EBS volumes and manually copy data from the underlying S3 logs.
An organization wants to improve their ability to respond to security incidents. Which TWO of the following services provide centralized visibility and management for security findings?
AWS Security Hub
Security Hub aggregates security findings from across AWS services and partner products into a single location. It provides a centralized view of an organization's security posture and compliance status, which is vital for prioritizing and managing incident response workflows during a security event.
Amazon Detective
Amazon Detective simplifies the investigative process by automatically collecting and correlating data from CloudTrail, VPC Flow Logs, and GuardDuty. It provides a visual representation of relationships between resources and IP addresses, helping responders quickly identify the scope and nature of security incidents.
Amazon CloudWatch
AWS Artifact
AWS Systems Manager
An organization is preparing for a potential incident and wants to ensure that responders can quickly access logs across multiple accounts. Which architecture is recommended for centralized log management?
Store logs locally in each account within a private S3 bucket.
Aggregate logs into a dedicated, centralized security account.
Centralizing logs into a dedicated account provides an immutable and secure audit trail. By separating the log storage from the production environment, the organization ensures that logs are protected even if an attacker gains administrative privileges within a production account, facilitating faster and more reliable incident investigations.
Enable CloudTrail logs to be sent directly to an on-premises SIEM.
Use CloudWatch Logs to stream all data to an Amazon OpenSearch cluster.
An organization's security team detects an active data exfiltration event originating from a compromised Amazon EC2 Linux instance. The instance contains critical forensic evidence that must be preserved. What is the most effective immediate containment action that prevents external communication while retaining the memory state for forensic analysis?
Stop the EC2 instance immediately to disconnect it from the network and preserve the attached Amazon EBS root volume for offline examination.
Terminate the compromised instance and launch a replacement instance from a clean AMI to maintain high availability and service uptime.
Modify the security groups attached to the EC2 instance to block all inbound and outbound traffic while keeping the operating system running.
Applying a restrictive security group containing explicit deny rules or zero allowable traffic isolates the instance instantly. Keeping the instance powered on maintains the volatile memory state, allowing forensic specialists to capture RAM dumps safely before shutdown.
Detach the primary Amazon EBS volume from the running instance and attach it to an isolated analysis instance for live scanning.
Want more Incident Response practice?
Practice this domainRefer to the exhibit. A user is attempting to connect to a web server from the IP address 203.0.113.5 on port 80. Based on the provided Network ACL and Security Group configurations, what will be the result of this connection attempt?
The connection will be allowed because the Security Group permits all traffic on port 80.
The connection will be denied because the NACL Rule 100 is evaluated first.
NACLs process rules in order starting from the lowest number. Because Rule 100 matches the source IP and port with a 'DENY' action, the packet is immediately discarded. The higher-numbered 'ALLOW' rule and the permissive Security Group rules are ignored because the first matching NACL rule takes precedence.
The connection will be allowed because NACL Rule 200 permits all traffic on port 80.
The connection will be denied because Security Groups take precedence over NACLs.
A company requires all outbound internet traffic from its VPC to be inspected by a fleet of third-party firewall appliances. The solution must scale horizontally and ensure that traffic is symmetric, meaning requests and responses pass through the same firewall instance. Which architecture should the security engineer implement?
Deploy the firewalls behind an Application Load Balancer and use host-based routing.
Deploy a Gateway Load Balancer and create a GWLB endpoint in the traffic-originating subnets.
A Gateway Load Balancer simplifies the insertion of security appliances into the network path. By using GWLB endpoints and updating VPC route tables, traffic is transparently routed to the firewall fleet. The GWLB ensures high availability and flow consistency, which is essential for stateful firewalls to function correctly.
Use a Transit Gateway with VPC Peering and ECMP enabled for load balancing.
Set up a Network Load Balancer with Proxy Protocol enabled for the firewall instances.
A company wants to eliminate the need for managing SSH keys and bastion hosts while still allowing administrators to securely access EC2 instances in private subnets. Which AWS service provides this capability and allows for centralized IAM-based access control?
AWS Systems Manager Session Manager
Session Manager allows for secure instance management without bastion hosts. Since it doesn't require inbound ports to be open in security groups, it significantly reduces the attack surface. All sessions are logged to CloudWatch Logs or S3, providing detailed visibility into administrative actions for compliance and security auditing.
Amazon EC2 Instance Connect
AWS CloudShell
AWS Directory Service
A security engineer is configuring AWS Network Firewall to protect a VPC. They need to implement a rule that inspects the 'Host' header of HTTP traffic to block specific unauthorized domains. Which type of rule group should be used?
Stateless rule group with 5-tuple filtering.
Stateful rule group with domain list filtering.
Stateful rule groups can be configured with domain lists, which use the Suricata engine to inspect the SNI in TLS handshakes or the Host header in HTTP requests. This allows the firewall to block or allow traffic based on fully qualified domain names (FQDNs) rather than just static IP addresses.
AWS WAF with a web ACL associated with the VPC.
VPC Endpoint Policy associated with an S3 gateway.
A company is designing a hub-and-spoke network architecture using AWS Transit Gateway. They want to centralize inbound and outbound internet traffic inspection using a fleet of firewalls in a dedicated 'Security VPC'. Which TWO steps are required to ensure traffic is correctly routed for inspection? (Select TWO.)
Enable 'Appliance Mode' on the Transit Gateway VPC attachment for the Security VPC.
Appliance Mode ensures that the Transit Gateway maintains flow symmetry by sending both the request and response traffic through the same Availability Zone in the Security VPC. This is critical for stateful firewalls to correctly track connections and prevent packets from being dropped due to out-of-order or missing state information.
Configure a default route (0.0.0.0/0) in the spoke VPC subnets pointing to the Transit Gateway.
To centralize outbound traffic, spoke VPCs must be configured to send all non-local traffic to the Transit Gateway. By setting the default route to the TGW, any traffic destined for the internet is handed off to the central hub, where it can be redirected to the inspection firewall fleet.
Disable 'Source/Destination Check' on all Transit Gateway attachments.
Use VPC Peering between all spoke VPCs and the Security VPC to bypass the Transit Gateway.
Create a separate NAT Gateway in every spoke VPC to handle the inspection traffic locally.
Refer to the exhibit. This policy is applied to an Amazon S3 bucket named 'sensitive-data'. What is the security implication of this policy configuration?
It allows all users in the VPC to access the bucket if they use the specified VPC endpoint.
It prevents any access to the bucket from outside the specified VPC endpoint.
Because 'Deny' overrides 'Allow' in AWS evaluation logic, this policy effectively blocks all traffic—including from the AWS Management Console or other VPCs—unless it originates from vpce-1a2b3c4d. This is a common pattern for securing highly sensitive data against accidental exposure or credential theft.
It only denies access to the bucket if the user is using a different VPC endpoint, but allows public access.
It restricts access to the bucket to only the root user of the account via the VPC endpoint.
Want more Infrastructure Security practice?
Practice this domainAn organization is migrating to AWS and needs to enforce security guardrails across multiple accounts. Which TWO actions should the security team perform to ensure compliance? (Select TWO)
Apply SCPs at the root level to restrict specific AWS services in member accounts.
SCPs applied at the root or organizational unit level are effective at enforcing global compliance standards. They restrict the maximum permissions available to any user or role within the account, ensuring that sensitive services or regions are off-limits, which is fundamental for maintaining a secure and compliant AWS multi-account environment.
Assign IAM policies directly to the root user of every member account.
Use IAM Permission Boundaries on all developer-created roles.
Permission Boundaries are essential for delegating administrative tasks securely. By setting a boundary on a role, you ensure that even if a developer adds excessive permissions to that role, the effective permissions are capped by the boundary. This allows for safe delegation while maintaining strict control over maximum possible access levels.
Configure individual IAM users in every account to ensure fine-grained control.
Enable AWS CloudTrail only in the primary management account.
Refer to the exhibit. An IAM user with the 'Finance' tag is trying to upload an object to the 'production-data' bucket. The upload is failing. What is the most likely cause?
The user is missing the required S3 permission in their IAM policy.
The user does not have the 'Department' tag attached to their IAM principal.
The Condition uses StringNotEquals. If the tag is missing, the condition evaluates to true for the Deny, because 'null' is not equal to 'Finance'. Therefore, the Deny policy takes effect. ABAC implementations often fail when principals lack the necessary tags required by the policy logic, resulting in unexpected access denial.
The S3 bucket policy is not allowing the action.
The S3 bucket is in a different AWS region.
An application running on EC2 needs to access DynamoDB tables. What is the most secure way to provide these permissions?
Embed IAM access keys directly into the application code.
Store IAM access keys in a configuration file on the EC2 instance.
Assign an IAM role to the EC2 instance via an instance profile.
Using IAM roles with instance profiles is the gold standard for EC2 security. It provides temporary, short-lived credentials that are automatically rotated by the AWS environment. The application uses the AWS SDK to retrieve these credentials, ensuring no sensitive data is stored on the disk or exposed in the code.
Create a public DynamoDB table to allow unauthenticated access.
Which THREE actions are best practices for managing root user account security? (Select THREE)
Enable multi-factor authentication (MFA) on the root account.
MFA is the most critical defense against compromised root credentials. Without MFA, a leaked password grants full control over the AWS account. Requiring a hardware or virtual MFA device adds a necessary layer of protection, ensuring that even if the password is stolen, the attacker cannot access the account.
Store the root access keys in a secure, encrypted S3 bucket.
Use the root account for daily administrative tasks to simplify management.
Delete the root access keys and do not create new ones.
Access keys for the root account are unnecessary for day-to-day operations and present a major security risk. Deleting them ensures that there is no programmatic way to compromise the account using long-term credentials, forcing all administrative interaction to go through the console where MFA is required.
Set up a strong password and rotate it at least once every 90 days.
Even though root is rarely used, it must have a complex, unique password that is regularly rotated. This prevents brute-force attacks and limits the utility of a leaked password. Regular rotation, combined with MFA, ensures that the root account remains as secure as possible against unauthorized access attempts.
An auditor needs to verify which IAM policies are attached to a specific user. Which command provides this information?
aws iam list-user-policies --user-name <username>
aws iam list-attached-user-policies --user-name <username>
This is the correct CLI command to list all managed policies attached to an IAM user. Managed policies are the most common way to grant permissions, so listing them is the first step in assessing a user's permission set. This command provides a clear, concise list for audit reporting.
aws iam get-user-policy --user-name <username>
aws iam describe-user --user-name <username>
A security engineer needs to prevent IAM users from disabling CloudTrail. Which policy element is most appropriate?
Create an IAM policy that denies 'cloudtrail:StopLogging' to all users.
Use an SCP to explicitly deny 'cloudtrail:StopLogging' for the organization.
SCPs are the perfect tool for organizational-wide guardrails. By applying a 'Deny' on 'cloudtrail:StopLogging' at the organization level, you ensure that no user or role, including administrative roles, can disable CloudTrail. This provides a central, immutable security control that meets stringent regulatory requirements for consistent logging across the entire enterprise.
Enable MFA Delete on all CloudTrail S3 buckets.
Restrict access to the CloudTrail console via IAM groups.
Want more Identity and Access Management practice?
Practice this domainA company stores sensitive PII in RDS MySQL databases. The security team wants to ensure that data is encrypted at rest and that the encryption keys are rotated annually. Which TWO actions fulfill these requirements?
Enable RDS encryption using an AWS managed key and configure annual rotation.
Enable RDS encryption using a customer-managed key during instance creation.
Enabling encryption during the RDS instance launch is the only way to ensure the underlying storage volume is encrypted. By selecting a customer-managed key, you gain the authority to manage the key's lifecycle, including setting the necessary rotation policies to meet your specific security requirements.
Configure the customer-managed KMS key to perform automatic annual key rotation.
Customer-managed keys support automatic rotation, which periodically generates new backing key material. This process is transparent to RDS and ensures the data remains protected. Configuring this for your customer-managed key fulfills the requirement to keep the cryptographic material refreshed on an annual basis without manual intervention.
Modify the existing RDS instance to enable encryption after the initial launch.
Enable Transparent Data Encryption (TDE) via the RDS option group.
A company needs to share an encrypted EBS volume snapshot with a partner's AWS account. The snapshot is encrypted with a customer-managed KMS key. What must the company do to enable this sharing?
Copy the snapshot to an unencrypted state, then share the unencrypted snapshot.
Share the snapshot and update the KMS key policy to permit usage by the partner.
Sharing the snapshot makes it visible to the partner, but they cannot decrypt it without access to the key. Updating the KMS key policy allows the partner's IAM entities to use the key for cryptographic operations, which is required to successfully restore or use the shared encrypted snapshot.
Export the snapshot to an S3 bucket and provide the partner with the S3 URL.
Use AWS DataSync to copy the volume data directly to the partner account.
An organization wants to rotate their KMS customer-managed keys every 90 days. What is the most effective way to implement this?
Modify the KMS key's rotation policy to 90 days.
Use an AWS Lambda function to trigger the rotation of the KMS key backing material.
Perform manual key rotation by creating a new key every 90 days.
Since automatic rotation is fixed at 365 days, manual rotation is the only way to satisfy a 90-day requirement. This involves creating a new KMS key, updating application references, and retaining the previous key for decryption of legacy data, ensuring compliance with internal security policies.
Use AWS Secrets Manager to rotate the KMS key every 90 days.
An application in Account A needs to decrypt S3 objects in Account B using a KMS key in Account B. What is the minimal configuration required?
Only update the IAM policy in Account A to allow 'kms:Decrypt'.
Only update the KMS key policy in Account B to allow the role from Account A.
Update the IAM policy in Account A and the KMS key policy in Account B.
This dual-policy configuration is required for cross-account access. The key policy grants permission to the external account's role, and the IAM policy ensures the role has permission to exercise that grant. This combination follows the principle of least privilege while enabling necessary cross-account functionality.
Create an IAM user in Account B and provide credentials to the application.
Which service should be used to protect sensitive data from being exfiltrated via API calls to unauthorized services?
AWS WAF
VPC Endpoint Policies
VPC Endpoint Policies are attached to VPC endpoints and allow you to define which AWS service actions are permitted. This is a highly effective way to prevent unauthorized data exfiltration by ensuring that only approved AWS services can be accessed from within your VPC.
AWS CloudTrail
AWS Shield
A company is migrating a legacy database to Amazon RDS for MySQL and must ensure the data is protected according to strict compliance standards. The security team requires that the data at rest is encrypted and that the encryption cannot be disabled after the instance is created. Which TWO statements accurately describe RDS encryption behavior?
Encryption at rest can be enabled for an existing unencrypted RDS DB instance by modifying the instance settings.
Snapshots and automated backups of an encrypted RDS instance are automatically encrypted using the same KMS key.
When you encrypt an RDS DB instance, all its subsequent snapshots and automated backups are automatically encrypted using the same KMS key as the parent instance. This ensures consistent data protection throughout the entire lifecycle of the data, including recovery points and archival storage in Amazon S3.
Read replicas of an encrypted RDS instance must also be encrypted using the same KMS key as the primary instance.
For RDS MySQL, MariaDB, and PostgreSQL, if the primary instance is encrypted, all read replicas must also be encrypted. While they usually use the same KMS key, they must at least be encrypted to maintain the security posture of the replicated data across different availability zones or regions.
Encryption at rest can be disabled on an RDS instance to improve performance during large data imports.
RDS encryption at rest only protects the database tables and does not apply to logs or temporary files.
Want more Data Protection practice?
Practice this domainA security auditor requires a centralized view of security findings across all AWS accounts in an organization. Which service should be enabled to aggregate and prioritize these findings?
AWS Config
AWS Security Hub
Security Hub provides a comprehensive view of security alerts and compliance status across an entire AWS Organization. It integrates with native AWS services and third-party partner products to normalize data into the AWS Security Finding Format, facilitating efficient monitoring, prioritization, and automated remediation workflows for security teams.
Amazon GuardDuty
AWS IAM Access Analyzer
An organization wants to enforce encryption at rest for all S3 buckets using AWS Organizations. Which TWO actions should the security team perform to ensure consistent governance?
Create an SCP that denies s3:PutObject if x-amz-server-side-encryption is not present.
This SCP effectively prevents any user or service from uploading data to S3 without specifying server-side encryption. By denying the write action at the account boundary level, you ensure that even if a bucket policy is missing, the data cannot be stored in an unencrypted state.
Enable S3 Block Public Access on all accounts via AWS Organizations.
Deploy an SCP that denies s3:CreateBucket unless the request includes default encryption configuration.
This policy ensures that developers cannot create buckets that lack encryption settings at the time of creation. By controlling the creation process, the security team enforces a 'secure by default' posture across the entire organization, preventing non-compliant infrastructure from ever existing within the environment.
Use AWS Trusted Advisor to manually audit all buckets for encryption status.
Apply a bucket policy to every S3 bucket in the account.
Refer to the exhibit. An administrator applied this policy to a bucket, but users are still able to upload unencrypted objects. Why is this occurring?
The policy lacks a wildcard in the resource ARN.
The condition only checks the header if it exists in the request.
In AWS IAM policy logic, if a header is missing from the request, the 'StringNotEquals' condition does not evaluate to true, so the 'Deny' effect is not applied. The request proceeds as if the condition were not there, allowing unencrypted uploads to bypass the security check.
The 'Effect' should be changed to 'Allow'.
The policy needs an 'Action' of 's3:PutObjectTagging'.
Which AWS service is best suited for providing a comprehensive, searchable audit trail of every API call made in an AWS account?
Amazon CloudWatch Logs
AWS CloudTrail
CloudTrail is specifically designed to log all API calls made within an AWS account. It records the identity of the caller, the time of the call, the source IP, and the request parameters, providing a complete audit trail that is essential for security auditing and operational troubleshooting.
AWS Config
AWS Systems Manager
A company requires that all cloud resources be tagged with a 'Department' code for cost allocation and security reporting. How should they enforce this?
Use AWS Budgets to force tagging.
Use AWS Config rules to monitor tagging compliance.
AWS Config is designed for continuous assessment and compliance monitoring. By setting up a 'required-tags' rule, the organization can automatically audit all resources for the presence of the required 'Department' tag, enabling automated reporting and alerting on any resources that fail to meet the company's tagging policy.
Use an IAM policy to prevent resource creation.
Use AWS Trusted Advisor to tag resources.
Which AWS IAM best practice ensures that users have only the permissions necessary to perform their specific business roles?
Assign the 'AdministratorAccess' policy to all users.
Apply the Principle of Least Privilege.
This principle is the cornerstone of IAM security. By granting only the specific permissions needed for a job, you limit the potential for error and malicious activity. This approach is standard for all security governance frameworks, ensuring that every identity is constrained to its legitimate scope of operation.
Use only root account credentials for all tasks.
Allow all traffic in Security Groups.
Want more Security Foundations and Governance practice?
Practice this domainThe SCS-C03 exam has 60–90 questions and must be completed in 120 minutes. The passing score is 700/1000.
Scenario-based questions covering exam objectives with detailed answer explanations.
The exam covers 6 domains: Detection, Incident Response, Infrastructure Security, Identity and Access Management, Data Protection, Security Foundations and Governance. Questions are weighted by domain — higher-weight domains appear more on your actual exam.
No. These are original exam-style practice questions written against the official AWS SCS-C03 exam objectives. They are not copied from the real exam. Courseiva focuses on genuine understanding, not memorisation of braindumps.
Courseiva tracks your accuracy per domain and routes you toward weak areas automatically. Free, no account required.