PALANTIR DATA LATEST
ENGINEERING
CERTIFICATION
EXAM
1. What actions are performed when the ModelOutput.publish()
method is called in Foundry's Code Repositories? Select two:
It serializes the model using the ModelAdapter.save() method.
It initializes the model adapter with the fresh model.
It runs the model inference.
It creates a new model version.
It serializes the model using the ModelAdapter.save() method.
It creates a new model version.
6. Which of the following statements correctly describes the
behavior of the FileSystem.open() method in Foundry Transforms?
it allows random access to any part of that file
it automatically infers the file schema upon opening
it returns a writable stream by default
it provides a read-only stream without support for seek or tell
methods
it provides a read-only stream without support for seek or tell methods
8. Which of the following are recommended practices for chaining
expressions in PySpark to enhance code readability? Select two.
END OF
PAGE
1
, PALANTIR DATA LATEST
ENGINEERING
CERTIFICATION
EXAM
isolate each logical group of transformations into separate code
blocks.
chain as many expressions as possible for conciseness.
use backslashes (\) for line breaks in chains.
limit chains to a maximum of 5 statements.
extract complex logic into separate functions.
nest multiple chains within a single expression block.
limit chains to a maximum of 5 statements.
extract complex logic into separate functions.
12. You need to inject a TransformContext into your Transform's
compute function to access the current Spark session. How should
you define the parameters of your compute function?
def compute(context, input, output):
def compute(input, output):
def compute(input, output, ctx):
def compute(ctx, input, output):
def compute(ctx, input, output):
END OF
PAGE
2
, PALANTIR DATA LATEST
ENGINEERING
CERTIFICATION
EXAM
14. You have a dataset in the Foundry filesystem that includes JPEG
and PDF files, and you want to upload only the PDF files to a media
set. Which parameter can you use in the put_dataset_files() method
to achieve this?
upload_specific_types=['pdf']
only_upload_matching_files=True
filter_schema=True
ignore_items_not_matching_schema=True
ignore_items_not_matching_schema=True
16. What is the first step to set up media sets in your Python
transform in Foundry?
Initialize media sets using the @ initialize_media_set decorator
add a dependency on 'transforms-media' in your code repository
create media sets directly in the Python code
use the @ media_set_input decorator to specify media sets
add a dependency on 'transforms-media' in your code repository
22. Which of the following features can you utilize within Foundry's
debugger panel while debugging a Python transform? Select three.
END OF
PAGE
3
, PALANTIR DATA LATEST
ENGINEERING
CERTIFICATION
EXAM
Running PySpark commands in the console
Previewing intermediate dataframes at breakpoints
Automatically fixing variable values
Changing the programming language of the transform on the fly
Editing the source code directly from the debugger
Navigating frames to examine variables
Running PySpark commands in the console
Previewing intermediate dataframes at breakpoints
Navigating frames to examine variables
26. Which type of pipeline in Foundry typically has the lowest
compute cost?
all have similar compute costs
streaming
batch
incremental
incremental
28. In Foundry, which schema field type requires specifying both
precision and scale parameters?
END OF
PAGE
4
ENGINEERING
CERTIFICATION
EXAM
1. What actions are performed when the ModelOutput.publish()
method is called in Foundry's Code Repositories? Select two:
It serializes the model using the ModelAdapter.save() method.
It initializes the model adapter with the fresh model.
It runs the model inference.
It creates a new model version.
It serializes the model using the ModelAdapter.save() method.
It creates a new model version.
6. Which of the following statements correctly describes the
behavior of the FileSystem.open() method in Foundry Transforms?
it allows random access to any part of that file
it automatically infers the file schema upon opening
it returns a writable stream by default
it provides a read-only stream without support for seek or tell
methods
it provides a read-only stream without support for seek or tell methods
8. Which of the following are recommended practices for chaining
expressions in PySpark to enhance code readability? Select two.
END OF
PAGE
1
, PALANTIR DATA LATEST
ENGINEERING
CERTIFICATION
EXAM
isolate each logical group of transformations into separate code
blocks.
chain as many expressions as possible for conciseness.
use backslashes (\) for line breaks in chains.
limit chains to a maximum of 5 statements.
extract complex logic into separate functions.
nest multiple chains within a single expression block.
limit chains to a maximum of 5 statements.
extract complex logic into separate functions.
12. You need to inject a TransformContext into your Transform's
compute function to access the current Spark session. How should
you define the parameters of your compute function?
def compute(context, input, output):
def compute(input, output):
def compute(input, output, ctx):
def compute(ctx, input, output):
def compute(ctx, input, output):
END OF
PAGE
2
, PALANTIR DATA LATEST
ENGINEERING
CERTIFICATION
EXAM
14. You have a dataset in the Foundry filesystem that includes JPEG
and PDF files, and you want to upload only the PDF files to a media
set. Which parameter can you use in the put_dataset_files() method
to achieve this?
upload_specific_types=['pdf']
only_upload_matching_files=True
filter_schema=True
ignore_items_not_matching_schema=True
ignore_items_not_matching_schema=True
16. What is the first step to set up media sets in your Python
transform in Foundry?
Initialize media sets using the @ initialize_media_set decorator
add a dependency on 'transforms-media' in your code repository
create media sets directly in the Python code
use the @ media_set_input decorator to specify media sets
add a dependency on 'transforms-media' in your code repository
22. Which of the following features can you utilize within Foundry's
debugger panel while debugging a Python transform? Select three.
END OF
PAGE
3
, PALANTIR DATA LATEST
ENGINEERING
CERTIFICATION
EXAM
Running PySpark commands in the console
Previewing intermediate dataframes at breakpoints
Automatically fixing variable values
Changing the programming language of the transform on the fly
Editing the source code directly from the debugger
Navigating frames to examine variables
Running PySpark commands in the console
Previewing intermediate dataframes at breakpoints
Navigating frames to examine variables
26. Which type of pipeline in Foundry typically has the lowest
compute cost?
all have similar compute costs
streaming
batch
incremental
incremental
28. In Foundry, which schema field type requires specifying both
precision and scale parameters?
END OF
PAGE
4