Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
In ACI, a Web EPG and an App EPG have been created in the same tenant and VRF. The VRF uses the default enforced mode, and no preferred group is used. The requirements are:
- Allow connections from Web servers to App servers on TCP port 8080, and in the App-to-Web direction pass only TCP from source port 8080
- Prevent App servers from opening ordinary TCP connections to Web servers by sending a SYN from source port 8080
- The VRF configuration must not be changed
The contract's filter entry is TCP, destination port 8080, with Stateful enabled, and the subject keeps the default Apply Both Directions and Reverse Filter Ports options. Which configuration is correct?
- AWeb EPG provides the contract and App EPG consumes it
- BApp EPG provides the contract and Web EPG consumes it
- CUse no contract and change the VRF to unenforced
- DUse no contract and put Web and App in a single EPG
Show answer and explanation
Answer:B The EPG offering the service (App) provides the contract, and the EPG initiating connections (Web) consumes it.
Why it is correct
In an enforced VRF, EPGs cannot talk to each other without a contract unless an exception such as a preferred group applies. The server-side EPG provides the contract, the client-side EPG consumes it, and the filter is applied as written in the consumer-to-provider direction. Apply Both Directions with Reverse Filter Ports adds a rule for source port 8080 in the provider-to-consumer direction. Because Stateful is enabled, that return rule matches only TCP packets with the ACK flag set, so App cannot start an ordinary connection by sending a bare SYN from port 8080. With App providing and Web consuming, every requirement is met.
The other options
- ✗ A Provider and consumer are reversed, so App could open connections to Web on port 8080 while Web-to-App connections are not allowed. This is the direction to use when Web offers a service on 8080 and App connects to it.
- ✗ C Unenforced permits all traffic between EPGs in the VRF, so traffic other than 8080 would get through, and changing the VRF is not allowed anyway. It is used to switch policy off temporarily, for example during a migration.
- ✗ D Endpoints in the same EPG can communicate freely by default, so everything, including App-to-Web connections, would be allowed. This suits grouping servers with the same role under one policy.
Key takeaway
Contract direction: the server side that accepts connections is the provider, and the client side that initiates them is the consumer. Reverse Filter Ports alone lets through any packet whose ports match the return rule, including new connection attempts, so add Stateful (an ACK flag check in the return direction) to stop the provider side from initiating ordinary connections. Note that Stateful does not track connection state the way a firewall does. Also remember the basics: traffic within an EPG is open by default, an enforced VRF needs contracts between EPGs (except within a preferred group), and unenforced allows everything in the VRF.
Try 35 questions like this for free
itmoshi is an unofficial study service and is not affiliated with Cisco or any exam provider.