nerdexam
Microsoft

DP-100 · Question #281

You have a dataset that contains salary information for users. You plan to generate an aggregate salary report that shows average salaries by city. Privacy of individuals must be preserved without…

The correct answer is A. Add noise to the salary data during the analysis. Differential privacy preserves individual privacy in aggregate analysis by injecting calibrated statistical noise into query results, keeping aggregate outputs statistically representative without exposing raw data.

Design and prepare a machine learning solution

Question

You have a dataset that contains salary information for users. You plan to generate an aggregate salary report that shows average salaries by city. Privacy of individuals must be preserved without impacting accuracy, completeness, or reliability of the data. The aggregation must be statistically consistent with the distribution of the original data. You must return an approximation of the data instead of the raw data. You need to apply a differential privacy approach. What should you do?

Options

  • AAdd noise to the salary data during the analysis
  • BEncrypt the salary data before analysis
  • CRemove the salary data
  • DConvert the salary data to the average column value

How the community answered

(13 responses)
  • A
    92% (12)
  • C
    8% (1)

Why each option

Differential privacy preserves individual privacy in aggregate analysis by injecting calibrated statistical noise into query results, keeping aggregate outputs statistically representative without exposing raw data.

AAdd noise to the salary data during the analysisCorrect

Adding calibrated noise to the salary data during analysis is the defining mechanism of differential privacy. The injected noise masks individual contributions so that no single person's salary can be inferred, while the aggregate statistics - such as average salary by city - remain statistically consistent with the original distribution, satisfying the requirements for accuracy, completeness, and privacy simultaneously.

BEncrypt the salary data before analysis

Encryption protects data from unauthorized access at rest or in transit but does not prevent statistical re-identification once the data is decrypted and analyzed; it is an access control mechanism, not a privacy-preserving analysis technique.

CRemove the salary data

Removing salary data would destroy the completeness and reliability of the dataset, directly violating the requirement that accuracy, completeness, and reliability must not be impacted.

DConvert the salary data to the average column value

Replacing all salary values with the column average eliminates the statistical distribution entirely, producing a uniform dataset that is no longer statistically consistent with the original data and cannot support meaningful aggregate analysis.

Concept tested: Differential privacy noise injection for aggregate data analysis

Source: https://learn.microsoft.com/en-us/azure/machine-learning/concept-differential-privacy

Topics

#Differential Privacy#Data Privacy#Data Aggregation#Data Transformation

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice