Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 174 discussion

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

What is a method of installing a Python package scoped at the notebook level to all nodes in the currently active cluster?

  • A. Run source env/bin/activate in a notebook setup script
  • B. Install libraries from PyPI using the cluster UI
  • C. Use %pip install in a notebook cell
  • D. Use %sh pip install in a notebook cell
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
m79590530
1 month ago
Selected Answer: C
C is correct as '%sh pip install ...' runs only on the driver node and the Cluster UI PyPi or other library installs are not scoped to a specific notebook only but to all spark sessions in all notebooks on all cluster nodes.
upvoted 1 times
...
imatheushenrique
5 months, 3 weeks ago
Is necessary just run %pip install some_library inside a notebook cell C. OBS: For the last update of a library can be executed %pip install some_library -U
upvoted 1 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 ...