Amazon Web Services · 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.
14% of exam · 6 sample questions below
A security team suspects that an attacker has compromised an EC2 instance and is using it to launch outbound DDoS attacks. The team needs to quickly isolate the instance while preserving forensic data. Which combination of actions should the team take? (Choose TWO.)
Apply a restrictive security group that blocks all outbound traffic.
This isolates the instance by preventing outbound connections while allowing forensic access via inbound rules if needed.
Modify the network ACL for the subnet to deny all outbound traffic.
Create a snapshot of the EBS volumes attached to the EC2 instance.
Snapshots preserve the current state of the volumes for forensic analysis.
Detach the instance from the Auto Scaling group.
Terminate the EC2 instance immediately.
A company uses AWS Organizations with multiple accounts. The security team wants to ensure that all API calls in the organization are logged and retained for at least one year. Which AWS services or features should be used to meet these requirements? (Choose TWO.)
Amazon GuardDuty with threat detection enabled.
AWS Config with recording enabled for all resources.
Amazon S3 lifecycle policy to transition logs to S3 Glacier after one year.
This ensures logs are retained and cost-effective.
VPC Flow Logs for all VPCs.
AWS CloudTrail with organization trail.
An organization trail logs API calls for all accounts in the organization.
A security engineer is investigating a potential data exfiltration incident. The engineer notices large volumes of data being transferred from an Amazon S3 bucket to an external IP address. Which AWS services can be used to detect and alert on such behavior? (Choose THREE.)
Amazon CloudWatch Logs with S3 access log analysis.
S3 server access logs can be sent to CloudWatch Logs for monitoring and alerting.
AWS CloudTrail with S3 data event logging.
CloudTrail data events record S3 object-level operations, including GetObject for data downloads.
Amazon GuardDuty with anomaly detection.
GuardDuty uses machine learning to detect unusual data access patterns, such as large volumes from an unfamiliar IP.
AWS Config with compliance rules.
VPC Flow Logs.
A security engineer reviews the CloudTrail log entry in the exhibit. The engineer notices that an EC2 instance was launched using an AdminRole. Which additional information would help determine if this is a legitimate action or a potential compromise?
The AMI ID ami-0abcdef1234567890 is not a standard Amazon-provided AMI.
The source IP address 203.0.113.50 is from an unexpected geographic location not associated with the company.
Anomalous source IP is a common indicator of compromise.
The instance type m5.xlarge is unusually large compared to previous launches.
The security group sg-0123456789abcdef0 allows inbound SSH from 0.0.0.0/0.
During a security incident, a security engineer needs to verify whether an EC2 instance's security group allowed inbound SSH from a specific IP address at the time of the incident. Which AWS service or feature should the engineer use to obtain this historical information?
Amazon CloudTrail event history.
AWS Systems Manager Inventory.
VPC Flow Logs.
AWS Config configuration history.
AWS Config records the configuration of security groups over time, allowing you to see the rules at the time of the incident.
A security engineer is implementing automated incident response. The engineer wants to use AWS Lambda to automatically remediate GuardDuty findings. What is the recommended pattern to trigger the Lambda function?
Configure an Amazon EventBridge rule to match GuardDuty findings and invoke the Lambda function.
EventBridge is the recommended way to route GuardDuty findings to Lambda for automated remediation.
Subscribe the Lambda function to an SNS topic that GuardDuty publishes findings to.
Use CloudWatch Logs subscription filter to trigger Lambda on GuardDuty log entries.
Have the Lambda function poll the EC2 instance metadata for threat indicators.
Want more Threat Detection and Incident Response practice?
Practice this domain18% of exam · 6 sample questions below
A security engineer wants to capture all DNS queries made by EC2 instances to detect potential data exfiltration. Which AWS service should be used to log the DNS requests?
Use Route 53 Resolver DNS Firewall with query logging
DNS Firewall can log DNS queries for VPCs.
Use Amazon GuardDuty
Enable VPC Flow Logs
Enable AWS CloudTrail
A company uses AWS CloudTrail to log management events in all regions. The security team notices that some API calls made by an IAM user are not appearing in the CloudTrail event history. What is the most likely reason?
The user used the AWS Management Console, not the CLI
The trail is configured for a single region only
The API calls were read-only and excluded by default
CloudTrail event history only retains events for 90 days; older events are not visible
CloudTrail event history is limited to 90 days.
A company requires real-time analysis of AWS CloudTrail logs to detect unauthorized API calls. The logs are stored in Amazon S3. Which architecture minimizes latency and cost?
Use AWS Glue to crawl S3 and load into Amazon Redshift for analysis
Send CloudTrail logs to Amazon CloudWatch Logs, then use a subscription filter to Amazon Kinesis Data Firehose delivering to Amazon OpenSearch Service
Enables near real-time streaming.
Query CloudTrail logs directly using Amazon Athena
Configure S3 event notifications to invoke an AWS Lambda function that writes to Amazon OpenSearch Service
A security engineer needs to be alerted when an IAM user attempts to modify an S3 bucket policy. Which method is the MOST efficient?
Enable VPC Flow Logs and analyze for S3 API traffic
Configure an AWS Config rule to detect changes and invoke a Lambda function
Create an Amazon CloudWatch Events rule that matches the PutBucketPolicy API call and triggers an SNS notification
CloudWatch Events can match API calls from CloudTrail.
Enable S3 server access logs and parse them for PutBucketPolicy entries
A company uses Amazon GuardDuty and wants to suppress low-severity findings that are known false positives. What is the recommended approach?
Configure a CloudWatch Events rule to ignore the findings
Manually delete the findings from the GuardDuty console
Disable the GuardDuty detector for the affected accounts
Create a GuardDuty filter to suppress the findings
Filters can suppress findings from appearing in the console.
A company stores sensitive data in Amazon S3 and wants to detect and alert on any public read access to objects. Which combination of services provides the most comprehensive solution?
Enable VPC Flow Logs and analyze for S3 traffic
Use AWS Config rules to check for public bucket policies and alert via SNS
Enable S3 server access logging and use Amazon Athena to query logs, with CloudWatch Events to alert on specific patterns
Server access logs record requester, so public reads can be identified.
Enable S3 event notifications for all object-level events and send to Amazon SNS
Want more Security Logging and Monitoring practice?
Practice this domain16% of exam · 6 sample questions below
A developer needs to grant an IAM user read-only access to an S3 bucket named 'my-bucket'. Which policy should be attached to the IAM user?
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:ListBucket","Resource":"arn:aws:s3:::my-bucket"}]}
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:*","Resource":"*"}]}
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:PutObject","Resource":"arn:aws:s3:::my-bucket/*"}]}
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:GetObject","Resource":"arn:aws:s3:::my-bucket/*"}]}
Correctly allows read-only access to objects in the bucket.
An IAM policy includes the following condition: "StringNotEquals": {"aws:SourceArn": "arn:aws:ec2:us-east-1:123456789012:instance/*"}. What is the effect of this condition when attached to an IAM role?
Denies all requests from EC2 instances
Allows the role to be assumed only by EC2 instances in the specified account and region
Denies requests that do not originate from an EC2 instance in the specified account and region
Correct interpretation: Denies if SourceArn is not equal to the given ARN pattern.
Allows any request that comes from an EC2 instance regardless of account
An IAM user receives an 'AccessDenied' error when trying to list objects in an S3 bucket. The user has the following policy attached: {"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:ListBucket","Resource":"arn:aws:s3:::example-bucket"}]}. What is the most likely reason?
The policy is missing a condition
The bucket policy explicitly denies the action
An explicit deny in the bucket policy overrides the user policy allow.
The policy does not include s3:GetObject
The policy has a syntax error
A company wants to allow users from its corporate Active Directory to access AWS resources. The company has set up an IAM identity provider for SAML. What must be created in IAM to map users to permissions?
An IAM role with a trust policy for the SAML provider
The role trust policy allows the SAML provider to issue tokens for the role.
An OIDC identity provider
An IAM user for each Active Directory user
A federation role type
An IAM policy has the following statement: {"Effect":"Deny","Action":"*","Resource":"*","Condition":{"Bool":{"aws:SecureTransport":"false"}}}. What does this policy achieve?
Denies all actions that are not made over HTTPS
Correctly denies when SecureTransport is false.
Allows all actions only when using HTTPS
Enforces HTTPS for S3 bucket policies only
Blocks all actions for a specific AWS service
A solutions architect needs to design a system where an EC2 instance can write logs to CloudWatch Logs. Which IAM entity should be used to grant permissions to the EC2 instance?
A resource-based policy on the EC2 instance
An IAM role with an instance profile
Role with instance profile provides temporary credentials to the instance.
An IAM user with access keys stored on the instance
An IAM group
Want more Identity and Access Management practice?
Practice this domain14% of exam · 6 sample questions below
A company uses AWS Config to evaluate resource compliance. The security team notices that the AWS::IAM::Group resource type is not supported by AWS Config managed rules. What is the best way to detect IAM groups that have an inline policy allowing 'iam:CreateUser'?
Create a custom AWS Config rule using a Lambda function that evaluates IAM groups
Lambda-backed Config rules can evaluate unsupported resource types via API calls.
Use IAM Access Analyzer to identify policies that grant broad access
Use AWS CloudTrail Insights to detect CreateUser events
Enable AWS Config advanced query and run a query on IAM groups
A security team needs to audit all changes to IAM policies in their AWS account. Which AWS service should they use to record policy changes?
Amazon Inspector
AWS CloudTrail
CloudTrail logs all API calls, including IAM policy changes.
Amazon GuardDuty
AWS Config
A company uses AWS Organizations with SCPs. The security team wants to ensure that no IAM user can be created without MFA. Which SCP should be applied at the root OU?
Deny iam:CreateUser unconditionally
Use an IAM policy to require MFA for API calls
Deny iam:CreateUser unless the request includes a condition for MFA
This SCP denies creation of users without MFA requirement.
Attach an IAM policy to all users requiring MFA
A security engineer needs to ensure that all EC2 instances launched in a development account are tagged with a cost center. What is the most effective way to enforce this?
Use AWS Config to detect untagged instances and send alerts
Use AWS Systems Manager to tag instances after launch
Create a tag policy in AWS Organizations requiring the cost center tag
Use an IAM policy that denies ec2:RunInstances unless the request includes the cost center tag
This prevents launching instances without the required tag.
A company wants to centrally manage access keys for IAM users. Which AWS service can generate and rotate access keys automatically?
AWS CloudHSM
AWS KMS
AWS Systems Manager Parameter Store
AWS Secrets Manager
Secrets Manager can rotate IAM access keys automatically.
A company uses AWS Config to record resources. Which TWO actions can be taken to automatically remediate non-compliant resources detected by AWS Config rules?
Configure AWS Config rules to invoke an AWS Lambda function for remediation
Lambda can be used for custom remediation.
Configure AWS Config rules to send notifications to an SNS topic
Use AWS Systems Manager Automation documents as remediation actions
SSM Automation can perform remediation steps.
Use AWS CloudTrail to log non-compliant events
Use Amazon CloudWatch Events to trigger an AWS Step Functions state machine
Want more Management and Security Governance practice?
Practice this domain20% of exam · 6 sample questions below
A security engineer is reviewing the SQS queue policy shown in the exhibit. The queue is subscribed to an SNS topic in the same account. The security team has a requirement that only the SNS topic should be allowed to send messages to the queue. What is the issue with this policy?
The second statement allows any principal in the 10.0.0.0/8 range to receive messages from the queue.
This is overly permissive and should be scoped down.
The policy does not specify a principal, so it will not work.
The aws:SourceArn condition uses ArnLike which is deprecated.
The aws:SourceIp condition cannot be used with SQS queue policies.
A security engineer is designing a VPC with public and private subnets. The application servers in the private subnets need to access the internet for software updates, but must not be directly reachable from the internet. Which TWO actions satisfy these requirements?
Configure the private subnet's security group to allow inbound traffic from 0.0.0.0/0.
Add a route in the private subnet's route table pointing to the NAT gateway.
Correct: This routes outbound internet traffic through the NAT gateway.
Attach an internet gateway to the private subnet's route table.
Create a VPC gateway endpoint for Amazon S3.
Deploy a NAT gateway in a public subnet.
Correct: NAT gateway enables outbound internet access from private subnets.
Drag and drop the steps to set up AWS Certificate Manager (ACM) for a custom domain in the correct order.
Request certificate, Validate domain ownership via DNS, Issue certificate, Associate certificate with AWS resource
This is the correct order because you must first request the certificate, then validate ownership of the domain (typically via DNS), after which AWS issues the certificate, and finally you associate it with the desired resource (e.g., CloudFront or ALB).
Validate domain ownership via DNS, Request certificate, Issue certificate, Associate certificate with AWS resource
Request certificate, Issue certificate, Validate domain ownership via DNS, Associate certificate with AWS resource
Request certificate, Validate domain ownership via DNS, Associate certificate with AWS resource, Issue certificate
Match each AWS Storage service encryption feature to its description.
SSE-S3: Encryption keys are managed by Amazon S3.
SSE-S3 uses server-side encryption where Amazon S3 manages the encryption keys, providing a simple encryption solution without customer key management.
SSE-KMS: Encryption keys are managed by the customer using AWS KMS.
SSE-KMS allows customers to use AWS Key Management Service (KMS) to manage their own encryption keys, offering more control and audit capabilities.
Client-side encryption: Encryption is performed on the client side before data is sent to S3.
Client-side encryption requires the customer to encrypt data locally before uploading it to Amazon S3, ensuring no plaintext data is transmitted to AWS.
EBS encryption: Encryption is applied at the application level.
Glacier encryption: Encryption is optional for data at rest.
A security engineer is designing a VPC with public and private subnets. The application must be able to send outbound traffic to the internet, but inbound traffic from the internet must be blocked except for a single HTTP load balancer. The application also needs to access an S3 bucket in the same AWS region. Which combination of VPC components meets these requirements? (Choose two.)
S3 Interface Endpoint in the VPC
VPC Peering to a shared services VPC
NAT Gateway in a public subnet
Allows outbound internet to EC2 instances in private subnets.
Internet Gateway attached to the VPC
S3 Gateway Endpoint in the VPC
Provides private connectivity to S3 without internet.
A company is using AWS WAF to protect its Application Load Balancer (ALB). The security team wants to block requests that do not contain a valid API key in the HTTP header 'X-API-Key'. Which WAF rule type should be used?
String match condition
Regex pattern set
Can define a pattern for valid API keys and block invalid ones.
Rate-based rule
IP set
Want more Infrastructure Security practice?
Practice this domainA company stores sensitive data in Amazon S3 and wants to ensure that all objects are encrypted at rest. The security team has enabled default encryption on the S3 bucket using SSE-S3. However, an audit reveals that some objects are stored with SSE-KMS. How can the company enforce that only SSE-S3 is used for all future uploads, while still allowing existing SSE-KMS objects to be read?
Configure a bucket policy that denies s3:PutObject with s3:x-amz-server-side-encryption-aws:kms.
Use an S3 Lifecycle policy to transition existing SSE-KMS objects to SSE-S3.
Apply a bucket policy that denies s3:PutObject unless the x-amz-server-side-encryption header is AES256.
This policy enforces SSE-S3 for uploads without affecting reads of existing objects.
Disable SSE-KMS in the AWS KMS key policy to prevent its use.
A startup is building a web application on AWS and needs to protect sensitive customer data at rest in an Amazon RDS for MySQL database. The compliance team requires that the encryption keys be managed by the company's on-premises hardware security module (HSM) and be rotated every 6 months. Which solution should the startup use?
Use AWS CloudHSM to store the encryption keys and enable RDS encryption with CloudHSM.
CloudHSM provides a dedicated HSM that you control, and RDS can be encrypted using keys from CloudHSM.
Use AWS KMS with a customer master key (CMK) and import key material from the on-premises HSM.
Store the encryption keys in AWS Secrets Manager and use them to encrypt the database.
Use AWS KMS with a custom key store backed by AWS CloudHSM.
A company is designing a data protection strategy for its Amazon S3 bucket that stores sensitive documents. The security team requires that all data be encrypted in transit and at rest, and that any accidental deletion of objects can be reversed within 30 days. Additionally, the company must be able to audit all access attempts to the bucket, including failed attempts. Which TWO actions should the company take to meet these requirements? (Choose two.)
Enable default encryption on the bucket using SSE-S3.
Enable AWS CloudTrail with data events for S3.
CloudTrail logs all API calls, including failed ones, for auditing.
Enable S3 Versioning on the bucket.
Versioning allows recovery of deleted objects within the version retention period.
Enable S3 server access logs and send them to a separate bucket.
Enable MFA Delete on the bucket.
A company wants to enforce encryption in transit for all data transferred between its Amazon EC2 instances and an Application Load Balancer (ALB). The company uses AWS Certificate Manager (ACM) to provision TLS certificates. Which TWO actions should the company take? (Choose TWO.)
Configure the target group to use HTTPS protocol.
HTTPS target group ensures encryption between ALB and EC2.
Enable encryption at rest on the EC2 instances.
Use a network load balancer instead of an ALB.
Assign a certificate from ACM to the ALB listener.
Configure the ALB listener to use HTTPS protocol.
HTTPS listener enables encryption between client and ALB.
Refer to the exhibit. An AWS KMS key policy includes the statement shown. The AdminRole tries to decrypt a ciphertext that was encrypted using the same KMS key with encryption context 'department=engineering'. What will happen?
The decrypt operation succeeds because the role has kms:Decrypt permission.
The decrypt operation succeeds because the encryption context is ignored during decryption.
The decrypt operation fails because the policy does not allow kms:Decrypt without matching context.
The decrypt operation fails because the encryption context does not match the condition.
The condition 'department=finance' is not met, so access is denied.
Match each AWS security-related acronym to its definition.
SOC: Report on controls at a service organization relevant to security, availability, processing integrity, confidentiality, or privacy.
SOC reports are designed to assess and report on controls at service organizations, covering these five trust service criteria.
PCI DSS: Set of security standards designed to ensure that all companies that accept, process, store or transmit credit card information maintain a secure environment.
PCI DSS is the Payment Card Industry Data Security Standard, required for entities handling credit card data.
HIPAA: US law designed to provide privacy standards to protect patients' medical records and other health information.
HIPAA (Health Insurance Portability and Accountability Act) sets national standards for protecting medical records and personal health information.
FedRAMP: US government program that standardizes security assessment, authorization, and continuous monitoring for cloud products and services.
FedRAMP (Federal Risk and Authorization Management Program) provides a standardized approach for cloud service providers to gain federal authorization.
SOC: US law designed to provide privacy standards to protect patients' medical records and other health information.
PCI DSS: US government program that standardizes security assessment, authorization, and continuous monitoring for cloud products and services.
Want more Data Protection practice?
Practice this domainThe SCS-C02 exam has 65 questions and must be completed in 170 minutes. The passing score is 750/1000.
Scenario-based questions covering exam objectives with detailed answer explanations.
The exam covers 6 domains: Threat Detection and Incident Response, Security Logging and Monitoring, Identity and Access Management, Management and Security Governance, Infrastructure Security, Data Protection. 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 Amazon Web Services SCS-C02 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.