Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Oracle 1Z0-909 Dumps 2026 with Free Practice Questions and Answers

13 original practice questions for the MySQL 8.0 Database Developer exam, each with an answer and explanation.

Exam topics: Connectors And APIs, Data-Driven Applications, JSON And Document Store, MySQL Schema Objects And Data and 3 more.

Formats: single answer, multiple answers, order list, drag and drop and dropdown. A new question is added every 15 days.

1Z0-909 Practice Set Details

Vendor
Oracle
Exam Code
1Z0-909
Questions On This Page
13
Exam Topics Covered
7 of 7
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
65
Certification
Oracle Database
13 questions

Oracle 1Z0-909 Exam Questions and Answers by Topic

Connectors and APIs

2 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A Java service connects to MySQL 8.0 from containers that are frequently replaced. The team requires TLS, wants to avoid embedding database passwords in source or container images, and must use a supported Oracle connector. The service currently creates one physical connection for every web request, causing connection spikes during traffic bursts. Which change best meets the security and connection-management requirements with the least application-level connection overhead?

Correct answer: B

Connector/J is Oracle's JDBC driver for Java, and a connection pool avoids creating a physical database connection for every request. Loading credentials from a protected runtime secret avoids baking them into images or source, while TLS protects traffic in transit. MySQL Shell is an interactive administration and development tool, not the Java application's JDBC driver. Connector/ODBC is not the appropriate Java API, and a global connection does not provide sound pooled connection management. Pooling does not encrypt network traffic, so disabling TLS leaves credentials and data exposed in transit.

Question 2

Added

Multiple Answers

A Python batch application loads a large result set from MySQL 8.0 and writes each row to an external archive. Memory use must remain bounded, database credentials cannot be stored in the script, and network traffic must be encrypted. The team wants an Oracle-provided Python connector and can configure the application at deployment time. Which two measures best meet the requirements? (Choose two.)

Correct answer: A, C

MySQL Connector/Python is Oracle's Python connector, and processing rows incrementally avoids retaining the full result set in application memory. Supplying credentials through a protected deployment-time source avoids embedding them in code, while TLS encrypts the connection in transit. Connector/ODBC can be used through ODBC bindings, but hard-coding a password violates the security constraint and does not make it the best fit. Incremental fetching has no effect on network encryption. MySQL Shell is not a Python DB-API driver, and interactive history is not a secure credential-management mechanism.

Data-Driven Applications

2 practice questions on this topicWhat this topic covers

Question 3

Added

Single Answer

A financial reporting service runs under MySQL 8.0 with strict SQL mode enabled. It groups transactions by customer and selects customer_id, transaction_date, and SUM(amount), but the date is not aggregated or included in the GROUP BY. The report is intended to show the most recent transaction date for each customer, and results must be deterministic across server configurations. The team cannot disable strict mode because other applications rely on it, and it wants to avoid a second query per customer. Which change best meets the requirement?

Correct answer: A

Selecting MAX(transaction_date) expresses the report's intended latest date while keeping one grouped result per customer. MySQL accepts the query under ONLY_FULL_GROUP_BY because both non-grouped values are now aggregated. Grouping by transaction_date would produce separate rows for dates rather than one customer summary. ANY_VALUE() suppresses the grouping check but does not guarantee the latest date. Disabling ONLY_FULL_GROUP_BY permits an arbitrary date and weakens the deterministic behavior the report requires.

Question 4

Added

Multiple Answers

A reporting service accepts a customer-supplied region and a date range, then runs the same query repeatedly. Security review prohibits constructing SQL by concatenating input, and the query must use a B-tree index on (region, order_date). The report also needs each region's total sales and must retain regions with no matching orders in the requested date range. Which two changes best satisfy the requirements? (Choose two.)

Correct answer: A, D

A prepared statement keeps customer input in parameter values rather than executable SQL, and the same statement can be executed repeatedly with different bindings. Starting with regions and placing the order-date predicate in the LEFT JOIN condition preserves regions that have no qualifying orders; grouping then produces the requested summary. Escaping concatenated input is less robust than parameter binding and still constructs SQL from data. The INNER JOIN excludes regions without matching orders. Dynamic SQL in a stored procedure does not remove the injection risk, and unrestricted execution privileges violate the security requirement.

MySQL Schema Objects and Data

2 practice questions on this topicWhat this topic covers

Question 5

Added

Order List

A migration must replace a view definition used by several applications. The view must expose only selected columns, and the application account must be able to query it without receiving direct privileges on the underlying tables. The DBA wants to avoid dropping the view first, because that would create an outage. Arrange the steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Verify the view returns the intended columns and rows under the application account.
  2. Use CREATE OR REPLACE VIEW to install the revised definition.
  3. Grant SELECT on the view to the application account.
  4. Create the view with the required selected columns and SQL SECURITY DEFINER.
Correct answer:
  1. Create the view with the required selected columns and SQL SECURITY DEFINER.
  2. Grant SELECT on the view to the application account.
  3. Verify the view returns the intended columns and rows under the application account.
  4. Use CREATE OR REPLACE VIEW to install the revised definition.

The replacement definition should be installed without first dropping the existing view, avoiding an unnecessary interval in which the object is absent. CREATE OR REPLACE VIEW updates the definition; SQL SECURITY DEFINER lets access be checked using the definer's privileges, while the application needs SELECT on the view itself. After installation, grant the application account the required view privilege and verify its effective access and result. Creating and granting before the replacement would target the old definition, and dropping the view first creates the outage the migration is meant to avoid.

Question 6

Added

Single Answer

An application stores customer names that may contain accented characters from many languages. Equality comparisons must be case-insensitive and accent-insensitive, but the application must preserve the original spelling for display. The database uses MySQL 8.0 and must not normalize or rewrite stored text during comparison. Which column definition is the best fit?

Correct answer: B

A VARCHAR using utf8mb4 preserves Unicode customer names, and an appropriate case-insensitive, accent-insensitive collation makes equality comparisons follow the required semantics without changing the stored spelling. BINARY comparisons are byte-oriented and do not provide the requested equivalence. ASCII cannot represent the full range of accented names. A binary collation remains case- and accent-sensitive, and converting values during comparison does not implement accent-insensitivity and can prevent efficient use of an ordinary index.

Transactions

2 practice questions on this topicWhat this topic covers

Question 7

Added

Single Answer

A billing transaction reads an account balance, calculates a debit, and updates the row. Concurrent transactions can modify the same account, and the application must prevent two debits from both relying on the same old balance. The application uses InnoDB and can keep the transaction short, but it does not want to lock unrelated accounts or serialize every read in the database. Which approach best protects the read-modify-write operation?

Correct answer: C

SELECT ... FOR UPDATE is a locking read in InnoDB: it locks the selected account row until the transaction ends, preventing another transaction from concurrently making a conflicting read-modify-write decision on that row. Restricting the lookup to the account key avoids deliberately locking unrelated accounts. An ordinary SELECT at READ COMMITTED or REPEATABLE READ is a consistent read and does not itself reserve the row for the subsequent calculation. Disabling autocommit groups statements into a transaction but does not turn an ordinary read into a locking read.

Question 8

Added

Order List

A service must transfer funds between two InnoDB accounts without exposing a partially completed transfer. Concurrent transfers can request the same accounts in opposite directions, so the service must also reduce deadlock risk. Arrange the application operations in the order that best satisfies these requirements.

Drag the steps into the correct order, or use the arrows.

  1. Validate balances and update both account rows.
  2. Commit the transaction.
  3. Lock both account rows in ascending account_id order.
  4. Begin the transaction.
Correct answer:
  1. Begin the transaction.
  2. Lock both account rows in ascending account_id order.
  3. Validate balances and update both account rows.
  4. Commit the transaction.

Beginning a transaction establishes the atomic unit for the transfer. Locking both rows in a consistent account_id order reduces the chance that concurrent transfers acquire the same locks in opposite orders, a common cause of deadlocks. The service can then validate balances and apply both updates while holding the locks. Committing only after both updates makes them durable together; if an error occurs before commit, the transaction can be rolled back rather than exposing a partial transfer. Updating before locking would leave the validation and changes vulnerable to concurrent interference.

Query Optimization

1 practice question on this topicWhat this topic covers

Question 9

Added

Drag And Drop

A team is reviewing three MySQL 8.0 query plans. Each proposed change must address the specific plan symptom without changing the result semantics. Match each symptom to the most appropriate investigation or optimization action.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

A join reads many rows because the join key has no usable index.
A predicate applies DATE() to an indexed timestamp column.
EXPLAIN shows a full scan for equality on an unindexed tenant_id column.
Rewrite the predicate as a timestamp range.
Add an index with tenant_id as its leading column.
Index the join key on the appropriate table.
Correct answer:
  • EXPLAIN shows a full scan for equality on an unindexed tenant_id column. → Add an index with tenant_id as its leading column.
  • A predicate applies DATE() to an indexed timestamp column. → Rewrite the predicate as a timestamp range.
  • A join reads many rows because the join key has no usable index. → Index the join key on the appropriate table.

An index beginning with tenant_id can support equality lookups on that column. Applying DATE() to the indexed timestamp makes the predicate non-sargable in the usual range-access pattern; comparing the original column to timestamp boundaries allows the optimizer to consider a range scan while preserving the intended date interval. A join key without a usable index can force excessive row reads, so indexing the relevant key can improve join access. Rewriting the timestamp comparison does not replace the need to index an unindexed tenant or join column.

MySQL Stored Programs

2 practice questions on this topicWhat this topic covers

Question 10

Added

Dropdown

A maintenance procedure must attempt to insert a work item and continue cleanly when that insert violates a unique key. Other SQL errors must not be silently treated as duplicate work. Complete the handler declaration so it catches only the duplicate-key condition and exits the procedure block normally.

Choose the correct value for each blank.

DECLARE FOR ;
Correct answer:

DECLARE CONTINUE HANDLER SQLEXCEPTION FOR SQLSTATE '23000';

A CONTINUE handler resumes execution after the statement that raised the handled condition, which lets the procedure continue after a duplicate-key insert attempt. SQLSTATE '23000' identifies an integrity constraint violation, including duplicate-key errors. EXIT would leave the declaring block instead of continuing, and UNDO is not a supported MySQL handler action. SQLEXCEPTION is broader than the required condition and would also catch unrelated exceptions. NOT FOUND and SQLSTATE '02000' concern no-data conditions, while SQLWARNING and '01000' describe warnings rather than the duplicate-key error.

Question 11

Added

Single Answer

An online store needs a database-side safeguard that records the old and new status whenever an order row's status changes, including updates made by administrative scripts that bypass the application. The history record must be written in the same transaction as the update, and a scheduled event is unavailable because operations will not enable the event scheduler. Which implementation best meets these requirements?

Correct answer: D

An AFTER UPDATE trigger fires for updates made through SQL regardless of whether they originate in the application, and its history insert participates in the same transaction as the triggering update. Comparing OLD.status and NEW.status limits history rows to actual status changes. A BEFORE INSERT trigger does not run for updates. A stored procedure only provides the safeguard if every writer uses it, which the scenario explicitly cannot ensure. A recurring event is both unavailable under the stated operational constraint and unable to record each change atomically with its update.

JSON and Document Store

2 practice questions on this topicWhat this topic covers

Question 12

Added

Single Answer

A product catalog stores flexible attributes in a JSON column, but the application frequently filters by the scalar path $.brand. The schema must continue to accept varied document shapes, and the team cannot add a separate relational table or change the application to maintain a duplicate brand column. The workload is read-heavy and the MySQL server is 8.0. Which schema change provides an index for this path while retaining the JSON document as the source of truth?

Correct answer: A

A generated column can extract a scalar JSON path and be indexed, allowing the application to keep the JSON document as the source of truth without maintaining a duplicate attribute. A multi-valued index is intended for multiple values such as elements of a JSON array, not a scalar brand value. FULLTEXT search is for tokenized text matching rather than exact equality on a JSON path. Spatial indexes require spatial data and cannot index a brand string by casting it during lookup.

Question 13

Added

Single Answer

A development team is building a JavaScript service that stores customer profiles as JSON documents in a MySQL 8.0 schema. The team wants to create a collection, add documents, and query them using the document API rather than writing SQL for each operation. It also wants to use MySQL Shell for interactive development, while keeping the service's runtime access separate from the developer's shell session. Which approach best matches these requirements?

Correct answer: D

MySQL Shell supports JavaScript mode and X DevAPI operations on schema collections, and a compatible X DevAPI connector lets the JavaScript service use the document-oriented API at runtime. Keeping the service's connector separate from an interactive shell session avoids coupling production requests to a developer tool. SQL mode is useful for SQL statements but does not make shell process invocation an appropriate request path. JDBC Connector/J does not automatically become an X DevAPI collection client, and Connector/ODBC does not expose X DevAPI merely because it can connect to MySQL.

More Oracle Practice Questions

Get the Full Oracle 1Z0-909 Dumps as PDF and Practice Test

13 questions are free on this page and the full set has 65. It comes as a PDF and an online practice test, with 90 days of free updates.