AWS Certified CloudOps Engineer - Associate (SOA-C03) Practice Questions

AWS Certified CloudOps Engineer - Associate (SOA-C03) exam preparation

AWS Certified CloudOps Engineer - Associate (SOA-C03) practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 130 minutes.

AWS Certified CloudOps Engineer - Associate (SOA-C03) free question 2 / 10 · Domain 1: Monitoring, Logging, Analysis, Remediation, and Performance Optimization

A rule sends Amazon EC2 state-change events to an SNS topic. The on-call team wants each message to show the instance ID from the event together with the name of the rule that matched, with no Lambda function in between. How should the engineer configure the target?

  1. Use an input transformer that defines its own variable named aws.events.rule-name and assigns it the rule name by a JSON path expression
  2. Use an input transformer that defines a variable for the instance ID and puts the predefined aws.events.rule-name variable in the input template
  3. Use an input transformer whose template references a field of the transformed event, so the instance ID is read from the template output
  4. Send the original event to the topic, as EventBridge adds the rule name to the detail field of the event it delivers
Show the answer and explanation

Answer: B

Why this is correct
The input transformation page says you can customize the text from an event before EventBridge passes it to the target. You define variables that use JSON path to reference values in the event, and you use them in the input template as <variable-name>. Predefined variables such as aws.events.rule-name need no JSON path and are reserved names. The instance ID can be mapped from the event, and the rule name comes from the predefined variable.

Why the other options are wrong
"Use an input transformer that defines its own variable named aws.events.rule-name and assigns it the rule name by a JSON path expression" … The names of the predefined variables are reserved. You can use them without defining a JSON path, but you cannot create a variable with one of those names.
"Use an input transformer whose template references a field of the transformed event, so the instance ID is read from the template output" … Dynamic path parameters must reference the original event, not the transformed event. The template output cannot be a source for another variable.
"Send the original event to the topic, as EventBridge adds the rule name to the detail field of the event it delivers" … The page lists aws.events.rule-name as a predefined variable that is available to the input transformer. It is not added to the original event, so the transformer is needed.

Key points
You can define up to 100 variables per transformer. Put quotes around variables that refer to JSON path values, and do not put quotes around variables that refer to JSON objects or arrays.

Go to the AWS Certified CloudOps Engineer - Associate (SOA-C03) practice app (10 free questions; purchase unlocks all questions)

See the full practice set