Salesforce Certified MuleSoft Platform Architect free question 7 / 10 · Domain 6: Architecting and deploying API implementations
Internal workers in an Anypoint VPC are called only from the company network over VPN. They should not be reachable from the CloudHub shared load balancer, which is publicly accessible. Which action matches the VPC firewall rules documentation?
- Remove the two default rules that allow inbound connections from anywhere on ports 8081 and 8082
- Make no change, because all traffic to the VPC is blocked by default and no rule allows the shared load balancer
- Remove the two default rules that allow connections from within the VPC on ports 8091 and 8092
- Add a rule that denies connections to the load balancer, because firewall rules decide what the shared load balancer may reach
Show the answer and explanation
Answer: A
Why this is correct
The Default Firewall Rules section says all traffic to a VPC is blocked unless a firewall rule allows it, and that four rules are created by default. Two allow inbound connections from within the local VPC on ports 8091 and 8092. The other two allow inbound connections from anywhere on ports 8081 and 8082, which CloudHub's shared load balancer uses to proxy external requests to the workers. The page says you can remove those two rules if you do not want internal workers reached by the publicly accessible load balancer.
Why the other options are wrong
"Remove the two default rules that allow connections from within the VPC on ports 8091 and 8092" … Those two rules let the VPC's own dedicated load balancer reach the workers. The shared load balancer uses ports 8081 and 8082.
"Make no change, because all traffic to the VPC is blocked by default and no rule allows the shared load balancer" … Four rules are created by default, and two of them allow inbound connections from anywhere on ports 8081 and 8082, which is how the shared load balancer reaches the workers.
"Add a rule that denies connections to the load balancer, because firewall rules decide what the shared load balancer may reach" … The page says traffic is blocked unless explicitly allowed by a firewall rule. The rules allow traffic, so you remove the allowing rules instead of adding a denying one.
Rules cover inbound traffic only
A rule names a protocol, a source CIDR block, and a port range. The only two ports exposed externally by default are 8081 (http.port) and 8082 (https.port).