aws SCS-C03: AWS Certified Security – Specialty · Practice questions

Domain 3: Infrastructure Security Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

A company hosts a public web application behind an Application Load Balancer. It must block SQL injection attempts, limit requests from any single IP to 2,000 per 5 minutes, and block traffic from known malicious IPs. Which solution meets these requirements?

  1. An AWS WAF web ACL with SQL injection and IP reputation managed rules plus a rate-based rule — Correct
  2. Configure security groups on the ALB with deny rules for malicious IPs and a request rate limit per client.
  3. Enable AWS Shield Standard and rely on it to block SQL injection and rate-limit individual clients.
  4. Configure network ACLs on the ALB subnets with deny rules for SQL keywords and malicious IP ranges.

Correct answer

An AWS WAF web ACL with SQL injection and IP reputation managed rules plus a rate-based rule

Explanation

WAF provides SQL injection protection, IP reputation lists, and rate-based rules. Security groups have no deny rules or rate limits. NACLs cannot inspect HTTP content. Shield Standard does not block application-layer attacks such as SQL injection.

Question 2

A company wants to inspect and filter all outbound traffic from its VPCs to the internet, allowing only approved domains, with centralized management across many VPCs. Which architecture fits BEST?

  1. A security group in each VPC with outbound rules that list the approved domain names
  2. An internet gateway in each VPC with route tables that point only to approved domains
  3. A network ACL in each VPC with outbound rules that list the approved domain names
  4. A central egress VPC with Network Firewall domain rules via Transit Gateway — Correct

Correct answer

A central egress VPC with Network Firewall domain rules via Transit Gateway

Explanation

Network Firewall can filter by domain (SNI/HTTP host) and a central egress VPC simplifies management. Security groups and NACLs work with IPs, not domains. Route tables cannot route by domain.

Question 3

A company must ensure that all ALBs and CloudFront distributions in its organization, including new ones, have a baseline WAF web ACL attached. Which service should it use?

  1. AWS Security Hub with the FSBP standard enabled
  2. AWS Firewall Manager with an AWS WAF policy — Correct
  3. AWS Config rules that alert on unprotected resources
  4. AWS Shield Advanced automatic application layer mitigation

Correct answer

AWS Firewall Manager with an AWS WAF policy

Explanation

Firewall Manager applies WAF policies across accounts and to new resources automatically. Config and Security Hub only detect. Shield Advanced mitigation does not attach your baseline web ACL everywhere.

Question 4

A container platform team on Amazon EKS needs to ensure that pods can call only specific other pods within the cluster. Which control should be used?

  1. AWS WAF web ACLs attached to each pod in the cluster
  2. Kubernetes network policies on the cluster — Correct
  3. Route 53 private hosted zones for each Kubernetes namespace
  4. IAM policies attached to the EKS cluster's service role

Correct answer

Kubernetes network policies on the cluster

Explanation

Kubernetes network policies control pod-to-pod traffic. IAM, WAF, and Route 53 do not filter traffic between pods.

Question 5

A company wants to block outbound traffic from instances in a VPC to known command-and-control domains before connections are made. Which control works at the DNS layer?

  1. Route 53 Resolver DNS Firewall with a threat list — Correct
  2. VPC flow logs with a REJECT filter for the domains
  3. Security groups with outbound deny rules for the domains
  4. AWS WAF rules attached to the VPC's internet gateway

Correct answer

Route 53 Resolver DNS Firewall with a threat list

Explanation

DNS Firewall blocks resolution of malicious domains. Security groups cannot deny or use domains. WAF cannot attach to an internet gateway. Flow logs only record traffic.

Question 6

A company runs EC2 instances in private subnets. Administrators need shell access without opening inbound ports, using bastion hosts, or giving instances internet access. Which configuration is required? (Choose TWO.)

  1. Elastic IP addresses attached to each private instance
  2. A NAT gateway in each Availability Zone of the VPC
  3. Interface VPC endpoints for ssm, ssmmessages, and ec2messages — Correct
  4. An instance profile with the AmazonSSMManagedInstanceCore policy — Correct
  5. A security group rule allowing inbound TCP 22 from 0.0.0.0/0

Correct answer

Interface VPC endpoints for ssm, ssmmessages, and ec2messages; An instance profile with the AmazonSSMManagedInstanceCore policy

Explanation

Session Manager needs the endpoints for private connectivity and an instance role with SSM permissions. Open SSH, NAT gateways, and Elastic IPs are unnecessary or violate the requirements.

Question 7

A company wants to prevent its EC2 instances from being reached through their public IP addresses while still serving web traffic through CloudFront and an ALB. Which design follows best practices?

  1. Place instances behind an internet-facing NLB with Elastic IPs that only CloudFront knows about.
  2. Place instances in public subnets and use network ACLs that block traffic from countries other than the home country.
  3. Private instances, an ALB limited to CloudFront's prefix list, and a secret header — Correct
  4. Place instances in public subnets and use security groups that allow all traffic from the internet on port 443.

Correct answer

Private instances, an ALB limited to CloudFront's prefix list, and a secret header

Explanation

Private instances, an ALB restricted to CloudFront's prefix list, and a secret header ensure traffic goes through CloudFront. Public instances or secret IPs are not real protection.

Question 8

A company wants to encrypt traffic between services inside a VPC and verify service identity, for microservices running on ECS. Which approach fits BEST?

  1. Use ECS Service Connect with TLS enabled, backed by AWS Private CA certificates. — Correct
  2. Use security groups to encrypt traffic between the tasks in the service.
  3. Place every service in a separate public subnet with HTTPS listeners.
  4. Rely on the VPC's default encryption of all traffic between Availability Zones.

Correct answer

Use ECS Service Connect with TLS enabled, backed by AWS Private CA certificates.

Explanation

Service Connect can provide TLS between services using Private CA. Some instance types encrypt traffic in hardware, but service identity verification needs TLS. Security groups do not encrypt traffic. Public subnets increase exposure.

Question 9

A company wants to scan its Amazon ECR container images for operating system and programming language package vulnerabilities continuously, including when new CVEs are published. Which feature should it enable?

  1. Inspector enhanced ECR scanning — Correct
  2. AWS Config managed rules for ECR
  3. ECR basic scanning on push only
  4. GuardDuty EKS Audit Log Monitoring

Correct answer

Inspector enhanced ECR scanning

Explanation

Inspector enhanced scanning covers OS and language packages and rescans continuously when new vulnerabilities appear. Basic scanning on push does not rescan continuously. GuardDuty and Config do not scan image contents.

Question 10

A company must patch EC2 instances against a critical vulnerability within 24 hours across 50 accounts. Which approach fits BEST?

  1. Terminate all instances and launch new ones from the original, unpatched AMIs.
  2. Wait for the next monthly maintenance window to patch all instances together.
  3. Patch Manager with multi-account automation and central compliance — Correct
  4. Ask each account owner to log in to every instance and install the patch manually.

Correct answer

Patch Manager with multi-account automation and central compliance

Explanation

Patch Manager with multi-account automation patches quickly and reports compliance. Manual patching is slow. Waiting misses the deadline. Relaunching from unpatched AMIs keeps the vulnerability.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz