‹ All SAA-C03 questions

SAA-C03 Practice Question 62: Security Group Referencing

AWS Certified Solutions Architect – Associate (SAA-C03) · Test 7 · question 2 of 10

Network Securityhard

A three-tier application has a separate security group for the load balancer, the application instances and the database instances. The database security group allows the database port inbound from two hard-coded subnet CIDR blocks, which are the subnets the application Auto Scaling group originally used.

The team expands the Auto Scaling group into a third, newly created subnet. Instances launched in that subnet come up healthy but every database connection they open is dropped, while instances in the two original subnets are unaffected. The team expects to add more subnets as the application grows.

What should the architect change so that this class of failure does not recur?

Select one answer
Show answer and explanation

Answer:

  • C. Replace the CIDR-based inbound rule on the database security group with one whose source is the application tier's security group

A security group rule can take another security group as its source. The rule then applies to every instance associated with that referenced group, communicating over its private IP address, regardless of which subnet or Availability Zone the instance happens to be in. Referencing the application tier's group therefore makes the database rule track group membership rather than addressing, so instances launched into any current or future subnet are covered the moment they come up. AWS documents this three-tier pattern explicitly, and a rule that references a group counts as a single rule no matter how many instances are in it.

Option A restores service but leaves the design unchanged: the rule still encodes addresses, so the next subnet causes the same outage. The question asks for a fix that prevents recurrence.

Option B also restores service and is worse for security. It authorises the database port from every address in the VPC, including subnets that have nothing to do with the application tier, which throws away the tier isolation the three security groups exist to provide.

Option D is the wrong control. The security group is what dropped the traffic, and if the database subnets use the default network ACL it already allows all traffic, so the rule changes nothing. Network ACLs are also CIDR-based and stateless, so building the tier boundary there would have the same brittleness as option A plus the need for matching ephemeral-port rules.

Reference: Security group rules

Practice Test 7 ›

Study guides for SAA-C03

AWS Developer Associate exam guide: DVA-C02 to DVA-C03AWS Developer Associate exam: DVA-C02 ends 30 November 2026 and DVA-C03 starts 1 December. What changes, which to sit, format, price and study plan.
AWS interview questions: scenarios, freshers to experiencedAWS interview questions on EC2, Lambda, S3, databases, VPC and IAM, by level, with four scenarios worked end to end and the facts old answers get wrong.
AWS Security Specialty: is it worth it, and what's testedAWS Security Specialty (SCS-C03): who it's worth it for, the six domains, new question types, price, and how it compares with CISSP.
SAA-C03 exam guide: what's on it and how to passSAA-C03 exam guide for 2026: the four domains, 65 questions in 130 minutes, price in USD and INR, the October 2026 guide update and a study plan.
AWS Service Control Policies Explained: SCPs and DenialsAWS service control policies explained: how SCPs cap permissions, why admins still get access denied, inheritance, deny vs allow lists and the exam traps.
Business Automation Examples: McDonald's to Step FunctionsBusiness automation examples from McDonald's, KFC, Ford and Toyota, the four moves they share, what to automate first, and AWS Step Functions.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
How Netflix Uses AWS: Control Plane, CDN and ChaosHow Netflix uses AWS: the 2008 outage behind the move, control plane vs Open Connect, chaos engineering, multi-Region design and what it teaches for exams.
What Is Amazon RDS? Multi-AZ, Read Replicas and BackupsWhat is Amazon RDS? Engines, Multi-AZ, read replicas, backups, RDS Proxy, Aurora and pricing explained, with the traps that AWS exams set around each one.
What Is AWS Lambda? Triggers, Concurrency and Cold StartsWhat is AWS Lambda? How functions run, cold starts, triggers vs event source mappings, concurrency, layers, aliases, pricing and the exam traps.
What jobs can you get with AWS Cloud Practitioner?What jobs can you get with AWS Cloud Practitioner (CLF-C02)? The roles it helps with, the ones it won't land on its own, and what to add next.
AWS CloudOps Engineer Associate (SOA-C03) exam guideAWS Certified CloudOps Engineer – Associate (SOA-C03) replaced SysOps Administrator. Format, cost, the five domains, what changed and how to prepare.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is AWS Glue? Data Catalog, Crawlers and ETL JobsWhat is AWS Glue? The Data Catalog, crawlers, ETL jobs and DPUs, workflows, streaming, job bookmarks, Flex and Data Quality, plus the traps AWS exams set.
AWS Edge Locations and CloudFront, ExplainedHow AWS edge locations work: CloudFront POPs, regional edge caches, the request path, edge location vs Region, and the Global Accelerator exam trap.
What Is Amazon EC2? Instances, AMIs, EBS and Auto ScalingAmazon EC2 explained: instances, AMIs, instance types, security groups, EBS, Auto Scaling groups and pricing options, with the traps AWS exams set.
Amazon S3 storage classes and lifecycle rulesHow S3 storage classes, Intelligent-Tiering and lifecycle rules work, with the retrieval fees and minimum durations that AWS exam questions turn on.
AWS disaster recovery strategies, RTO and RPOBackup and restore, pilot light, warm standby and active/active on AWS, how RTO and RPO pick between them, and the services each strategy uses.
IAM users, roles and policies on AWSHow IAM users, roles, identity-based and resource-based policies, cross-account access, SCPs and permissions boundaries fit together for AWS exams.
SQS vs SNS vs EventBridge on AWSWhen to use an SQS queue, an SNS topic or an EventBridge bus, plus fan-out, FIFO ordering, visibility timeouts and dead-letter queues for AWS exams.
The AWS shared responsibility model explainedWhat AWS secures and what you secure on EC2, RDS, Lambda and S3, how the line moves with each service, and how Cloud Practitioner questions test it.
VPC endpoints vs NAT gateways on AWSWhen to use gateway endpoints, interface endpoints (PrivateLink) or a NAT gateway for private subnets, and the cost and security trade-offs exams test.