exam questions

Exam Certified Data Engineer Professional All Questions

View all questions & answers for the Certified Data Engineer Professional exam

Exam Certified Data Engineer Professional topic 1 question 48 discussion

Actual exam question from Databricks's Certified Data Engineer Professional
Question #: 48
Topic #: 1
[All Certified Data Engineer Professional Questions]

A data engineer, User A, has promoted a new pipeline to production by using the REST API to programmatically create several jobs. A DevOps engineer, User B, has configured an external orchestration tool to trigger job runs through the REST API. Both users authorized the REST API calls using their personal access tokens.
Which statement describes the contents of the workspace audit logs concerning these events?

  • A. Because the REST API was used for job creation and triggering runs, a Service Principal will be automatically used to identify these events.
  • B. Because User B last configured the jobs, their identity will be associated with both the job creation events and the job run events.
  • C. Because these events are managed separately, User A will have their identity associated with the job creation events and User B will have their identity associated with the job run events.
  • D. Because the REST API was used for job creation and triggering runs, user identity will not be captured in the audit logs.
  • E. Because User A created the jobs, their identity will be associated with both the job creation events and the job run events.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hal2401me
Highly Voted 11 months, 2 weeks ago
Selected Answer: E
https://docs.databricks.com/api/azure/workspace/jobs/create API/jobs/create:run_as object Write-only setting, available only in Create/Update/Reset and Submit calls. Specifies the user or service principal that the job runs as. If not specified, the job runs as the user who created the job. In the question, it's not stated that user A creates a service principal. So runas can only be himself.
upvoted 8 times
carlosmps
1 month, 4 weeks ago
but the documentation says: The REST API operation path, such as /api/2.0/clusters/get, to get information for the specified cluster. Remember User B use his token to orchestration. The answer should be C
upvoted 1 times
...
...
arekm
Most Recent 1 month ago
Selected Answer: C
Answer C - the run_as property is not said to be configured, so the job will run with the permissions of the creator - user A. However, still user B will be the one that triggered the run, which is what the question is about.
upvoted 2 times
...
LuminaBerry
1 month, 2 weeks ago
Selected Answer: C
C should be the correct answer. Although User A has it's user associated to the creation, and by default the run as user if omitted on the creation of the job, the question specifies the Audit Logs (Run Event Logs) associated to the run. I've tried it this out on a job and for a job which was created and has a run as user different from mine, if I go to the run event logs, there are logs which stated that my user trigged a "started" event type
upvoted 2 times
...
janeZ
1 month, 2 weeks ago
Selected Answer: C
based on the standard understanding of how personal access tokens typically work, each user's actions should be logged separately with their respective identities. Therefore, "C" would be the standard answer unless there is a specific behavior or configuration in Databricks that causes the job run events to be attributed back to User A.
upvoted 1 times
...
AlejandroU
1 month, 3 weeks ago
Selected Answer: C
Answer C. The audit logs distinguish between actions like job creation and job execution, so User A and User B will be identified separately for these actions.
upvoted 1 times
...
benni_ale
2 months ago
Selected Answer: E
I tried myself and E seems correct
upvoted 1 times
...
JB90
2 months, 1 week ago
Selected Answer: C
When you use the API to commit the jobs the creation is logged using the PAT info, the same happens when you start a run using a different PAT.
upvoted 1 times
...
benni_ale
2 months, 2 weeks ago
Selected Answer: E
Specifies the user, service principal or group that the job/pipeline runs as. If not specified, the job/pipeline runs as the user who created the job/pipeline. Either user_name or service_principal_name should be specified. If not, an error is thrown.
upvoted 1 times
...
rsmf
2 months, 4 weeks ago
Selected Answer: C
C is the right answer
upvoted 1 times
...
Carkeys
3 months, 1 week ago
Selected Answer: C
In Databricks, audit logs capture the identity of the user associated with each distinct event, whether it’s creating or running a job. Since User A used their personal access token to create the jobs and User B used theirs to trigger job runs, the audit logs will reflect User A's identity for job creation events and User B's identity for job run events.
upvoted 1 times
...
quaternion
5 months, 3 weeks ago
Selected Answer: E
By default, jobs run as the identity of the job owner. This means that the job assumes the permissions of the job owner. You can change the identity that the job is running as to a service principal. Then, the job assumes the permissions of that service principal instead of the owner. https://docs.databricks.com/en/jobs/create-run-jobs.html#run-a-job-as-a-service-principal
upvoted 2 times
...
spudteo
12 months ago
Selected Answer: E
When you create a job your role is IS OWNER and RUN AS. So when you trigger a job, it will run as the RUN AS entity. And it should be user A if someone dosen't have changed it
upvoted 1 times
...
spaceexplorer
1 year ago
Selected Answer: C
C is correct
upvoted 3 times
...
rok21
1 year, 1 month ago
Selected Answer: C
C is correct
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago