Courseiva
Design for New SolutionshardMultiple SelectObjective-mapped

SAP-C02 Design for New Solutions Practice Question

A company is deploying a containerized application on Amazon ECS with Fargate. The application needs to be accessible from the internet and must be secured with an AWS WAF. Which TWO steps should be taken to achieve this?

⚠ Common exam trap

Candidates often assume a Network Load Balancer can be used with WAF or that assigning public IPs to tasks is acceptable, but WAF requires Layer 7 inspection which only an ALB (or CloudFront) can provide, and direct public IPs bypass all security controls.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Associate the ALB with an AWS WAF web ACL.

AWS WAF can be associated with an Application Load Balancer (ALB) to filter HTTP/HTTPS traffic at the application layer. This allows you to protect the containerized application from common web exploits like SQL injection or cross-site scripting. Option B is correct because an ALB is required to route internet traffic to the ECS Fargate service and to terminate TLS, which is necessary for WAF to inspect the request payload.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Associate the ALB with an AWS WAF web ACL.

    Why this is correct

    WAF can be associated with ALB to filter malicious traffic.

  • Use an Application Load Balancer in front of the ECS service.

    Why this is correct

    ALB supports integration with AWS WAF.

  • Use a Network Load Balancer in front of the ECS service.

    Why it's wrong here

    NLB does not support AWS WAF integration.

  • Assign public IP addresses to the Fargate tasks.

    Why it's wrong here

    Direct internet access to tasks is not recommended; use a load balancer.

  • Use Amazon CloudFront as a CDN.

    Why it's wrong here

    CloudFront can be used but adds unnecessary complexity.

About these practice questions

Courseiva writes every SAP-C02 question from scratch — 1,660 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.