Question 80
A CDK stack references a staging VPC ID in production because its context file was copied without environment-aware configuration. Which evidence should the engineer examine FIRST to isolate the issue or confirm the assumption?
Explanation
Correct Answer
Compare CDK context values, synthesized resources, environment references, stack dependencies and deployed change sets. This distinguishes configuration and transport facts for the described failure. CDK synthesis generates infrastructure templates; application code passing unit tests does not alone prove a network change is safe at deploy time. The corresponding action is: Model reusable VPC and routing constructs with AWS CDK while keeping account/Region-specific values and synthesized CloudFormation templates reviewed. Scenario: A CDK stack references a staging VPC ID in production because its context file was copied without environment-aware configuration.
Incorrect Answers
Inspect event pattern and detail, Lambda IAM role, idempotency key, retry/DLQ policy, logged action and configuration outcome. These checks are primarily associated with EventBridge and Lambda network change reaction; they are less discriminating for this case. The relevant checks are: Compare CDK context values, synthesized resources, environment references, stack dependencies and deployed change sets. Scenario: A CDK stack references a staging VPC ID in production because its context file was copied without environment-aware configuration.
Check LOA-CFA status, physical port light levels, assigned VLAN, BGP peer IPs, ASN and accepted prefix advertisements. These checks are primarily associated with Direct Connect LOA VLAN and BGP bring-up; they are less discriminating for this case. The relevant checks are: Compare CDK context values, synthesized resources, environment references, stack dependencies and deployed change sets. Scenario: A CDK stack references a staging VPC ID in production because its context file was copied without environment-aware configuration.
Validate inbound endpoint addresses, network routing, on-prem conditional DNS forwarder configuration, zone association and resolver query logs. These checks are primarily associated with Resolver inbound endpoint for AWS private zone access; they are less discriminating for this case. The relevant checks are: Compare CDK context values, synthesized resources, environment references, stack dependencies and deployed change sets. Scenario: A CDK stack references a staging VPC ID in production because its context file was copied without environment-aware configuration.


