















































































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
This specialty review guide focuses on Python-based GIS automation and analysis using the ArcGIS API for Python. Topics include data management, spatial analysis, scripting workflows, automation of GIS tasks, and integration with enterprise systems. Practical examples, code-focused explanations, and practice questions help candidates prepare for both the exam and real-world GIS automation projects.
Typology: Exams
1 / 87
This page cannot be seen from the preview
Don't miss anything!
















































































Question 1. Which command installs the ArcGIS API for Python using conda? A) pip install arcgis B) conda install - c esri arcgis C) conda install arcgis-api D) pip install esri-arcgis Answer: B Explanation: The official Conda channel esri provides the arcgis package; the command conda install - c esri arcgis installs it. Question 2. In a JupyterLab environment, which magic command loads the ArcGIS API for Python automatically? A) %load_ext arcgis B) %arcgis init C) %pip install arcgis D) %load_ext esri Answer: A Explanation: %load_ext arcgis registers the ArcGIS API for Python extensions, enabling shortcuts like gis = GIS(). Question 3. Which authentication method requires a username and password that are validated against the organization’s LDAP/Active Directory? A) Built‑in B) IWA C) SAML D) PKI Answer: B
Explanation: Integrated Windows Authentication (IWA) uses the current Windows credentials to authenticate against LDAP/AD. Question 4. When connecting to ArcGIS Online versus ArcGIS Enterprise, which parameter differs in the GIS() constructor? A) profile B) url C) api_key D) verify_cert Answer: B Explanation: The url argument points to the portal’s base URL; for ArcGIS Online it defaults to https://www.arcgis.com, while Enterprise requires the organization’s portal URL. Question 5. How can you maintain multiple GIS connections in a single script without overwriting the previous GIS object? A) Use a list of GIS objects B) Re‑assign the same variable C) Use global variables only D) It is not possible Answer: A Explanation: Storing each GIS instance in a list or dictionary preserves all connections simultaneously. Question 6. Which core module of the ArcGIS API for Python provides tools for working with raster data? A) arcgis.mapping B) arcgis.features
B) user.roleId C) user.licenseType D) user.type Answer: B Explanation: roleId stores the GUID of the role; updating it changes the user’s role. Question 10. Which API call clones an item from a development portal to a production portal? A) item.clone() B) item.copy() C) item.publish() D) item.share() Answer: A Explanation: item.clone() creates a copy of the item in another portal, preserving metadata. Question 11. How can you retrieve items that contain the keyword “traffic” in their title and are of type “Feature Layer”? A) gis.content.search('title:traffic AND type:Feature Layer') B) gis.content.search('traffic', item_type='Feature Layer') C) gis.content.search('traffic type:Feature Layer') D) gis.content.search('title:traffic') Answer: B Explanation: The search method accepts a free‑text query and an item_type argument to filter results. Question 12. Which property of an item holds its thumbnail image URL?
A) item.thumbnail B) item.thumbnail_url C) item.thumbnailPath D) item.thumbnailInfo Answer: B Explanation: thumbnail_url returns the absolute URL of the item’s thumbnail. Question 13. To generate a storage usage report for all users, which admin endpoint is appropriate? A) gis.admin.reports.storage() B) gis.admin.usage.get() C) gis.admin.users.storage_report() D) gis.admin.reports.get_storage() Answer: A Explanation: gis.admin.reports.storage() returns a DataFrame with storage consumption per user. Question 14. Which class represents a Spatially Enabled DataFrame? A) arcgis.SpatialDataFrame B) arcgis.features.SpatialDataFrame C) arcgis.geometry.SpatialDataFrame D) arcgis.features.GeoDataFrame Answer: B Explanation: The SpatialDataFrame class resides in arcgis.features and extends Pandas DataFrames with spatial capabilities.
Explanation: to_feature_layer() creates a new hosted feature layer from the SeDF contents. Question 18. Which function adds a new column to a SeDF containing the area of each polygon in square meters? A) df['area'] = df.spatial.area B) df['area'] = df.geometry.area C) df['area'] = df.spatial.calculate_area() D) df['area'] = df.spatial.area(unit='meters') Answer: D Explanation: The area method accepts a unit argument; df.spatial.area(unit='meters') returns area values in meters. Question 19. In a SeDF, which method performs a spatial join between two dataframes left and right? A) left.spatial.join(right) B) left.spatial.overlay(right) C) left.spatial.sjoin(right) D) left.spatial.intersect(right) Answer: C Explanation: sjoin is the spatial join method analogous to Pandas’ merge. Question 20. Which renderer type creates a heatmap from point data in a web map? A) ClassedColorRenderer B) UniqueValueRenderer C) HeatmapRenderer D) SimpleRenderer
Answer: C Explanation: HeatmapRenderer visualizes point density as a heatmap. Question 21. Which function from arcgis.features.use_proximity calculates the nearest feature for each input feature? A) nearest_neighbor() B) calculate_nearest() C) find_nearest() D) generate_nearest() Answer: A Explanation: nearest_neighbor() returns the nearest feature and distance for each input. Question 22. To summarize attribute data by a polygon boundary, which module provides the appropriate tool? A) arcgis.features.summarize_data B) arcgis.analysis.summarize C) arcgis.raster.summarize D) arcgis.geometry.summarize Answer: A Explanation: The summarize_data module contains summarize_within for aggregating attributes within polygons. Question 23. Which GeoAnalytics tool is optimized for processing billions of points in a distributed environment? A) Aggregate Points B) Calculate Density
A) geocode() B) batch_geocode() C) geocode_batch() D) geocode_addresses() Answer: B Explanation: batch_geocode() accepts a list of addresses and returns a DataFrame of results. Question 27. To compute the fastest route between two points using the Network Analyst, which function is used? A) solve_route() B) find_route() C) calculate_route() D) route_analysis() Answer: A Explanation: solve_route() is part of arcgis.network and returns a route feature set. Question 28. Which parameter defines the travel mode (e.g., driving, walking) when solving a route? A) mode B) travel_mode C) cost_attribute D) impedance Answer: B Explanation: travel_mode specifies the network dataset’s travel mode settings. Question 29. Which method adds a new layer to an existing web map?
A) webmap.add_layer() B) webmap.layers.append() C) webmap.update() D) webmap.insert_layer() Answer: A Explanation: add_layer() inserts a new layer definition into the web map’s JSON. Question 30. To change the pop‑up title of a layer in a web map, which property must be edited? A) layer.popupInfo.title B) layer.popup.title C) layer.popupInfo.title D) layer.popupInfo.header Answer: C Explanation: The popupInfo dictionary contains a title key that defines the pop‑up header. Question 31. Which widget provides an interactive map view inside a Jupyter notebook? A) MapWidget B) MapView C) MapCanvas D) MapDisplay Answer: B Explanation: arcgis.widgets.MapView renders an interactive map inline in notebooks. Question 32. When embedding a 3D scene in a notebook, which class should be instantiated?
Question 35. Which Python library can be combined with the ArcGIS API to create static maps? A) Plotly B) Matplotlib C) Bokeh D) Seaborn Answer: B Explanation: Matplotlib works with the API’s export_image to render static map images. Question 36. Which function from ArcPy can be called within a Python script that also uses the ArcGIS API? A) arcpy.mapping.ExportMap() B) arcpy.geocoding.geocodeAddress() C) arcpy.analysis.Buffer() D) All of the above Answer: D Explanation: ArcPy functions are fully accessible alongside the ArcGIS API for Python in the same environment. Question 37. Which type of webhook payload is sent when a new item is uploaded to a portal? A) item.created B) item.uploaded C) item.added D) item.new Answer: A
Explanation: The webhook event item.created notifies subscribers of new item creation. Question 38. To process a webhook payload in a Flask app, which method extracts the JSON body? A) request.get_json() B) request.json_body() C) request.data D) request.payload Answer: A Explanation: request.get_json() parses the incoming JSON payload. Question 39. Which parameter in GIS() enables API‑key based authentication? A) api_key B) key C) token D) auth Answer: A Explanation: Supplying api_key='YOUR_KEY' authenticates without a user login. Question 40. When using a connection profile, which file stores the encrypted credentials? A) profile.json B) profile.cfg C) profile.tok D) profile.pickle Answer: C
Explanation: Using owner:me AND tags:2023 filters items owned by the authenticated user with the specified tag. Question 44. Which function retrieves the credit consumption for a specific month? A) gis.admin.reports.credits(month='2023-04') B) gis.admin.usage.credits('2023-04') C) gis.admin.reports.get_credits('2023-04') D) gis.admin.reports.credits('2023-04') Answer: D Explanation: reports.credits() accepts a YYYY-MM string and returns a DataFrame of credit usage. Question 45. In a Spatially Enabled DataFrame, which method converts geometry objects to Well‑Known Text? A) df.spatial.to_wkt() B) df.spatial.as_wkt() C) df.spatial.wkt() D) df.spatial.to_text() Answer: B Explanation: as_wkt() returns a Series of WKT strings for each geometry. Question 46. Which operation creates a union of two polygon SeDFs? A) df1.spatial.union(df2) B) df1.spatial.overlay(df2, operation='union') C) df1.spatial.merge(df2, how='union') D) df1.spatial.combine(df2)
Answer: B Explanation: overlay with operation='union' produces a geometric union of the two datasets. Question 47. To plot a SeDF on a map with color ramp based on a numeric field “population”, which function is used? A) df.spatial.plot(renderer='classedColor', field='population') B) df.spatial.plot(symbology='population') C) df.spatial.render('population') D) df.spatial.map(field='population') Answer: A Explanation: The plot method’s renderer='classedColor' creates a classed color map using the specified field. Question 48. Which tool calculates a raster’s NDVI using two bands? A) ndvi() B) normalized_difference() C) band_math() D) NDVI() Answer: B Explanation: normalized_difference(band1, band2) computes NDVI as (NIR‑Red)/(NIR+Red). Question 49. Which parameter in deep_learning_model.predict() defines the output raster’s cell size? A) cellsize B) pixel_size C) output_resolution
C) basemap.portalItem D) basemap.layers Answer: A Explanation: baseMapLayers holds an array of layer definitions for the basemap. Question 53. Which method updates the symbology of an existing layer in a web map? A) layer.update_renderer() B) layer.symbology = {...} C) layer.update_symbology() D) layer.renderer = {...} Answer: D Explanation: Assigning a renderer dictionary to layer.renderer modifies the layer’s symbology. Question 54. In a notebook, which line displays a MapView widget named map_view? A) map_view.show() B) display(map_view) C) map_view.render() D) map_view Answer: D Explanation: Simply placing the variable name as the last line of a cell renders the widget. Question 55. Which class creates a dashboard programmatically? A) Dashboard B) WebDashboard C) DashboardItem
D) arcgis.apps.dashboard.Dashboard Answer: D Explanation: The Dashboard class under arcgis.apps.dashboard allows creation and editing of dashboards. Question 56. To schedule a Python script via Windows Task Scheduler that uses the ArcGIS API, which command should be placed in the action? A) python path\to\script.py B) conda run - n arcgis python script.py C) jupyter nbconvert --execute script.ipynb D) All of the above are valid depending on environment Answer: D Explanation: Any of the listed commands can launch the script, provided the environment is correctly referenced. Question 57. Which library is commonly used with the ArcGIS API for machine‑learning model training? A) TensorFlow B) PyTorch C) scikit‑learn D) All of the above Answer: D Explanation: The API can ingest data from SeDFs and feed it to any Python ML library. Question 58. Which function from arcgis.features converts a SeDF to a GeoJSON string? A) df.spatial.to_geojson()