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?
- An AWS WAF web ACL with SQL injection and IP reputation managed rules plus a rate-based rule — Correct
- Configure security groups on the ALB with deny rules for malicious IPs and a request rate limit per client.
- Enable AWS Shield Standard and rely on it to block SQL injection and rate-limit individual clients.
- 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?
- A security group in each VPC with outbound rules that list the approved domain names
- An internet gateway in each VPC with route tables that point only to approved domains
- A network ACL in each VPC with outbound rules that list the approved domain names
- 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?
- AWS Security Hub with the FSBP standard enabled
- AWS Firewall Manager with an AWS WAF policy — Correct
- AWS Config rules that alert on unprotected resources
- 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?
- AWS WAF web ACLs attached to each pod in the cluster
- Kubernetes network policies on the cluster — Correct
- Route 53 private hosted zones for each Kubernetes namespace
- 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?
- Route 53 Resolver DNS Firewall with a threat list — Correct
- VPC flow logs with a REJECT filter for the domains
- Security groups with outbound deny rules for the domains
- 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.)
- Elastic IP addresses attached to each private instance
- A NAT gateway in each Availability Zone of the VPC
- Interface VPC endpoints for ssm, ssmmessages, and ec2messages — Correct
- An instance profile with the AmazonSSMManagedInstanceCore policy — Correct
- 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?
- Place instances behind an internet-facing NLB with Elastic IPs that only CloudFront knows about.
- Place instances in public subnets and use network ACLs that block traffic from countries other than the home country.
- Private instances, an ALB limited to CloudFront's prefix list, and a secret header — Correct
- 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?
- Use ECS Service Connect with TLS enabled, backed by AWS Private CA certificates. — Correct
- Use security groups to encrypt traffic between the tasks in the service.
- Place every service in a separate public subnet with HTTPS listeners.
- 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?
- Inspector enhanced ECR scanning — Correct
- AWS Config managed rules for ECR
- ECR basic scanning on push only
- 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?
- Terminate all instances and launch new ones from the original, unpatched AMIs.
- Wait for the next monthly maintenance window to patch all instances together.
- Patch Manager with multi-account automation and central compliance — Correct
- 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.