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)
Related CLF-C02 questions
- A security review recommends that each IAM policy grant only the permissions required to perform a task, and nothing…Security and Compliance
- Which AWS service provides always-on, automatic protection against common network and transport layer DDoS attacks at no…Security and Compliance
- Which AWS service lets you create and control the cryptographic keys used to encrypt your data and is integrated with…Security and Compliance
- Which AWS service helps protect web applications from common exploits such as SQL injection and cross-site scripting by…Security and Compliance
All 71 free CLF-C02 questions by domain · 15 sample questions on one page
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.