ANS-C01 Network Implementation Practice Question
A company is troubleshooting connectivity issues between an on-premises network and a VPC connected via AWS VPN CloudHub. The on-premises network uses multiple customer gateways (CGWs) connected to a single virtual private gateway (VGW). The company wants to ensure that all traffic from the VPC to on-premises is routed through a specific CGW. Which configuration should be used?
⚠ Common exam trap
Watch out — candidates often confuse BGP path selection attributes (like local preference) with VPC route table behavior, assuming they can influence outbound VPC traffic from AWS, when in fact BGP attributes only affect inbound traffic direction from on-premises to AWS.
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
✓
Configure a static route in the VPC route table pointing to the VGW with a more specific prefix for the on-premises network
In an AWS VPN CloudHub setup, the VPC route table controls how traffic from the VPC is forwarded to the on-premises network via the virtual private gateway (VGW). By adding a static route with a more specific prefix (e.g., a /24 instead of a /16) for the on-premises network, you force the VPC to prefer that route over any dynamically learned routes from other CGWs, ensuring all traffic uses the designated CGW. This approach leverages the longest prefix match rule in the VPC route table, overriding BGP-learned routes without altering the BGP configuration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Adjust the BGP local preference on the preferred CGW to a higher value
Why it's wrong here
Local preference is an AS-path attribute, not directly set on CGW.
- ✗
Remove the other CGWs from the VGW
Why it's wrong here
This would remove redundancy.
- ✗
Modify the VPN tunnel option to prefer the specific tunnel
Why it's wrong here
Tunnel options do not control routing.
- ✓
Configure a static route in the VPC route table pointing to the VGW with a more specific prefix for the on-premises network
Why this is correct
Static routes take precedence over BGP routes.
Go deeper
Related to this question
About these practice questions
This ANS-C01 question is part of Courseiva's 1,621-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ANS-C01 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 ANS-C01 exam.