Docsity

PrepIQ MARKLOGIC PROFESSIONAL Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
PrepIQ MARKLOGIC PROFESSIONAL Ultimate Exam
**Question 1.** Which component stores the actual data fragments in
MarkLogic?
A) Application Server
B) Forest
C) Group
D) Cache
Answer: B
Explanation: A forest is the physical storage unit that holds data
fragments (documents, triples, rows) on disk.
**Question 2.** In MarkLogic’s multi-model support, which model is used
for representing RDF triples?
A) JSON
B) XML
C) Triple Store
D) Binary
Answer: C
Explanation: The triple store model stores data as
Subject-Predicate-Object triples, enabling semantic queries.
**Question 3.** Which of the following is NOT a type of application server
in MarkLogic?
A) HTTP Server
B) REST Server
C) XDBC Server
D) SOAP Server
Answer: D
Explanation: MarkLogic provides HTTP, REST, XDBC, ODBC, and WebDAV
servers, but not a dedicated SOAP server.
**Question 4.** When comparing MarkLogic to a traditional RDBMS, which
statement is true?
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50

Partial preview of the text

Download PrepIQ MARKLOGIC PROFESSIONAL Ultimate Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which component stores the actual data fragments in MarkLogic? A) Application Server B) Forest C) Group D) Cache Answer: B Explanation: A forest is the physical storage unit that holds data fragments (documents, triples, rows) on disk. Question 2. In MarkLogic’s multi-model support, which model is used for representing RDF triples? A) JSON B) XML C) Triple Store D) Binary Answer: C Explanation: The triple store model stores data as Subject-Predicate-Object triples, enabling semantic queries. Question 3. Which of the following is NOT a type of application server in MarkLogic? A) HTTP Server B) REST Server C) XDBC Server D) SOAP Server Answer: D Explanation: MarkLogic provides HTTP, REST, XDBC, ODBC, and WebDAV servers, but not a dedicated SOAP server. Question 4. When comparing MarkLogic to a traditional RDBMS, which statement is true?

A) MarkLogic requires fixed schemas for all data. B) MarkLogic stores data only as rows in tables. C) MarkLogic can store JSON, XML, and binary in the same database. D) MarkLogic does not support ACID transactions. Answer: C Explanation: MarkLogic’s document-centric model allows mixed-type data (JSON, XML, binary) within a single database. Question 5. Which command-line utility is used for bulk loading documents into MarkLogic? A) mlcp B) mladmin C) mlload D) mlimport Answer: A Explanation: The MarkLogic Content Pump (mlcp) efficiently moves large volumes of data into and out of MarkLogic. Question 6. What is the purpose of a document URI in MarkLogic? A) To define the document’s MIME type. B) To uniquely identify a document within a database. C) To specify the document’s collection. D) To set the document’s permissions. Answer: B Explanation: A URI serves as a unique identifier for each document, enabling retrieval and management. Question 7. Which index type is used to support range queries on numeric values? A) Word index B) Element range index

Answer: B Explanation: cts:plan() outputs the internal query plan, helping developers understand how a query will be executed. Question 11. In XQuery, which clause follows the “let” clause in a FLWOR expression? A) for B) where C) order by D) return Answer: B Explanation: The typical order is for → let → where → order by → return, though some clauses are optional. Question 12. Which MarkLogic API enables server-side JavaScript execution? A) XQuery API B) REST API C) Server-Side JavaScript (SJS) API D) Java API Answer: C Explanation: SJS allows developers to write JavaScript that runs inside MarkLogic’s server environment. Question 13. Which privilege is required for a user to create a new database? A) xdmp:role-set-default-permissions B) admin:database-create C) security:role-create D) xdmp:document-insert Answer: B

Explanation: The admin:database-create privilege (granted to admin role) allows creation of databases. Question 14. What is the default collation for string range indexes in an English language database? A) http://marklogic.com/collation/codepoint B) http://marklogic.com/collation/en C) http://marklogic.com/collation/unicode D) http://marklogic.com/collation/numeric Answer: B Explanation: The default English collation (http://marklogic.com/collation/en) handles case-insensitive, accent-aware sorting. Question 15. Which of the following is a benefit of using a Template Driven Extraction (TDE) template? A) It automatically creates a new forest for each document. B) It defines a relational view over JSON/XML documents for SQL queries. C) It compresses documents to reduce storage size. D) It enforces schema validation on inserted documents. Answer: B Explanation: TDE templates map document structures to relational rows, enabling SQL and Optic queries over NoSQL data. Question 16. In the Optic API, which operator is used to combine rows from two sources based on a common column? A) where() B) join() C) aggregate() D) orderBy() Answer: B Explanation: The join() operator performs relational joins between two Optic tables on matching columns.

Question 20. Which MarkLogic component is responsible for load balancing HTTP requests across a cluster? A) Forest B) Group C) Load balancer (Application Server) D) Cache Answer: C Explanation: The HTTP Application Server can be configured with a load-balancing policy to distribute requests among hosts. Question 21. What is the effect of setting a forest’s “rebalancing” option to “on”? A) New documents are automatically moved to other forests for even distribution. B) The forest is taken offline for maintenance. C) Indexes are rebuilt nightly. D) Permissions are reset to default. Answer: A Explanation: Enabling rebalancing allows MarkLogic to redistribute data across forests to maintain balanced storage. Question 22. Which of the following is a valid way to specify document permissions during a REST API POST? A) Using the “perm” query parameter. B) Including an “permissions” JSON property in the request body. C) Setting the “X-Document-Permissions” HTTP header. D) All of the above. Answer: D Explanation: The REST API accepts permissions via query parameter, JSON property, or HTTP header. Question 23. Which function returns the collections a document belongs to?

A) xdmp:document-get-collections() B) xdmp:document-load() C) xdmp:collections() D) fn:collection() Answer: A Explanation: xdmp:document-get-collections() returns the collection names attached to a given document URI. Question 24. Which of the following best describes a “named graph” in MarkLogic semantics? A) A collection of JSON documents. B) A set of triples that share a common graph URI. C) An index of numeric values. D) A security role for RDF data. Answer: B Explanation: Named graphs group triples under a common identifier, enabling scoped SPARQL queries. Question 25. Which of the following statements about the Universal Index is FALSE? A) It stores tokenized words for full-text search. B) It indexes element names and attribute names. C) It automatically creates a separate index for each collection. D) It is used by both filtered and unfiltered searches. Answer: C Explanation: The Universal Index does not create per-collection indexes; it is a global index covering the whole database. Question 26. Which of the following is the default maximum size of a forest in MarkLogic (as of version 11)? A) 1 TB B) 2 TB

D) It creates binary blobs for faster retrieval. Answer: A Explanation: Tokenization breaks text into searchable tokens, applying language-specific rules for stemming, stop words, etc. Question 30. Which of the following statements about MarkLogic’s “Cache” is correct? A) It stores permanent copies of documents. B) It holds frequently accessed index data in memory for faster query execution. C) It is only used for storing user sessions. D) It automatically persists to disk every hour. Answer: B Explanation: The cache keeps hot index data in RAM, reducing disk I/O for repeated queries. Question 31. Which of the following is NOT a valid way to create a new database via the Management API? A) POST /manage/v2/databases B) PUT /v1/rest-configs/databases C) POST /v1/admin/databases D) POST /v1/eval with xdmp:database-create() Answer: C Explanation: The Management API does not expose a /v1/admin/databases endpoint; creation is done via POST to /manage/v2/databases or via XQuery. Question 32. What does the “stand” feature in MarkLogic refer to? A) A temporary staging area for documents before they are committed. B) The process of merging multiple updates to a fragment into a single version. C) A type of forest replication.

D) A UI component for monitoring. Answer: B Explanation: Stands are intermediate fragments that hold pending updates; the merge process consolidates them into a final fragment. Question 33. Which of the following is the correct way to enable a geospatial index on an element named “location”? A) Create an element range index of type double. B) Add a geospatial element index with point latitude/longitude. C) Use a word index on the element. D) Set a collection-level permission. Answer: B Explanation: A geospatial element index defines how coordinate data stored in the “location” element is indexed for spatial queries. Question 34. Which of the following statements about “reindexing” is true? A) It occurs automatically whenever a new index is added. B) It must be manually triggered after changing index configuration. C) It deletes all existing documents. D) It only affects binary documents. Answer: B Explanation: After modifying index settings, administrators must trigger a reindex to rebuild indexes based on the new configuration. Question 35. In the Data Hub Framework, which component is responsible for defining the source-to-target mapping logic? A) Hub Central B) Flow C) Entity Model D) Server-Side JavaScript Answer: B

Question 39. Which of the following is a valid way to trigger an alert when a document containing the word “critical” is inserted? A) Create an Alerting rule with a cts:word-query("critical") trigger. B) Set a firewall rule on port 8000. C) Use a cron job to poll the database. D) MarkLogic does not support alerts. Answer: A Explanation: The Alerting API can define a rule that watches for matches (e.g., cts:word-query) and notifies a target endpoint. Question 40. In a MarkLogic cluster, what is a “replica forest”? A) A read-only copy of a primary forest for high availability. B) A backup file stored on the same host. C) A temporary staging area for batch loads. D) An index of document URIs. Answer: A Explanation: Replica forests maintain synchronized copies of primary forests on different hosts, providing HA and failover. Question 41. Which of the following statements about the “mlcp” – mode option is correct? A) mode=local loads data only into the local host. B) mode=distributed enables parallel loading across a cluster. C) mode=bulk disables indexing during load. D) mode=stream uploads data via HTTP only. Answer: B Explanation: mode=distributed tells mlcp to split the workload across multiple hosts for faster ingestion. Question 42. Which of the following privileges allows a user to execute XQuery code on the server?

A) xdmp:eval B) xdmp:invoke C) xdmp:eval-internal D) xdmp:eval (admin) Answer: B Explanation: The xdmp:invoke privilege permits execution of modules stored in the database; xdmp:eval is more restricted. Question 43. Which of the following is true about “element range indexes” on JSON properties? A) They are not supported; only XML elements can have range indexes. B) They require the JSON property to be converted to an XML element via a mapping. C) MarkLogic automatically creates range indexes for all numeric JSON properties. D) They can be defined directly on JSON property paths. Answer: D Explanation: Since MarkLogic 9, element range indexes can be defined on JSON property paths using dot notation. Question 44. Which of the following is the correct way to delete a forest using the Admin UI? A) Select the forest and click “Delete”. B) Right-click the database and choose “Remove Forest”. C) Navigate to Groups → Forests → Delete. D) Forests cannot be deleted once created. Answer: C Explanation: The Admin UI provides a “Delete” option under Groups → Forests for removing a forest. Question 45. In the Optic API, which function is used to convert an Optic plan to a SQL string? A) toSQL()

C) The document is rejected. D) The document is automatically added to a collection named after its URI. Answer: B Explanation: If no collection is specified, the document has no collection membership. Question 49. Which of the following best describes the “merge” process in MarkLogic? A) Combining two separate forests into one. B) Consolidating stands and fragments into a single, optimized document version. C) Merging user roles into a composite role. D) Merging backup files during restore. Answer: B Explanation: The merge process compacts multiple fragment updates (stands) into a single, efficient document fragment. Question 50. Which of the following is a valid way to retrieve the size (in bytes) of a document via XQuery? A) xdmp:document-get-size() B) xdmp:document-size() C) fn:document-size() D) xdmp:node-size() Answer: B Explanation: xdmp:document-size() returns the byte size of a document identified by its URI. Question 51. In the REST API, which HTTP method is used to delete a document? A) POST B) GET C) DELETE

D) PUT

Answer: C Explanation: The DELETE method removes the document identified by its URI. Question 52. Which of the following is true about “named triples” in MarkLogic? A) They are triples stored in a separate database. B) They are triples that belong to a specific named graph. C) They are triples that have a “name” attribute. D) They are triples that cannot be queried with SPARQL. Answer: B Explanation: Named triples are grouped under a graph URI, enabling scoped queries and permissions. Question 53. Which of the following is the correct syntax to create a new role using XQuery? A) xdmp:role-create("my-role", (), ()) B) sec:create-role("my-role", (), ()) C) sec:role-create("my-role", (), ()) D) xdmp:create-role("my-role") Answer: C Explanation: sec:role-create() creates a role with a name, description, and optional parent roles. Question 54. Which of the following best explains “document weighting” in MarkLogic search? A) Assigning a numeric value to a document that influences its relevance ranking. B) Defining the size limit for a document. C) Setting the number of replicas for a document. D) Determining the order of document insertion.

Explanation: The expression retrieves URIs in the collection and deletes each document. Question 58. Which of the following is the default tokenizer for English text in MarkLogic? A) whitespace B) standard C) icu-analyzer D) simple Answer: C Explanation: The ICU analyzer tokenizes English text according to language rules, handling stemming and stop words. Question 59. Which of the following privileges is required to create a new forest? A) admin:forest-create B) xdmp:forest-create C) sec:forest-create D) admin:database-create Answer: A Explanation: The admin:forest-create privilege (granted to the admin role) allows forest creation. Question 60. Which of the following is the correct way to retrieve the list of groups in a cluster via the Management API? A) GET /manage/v2/groups B) GET /v1/groups C) GET /admin/v2/groups D) GET /v1/eval with xdmp:group-list() Answer: A Explanation: The Management API endpoint /manage/v2/groups returns group information.

Question 61. Which of the following best describes “reverse index” in MarkLogic? A) An index that stores words in reverse alphabetical order. B) An index that enables fast prefix and wildcard searches. C) An index that maps document URIs to their permissions. D) An index used only for geospatial queries. Answer: B Explanation: The reverse index stores reversed tokens, allowing efficient leading-wildcard and prefix searches. Question 62. Which of the following is the correct way to start a MarkLogic server from the command line on Linux? A) mlstart B) /etc/init.d/marklogic start C) service marklogic start D) Both B and C are valid. Answer: D Explanation: Both the init script and the service command can be used to start MarkLogic. Question 63. Which of the following is true about “document permissions inheritance” in MarkLogic? A) Child documents automatically inherit permissions from parent directories. B) Permissions are not inherited; each document has its own set. C) Permissions are inherited only when using the REST API. D) Permissions are inherited only for binary documents. Answer: B Explanation: Permissions are assigned per document; there is no automatic inheritance from directories or collections.