












































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Prepares candidates on ArcGIS Python workflows, automation, spatial data management, mapping, analysis, scripting, notebooks, and GIS service administration.
Typology: Exams
1 / 52
This page cannot be seen from the preview
Don't miss anything!













































Question 1. Which class is used to establish a connection to an ArcGIS Enterprise portal in the ArcGIS API for Python? A) GIS B) Portal C) Connection D) Server Answer: A Explanation: The GIS class authenticates and connects to ArcGIS Online or ArcGIS Enterprise portals, providing access to all GIS resources. Question 2. What type of credential is required for a token-based authentication when using the GIS class? A) Username and password B) API key C) OAuth client ID and secret D) Existing access token string Answer: D Explanation: When you already have a valid access token, you can pass it directly to the GIS constructor to authenticate without providing username/password. Question 3. Which method returns a list of all feature layers in a hosted feature service? A) list_layers() B) layers property of the FeatureLayerCollection object C) search() with type=Feature Layer D) get_layers() Answer: B Explanation: The layers property of a FeatureLayerCollection returns a list of FeatureLayer objects representing each layer in the service.
Question 4. In the ArcGIS API for Python, which function is used to perform a spatial join between two feature layers? A) spatial_join() B) join_layers() C) overlay() D) join() Answer: A Explanation: The spatial_join() function in the arcgis.features module joins attributes based on spatial relationships between two layers. Question 5. What does the fromitem() method of the FeatureLayerCollection class do? A) Creates a new feature layer from a CSV file B) Imports a feature layer from a local shapefile C) Retrieves a feature layer collection from an existing portal item D) Generates a feature layer from a raster dataset Answer: C Explanation: FeatureLayerCollection.fromitem(item) constructs a FeatureLayerCollection object using an existing Item that represents a hosted feature service. Question 6. Which of the following is the default geometry type for a new FeatureLayer created via the add_layer() method? A) Point B) Polyline C) Polygon D) Multipatch Answer: C
Answer: B Explanation: edit_features() accepts adds, updates, and deletes parameters, allowing batch editing of features. Question 10. Which module contains classes for working with raster data in the ArcGIS API for Python? A) arcgis.raster B) arcgis.geometry C) arcgis.features D) arcgis.mapping Answer: A Explanation: The arcgis.raster module provides raster-specific classes such as Raster, ImageryLayer, and functions for raster analysis. Question 11. What does the overlay() function do in the context of raster analysis? A) Merges two vector layers B) Performs a pixel-wise operation between two rasters C) Creates a new feature layer from raster footprints D) Generates a hillshade raster Answer: B Explanation: overlay() applies a user-defined function to corresponding pixels of two rasters, enabling calculations like NDVI. Question 12. Which method is used to publish a Python notebook as a web tool in ArcGIS Enterprise? A) publish_notebook() B) create_tool() C) publish() on the Notebook object
D) share_notebook() Answer: C Explanation: The publish() method of a Notebook object converts the notebook into a hosted script tool that can be executed via the portal. Question 13. In the ArcGIS API for Python, what does the Item class represent? A) A GIS server instance B) A single feature in a layer C) Any content stored in a portal (e.g., maps, layers, notebooks) D) A user account Answer: C Explanation: Item objects encapsulate portal items, providing metadata and methods for managing content. Question 14. Which method retrieves the thumbnail image for a portal Item? A) thumbnail() B) get_thumbnail() C) download_thumbnail() D) thumbnail property Answer: D Explanation: The thumbnail property returns the binary image data for the item’s thumbnail. Question 15. What is the default return type of the search() method on a GIS object? A) List of FeatureLayer objects B) Pandas DataFrame C) ItemSearchResult iterator
C) max_features D) max_allowable_offset Answer: A Explanation: max_record_count sets the upper limit of features that can be fetched in a single query, matching the service setting. Question 19. What does the apply_edits() method on a FeatureLayer return? A) A boolean indicating success B) A list of EditResult objects for each operation C) A new FeatureLayer with edited features D) The total number of edited features Answer: B Explanation: apply_edits() provides a list of EditResult objects, each containing status and object IDs for adds, updates, and deletes. Question 20. Which function is used to convert a Pandas DataFrame into a feature layer in a hosted feature service? A) df_to_layer() B) from_dataframe() C) DataFrame.to_features() D) spatial.to_feature_layer() Answer: B Explanation: FeatureLayerCollection.from_dataframe(df, ...) creates a new feature layer from a DataFrame. Question 21. In the context of the ArcGIS API for Python, what is a “WebMap” object? A) A raster dataset stored on a server B) A Python dictionary describing map layers, extents, and basemap
C) An interactive Jupyter widget for visualizing maps D) A portal item type that cannot be edited programmatically Answer: B Explanation: WebMap objects encapsulate the JSON definition of a web map, including layers, basemap, and view settings. Question 22. Which method adds a layer to an existing WebMap object? A) add_layer() B) append_layer() C) add_layer_to_map() D) add_layer_to_webmap() Answer: A Explanation: WebMap.add_layer(layer, options) inserts a new layer into the map’s operational layers. Question 23. What is the purpose of the arcgis.widgets module? A) To create custom HTML widgets for dashboards B) To provide Jupyter notebook widgets for maps, sliders, and data tables C) To generate PDF reports from GIS data D) To manage portal user roles Answer: B Explanation: arcgis.widgets supplies interactive Jupyter widgets like MapView, FeatureTable, and Draw for visual analytics. Question 24. Which widget displays a map that can be panned, zoomed, and have layers toggled directly in a notebook? A) MapWidget B) MapView
C) Tools for publishing web services D) User authentication utilities Answer: B Explanation: The geometry module defines Point, Polyline, Polygon, and related spatial operations. Question 28. Which function would you use to calculate the area of a polygon feature in its native units? A) calculate_area() B) area property of the Polygon object C) measure_area() D) spatial_analysis.area() Answer: B Explanation: The area attribute of a Polygon returns its area using the geometry’s spatial reference units. Question 29. In the ArcGIS API for Python, how can you convert a geometry from one spatial reference to another? A) project() method on the geometry object B) transform() function in arcgis.geometry C) reproject() method on the GIS object D) convert_spatial_ref() utility Answer: A Explanation: Geometry objects have a project(spatial_reference) method that returns a new geometry in the requested coordinate system. Question 30. Which of the following is NOT a valid output format for the export_image() method of a MapImageLayer? A) PNG
Answer: D Explanation: export_image() supports raster image formats like PNG, JPEG, and PDF, but not TIFF directly. Question 31. What is the purpose of the arcgis.mapping module? A) To manage feature services only B) To create, edit, and export web maps, web scenes, and map images C) To handle user authentication D) To perform network analysis Answer: B Explanation: arcgis.mapping provides classes such as WebMap, WebScene, and MapImageLayer for map creation and manipulation. Question 32. Which method creates a new web map item in a portal from an existing WebMap object? A) save() B) publish() C) create() D) add_item() Answer: A Explanation: WebMap.save() writes the web map definition to a new portal item, returning the created Item. Question 33. When using the arcgis.geoprocessing module, which function runs a geoprocessing tool that exists on an ArcGIS Server? A) run_tool()
A) Whether to return geometry or only attributes B) Whether to apply a spatial filter based on proximity to a geometry C) The maximum distance for attribute joins D) The caching behavior of query results Answer: B Explanation: Setting use_proximity=True limits results to features within a specified distance from a geometry. Question 37. Which method on a FeatureLayer returns the service’s metadata as a Python dictionary? A) metadata() B) properties C) describe() D) info() Answer: B Explanation: The properties attribute holds the service metadata, including fields, geometry type, and capabilities. Question 38. In the ArcGIS API for Python, what does the arcgis.features.enrich module provide? A) Raster classification tools B) Demographic and business data enrichment for feature layers C) Network routing capabilities D) 3D scene creation utilities Answer: B Explanation: The enrich module enables adding demographic, consumer, and business attributes to existing features via the Enrich service.
Question 39. Which function would you use to generate a heat map layer from a point feature layer? A) create_heatmap() in arcgis.mapping B) heatmap_renderer() in arcgis.symbology C) generate_heatmap() in arcgis.analysis D) heatmap() in arcgis.features Answer: B Explanation: heatmap_renderer() creates a renderer that can be applied to a point layer to visualize density as a heat map. Question 40. What is the default outputSpatialReference when exporting a map image using export_image() without specifying it? A) The map’s current spatial reference B) Web Mercator (EPSG:3857) C) WGS84 (EPSG:4326) D) No spatial reference is set (image is screen-based) Answer: A Explanation: If omitted, the export inherits the map’s current spatial reference. Question 41. Which class is used to work with network analysis services such as route, closest facility, or service area? A) NetworkLayer B) NetworkAnalysis C) RouteLayer D) arcgis.network module provides RouteLayer, ClosestFacilityLayer, etc. Answer: D Explanation: The arcgis.network module contains specific layer classes for each network analysis service.
Question 45. What is the effect of setting preserve_extent=True when creating a MapView widget? A) The widget will keep the current map extent when new layers are added B) The widget disables zooming C) The widget automatically resets to the original extent on each refresh D) No effect; the parameter does not exist Answer: A Explanation: preserve_extent=True ensures that the view’s extent remains unchanged when layers are added or removed. Question 46. Which function in arcgis.features converts a GeoJSON string into a FeatureSet? A) geojson_to_featureset() B) FeatureSet.from_geojson() C) geojson_to_feature_collection() D) json_to_featureset() Answer: B Explanation: FeatureSet.from_geojson(geojson_str) parses GeoJSON into a FeatureSet object. Question 47. What does the arcgis.raster.functions submodule provide? A) Raster band extraction only B) A collection of pre-built raster processing functions like hillshade, focal_statistics, and reclassify C) Tools for converting rasters to vector features D) Functions for managing raster metadata only Answer: B
Explanation: The functions submodule includes ready-to-use raster analysis functions that can be chained together. Question 48. Which of the following statements about the GIS.content manager is true? A) It only lists items owned by the authenticated user B) It provides methods for searching, uploading, and managing all portal content C) It cannot delete items D) It is deprecated in favor of GIS.items Answer: B Explanation: GIS.content offers search(), add(), upload(), delete(), and other methods for portal content management. Question 49. When using GIS.content.search() with the query "type:'Feature Layer'", what does the query return? A) Only hosted feature services B) Any item whose type contains the exact phrase “Feature Layer” (including hosted layers and items) C) Only feature layers within web maps D) No results; the correct syntax is "type:Feature Layer" Answer: B Explanation: The query matches items whose type field includes “Feature Layer”, covering both hosted feature services and layers within other items. Question 50. Which method on a FeatureLayer retrieves the count of features that satisfy a given where clause without returning the actual features? A) query(where='...', return_count_only=True) B) count(where='...') C) query(where='...', out_fields='OBJECTID', result_record_count=0)
C) shape_field D) geometry_type Answer: D Explanation: The geometry_type argument specifies whether the features are points, lines, or polygons. Question 54. What does the arcgis.features.analysis module specialize in? A) Raster processing B) Vector spatial analysis functions such as buffer, intersect, and union C) Network routing only D) Data visualization Answer: B Explanation: The analysis module provides high-level functions like buffer, intersect, union, and clip for vector data. Question 55. Which function would you use to create a 5-kilometer buffer around a set of point features stored in a FeatureSet? A) buffer_features(feature_set, distances=[5000]) B) buffer(feature_set, distances=[5000]) C) create_buffer(feature_set, 5000) D) feature_set.buffer(5000) Answer: B Explanation: analysis.buffer(feature_set, distances=[5000]) returns a new FeatureSet with buffered geometries. Question 56. What is the maximum file size allowed for uploading a single item through the GIS.content.add() method by default? A) 2 GB B) 500 MB
Answer: C Explanation: The default portal configuration permits uploads up to 1 GB per item unless the administrator changes the limit. Question 57. Which property of a FeatureLayer indicates whether the layer supports attachment handling? A) supportsAttachments in properties B) hasAttachments attribute C) attachmentInfo property D) attachments_enabled flag Answer: A Explanation: The properties dictionary includes a boolean supportsAttachments indicating attachment capability. Question 58. When using the FeatureLayer.edit_features() method, which parameter must be a list of dictionaries describing updates? A) adds B) updates C) deletes D) features Answer: B Explanation: updates expects a list where each dictionary contains an attributes key with the OBJECTID and fields to modify. Question 59. Which method on a GIS object retrieves the current user's profile information? A) users.me.profile