Learn how to leverage Amazon EventBridge’s cross-account event delivery capability, combined with API Gateway, to receive events from an on-premises source control management system across multiple AWS accounts without changing the system’s configuration.
Table of Contents
Question
A company is using an Amazon API Gateway REST API endpoint as a webhook to publish events from an on-premises source control management (SCM) system to Amazon EventBridge. The company has configured an EventBridge rule to listen for the events and to control application deployment in a central AWS account. The company needs to receive the same events across multiple receiver AWS accounts.
How can a developer meet these requirements without changing the configuration of the SCM system?
A. Deploy the API Gateway REST API to all the required AWS accounts. Use the same custom domain name for all the gateway endpoints so that a single SCM webhook can be used for all events from all accounts.
B. Deploy the API Gateway REST API to all the receiver AWS accounts. Create as many SCM webhooks as the number of AWS accounts.
C. Grant permission to the central AWS account for EventBridge to access the receiver AWS accounts. Add an EventBridge event bus on the receiver AWS accounts as the targets to the existing EventBridge rule.
D. Convert the API Gateway type from REST API to HTTP API.
Answer
C. Grant permission to the central AWS account for EventBridge to access the receiver AWS accounts. Add an EventBridge event bus on the receiver AWS accounts as the targets to the existing EventBridge rule.
Explanation
The correct answer is C. Grant permission to the central AWS account for EventBridge to access the receiver AWS accounts. Add an EventBridge event bus on the receiver AWS accounts as the targets to the existing EventBridge rule.
To receive the same events across multiple receiver AWS accounts without changing the configuration of the on-premises source control management (SCM) system, you can leverage EventBridge’s cross-account event delivery capability.
Here’s how you can meet the requirements:
- Grant permission to the central AWS account for EventBridge to access the receiver AWS accounts. This can be done by creating a cross-account event bus policy in the receiver accounts and allowing the central account to put events on the event bus.
- In the central AWS account, add the EventBridge event bus from the receiver AWS accounts as targets to the existing EventBridge rule that listens for the events from the API Gateway REST API endpoint.
With this setup, the events from the on-premises SCM system will be received by the API Gateway REST API endpoint in the central AWS account. The EventBridge rule in the central account will then forward the events to the event buses in the receiver AWS accounts, allowing them to receive the same events without modifying the SCM system configuration.
This approach ensures that the events are consistently delivered across multiple AWS accounts while maintaining a single integration point with the on-premises SCM system.
Amazon AWS Certified Developer – Associate DVA-C02 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified Developer – Associate DVA-C02 exam and earn Amazon AWS Certified Developer – Associate DVA-C02 certification.