Skip to main content

CLF-C02 practice question · Security and Compliance

In a three-tier architecture, the database security group should allow traffic only from the application tier.

In a three-tier architecture, the database security group should allow traffic only from the application tier. What is the cleanest way to express this?

  • AReference the application tier's security group as the source in the database security group's inbound rule
  • BHard-code every application instance's private IP in the database security group
  • CAllow 0.0.0.0/0 on the database port and rely on the password
  • DPut the database in a public subnet
Show the answer and explanation

Correct answer: A) Reference the application tier's security group as the source in the database security group's inbound rule

Why each option is right or wrong

  • A) Correct. Security groups can reference other security groups as sources, so the rule stays correct as application instances are added or replaced, without tracking individual IP addresses.
  • B) Incorrect. That breaks whenever the fleet scales or instances are replaced.
  • C) Incorrect. Opening the database to the entire internet is a serious exposure.
  • D) Incorrect. Databases belong in private subnets; subnet placement isn't how you restrict the source of traffic.
Exam domain
Security and Compliance · 30% of CLF-C02
Question type
Multiple choice (one answer)

Practise the full CLF-C02 exam

This question is one of a small free sample from the CertRidge CLF-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.