0
0
Tableaubi_tool~10 mins

Publishing to Tableau Server - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to publish a workbook to Tableau Server using Tableau's REST API.

Tableau
server = TableauServerConnection(server='https://mytableauserver.com', username='user', password='pass')
server.[1]()
Drag options to blanks, or click blank then click option'
Adisconnect
Bconnect
Cpublish
Dlogout
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to publish before connecting.
Calling disconnect instead of connect.
2fill in blank
medium

Complete the code to publish a workbook file named 'Sales.twbx' to a specific project on Tableau Server.

Tableau
server.publish_workbook(workbook_file='Sales.twbx', project_id=[1], mode='overwrite')
Drag options to blanks, or click blank then click option'
A'all_projects'
B'default'
C'67890'
D'12345'
Attempts:
3 left
💡 Hint
Common Mistakes
Using project names instead of IDs.
Using invalid or placeholder strings.
3fill in blank
hard

Fix the error in the code to properly publish a workbook with overwrite mode.

Tableau
server.publish_workbook(workbook_file='Dashboard.twbx', project_id='54321', mode=[1])
Drag options to blanks, or click blank then click option'
A'overwrite'
B'append'
C'replace'
D'Overwrite'
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase 'Overwrite' causes errors.
Using unsupported modes like 'replace'.
4fill in blank
hard

Fill both blanks to set permissions for a published workbook to allow viewing and editing.

Tableau
permissions = {
  'view': [1],
  'edit': [2]
}
Drag options to blanks, or click blank then click option'
A'Allow'
B'Deny'
C'Read'
D'Write'
Attempts:
3 left
💡 Hint
Common Mistakes
Setting permissions to 'Deny' blocks access.
Confusing 'Read' with 'Allow' for editing.
5fill in blank
hard

Fill all three blanks to disconnect from Tableau Server and confirm the session is closed.

Tableau
server.[1]()
if not server.[2]:
    print('Session [3] closed successfully')
Drag options to blanks, or click blank then click option'
Adisconnect
Bis_connected
Chas_been
Dis_active
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong method names like 'logout'.
Checking wrong properties for connection status.