Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Create custom log tables in the workspace to store ingested data

A worked example

Complete the statement

You created the custom table TradingSystemEvents_CL in a Microsoft Sentinel workspace. The table has a TimeGenerated column (datetime), a TradeId column (string) and a RiskScore column (int).

The trading application sends JSON events through the Logs Ingestion API. Each event contains TimeGenerated, TradeId and a field named risk_score that holds the score as text, for example "87".

You are adding a transformation to the data collection rule (DCR) that routes the events to the table. The transformation must:

  • populate the RiskScore column with an integer value
  • keep TimeGenerated and TradeId unchanged
  • remove the original risk_score field from the output

Complete the DCR transformation.

| extend RiskScore = (risk_score) |

  • Blank 1: source (correct answer)

    The DCR transformation works on the incoming data stream, which the query references as source. TradingSystemEvents_CL is the destination table, not the input of the transformation. TradingSystemEvents is neither the input stream nor the table's queryable name.

  • Blank 2: toint (correct answer)

    toint converts the text score to an integer, which matches the int RiskScore column. tostring would leave the value as text. todatetime is for timestamps, and todynamic produces a dynamic value; neither matches an int column.

  • Blank 3: project-away risk_score (correct answer)

    project-away risk_score removes only the original field and keeps every other column. project-away RiskScore would remove the converted column. project risk_score would keep only the original field and drop TimeGenerated, TradeId and RiskScore. project-rename risk_score = RiskScore attempts to rename RiskScore to an existing column name, causing a conflict instead of removing the original field.

Why

The DCR is where incoming data is transformed and routed to the custom table, and a KQL transformation is used when the source format differs from the table schema. The transformation reads the incoming stream as source, uses extend with toint to create the int RiskScore column from the text field, and then removes only the original risk_score field with project-away. Each other choice either reads the wrong input, produces the wrong data type, or fails to preserve the required output schema.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free